天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。
- gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
/*! | |
* jQuery JavaScript Library v1.4.2 | |
* http://jquery.com/ | |
* | |
* Copyright 2010, John Resig | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://jquery.org/license | |
* | |
* Includes Sizzle.js | |
* http://sizzlejs.com/ |
/** | |
* UUID.js | |
* | |
* Generates RFC-compliant UUIDs (version 1 or 4). | |
* @version 2.0 2008-10-04 | |
* @see http://www.ietf.org/rfc/rfc4122.txt | |
* @license http://liosk.net/-/license/mit The MIT License | |
* @copyright Copyright (c) 2008 LiosK (http://liosk.net/) | |
*/ |
// Deprecated! | |
if ($.browser.msie) { | |
alert('Your browser is IE ' + $.browser.version); | |
} |
// Deprecated! | |
console.log('size: ' + $('li').size()); | |
// OK! | |
console.log('size: ' + $('li').length); |
// Deprecated! | |
$(':checkbox'); | |
// OK! | |
$('[type="checkbox"]'); |
// 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); |
#!/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 |