I hereby claim:
- I am skarfacegc on github.
- I am skarfacegc (https://keybase.io/skarfacegc) on keybase.
- I have a public key whose fingerprint is 6A9A 1194 E747 D4A9 F7D9 158C 6876 333E 7FB8 DEA0
To claim this, I am signing this object:
| let foo = []; | |
| foo[0] = () => { | |
| return new Promise((resolve,reject) => { | |
| setTimeout(() =>{ | |
| console.log('a'); | |
| resolve(1); | |
| }, 100); | |
| }); |
| 'use strict'; | |
| const execa = require('execa'); | |
| const getStream = require('get-stream'); | |
| let foo = execa.shell('sleep 3 && echo foo'); | |
| foo.then((result)=>{ | |
| console.log('Done'); | |
| console.log(result); |
| function promised(fn) { | |
| return function(cb) { | |
| return new Promise(function(resolve, reject) { | |
| fn(function { cb(); resolve() }); | |
| }); | |
| } | |
| } | |
| promised(myAsync)(myCallback).then(...); |
| # | |
| # Looks for moudules in ./lib with the name of Module-<version>.pl | |
| # Loads the requested version when the module is 'use'ed | |
| # | |
| # Usage: | |
| # | |
| # use LoadModule MyModule => 'v1' | |
| package LoadModule; |
| #~/.tmuxinator/FlowTrack.yml | |
| name: FlowTrack2 | |
| root: ~/Development/FlowTrack2 | |
| # Optional tmux socket | |
| # socket_name: foo | |
| # Runs before everything. Use it to start daemons etc. | |
| # pre: sudo /etc/rc.d/mysqld start |
I hereby claim:
To claim this, I am signing this object:
| # my tmux config file | |
| # Emacs bindings | |
| set -gw mode-keys emacs | |
| # windows numbers start at 1 | |
| set -g base-index 1 | |
| # aliases |
| # list current network connections and refrsh every 2 seconds | |
| watch "lsof -i -P |grep ESTABLISHED |awk '{printf \"%15.15s \\t%s\\n\", \$1, \$9}'" | |
| # Show the number of commits per file | |
| find . -type f -exec sh -c "echo {} ;git log --pretty=oneline {} |wc -l" \; |
| config defaultToCurrentScreen true | |
| # Shows app icons and background apps, spreads icons in the same place. | |
| config windowHintsShowIcons true | |
| config windowHintsIconAlpha 0.5 | |
| config windowHintsIgnoreHiddenWindows false | |
| config windowHintsSpread true | |
| config secondsBetweenRepeat 0.1 | |
| # Development layout |
| $ perlbrew switch 5.14.2 | |
| $ perl -MExtUtils::Installed -E 'say for ExtUtils::Installed->new->modules' > /tmp/installed.list | |
| $ perlbrew switch perl-5.16.0 | |
| $ perlbrew install-cpanm | |
| $ cat /tmp/installed.list | cpanm --interactive |