Skip to content

Instantly share code, notes, and snippets.

View harrisj's full-sized avatar

Jacob Harris harrisj

View GitHub Profile

Keybase proof

I hereby claim:

  • I am harrisj on github.
  • I am harrisj (https://keybase.io/harrisj) on keybase.
  • I have a public key whose fingerprint is 219E C44A EC5B 6425 5A5B 0CB9 22C5 DDCC 45EE 2FBA

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am harrisj on github.
  • I am harrisj (https://keybase.io/harrisj) on keybase.
  • I have a public key whose fingerprint is E181 A3C9 F101 EE15 337E C8E5 B1F3 3CAA 5BC8 4BCC

To claim this, I am signing this object:

@harrisj
harrisj / reporting.csv
Created September 18, 2014 01:24
Reporting times for CA Governor Primary 2014
Report Time
POLL CLOSE 2014-06-04 03:00:00
0.09 2014-06-04 03:11:08
0.63 2014-06-04 03:14:26
3.48 2014-06-04 03:17:43
4.34 2014-06-04 03:21:06
5.33 2014-06-04 03:23:35
5.33 2014-06-04 03:26:27
5.33 2014-06-04 03:30:04
4.79 2014-06-04 03:32:56
@harrisj
harrisj / gist:4e55678aeca0bcaf3f16
Last active August 29, 2015 14:16
Georgetown Lecture

Outline for Georgetown Business Class

  • Who I am
  • Journalist's Best friends: SKEPTICISM AND PARANOIA
    • They're here to keep you from making mistakes
    • SKEPTICISM - is this data really correct?
--- a/subversion-1.6.5/Makefile 2009-09-23 16:34:05.000000000 -0400
+++ b/subversion-1.6.5/Makefile 2009-09-23 17:53:37.000000000 -0400
@@ -41,8 +41,8 @@
-SVN_APR_LIBS = -L/usr/lib -R/usr/lib -lapr-1 -lpthread
-SVN_APRUTIL_LIBS = -L/usr/lib -R/usr/lib -laprutil-1 -lsqlite3 -lexpat -liconv
+SVN_APR_LIBS = -L#{HOMEBREW_PREFIX}/lib -L/usr/lib -R/usr/lib -lapr-1 -lpthread
+SVN_APRUTIL_LIBS = -L#{HOMEBREW_PREFIX}/lib -L/usr/lib -R/usr/lib -laprutil-1 -lsqlite3 -lexpat -liconv
SVN_APR_MEMCACHE_LIBS =
SVN_DB_LIBS =
SVN_GNOME_KEYRING_LIBS =
require_dependency 'net/ftp'
class FTPMock
def gettextfile(remote_path, local_path)
test_file = File.join(RAILS_ROOT, 'test', 'data', 'dbready', remote_path)
if !File.exists?(test_file)
raise Net::FTPPermError, test_file + ' not found!'
end
FileUtils.cp test_file, local_path
@harrisj
harrisj / gist:1269322
Created October 7, 2011 02:53
Tweet Sources about Steve Jobs
715944 tweets collected on Wed. night for 80 minutes
Filtering out to clients that had at least 1% of traffic, here is the breakdown
Echofon: 28308 3.95%
Mobile Web: 16266 2.27%
UberSocial for BlackBerry: 47728 6.67%
TweetDeck: 35792 5.00%
Twitter for BlackBerry®: 59479 8.31%
Twitter for iPhone: 136235 19.03%
Twitter for Mac: 12870 1.80%
@harrisj
harrisj / tinyurl_test.rb
Created April 26, 2012 16:44
Testing Punctuation on URL Shorteners
require 'net/http'
# These links were taken from my twitter timeline. No endorsement implied.
tiny_urls = {
'bitly' => ['http://bit.ly/3S9c5K', 'http://developer.nytimes.com/'],
'j.mp' => ['http://j.mp/JsML0u', 'http://www.npr.org/2012/04/26/151303230/an-african-trader-and-the-perils-of-business-in-china'],
'tinyurl' => ['http://tinyurl.com/6rq9vob', 'http://politicsoftheplate.com/?p=1283'],
'owly' => ['http://ow.ly/axesj', 'http://threatpost.com/en_us/blogs/opera-12-beta-released-new-security-features-including-do-not-track-support-042612'],
'ht.ly' => ['http://ht.ly/1j7LiX', 'http://rssfeeds.usatoday.com/~r/usatoday-LifeTopStories/~3/8vFV-fFfhAc/1'],
'is.gd' => ['http://is.gd/gk0FoM', 'http://www.wired.com/dangerroom/2012/04/joe-schmoe-drones/'],
@harrisj
harrisj / article_fetcher.rb
Created June 22, 2012 20:16
Basic code for the nytimes_ebooks
# encoding: UTF-8
require 'rubygems'
require 'rest-client'
require 'nokogiri'
class ArticleFetcher
def self.fetch_text(url)
case url
when /video\.nytimes\.com/
@harrisj
harrisj / gist:4532095
Created January 14, 2013 18:21
Rocky Stracke is a GitHubber. I kid because I love...
1.9.3p327 :005 > 100.times { puts "#{Faker::Name.name} is a GitHubber" }; 0
Sid Littel is a GitHubber
Henri Wuckert is a GitHubber
Annette Ledner is a GitHubber
Mercedes Murray MD is a GitHubber
Rocky Stracke is a GitHubber
Miss Noah Reichel is a GitHubber
Miss Ludie Schaefer is a GitHubber
Mr. Isom Hilll is a GitHubber
Elva Homenick DVM is a GitHubber