Skip to content

Instantly share code, notes, and snippets.

View chaserx's full-sized avatar
:octocat:
Mostly Meetings. Sometimes not.

Chase Southard chaserx

:octocat:
Mostly Meetings. Sometimes not.
View GitHub Profile
// Random Heart
// random hearts for you
int number = 128;
float x;
float y;
float a;
// http://www.colourlovers.com/palette/1099931/be_my_valentine
color[] palette = { color(247,162,185), color(242,100,122), color(221,38,32), color(146,2,0) };
@chaserx
chaserx / keybase.md
Created August 18, 2014 13:50
verifying keybase.io identity

Keybase proof

I hereby claim:

  • I am chaserx on github.
  • I am chaserx (https://keybase.io/chaserx) on keybase.
  • I have a public key whose fingerprint is C680 33F7 E216 251D F7E5 C95E A91D 479C 048F 7ACA

To claim this, I am signing this object:

@chaserx
chaserx / sunday_ticket_scraper.rb
Created September 5, 2014 03:45
table to array of hashes example
#!/usr/bin/env ruby -wKU
# gems required:
# - nokogiri
# - awesome_print
# - open-uri-cached
require 'nokogiri'
require 'open-uri'
require 'awesome_print'
@chaserx
chaserx / capitalize_with_hyphens
Created May 1, 2009 19:00
This capitalize method doesn't bash hyphenated names
#!/usr/local/bin/ruby -wKU
class String
def capitalize_with_hyphens!
if self.include? "-"
pieces_array = self.split("-")
pieces_array.each { |e| e.capitalize! }
joined = pieces_array.join("-")
replace(joined)
else
#!/usr/local/bin/ruby
require "rubygems"
require "fastercsv"
require "html/table"
include HTML
# new file
outfile = File.open("outfile.html", "w")
desc "yank out the UniGene number from the records downloaded in the ncbi task"
task :uniyank do
#require 'open-uri'
#I_KNOW_I_AM_USING_AN_OLD_AND_BUGGY_VERSION_OF_LIBXML2 = true
#can't find _why's hpricot. trying nokogiri
#require 'nokogiri'
#unigene regex
#regex = /Hs.[0-9]{6}/
#regex = /Hs.[0-9A-Z]{6}/
#!/usr/bin/env ruby
# = Delighter - pull your twitter links into delicious.
#
# Takes the first link and submits it to delicious. The description
# will be the text up to the beginning of the link, the tags whatever
# hashtags are on the tweet. Let me know if you improve on this, it was
# pretty q&d.
#
# author: Ben Vandgrift <br/>
@chaserx
chaserx / Must Carry DTV Stations Lexington KY
Created January 3, 2010 17:11
DTV Stations without a Insight Communications cable box
DTV Stations without a Insight Communications cable box available over cable service
CBS 72-1
KET2 72-4
KET 72-13
TBS 73-1
WEA 73-2
ABC 81-1
FOX 112-2
DSC 115-2
@chaserx
chaserx / send_sms_by_email.rb
Created January 4, 2010 20:26
quick dirty gmail to txt msg
#!/usr/local/bin/ruby -wKU
require 'rubygems'
require 'gmail'
# Chase Southard
# 12.31.2009
# chase {dot} southard [at] gmail {dot} com
# requires ruby-gmail gem #=> http://dcparker.github.com/ruby-gmail/
development: &global_settings
database: textual_development
host: 127.0.0.1
port: 27017
test:
database: textual_test
<<: *global_settings
production: