Skip to content

Instantly share code, notes, and snippets.

@mootoh
mootoh / gist:232739
Created November 12, 2009 08:42 — forked from syoyo/gist:17872
var IMAGE_WIDTH = 128
var IMAGE_HEIGHT = 128
var NSUBSAMPLES = 2
var NAO_SAMPLES = 4
function vec(x, y, z)
{
this.x = x;
this.y = y;
this.z = z;
@mootoh
mootoh / mime.types
Created October 22, 2009 22:00 — forked from swdyh/mime.types
application/x-xpinstall xpi
application/x-chrome-extension crx
#!/bin/sh
PREFIX=/path/to/prefix
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
# configure for iPhone device
mkdir -p build_for_armv6
pushd build_for_armv6
../configure --prefix=${PREFIX} \
--host=arm-apple-darwin \
--enable-static \
@mootoh
mootoh / ditz.vim
Created January 17, 2009 14:20 — forked from ursm/ditz.vim
function! s:Todo()
call s:OpenBufferFromCommand('ditz todo', function('s:IssueCallback'))
endfunction
function! s:TodoAll()
call s:OpenBufferFromCommand('ditz todo --all', function('s:IssueCallback'))
endfunction
function! s:Grep(args)
call s:OpenBufferFromCommand(printf('ditz grep "%s"', a:args), function('s:IssueCallback'))