Public Gists by bgreenlee

Gravatar
Sun Aug 30 23:22:40 -0700 2009
1
2
3
#!/bin/bash
 
# "@Pad"
Gravatar
Tue Aug 04 11:09:40 -0700 2009
1
2
3
>> ("0".."10").to_a
=> ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]
 
Gravatar
Tue Jul 28 16:23:07 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
# twitdiff.rb
Gravatar
Thu Jul 23 10:49:30 -0700 2009
1
2
3
<!DOCTYPE html>
<html>
<head>
Gravatar
Thu Jul 23 10:48:41 -0700 2009
1
2
3
<!DOCTYPE html>
<html>
<head>
Gravatar
Wed Jun 03 14:22:36 -0700 2009
1
2
3
require 'open-uri' ; require 'rss/2.0' ; require 'cgi'; require 'openssl'
 
delicious_user='mattb'
gist: 72234 Displays a mysql-style repo...
Gravatar
Sat Feb 28 22:01:05 -0800 2009
1
2
3
# mysql-style output for an array of ActiveRecord objects
#
# Usage:
gist: 70687 Simple Ruby wrapper for enc...
Gravatar
Wed Feb 25 22:01:32 -0800 2009
1
2
3
class Crypto
  # encrypts data with the given key. returns a binary data with the
  # unhashed random iv in the first 16 bytes
Gravatar
Thu Feb 05 15:30:08 -0800 2009
1
2
3
# base for "smart" constant classes
class OptionSet
  def self.[](id)
Gravatar
Sun Jan 04 10:01:30 -0800 2009
1
2
3
# class to construct conditions for AR queries
# cc = ConditionsConstructor.new('foobar > ?', 7)
# cc.add('blah is not null')