Skip to content

Instantly share code, notes, and snippets.

View wakeupmh's full-sized avatar
🏴‍☠️

Marcos Henrique wakeupmh

🏴‍☠️
View GitHub Profile
@staltz
staltz / introrx.md
Last active April 21, 2025 04:15
The introduction to Reactive Programming you've been missing
@justinyoo
justinyoo / app-module.cs
Last active August 15, 2019 19:49
Revising Azure Functions Dependency Injection
public class AppModule : Module
{
public override void Load(IServiceCollection services)
{
services.AddSingleton<AppSettings>();
services.AddTransient<IGetSamplesFunction, GetSamplesFunction>();
}
}
@ErickWendel
ErickWendel / concat-streams.mjs
Last active August 15, 2024 10:17
Example of how to consume multiple Web APIs in parallel via Node.js Streams
// npm i axios stream-concat
import { pipeline } from 'stream/promises'
import StreamConcat from 'stream-concat'
import axios from 'axios'
const API_01 = 'http://localhost:3000'
const API_02 = 'http://localhost:4000'
const streams = (await Promise.all([
axios({
@ciiqr
ciiqr / zod-optional-null.ts
Last active April 4, 2025 12:22
zod optional/nullable/nullish differences
// zod schema
z.object({
// valid if string or:
optional: z.string().optional(), // field not provided, or explicitly `undefined`
nullable: z.string().nullable(), // field explicitly `null`
nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined`
});
// type
{
@veekaybee
veekaybee / normcore-llm.md
Last active April 20, 2025 11:25
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@ruvnet
ruvnet / notebook.ipynb
Last active March 11, 2025 00:25
Diffusion-Based Coding Model with PyTorch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.