Skip to content

Instantly share code, notes, and snippets.

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

Carlos Mesquita carlos3g

💻
Coding with community
View GitHub Profile
import {
Canvas,
DataSourceParam,
dist,
ImageShader,
rect,
RoundedRect,
rrect,
Shader,
Skia,
@VictorTaelin
VictorTaelin / gpt4_abbreviations.md
Last active November 2, 2024 21:46
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 September 26, 2024 13:19
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 November 18, 2024 15:06
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 November 18, 2024 19:18
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 October 31, 2024 12:33
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 November 7, 2024 17:51
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