Skip to content

Instantly share code, notes, and snippets.

View lncitador's full-sized avatar
🏡
Working from home

Walaff Fernandes lncitador

🏡
Working from home
View GitHub Profile
@agutoli
agutoli / hello.S
Created September 25, 2012 20:42
Hello world em assembly
; 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
@jkeefe
jkeefe / date-to-eastern.js
Last active May 12, 2023 19:50
Parse current date to U.S. Eastern time + customize short months & a.m./p.m.
// 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
@realprabs
realprabs / TRPC.ts
Last active March 26, 2025 10:16
TRPC Integration for Adonis
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' };
}),