Skip to content

Instantly share code, notes, and snippets.

@s2t2
s2t2 / _README.md
Last active June 22, 2021 20:10
medicare "nursing home compare" data
@s2t2
s2t2 / Collect Parler Metadata.ipynb
Created January 13, 2021 19:10 — forked from kylemcdonald/Collect Parler Metadata.ipynb
Collect video URLs and GPS data for Parler videos.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@s2t2
s2t2 / pr.md
Created November 22, 2020 16:08 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@s2t2
s2t2 / README.md
Created September 13, 2020 19:11 — forked from ameyms/README.md
D3 Gauge - Part Deux

Yet another simple gauge chart using d3 Inspired by Jake Trent's Codepen snippet

To move the pointer needle, type in following code in you javascript console

needle.moveTo(.25)
artist_id artist_name album_id album_title
1 AC/DC 1 For Those About To Rock We Salute You
2 Accept 2 Balls to the Wall
2 Accept 3 Restless and Wild
1 AC/DC 4 Let There Be Rock
3 Aerosmith 5 Big Ones
4 Alanis Morissette 6 Jagged Little Pill
5 Alice In Chains 7 Facelift
6 Antônio Carlos Jobim 8 Warner 25 Anos
7 Apocalyptica 9 Plays Metallica By Four Cellos
require "pry"
require "mechanize"
require "pdf-reader"
URL = "http://employmentsummary.abaquestionnaire.org/"
agent = Mechanize.new
agent.pluggable_parser.pdf = Mechanize::File # ... not sure whether to use Mechanize::Download or Mechanize::File
page = agent.get(URL)
[
{
"id":1612,
"abbrev":"NHV",
"name":"New Haven Union Station",
"latitude":"41.297719",
"longitude":"-72.926731",
"url":"http://www.shorelineeast.com/service_info/stations/nh_u.php"
},
{
@s2t2
s2t2 / android-sdk-preview.txt
Last active July 31, 2019 15:47
Flutter Android LICENSES
2/5: License android-sdk-preview-license:
---------------------------------------
To get started with the Android SDK Preview, you must agree to the following terms and conditions. As described below, please note that this is a preview version of the Android SDK, subject to change, that you use at your own risk. The Android SDK Preview is not a stable release, and may contain errors and defects that can result in serious damage to your computer systems, devices and data.
This is the Android SDK Preview License Agreement (the "License Agreement").
1. Introduction
1.1 The Android SDK Preview (referred to in the License Agreement as the “Preview” and specifically including the Android system files, packaged APIs, and Preview library files, if and when they are made available) is licensed to you subject to the terms of the License Agreement. The License Agreement forms a legally binding contract between you and Google in relation to your use of the Preview.
@s2t2
s2t2 / jwplayer_notes.js
Last active April 12, 2019 07: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 / stop_times_with_shared_trip_and_stop.rb
Last active December 28, 2018 19:41
question about shore line east gtfs data posted 11/23/2016
#
# I would expect entries in the stop_times.txt file to be unique when grouped by `trip_id` and `stop_id`.
#
# Indeed, of the current file's 520 entries, 510 are unique, but 10 are not (5 groups of 2).
#
# The following data structure contains entries from stop_times.txt grouped by `trip_id` and `stop_id`.
#
# My question is, are these entires duplicative or do they have some significance?
#
# Thank you!