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
; Exemplo de um Hello World em Assembly | |
; ld -m elf_i386 -s -o hello hello.o | |
section .text align=0 | |
global _start | |
mensagem db 'Hello world', 0x0a | |
len equ $ - mensagem |
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
// installation: | |
// npm install dayjs dayjs-plugin-utc --save | |
// note: if not already a module, in package.json add "type":"module", | |
import dayjs from 'dayjs'; | |
import updateLocale from 'dayjs/plugin/updateLocale.js'; | |
import utc from 'dayjs/plugin/utc.js'; | |
import timezone from 'dayjs/plugin/timezone.js'; | |
// set up the as-of date |
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 { initTRPC } from '@trpc/server'; | |
import { resolveHTTPResponse } from '@trpc/server/http'; | |
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'; | |
const t = initTRPC.create(); | |
export const appRouter = t.router({ | |
hello: t.procedure.query(() => { | |
return { message: 'World' }; | |
}), |