Skip to content

Instantly share code, notes, and snippets.

View carlos3g's full-sized avatar
💻
Coding in community

Carlos Mesquita carlos3g

💻
Coding in community
View GitHub Profile
import {
Canvas,
DataSourceParam,
dist,
ImageShader,
rect,
RoundedRect,
rrect,
Shader,
Skia,
@VictorTaelin
VictorTaelin / gpt4_abbreviations.md
Last active March 17, 2025 17:41
Notes on the GPT-4 abbreviations tweet

Notes on this tweet.

  • The screenshots were taken on different sessions.

  • The entire sessions are included on the screenshots.

  • I lost the original prompts, so I had to reconstruct them, and still managed to reproduce.

  • The "compressed" version is actually longer! Emojis and abbreviations use more tokens than common words.

@mrousavy
mrousavy / MEMOIZE.md
Last active December 2, 2024 00:15
Memoize!!! 💾 - a react (native) performance guide
In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and  
returning the cached result when the same
inputs occur again.                                         
                                                     — wikipedia
// WARNING: There's much more to know/do around hooks, and
// this is just a simplification of how these work.
// shared references, updated
// per each hook invoke
let execution = null;
let current = null;
let context = null;
let args = null;
@bergmannjg
bergmannjg / rearct-native-app-in-wsl2.md
Last active April 7, 2025 19:04
Building a react native app in WSL2

This emulate's vim's <C-e> and <C-y> for scrolling in VSCode using the macros extension.

scrolling vscode editor

  1. add the following to settings.json
"macros": {
  "scrollLineDownFaster": [
 "scrollLineDown",
@KlausEverWalkingDev
KlausEverWalkingDev / Como fazer perguntas inteligentes.md
Last active November 28, 2023 00:29
Como fazer perguntas inteligentes

#Name: Como fazer perguntas inteligentes
#By Eric Raymond (Tradução: César A. K. Grossmann)
#Version: N/D
#Release Date: September 4th, 2019

Como fazer perguntas inteligentes

Por: Eric Raymond Tradução: César A. K. Grossmann

@diego3g
diego3g / NODE.md
Last active April 7, 2025 14:02
VSCode Settings (Updated)

⚠️ Note!

With VSCode version 1.94, the APC extension broke and there is no fix yet.

So, for those having issues with APC after the VSCode update, I recommend downloading the previous version of VSCode for now (https://code.visualstudio.com/updates/v1_93) and setting updates to manual by adding this to the editor's configuration:

"update.mode": "manual",
@timc1
timc1 / use-dropzone.tsx
Last active March 3, 2025 03:24
A React hook that returns whether a file is being dragged into the document from the operating system and not from within the browser.
import React from 'react'
type DropzoneContextValue = {
isDragging: boolean
}
const DropzoneContext = React.createContext<DropzoneContextValue | undefined>(
undefined
)
@matthewjberger
matthewjberger / instructions.md
Last active April 7, 2025 11:31
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache