Public Gists by yannlugrin

Gravatar
Mon Nov 30 02:23:55 -0800 2009
1
2
3
require 'rake/packagetask'
 
Rake::PackageTask.new("myapp", "1.2.3") do |p|
Gravatar
Wed May 27 07:16:34 -0700 2009
1
2
3
cloud-start -s config/clouds.rb
Starting cloud app (/home/yann/.ec2/testpoolparty)
0 running instances (1 - 1)
Gravatar
Thu Apr 02 07:24:08 -0700 2009
1
2
3
#!/bin/bash
#
# Set our bash prompt according to the branch/status of the current git
Gravatar
Wed Mar 11 06:30:31 -0700 2009
1
2
3
# This is a Rails app template by Yann Lugrin
#
 
Gravatar
Wed Mar 11 06:28:42 -0700 2009
1
2
3
def multi_replace(string, *rules)
  scanning_pattern = Regexp.union(rules.map{|e| e.first} | [/./])
  string.scan(scanning_pattern).map do |match|