Skip to content

Instantly share code, notes, and snippets.

View CobyR's full-sized avatar

Coby Randquist CobyR

View GitHub Profile
@CobyR
CobyR / keybase.md
Created March 20, 2014 14:26
keybase.md

Keybase proof

I hereby claim:

  • I am CobyR on github.
  • I am cobyr (https://keybase.io/cobyr) on keybase.
  • I have a public key whose fingerprint is 2FB5 6443 C21F 8342 74DC 2D06 9066 FAD5 1CE1 82CD

To claim this, I am signing this object:

@CobyR
CobyR / photo-video-reqs.md
Created September 8, 2014 16:37
photo management / video management requirements

supports partial dating, ie:

  • year
  • year and month
  • year and month and day
  • year and month and time

supports easy tagging

supports location

@CobyR
CobyR / master-prompt.rb
Created June 25, 2015 17:42
master-prompt.rb
require 'rubygems'
require 'geek_painter'
master_piece = GeekPainter.paint do
label "# \\t ".in(:white)
#label "[".in(:brown)
#label "\\u".in :light_gray
#label "@".in :yellow
#label "\\h".in :light_gray
#label "]".in(:brown)
@CobyR
CobyR / gist:12615
Created September 24, 2008 17:28
Software Development Manager Unit Test
require 'test_helper'
class DevelopmentManagerTest < Test::Unit::TestCase
fixtures :development_managers
fixtures :teams
def setup
@candidate = development_managers(:ideal)
@team = teams(:web_tier)
When we agreed that the marriage
was over and that it would be okay
by each of us to pursue happiness
with someone else, I really had no
idea how much it would hurt when
she did.
require 'nokogiri'
namespace :import do
desc "Import XML file"
task :xml => :environment do
xml_file = File.dirname(__FILE__) + "/../../db/one.xml"
rtf_directory = File.dirname(__FILE__) + "/../../db/txt/"
puts "DESTROYING! "
@CobyR
CobyR / month-day.rb
Created June 18, 2011 14:16
file to populate day thoughts under month thought in PersonalBrain
require 'date'
class Time
# Returns a new Time, +years+ later than this time. Feb 29 of a
# leap year will be rounded up to Mar 1 if the target date is not a leap
# year.
def plus_year(years)
Time.local(year + years, month, day, hour, min, sec, usec)
end
# Returns a new Time, +months+ later than this time. The day will be
# rounded down if it is not valid for that month.
@CobyR
CobyR / prompt.rb
Created April 18, 2012 19:19
my bash prompt
require 'rubygems'
require 'geek_painter'
master_piece = GeekPainter.paint do
label "\\# \\t ".in(:white)
#label "[".in(:brown)
#label "\\u".in :light_gray
#label "@".in :yellow
#label "\\h".in :light_gray
#label "]".in(:brown)
@CobyR
CobyR / .bash_profile
Created August 9, 2016 16:44
My OS X prompt
# set prompt
export PS1=`ruby ~/bin/master-prompt.rb`