Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
| var Autobot = function(nombre){ | |
| this.nombre = nombre; | |
| this.timer = +new Date(); | |
| }; | |
| Autobot.prototype.saludar = function() { | |
| alert('Hola, me llamo '+ this.nombre + '\nTime: ' + (+new Date() - this.timer) + 'ms' ); | |
| }; | |
| Autobot.prototype.saludoDelay = function(ms){ |
| // Change font (ctrl a) | |
| var font_name, | |
| select_one_textlayer = false; | |
| function check_layer(layer){ | |
| log("Checking layer " + layer + " of klass: " + [layer class]) | |
| switch ([layer class]) { | |
| case MSTextLayer: | |
| log("Found text layer!") | |
| layer.setFontPostscriptName(font_name); |
| const uniq = arrArg => arrArg.filter((elem, index, arr) => arr.indexOf(elem) === index); |
| git archive -o latest.zip HEAD |
| # Pass the env-vars to MYCOMMAND | |
| eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
| # … or ... | |
| # Export the vars in .env into your shell: | |
| export $(egrep -v '^#' .env | xargs) |
| #!/bin/sh | |
| # | |
| # list the given file's filesize next to each commit | |
| # usage: git-fs-history path/to/file | |
| # | |
| if [ $# -ne 1 ]; then | |
| echo "Error: invalid number of arguments." | |
| exit 1 |
| // borrowed from https://gist.github.com/Integralist/749153aa53fea7168e7e#gistcomment-1457123 | |
| const flatten = list => list.reduce( | |
| (accumulator, element) => accumulator.concat(Array.isArray(element) | |
| ? flatten(element) | |
| : element), | |
| [] | |
| ); |