Analyzed Feb 12, 2014 from @CDNOlympicTeam Sochi 2014 list
- @CDNOlympicTeam -- (151 of 188)
- @CANFUND -- (116 of 188)
- @CBCOlympics -- (113 of 188)
- @JesseLumsden28 -- (87 of 188)
- @Sochi2014 -- (87 of 188)
- @Olympics -- (84 of 188)
| require 'json' | |
| require 'nokogiri' | |
| require 'open-uri' | |
| require 'colored' | |
| require 'active_support/all' | |
| # the url for the page we want to scrape | |
| PAGE_URL = "http://gisweb.durhamnc.gov/gis_apps/crimedata/dsp_tables.cfm?CFID=482922&CFTOKEN=13687690" | |
| # grab the page for Nokogiri |
| require 'active_support/all' | |
| require 'colored' | |
| require 'httparty' | |
| require 'json' | |
| # load and parse the JSON file of scraped crimes | |
| results = JSON.parse(File.read("../data/all-crimes.json")) | |
| crimes = [] |
| require 'json' | |
| require 'colored' | |
| # read and parse the JSON data | |
| results = JSON.parse(File.read("../data/all-geo.json")) | |
| # initialize the GeoJSON | |
| geo_json = { | |
| :type => "FeatureCollection", | |
| :features => [] |
| states = %w{AL AK AZ AR CA CO CT DC DE FL GA HI ID IL IN IA KS KY LA ME MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND OH OK OR PA RI SC SD TN TX UT VT VA WA WV WI WY} |
Analyzed Feb 12, 2014 from @CDNOlympicTeam Sochi 2014 list
Analyzed Feb 12, 2014 from @USOlympic Sochi 2014 list
| $.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"); | |
| }); |
I hereby claim:
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 |
http {
...
passenger_ruby /path/to/passenger_ruby
=============
chmod +x /path/to/passenger_ruby