Public Gists by iownbey

Gravatar
Mon Aug 31 16:47:26 -0700 2009
1
2
3
  def setup_sightings_for_rollup
    timespans = [ # [start_time, end_time, quantity, values]
      [1.minute.ago, Time.now, 250, [1]],
Gravatar
Sat Aug 08 00:40:52 -0700 2009
1
2
3
$(function() {
$("a#portfolio_link_1").click(function() {
  $("div#portfolio_float_1").fadeIn();
Gravatar
Mon Aug 03 21:59:48 -0700 2009
1
2
3
class StringHolder
  def initialize(a_string)
    @the_string = a_string
Gravatar
Mon Aug 03 19:13:59 -0700 2009
1
2
3
/* GLOBAL */
 
* { margin: 0; }
Gravatar
Thu Jul 30 11:14:13 -0700 2009
1
2
3
diff --git a/public/stylesheets/styles.css b/public/stylesheets/styles.css
index 675dc8e..cef4fb0 100755
--- a/public/stylesheets/styles.css
Gravatar
Tue Jul 07 15:37:57 -0700 2009
1
2
3
ooga@placepop1 ~ $ sudo su -l ooga -c 'RAILS_ENV=production /usr/bin/rake -f /u/app/current/Rakefile --trace notifications:24hour'
(in /home/ooga)
** Invoke notifications:24hour (first_time)
Gravatar
Thu Jun 11 13:24:40 -0700 2009
1
2
3
[~] $ rip install haml
Searching gems.github.com for haml...
ERROR: Could not find haml in any repository
Gravatar
Thu Jun 11 12:04:48 -0700 2009
1
2
3
[~/src/rip] master $ integrity launch
/Users/imownbey/.rip/active/lib/integrity: Is a directory - /Users/imownbey/.rip/active/lib/integrity (Errno::EISDIR)
        from /usr/local/bin/integrity:19:in `load'
Gravatar
Wed Jun 10 14:04:19 -0700 2009
1
2
3
<VirtualHost *:80>
  ServerName www.example.com
  ServerAlias example.com dev.example.com
Gravatar
Tue Mar 17 20:21:15 -0700 2009
1
2
3
>> user1 = User.first
  User Load (0.3ms) SELECT * FROM `users` LIMIT 1
  User Columns (1.7ms) SHOW FIELDS FROM `users`
Gravatar
Tue Mar 17 20:16:14 -0700 2009
1
2
3
# == Schema Information
# Schema version: 20090222005710
#
Gravatar
Tue Mar 17 20:02:10 -0700 2009
1
2
3
class Message < ActiveRecord::Base
  belongs_to :sender, :class_name => "User"
  belongs_to :receiver, :class_name => "User"
Gravatar
Mon Feb 09 22:15:40 -0800 2009
1
      :headers => ['',cell([0,0], :text => "Febuary"), ''],
Gravatar
Mon Feb 09 12:59:43 -0800 2009
1
2
3
require 'rubygems'
require 'prawn'
require 'prawn/layout'
Gravatar
Mon Feb 09 12:41:05 -0800 2009
1
2
3
require 'rubygems'
require 'prawn'
require 'prawn/layout'
Gravatar
Mon Feb 09 12:35:45 -0800 2009
1
2
3
require 'rubygems'
require 'prawn'
require 'prawn/layout'
Gravatar
Sat Jan 10 14:25:52 -0800 2009
1
2
3
# From http://blog.jayfields.com/2008/02/rake-task-overwriting.html
class Rake::Task
  def abandon
Gravatar
Mon Dec 15 21:46:10 -0800 2008
1
2
3
class Hand
  def straight?
    values = @cards.map{|card| card.value}.uniq.sort
Gravatar
Mon Dec 15 21:35:16 -0800 2008
1
2
3
class Hand
  def straight?
    values = @cards.map{|card| card.value}.uniq.sort
Gravatar
Sat Nov 22 19:19:12 -0800 2008
1
2
3
class WebServerTest < Test::Unit::TestCase
 
  def setup