This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Hono } from 'hono'; | |
| import { cors } from 'hono/cors'; | |
| import { db } from './db'; | |
| import { cards } from './db/schema'; | |
| import { eq, lte, asc } from 'drizzle-orm'; | |
| const app = new Hono(); | |
| const PORT = 3000; | |
| // --- Middlewares --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package model | |
| import ( | |
| "context" | |
| "fmt" | |
| "os" | |
| "strconv" | |
| "time" | |
| "github.com/go-redis/redis/v8" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "net/http" | |
| "os" | |
| "strings" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "strings" | |
| "time" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/session" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Dialog } from 'evergreen-ui'; | |
| interface INewsDetail { | |
| isShown: boolean; | |
| onClose: any; | |
| data: any; | |
| } | |
| const NewsDetail = ({ isShown, onClose, data }: INewsDetail) => { | |
| const setTextTypes = (child, child_idx, array) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import styled from "styled-components"; | |
| import Image from "next/image" | |
| type Props = { | |
| title: string; | |
| } | |
| export default function BannerSobreNos({ title }: Props) { | |
| return ( | |
| <main> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mongoose.Promise = global.Promise; | |
| let cache = null; | |
| const connect = async (database) => { | |
| if (cache) { | |
| logger.info('[DATABASE] Using cache'); | |
| return Promise.resolve(cache); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import useDataApi from "../../hooks/useDataApi"; | |
| import { userService } from "./api/action"; | |
| const UsersList = () => { | |
| const { data, loading, error } = useDataApi(userService.list, []); | |
| if (loading) { | |
| return ( | |
| <> | |
| <p>Loading...</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| time | open | high | low | close | volume | volumeMA | |
|---|---|---|---|---|---|---|---|
| 1592323200.001 | 94230 | 94260 | 94230 | 94260 | 89.5 | 244.76999999999944 | |
| 1592323260 | 94230 | 94230 | 94200 | 94200 | 20.8 | 243.56999999999942 | |
| 1592323260.001 | 94200 | 94200 | 94170 | 94170 | 20.8 | 242.36999999999944 | |
| 1592323260.002 | 94170 | 94170 | 94140 | 94140 | 20.8 | 241.16999999999945 | |
| 1592323260.003 | 94140 | 94140 | 94110 | 94110 | 20.8 | 149.90999999999946 | |
| 1592323260.004 | 94110 | 94110 | 94080 | 94080 | 20.8 | 120.99999999999946 | |
| 1592323440 | 94110 | 94140 | 94110 | 94140 | 379 | 110.69999999999945 | |
| 1592323500 | 94110 | 94110 | 94080 | 94080 | 68 | 107.14999999999945 | |
| 1592323860 | 94110 | 94140 | 94060 | 94140 | 577 | 115.79999999999946 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| time | open | high | low | close | volume | volumeMA | |
|---|---|---|---|---|---|---|---|
| 1591106400 | 5276 | 5277 | 5268.5 | 5273.5 | 57857 | 42831.65 | |
| 1591106700 | 5273.5 | 5275 | 5266 | 5267 | 35026 | 41934.9 | |
| 1591107000 | 5267 | 5268 | 5258 | 5264.5 | 55046 | 42325.9 | |
| 1591107300 | 5264 | 5265 | 5255 | 5255.5 | 33245 | 42392.05 | |
| 1591107600 | 5255.5 | 5257.5 | 5248.5 | 5251.5 | 46470 | 41793.4 | |
| 1591107900 | 5251.5 | 5259.5 | 5251 | 5253.5 | 30250 | 40990.9 | |
| 1591108200 | 5253 | 5255.5 | 5241.5 | 5250.5 | 62253 | 42376.4 | |
| 1591108500 | 5250.5 | 5256.5 | 5247.5 | 5252.5 | 27759 | 42609.3 | |
| 1591108800 | 5252.5 | 5255.5 | 5246 | 5253.5 | 32077 | 41409.85 |
NewerOlder