View protocolcheck.js
(function (window) { | |
function _registerEvent(target, eventType, cb) { | |
if (target.addEventListener) { | |
target.addEventListener(eventType, cb); | |
return { | |
remove: function () { | |
target.removeEventListener(eventType, cb); | |
} | |
}; |
View gist:10964795
git rm -r --cached . | |
git add . | |
git commit -m ".gitignore is now working" |
View gist:10964772
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |
View gist:10964740
touch script | |
chmod 777 script | |
nano script | |
Put this to script “ | |
#!/bin/bash | |
export PATH="/usr/local/bin:/usr/bin:/bin" | |
cd `dirname $0` | |
exec "$@" | |
“ | |
env EDITOR=nano crontab -e |