https://github.com/teppeis/closure-ts
異論は認めない。
#!/bin/bash | |
# | |
# Check package.json and npm install after git checkout. | |
# Put this to .git/hooks/post-checkout | |
# | |
PREVIOUS_HEAD=$1 | |
NEW_HEAD=$2 | |
BRANCH_SWITCH=$3 |
#!/bin/sh | |
# Update latest stable version, use it and migrate npm packages. | |
PREV_VER=$(nodebrew ls|grep current:|cut -d ' ' -f 2) | |
echo "Current version: $PREV_VER" | |
echo "" | |
echo "nodebrew install-binary stable" | |
nodebrew install-binary stable | |
if [ $? -ne 0 ]; then | |
# Already installed |
// Deprecated! | |
$.get('/some/api').success(function(data) { | |
console.log(data); | |
}).error(function() { | |
console.error('Error!'); | |
}); | |
// OK! | |
$.get('/some/api').done(function(data) { | |
console.log(data); |
// Deprecated! | |
$(':checkbox'); | |
// OK! | |
$('[type="checkbox"]'); |
// Deprecated! | |
console.log('size: ' + $('li').size()); | |
// OK! | |
console.log('size: ' + $('li').length); |