Skip to content

Instantly share code, notes, and snippets.

View teppeis's full-sized avatar

Teppei Sato teppeis

View GitHub Profile
/*!
* 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);
@teppeis
teppeis / tenkaichi-git.md
Last active April 29, 2023 14:58
天下一gitconfig大会

天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。

ぎっとぎとにしてやんよ

DojoCat

  • gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
#!/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
// Auto clicking and optimal shopping for Cookie Clicker.
// http://orteil.dashnet.org/cookieclicker/
//
// Input this into developer console of your browser!
// You can stop with "stop()" in console.
var stop = (function(){
var def = [0.5, 0.5, 2, 10, 40, 100, 400, 6666, 98765, 999999];

Untitled Slide

Welcome to Glide.

Glide is the easiest way to create useful slide for all of your Gists.

  • input key <- to go backward.
  • input key -> to go forward.

Publishing