Skip to content

Instantly share code, notes, and snippets.

View paganre's full-sized avatar

paganre paganre

  • San Francisco, CA
View GitHub Profile
base = 'http://live.mobileapp.fifa.com/api/wc/'
all matches:
base+'matches'
all teams:
base+'teams'
team:
base+'team/{ID}/en'
('medium.com', 42)
('evernote.com', 34)
('techcrunch.com', 29)
('nytimes.com', 20)
('wsj.com', 10)
('steveblank.com', 7)
('amazon.com', 6)
('tumblr.com', 6)
('forbes.com', 6)
('techmeme.com', 6)
http://mobile.nytimes.com/2014/06/16/business/agency-aims-to-regulate-map-aids-in-vehicles.html
paulg
cdixon
http://campaigns.peers.org/petitions/new-york-attorney-general-schneiderman-protect-all-of-us?bucket=
bchesky
reidhoffman
http://techcrunch.com/2014/06/09/mesosphere-grabs-10m-in-series-a-funding-to-transform-datacenters/?ncid=rss
bhorowitz
cdixon
http://a16z.com/2014/06/04/you-just-thought-you-were-building-a-software-company-its-a-community/
@paganre
paganre / death_saves.js
Last active October 23, 2022 05:13
Death saves
for (let i = 0; i < 4; i ++) {
for (let j = 0; j < 4; j++) {
if (i === 0 && j === 0) {
dp[i][j] = STARTING_VAL
} else {
if (j === 3) { // life
dp[i][j] = ((dp[i][j-1]/20) * 11) + (dp[i][j-2]/20) + (dp[i][j-3]/20)
} else if (i === 3) { // death
dp[i][j] = ((dp[i-1][j]/20) * 9) + (dp[i-2][j]/20)