Skip to content

Instantly share code, notes, and snippets.

View helgardferreira's full-sized avatar

Helgard helgardferreira

View GitHub Profile
@helgardferreira
helgardferreira / zshgit.md
Created April 13, 2024 08:37 — forked from AdamMarsden/zshgit.md
Oh My Zsh - Git Cheat Sheet

#Oh My Zsh - Git Cheat Sheet

ggit

gstgit status

glgit pull

gupgit pull --rebase

@helgardferreira
helgardferreira / tmux-cheatsheet.markdown
Created September 15, 2023 12:46 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@helgardferreira
helgardferreira / GLSL-Noise.md
Created October 20, 2020 08:07 — 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);
}
@helgardferreira
helgardferreira / forceDownload.js
Created June 3, 2019 05:39 — forked from jmcarp/forceDownload.js
Forcing a file download in JavaScript
function forceDownload(href) {
var anchor = document.createElement('a');
anchor.href = href;
anchor.download = href;
document.body.appendChild(anchor);
anchor.click();
}