Skip to content

Instantly share code, notes, and snippets.

Avatar

Teppei Sato teppeis

View GitHub Profile
View gist:408588
/*!
* 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/
View gist:408712
/**
* 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/)
*/
View browser.js
// Deprecated!
if ($.browser.msie) {
alert('Your browser is IE ' + $.browser.version);
}
View size.js
// Deprecated!
console.log('size: ' + $('li').size());
// OK!
console.log('size: ' + $('li').length);
View checkbox.js
// Deprecated!
$(':checkbox');
// OK!
$('[type="checkbox"]');
View jqxhr.js
// 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 Feb 8, 2022
天下一gitconfig大会
View tenkaichi-git.md

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

ぎっとぎとにしてやんよ

DojoCat

GistDeck

  • gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
View node-update.sh
#!/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
View autocookieclicker.js
// 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];
View slide.md

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