Public Gists by brendano

gist: 5754 pollster.com data analysis ...
Gravatar
Sat Aug 16 13:13:35 -0700 2008
1
2
3
#!/usr/bin/env ruby
# Parse a data table from pollster.com
# Get data via copy-and-paste from http://www.pollster.com/polls/us/08-us-pres-ge-mvo.php
gist: 5682 mycgi
Gravatar
Fri Aug 15 17:25:14 -0700 2008
1
2
3
require 'cgi'
# trying to make cgi.rb suck a tad bit less.
# the main thing I care about is clean, error-free parameter input.
gist: 5395 pskill
Gravatar
Thu Aug 14 01:38:02 -0700 2008
1
2
3
#!/usr/bin/env ruby
# USAGE: ps wwaux | grep badprocess | pskill
# Like awk '{print $2}' | xargs kill, except somewhat smarter
gist: 5351 htmlunescape
Gravatar
Wed Aug 13 19:13:08 -0700 2008
1
2
3
#!/usr/bin/env perl
 
while(<>) {
gist: 5350 htmlescape
Gravatar
Wed Aug 13 19:12:42 -0700 2008
1
2
3
#!/usr/bin/env perl
 
while (<>) {
gist: 5349 imageopen - mac commandline
Gravatar
Wed Aug 13 19:09:32 -0700 2008
1
2
3
#!/usr/bin/env ruby
# imageopen - # for mac, commandline open an image file without needing an extension, recognition via imagemagick
# brenocon@gmail.com (brendan o'connor)
gist: 4973 jsontidy
Gravatar
Mon Aug 11 17:20:53 -0700 2008
1
2
3
#!/usr/bin/env ruby
 
# jsontidy
Gravatar
Thu Jul 24 00:56:47 -0700 2008
1
2
3
/////////////////////////////////////////
// Sample for Embedding C++ into R //
/////////////////////////////////////////