Skip to content

Instantly share code, notes, and snippets.

View youhei's full-sized avatar
🦈
Watching shark movies

Youhei Nitta youhei

🦈
Watching shark movies
View GitHub Profile
Github T-shirts をいっしょに買って送料を節約しませんか?
2-200枚なら送料が一律 $11 だそうですよ。
http://rubyrags.com/products/10
東京近郊で渡せる方がよいです。
我もと思うかたは fork me.
> Mサイズが欲しいです。
> Ruby 関連のカンファレンスであれば行くのでそのときにでも。
//Causes Object to look at nearest Avatar.
default
{
state_entry()
{
llSensorRepeat("", "", AGENT, 20.0, PI, 0.2);
}
sensor(integer total_number)
{
//Causes Object to look at nearest Avatar.
default
{
state_entry()
{
llSensorRepeat("", "", AGENT, 20.0, PI, 0.2);
}
sensor(integer total_number)
{
//Causes Object to look at nearest Avatar.
default
{
state_entry()
{
llSensorRepeat("", "", AGENT, 20.0, PI, 0.2);
}
sensor(integer total_number)
{
#!/usr/bin/env ruby1.9
sheets = `cheat sheets`.split
sheets.each do |sheet|
spawn "cheat #{sheet}"
end
@youhei
youhei / build.sbt
Created July 15, 2011 09:18
generate war-package on sbt publish
seq(webSettings :_*)
addArtifact(Artifact("artifactId", "war", "war"), packageWar)
publishArtifact in packageBin := false
module Main where
allEven :: [Integer] -> [Integer]
allEven [] = []
allEven (h:t)
| even h = h:allEven t
| otherwise = allEven t
@youhei
youhei / gist:2657550
Created May 11, 2012 04:37
installation PIL on Lion
$ workon <env>
$ pip install --upgrade --no-install PIL
$ vi $VIRTUAL_ENV/build/PIL/setup.py

JPEG_ROOT = libinclude(os.popen('brew --prefix jpeg').read().strip())
FREETYPE_ROOT = libinclude('/usr/X11')

$ pip install --upgrade PIL

@youhei
youhei / fields.py
Created May 11, 2012 04:47
using try-else block in actual case
# South support; see http://south.aeracode.org/docs/tutorial/part4.html#simple-inheritance
try:
from south.modelsinspector import add_introspection_rules
except ImportError:
pass
else:
add_introspection_rules([], [r"^picklefield\.fields\.PickledObjectField"])
@youhei
youhei / gist:2691998
Created May 14, 2012 05:40
automated pair programming partner one-liner
$ git shortlog --summary | cut -f 2 | shuf | paste - -