Public Gists by juno

Gravatar
Tue May 26 02:43:37 -0700 2009
1
javascript:l=location;w=window;(function(){asin=l.pathname.match(/asin\/([0-9]{10,})/i)[1];w.open('http://www.amazon.co.jp/exec/obidos/ASIN/'+asin,'_blank','');}());
gist: 87727 Generate simple pdf file wi...
Gravatar
Mon Mar 30 03:14:07 -0700 2009
1
2
3
<?php
// ドキュメントインスタンスを生成する
$doc = new HaruDoc;
gist: 64315 require: gem install shorturl
Gravatar
Sat Feb 14 00:15:43 -0800 2009
1
2
3
#!/usr/bin/env ruby
# -*- coding:utf-8; mode:ruby-mode -*-
 
gist: 63783 Refactoring: Decompose Cond...
Gravatar
Thu Feb 12 23:57:35 -0800 2009
1
2
3
if ($this->notSummer($date)) {
$charge = $this->winterCharge($quantity);
} else {
gist: 63781 Refactoring: Decompose Cond...
Gravatar
Thu Feb 12 23:55:32 -0800 2009
1
2
3
if ($date->before(SUMMER_START) || $date->after(SUMMER_END)) {
$charge = $quantity * $this->winter_rate + $this->winter_service_charge;
} else {
Gravatar
Mon Dec 15 00:35:11 -0800 2008
1
2
3
<?php
class DIContainer
{
gist: 2577 Image preloading helper for...
Gravatar
Fri Jul 25 19:12:09 -0700 2008
1
2
3
<?php
/**
 * Returns a html to preload images using jQuery.