Skip to content

Instantly share code, notes, and snippets.

@nishimura
nishimura / post-receive-email.php
Created March 1, 2010 09:18
post-commit-email for Japanese Encoding.
<?php
$from = `git config hooks.envelopesender`;
$to = `git config hooks.mailinglist`;
$emailprefix = `git config hooks.emailprefix`;
if (!$emailprefix)
$emailprefix = '[SCM]';
if (!isset($argc) || $argc < 3){
@isaacs
isaacs / comma-first-var.js
Created April 6, 2010 19:24
A better coding convention for lists and object literals in JavaScript
// See comments below.
// This code sample and justification brought to you by
// Isaac Z. Schlueter, aka isaacs
// standard style
var a = "ape",
b = "bat",
c = "cat",
d = "dog",
Index: sapi/cli/config.w32
===================================================================
--- sapi/cli/config.w32 (revision 308839)
+++ sapi/cli/config.w32 (working copy)
@@ -6,7 +6,8 @@
ARG_ENABLE('cli-win32', 'Build console-less CLI version of PHP', 'no');
if (PHP_CLI == "yes") {
- SAPI('cli', 'php_cli.c', 'php.exe');
+ SAPI('cli', 'php_cli.c php_http_parser.c php_cli_server.c', 'php.exe');
@lanius
lanius / install_gitorious.sh
Created April 19, 2011 06:03
Gitorious Installation to Ubuntu Server 10.04
# Gitorious Installation to Ubuntu Server 10.04
# from gitorious mainline:
# commit e2e70edd42ac1c00dab518d61d566ee3fec929db
# Author: Marius Mathiesen <marius@gitorious.org>
# Date: Wed Apr 13 11:43:07 2011 +0200
: << '#COMMENT_OUT'
Ubuntu Server 10.04 に Gitorious をインストールしたときのメモ。
@youzaka
youzaka / gist:985485
Created May 22, 2011 13:54
TSファイルから記述子を取得
#!/usr/bin/env python2.6
# -*- coding: utf-8 -*-
from array import array
from collections import defaultdict
from datetime import datetime, time
from StringIO import StringIO
import sys
@corbinbs
corbinbs / alert_demo.py
Created July 15, 2011 02:19
Example Python Alert Dialogs using PyObjC (alternative to EasyDialogs?)
import objc
from AppKit import *
from Foundation import *
class Alert(object):
def __init__(self, messageText):
super(Alert, self).__init__()
self.messageText = messageText
self.informativeText = ""
@hamano
hamano / README.md
Created October 22, 2011 05:44
github グッズを買おうよ!まとめ

github グッズを買おうよ!まとめ

こんなにも可愛いoctcatのTシャツやマグカップなどを買わずにはいられません!

11/2日に購入手続きを行いました。

http://shop.github.com/

みんなで買うと送料+関税を割り勘出来るので一人で買うより安くなるよ。

#!/usr/bin/env perl
use strict;
use warnings;
use Pod::Usage;
use Text::Markdown 'markdown';
use HTML::TreeBuilder;
use List::Util 'max';
@sasezaki
sasezaki / zfhimekuri0101.md
Created December 31, 2011 04:14
Zend Framework その7年 (前編)

Zend Framework その7年

あけましておめでとうございます。 Zend Framework 日めくり Calendar 2012の1日目としてお送りします。 この日めくりカレンダー、前月に流行ったAdventカレンダーの、アイデアフォーク(パクリ)となっております。 記事書いていただける方を募集中です。ぜひatndへのリンク先からご登録ください。

@yudoufu
yudoufu / remove-utm.txt
Created January 30, 2012 15:03 — forked from wozozo/remove-utm.txt
utmのパラメータをURLから取り除くブックマークレットとuser.js
javascript:(function(){var e,d,b,c,a;d=location;b=d.search.replace(/^\?/,'').split('&');c=[];a=b.length;while(a--){if(!b[a].match(/^utm_/)){c.push(b[a])}else{e=true}}if(e){d.href=d.pathname+((c.length)?'?'+c.join('&'):'')}})();