Skip to content

Instantly share code, notes, and snippets.

View tylerpearson's full-sized avatar

Tyler Pearson tylerpearson

View GitHub Profile
@tylerpearson
tylerpearson / ca-olympians.md
Created February 12, 2014 14:44
Who the 2014 Canadian Olympic team follows on Twitter
@tylerpearson
tylerpearson / results.md
Created February 12, 2014 14:49
Who the 2014 U.S. Winter Olympians follow on Twitter
@tylerpearson
tylerpearson / get-reps.js
Last active August 29, 2015 13:57
Google Civic Info API with jQuery
$.ajax({
type: "POST",
url: "https://www.googleapis.com/civicinfo/us_v1/representatives/lookup?key=AIzaSyCcn1YcPE4Ja0tsYVb0oRxMxK4xTTjXRck",
data: JSON.stringify({'address': '1263 Pacific Ave. Kansas City KS'}),
dataType: "json",
contentType: "application/json; charset=utf-8"
}).done(function(data) {
alert("it worked");
});

Keybase proof

I hereby claim:

  • I am tylerpearson on github.
  • I am tylerpearson (https://keybase.io/tylerpearson) on keybase.
  • I have a public key whose fingerprint is CE07 404E C0F8 0BE1 A2C2 D933 C68C B0FE 23FD D51B

To claim this, I am signing this object:

/*
* FB SETTINGS
*/
window.fbAsyncInit = function() {
// 1. Get a unique appId for the website from https://developers.facebook.com/apps
// The title will be visible in the post, so make it the name of the site (e.g. Taco Truck for Congress)
// 2. In "Settings", click "+ Add Platform", select "Website", and add the site URL (localhost is cool initially too)
// 3. In "App Details", things like the icon can be customized
@tylerpearson
tylerpearson / passenger_nginx_env_vars.md
Last active August 29, 2015 14:07
setting env vars with passenger and nginx
http {
    ...
    passenger_ruby /path/to/passenger_ruby

=============

chmod +x /path/to/passenger_ruby

@tylerpearson
tylerpearson / array.rb
Created October 6, 2014 01:46
PayPal blocked 2 letter country codes
['AF', 'AQ', 'CI', 'CU', 'BY', 'BV', 'IO', 'CM', 'CF', 'CX', 'HT', 'HM', 'IR', 'IQ', 'KR', 'LA', 'LB', 'LR', 'LY', 'MM', 'NG', 'PK', 'PG', 'RS', 'SD', 'SY', 'ZW', 'VN', 'BD']
@tylerpearson
tylerpearson / remove.md
Last active August 29, 2015 14:12
remove conflicted dropbox files

find . -type f -name "* conflicted *" -exec rm -f {} \;

@tylerpearson
tylerpearson / results.txt
Created January 4, 2015 00:41
most common words in my Twitter followers' bios (with punctuation stripped and stop words skipped)
i: 135
west: 89
virginia: 74
media: 55
marketing: 51
wv: 49
social: 46
news: 38
political: 38
love: 37
@tylerpearson
tylerpearson / results.txt
Last active August 29, 2015 14:12
most common words in the bios of the people I follow on Twitter (downcased, with most punctuation stripped and stop words removed)
director: 66
news: 61
web: 54
digital: 53
politics: 52
twitter: 50
design: 49
founder: 44
tweets: 43
former: 43