Skip to content

Instantly share code, notes, and snippets.

View fackux's full-sized avatar

Facundo López fackux

View GitHub Profile
@fackux
fackux / Comandos.txt
Created October 1, 2021 07:08
Uso de paneles y columnas en VIM
vim afile # Open a file
^w v # split it
gg # go to top
:set scrollbind # bind this one
^w l # go to the new split
L # go to bottom of this split
zt # make it the top line
:set scrollbind # bind with this one
@fackux
fackux / ranger-cheatsheet.md
Created September 25, 2021 16:18
Ranger Cheatsheet
@fackux
fackux / random.js
Last active August 7, 2021 19:19
JS Utils
export const random = (min, max) => Math.floor(Math.random() * (max - min)) + min;
/* https://www.joshwcomeau.com/snippets/react-hooks/use-random-interval */
export const useRandomInterval = (callback, minDelay, maxDelay) => {
const timeoutId = React.useRef(null);
const savedCallback = React.useRef(callback);
React.useEffect(() => {
savedCallback.current = callback;
}, [callback]);
React.useEffect(() => {