Skip to content

Instantly share code, notes, and snippets.

View teppeis's full-sized avatar

Teppei Sato teppeis

View GitHub Profile
@teppeis
teppeis / gist:d7f40170902a9a4144a2
Last active April 11, 2016 08:21
TypeScript用フルスタック型付きライブラリのご提案 (https://gist.github.com/teppeis/10659631 は間違えて消しちゃったので再投稿)
@teppeis
teppeis / jquery-release-notes.md
Last active November 21, 2022 16:10
jQuery Release Notes
#!/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

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

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

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

ぎっとぎとにしてやんよ

DojoCat

  • gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
// 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);