Skip to content

Instantly share code, notes, and snippets.

@claudioovp
claudioovp / ScrollRevealReact.js
Last active September 15, 2017 20:41
React List
## Use ScrollReveal on React
- https://andrewshiau.wordpress.com/2017/04/02/use-scrollreveal-js-on-a-react-component/
@claudioovp
claudioovp / fork-from-github-to-bitbucket.md
Last active April 26, 2017 18:48
Fork a repo from GitHub to Bitbucket

1- clone repo github

git clone https://github.com/user/your-project-name.git your-project-name  

2- remove origin github and set upstream

cd your-project-name
git remote remove origin
git remote add origin ssh://[email protected]/your-project-name.git
git remote add upstream https://github.com/user/your-project-name.git
@claudioovp
claudioovp / es6-destructuring.js
Last active September 18, 2019 12:22
ES6 Tips
// can destructure arrays
const [a, b] = [1,2]; // a = 1, b = 2
// can destructure object keys
const { a } = { a: 3 }; // a = 3
var a, b, rest;
[a, b] = [1, 2];
console.log(a); // 1
console.log(b); // 2
@claudioovp
claudioovp / karabiner-import.sh
Created April 19, 2016 14:00
Karabiner preferencias - backup
#!/bin/sh
cli=/Applications/Karabiner.app/Contents/Library/bin/karabiner
$cli set private.keypad_dot_to_dot 1
/bin/echo -n .
$cli set remap.pc_scrolllock2f13 1
/bin/echo -n .
$cli set remap.pc_insert2optionLinsert 1
/bin/echo -n .
http://codepen.io/lbebber/pen/LELBEo
http://codepen.io/lbebber/pen/RNgBPP
http://codepen.io/lbebber/details/zxpMZw/