Public Gists by delagoya

Gravatar
Thu Oct 01 07:05:09 -0700 2009
1
2
3
# migration file
# assuming two models role.rb and recipe.rb
 
Gravatar
Thu Sep 03 06:24:45 -0700 2009
1
2
3
# assume you have a file with lots if dates
d <- read.delim('datafile.txt')
 
Gravatar
Fri Feb 27 06:25:00 -0800 2009
1
2
3
The warm weather has me thinking about prok ribs. Thought I would share my secret sauce, I guess now making it public sauce.
 
 
Gravatar
Fri Feb 27 06:24:58 -0800 2009
1
2
3
The warm weather has me thinking about prok ribs. Thought I would share my secret sauce, I guess now making it public sauce.
 
 
Gravatar
Wed Feb 11 07:35:57 -0800 2009
1
2
3
package mz
{
import flash.filesystem.File;
Gravatar
Wed Feb 11 07:35:54 -0800 2009
1
2
3
package mz
{
import flash.filesystem.File;
Gravatar
Wed Dec 24 11:09:34 -0800 2008
1
2
3
# original
# resources :groups do
# match("/find").to(:action => 'find')
gist: 33518 open GitX on the current di...
Gravatar
Mon Dec 08 09:04:00 -0800 2008
1
2
#!/bin/sh
/Applications/GitX.app/Contents/MacOS/GitX `pwd` >& /dev/null &
gist: 33471 Setting session cookies fro...
Gravatar
Mon Dec 08 06:42:18 -0800 2008
1
2
3
This is Merb middleware to set a session cookie when the request comes from flash.
 
You must first require the module, then invoke it's use in the call chain in either rack.rb or config.ru.
Gravatar
Mon Dec 08 06:27:27 -0800 2008
1
A collection of Rack middleware, found all over the internet and part of Merb's core.
gist: 32469 Example DM polymorphic asso...
Gravatar
Fri Dec 05 11:34:58 -0800 2008
1
2
3
# the notes model
 
class Note
Gravatar
Wed Nov 05 13:48:44 -0800 2008
1
2
3
import cherrypy
from cherrypy._cpdispatch import PageHandler, LateParamPageHandler
import routes
gist: 16101 pause git script
Gravatar
Fri Oct 10 10:03:17 -0700 2008
1
2
3
#!/bin/sh -x
CURRENT=`git branch | grep '*' | awk '{print $2}'`
MSG="hitting the pause button"
Gravatar
Fri Oct 10 08:00:32 -0700 2008
1
2
3
#!/bin/sh -x
# git name-rev is fail
CURRENT=`git branch | grep '*' | awk '{print $2}'`
gist: 16068 hack git script
Gravatar
Fri Oct 10 07:58:47 -0700 2008
1
2
3
#!/bin/sh -x
# git name-rev is fail
CURRENT=`git branch | grep '*' | awk '{print $2}'`
Gravatar
Tue Oct 07 19:25:17 -0700 2008
1
2
3
import sys
sys.path.insert(0, 'cherrypy.zip')
sys.path.insert(0, 'mako.zip')