Public Gists by ymendel

Gravatar
Tue Sep 22 10:02:38 -0700 2009
1
2
3
  def initialize(options = {})
    load_config
    set_options(options)
Gravatar
Mon Aug 10 15:05:09 -0700 2009
1
2
3
photos = photos[0, photos.size > limit ? limit : photos.size]
 
#############################################################
Gravatar
Mon Aug 10 13:53:01 -0700 2009
1
2
3
<% @shop_order.attributes.each do |column| %>
<% next if column[0] == 'how_did_you_hear' %>
  <input type=hidden name="shop_order[<%=h column[0] %>]" value="<%=h column[1] %>" />
Gravatar
Mon Aug 10 12:10:42 -0700 2009
1
2
3
class Invitation < ActiveRecord::Base
  # Returns encoded invitation id
  def encoded_id
Gravatar
Fri Jul 31 11:17:27 -0700 2009
1
2
3
Thing = Struct.new(:a, :b, :c) do
  def some_thing
  end
Gravatar
Thu Jul 23 12:58:03 -0700 2009
1
2
3
---
- this
- &id001 2009-07-23
Gravatar
Fri Jun 19 10:45:03 -0700 2009
1
2
3
Cassady:~/dev/projects/mine/dugdale(mirr) yossef$ git push origin mirr
DEBUG:gitosis.serve.main:Got command "git-receive-pack 'dugdale.git'"
DEBUG:gitosis.access.haveAccess:Access check for 'yossef' as 'writable' on 'dugdale.git'...
Gravatar
Sat May 02 09:52:44 -0700 2009
1
2
3
commit 11a75d0f2fea50ab4f35e99a7b584c450ea0e634
Author: Yossef Mendelssohn <ymendel@pobox.com>
Date: Sat May 2 11:44:52 2009 -0500
Gravatar
Fri May 01 12:59:32 -0700 2009
1
2
3
>> v = Gem::Version.new('1.1.pre')
=> #<Gem::Version "1.1.pre">
>> Gem::Requirement.new('>= 1.1').satisfied_by?(v)
Gravatar
Thu Apr 16 00:10:51 -0700 2009
1
2
3
commit 3bbbf8b7c2d3633af47faf9eda9836e1bc3c681c
Author: Yossef Mendelssohn <ymendel@pobox.com>
Date: Thu Apr 16 00:59:30 2009 -0500
Gravatar
Mon Apr 13 18:30:19 -0700 2009
1
2
3
<Dreamr_3> any easy way to get diff to just show me a list of commits?
<Dreamr_3> like the commits that are missing from a branch?
<Ilari> Dreamr_3: 'git log parent..branch'?
Gravatar
Thu Apr 02 20:52:51 -0700 2009
1
<div align="center"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><strong><font size="4"><u>April Classes </u></font></strong></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br/></div>
Gravatar
Thu Apr 02 09:47:37 -0700 2009
1
2
3
lndir()
{
  SRC_DIR=$1
Gravatar
Tue Mar 03 10:28:38 -0800 2009
1
2
3
This allowed for automatic render overrides based on controller
 
An example:
Gravatar
Wed Feb 11 07:55:50 -0800 2009
1
2
3
[2009-02-10: REVISION 1498]
 
 
Gravatar
Tue Feb 03 16:37:02 -0800 2009
1
2
3
#!/bin/sh
BRANCHES=`git branch`
if [ $? != 0 ]; then
Gravatar
Mon Feb 02 09:38:05 -0800 2009
1
2
3
Cassady:/usr/local/bin yossef$ ls -l growlnotify*
-rwxr-xr-x 1 root wheel 324 Jun 26 2008 growlnotify*
-rwxr-xr-x 1 root wheel 130440 Jun 26 2008 growlnotify.wrapped*
Gravatar
Mon Jan 19 09:43:28 -0800 2009
1
2
3
Cassady:~/Music/jazz-on-line/maybe/look yossef$ earworm VIC09689.mp3
/Library/Ruby/Gems/1.8/gems/icanhasaudio-0.1.3/lib/icanhasaudio/mpeg/decoder.rb:25:in `native_decode': Error: number of channels has changed (RuntimeError)
from /Library/Ruby/Gems/1.8/gems/icanhasaudio-0.1.3/lib/icanhasaudio/mpeg/decoder.rb:25:in `decode'
Gravatar
Fri Jan 09 10:14:31 -0800 2009
1
2
3
---
filter:
  - erb
Gravatar
Sun Jan 04 19:59:51 -0800 2009
1
2
3
#!/usr/bin/env ruby
 
require 'optparse'