Skip to content

Instantly share code, notes, and snippets.

@xenolito
xenolito / vscode-disable-code-hint-popups.md
Last active November 11, 2024 10:46
Disable VSCode intellisense hints and popups (for teaching or supermaven)

Disable vscode intellisense hints and popups

1) Edit settings.jsonfile

By going to View --> Command paletteand search for settings and choose Preferences: Open User Settings (JSON). Shortcut: CMD + SHIFT + P.

2) Add the following:

"editor.quickSuggestions": {
@xenolito
xenolito / imagemagick_cli.md
Last active June 20, 2024 08:56
Imagemagick common snippets

5) IMAGES: RESIZING WITH IMAGE MAGICK CLI:

Resize and compress by 85% and autonumeral (%02d -> two digits)

magick *.jpg -resize 1440 -quality 85 ./resized/AH_000003-%02d.jpg

Rotate 90 degrees if height > width

convert input.jpg -rotate 90< output.jpg

Save the output file with the same filename as original (after rotating the image on this example)

@xenolito
xenolito / GLSL-Noise.md
Created February 27, 2021 11:11 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}