Skip to content

Instantly share code, notes, and snippets.

@s2t2
s2t2 / food_inspection_data_standard.md
Last active September 12, 2015 16:01
Local Inspector Value-Entry Specification (LIVES) data standard -- source: http://www.yelp.com/healthscores -- this is soon to be made into an API available at http://www.opendatanetwork.com/

Local Inspector Value-Entry Specification (LIVES)

In 2012, Yelp partnered with the City of San Francisco and City of New York to develop the Local Inspector Value-Entry Specification (LIVES). LIVES is an open data standard which allows municipalities to publish restaurant inspection information to Yelp. Implementation

Any municipality may participate in this program. To begin this process, email us: healthscores@yelp.com. Onboarding Steps

Follow the LIVES data specification to create a feed for your location.

@s2t2
s2t2 / .gitignore
Last active September 19, 2015 04:01
extract data from google drive spreadsheet (ruby). this has been made into a gem -- https://github.com/data-creative/google-sheet-reader-ruby
*.p12
*.json
@s2t2
s2t2 / README.md
Created June 17, 2015 03:51 — forked from mbostock/.block

Click to add new points. Hit the DELETE key to remove the selected point. Use the dropdown menu to change the interpolation mode.

@s2t2
s2t2 / _README.md
Last active June 22, 2021 20:10
medicare "nursing home compare" data
@s2t2
s2t2 / jwplayer_notes.js
Last active January 29, 2025 05:20
Learning jwplayer behavior.
jwplayer('player').setup({ ... });
//
// Q: under which conditions does jwplayer return the duration of the current video?
//
console.log(jwplayer('player').getState(), jwplayer('player').getDuration())
"IDLE" -1 // fail
jwplayer('player').play(true)
@s2t2
s2t2 / sublime_text_settings.json
Created April 18, 2015 01:03
my sublime text editor settings, for reference
{
"color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme",
"font_size": 17.0,
"word_wrap":false,
"translate_tabs_to_spaces":true,
"tab_size":2
}
@s2t2
s2t2 / text_reader.rb
Created April 12, 2015 03:46
reads text from a public github repository
require 'github_api'
github = Github.new
dir = github.repos.contents.get :user => 's2t2', :repo => 'text', :path => '/'
files = dir.map{|f|
github.repos.contents.get :user => 's2t2', :repo => 'text', :path => f.path.to_s
}
@s2t2
s2t2 / .gitignore
Last active August 29, 2015 14:18
download tracks from the hype machine
tracks
-- HOSTED FEEDS (row per feed)
SELECT
f.id AS feed_id
-- ,f.name AS feed_name
,f.source_url AS feed_source_url
,h.id AS host_id
,h.name AS host_name
,v.last_modified_at AS feed_last_modified_at
-- ,v.etag AS feed_last_modification_etag
,v.last_checked_at AS feed_last_checked_at