Skip to content

Instantly share code, notes, and snippets.

View tylerpearson's full-sized avatar

Tyler Pearson tylerpearson

View GitHub Profile
@tylerpearson
tylerpearson / us-governors-1000.md
Created October 5, 2013 22:53
1000 most followed Twitter accounts by U.S. governors
@tylerpearson
tylerpearson / us-reps-1000.md
Created October 5, 2013 22:58
1000 most followed accounts by U.S. House of Representatives members
@tylerpearson
tylerpearson / y-combinator-1000.md
Last active December 24, 2015 18:59
1000 most followed Twitter accounts by Y Combinator company Twitter accounts
@tylerpearson
tylerpearson / us-senate-top-1000.md
Created October 6, 2013 17:27
1000 most followed Twitter accounts by U.S. Senate members
@tylerpearson
tylerpearson / yc-founders-1000.md
Created October 7, 2013 01:20
1000 most followed Twitter accounts by founders of Y Combinator-backed companies
@tylerpearson
tylerpearson / og.twig
Created October 14, 2013 12:30
hifi open graph
<!-- facebook & twitter og tags -->
<meta name="twitter:card" content="summary">
{% if this.custom.open_graph.og_title %}
<meta property="og:title" content="{{ this.custom.open_graph.og_title }}">
<meta name="twitter:title" content="{{ this.custom.open_graph.og_title }}">
{% elseif this.type == "home" %}
<meta property="og:title" content="{{ hifi.settings.title }}">
<meta name="twitter:title" content="{{ hifi.settings.title }}">
{% elseif this.meta.title %}
// <form class="small-signup js-ngp-form" action="https://api.myngp.com/v2/Forms/-22033861227691015168" method="post" target="_blank">
// <input id="Version" name="Version" type="hidden" value="AAAAA3iOF2A=" />
// <input id="id" name="id" type="hidden" value="-22033823117691015168" />
// <input id="ObfuscatedMailingId" name="ObfuscatedMailingId" type="hidden" value="" />
// <input id="TenantName" name="TenantName" type="hidden" value="lfjeld" />
// <input id="SourceCodeIds" name="SourceCodeIds" type="hidden" value="" />
// <input id="MarketSource" name="MarketSource" type="hidden" value="" />
// <input id="formType" name="formType" type="hidden" value="SignupForm" />
@tylerpearson
tylerpearson / convert_to_json.rb
Last active December 29, 2015 02:39
Durham health inspection data with coordinates as geoJSON https://github.com/codefordurham/Durham-Data/tree/master/Restaurants
require 'pp'
require 'active_support/all'
# require 'colored'
require 'json'
results = JSON.parse(File.read("../json/raw/dump-data-science.json"))
geo_json = {
:type => "FeatureCollection",
:features => []
@tylerpearson
tylerpearson / durham-crimes-2013-11-25.geojson
Last active December 29, 2015 09:49
City of Durham, North Carolina crimes mapped as of 11/25/2013. Scraped from http://gisweb.durhamnc.gov/gis_apps/CrimeData/dsp_entryform.cfm and geocoded with the Data Science Toolkit.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
hasClass: function (elem, className) {
if (classList) {
return elem.classList.contains(className);
} else {
return new RegExp('(^|\\s)' + className + '(\\s|$)').test(elem.className);
}
},
addClass: function (elem, className) {
if (!this.hasClass(elem, className)) {
if (classList) {