Skip to content

Instantly share code, notes, and snippets.

View yanofsky's full-sized avatar

David Yanofsky yanofsky

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yanofsky
yanofsky / LICENSE.md
Last active June 7, 2023 17:13
Some Pandas analysis on the PPP data. This was originally used to produce this story https://qz.com/1878225/heres-what-we-know-is-wrong-with-the-ppp-data/

The MIT License (MIT)

Copyright (c) 2020 Quartz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,

@yanofsky
yanofsky / index.html
Created April 13, 2017 00:23
An issue i'm having with the d3 update pattern
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>US Map of Nielsen Media Markets</title>
</head>
<body>
<button data-month="Jan">
@yanofsky
yanofsky / recent_realdonaldtrump_tweets.csv
Created August 4, 2016 17:09
Recent tweets and the source app from Donald Trump
We can't make this file beautiful and searchable because it's too large.
id,url,created_at,text,source
761219396635361280,http://twitter.com/realdonaldtrump/status/761219396635361280,2016-08-04 15:17:01,"Looking forward to IA &amp; WI with Gov. Pence, tomorrow. Join us! #MAGA
https://t.co/3Hcnzj0Slx
https://t.co/sEwLWkn1Sz https://t.co/0Ei3EdQdXB",Twitter for iPhone
761025834350018561,http://twitter.com/realdonaldtrump/status/761025834350018561,2016-08-04 02:27:52,"Thank you Jacksonville, Florida!
#MakeAmericaGreatAgain
https://t.co/xrTQjt9WOC https://t.co/VSnBoQYoZs",Twitter for iPhone
760976212068106240,http://twitter.com/realdonaldtrump/status/760976212068106240,2016-08-03 23:10:41,"Thank you for your support of my candidacy! #MAGA #ImWithYou
https://t.co/Al5bZlRFYk",Twitter for iPhone
760960985524043777,http://twitter.com/realdonaldtrump/status/760960985524043777,2016-08-03 22:10:11,"Thank you to the amazing law enforcement officers today- in Daytona Beach, Florida! #LESM #MAGA https://t.co/QoxJf4Xzbc",Twitter for iPhone
@yanofsky
yanofsky / Makefile
Last active May 4, 2019 06:45
This is workflow for downloading, processing, and mosaicing Landsat scenes, as a Makefile
# lansatutil directory
LANDSAT = ~/landsat
# scenes to target
LANDSAT_IDS = \
LC81220442016038LGN00 \
LC81220452016038LGN00 \
LC81210442014281LGN00 \
LC81210452014281LGN00

Keybase proof

I hereby claim:

  • I am yanofsky on github.
  • I am yanofsky (https://keybase.io/yanofsky) on keybase.
  • I have a public key ASAtdhnt_0pr8wgeUzVYpw03u0DhRZgE4cj3DwkNm2XNxQo

To claim this, I am signing this object:

@yanofsky
yanofsky / README.md
Last active August 29, 2015 14:21 — forked from mbostock/.block
@yanofsky
yanofsky / Makefile
Last active August 29, 2015 14:20
Turning GSHAP data into a geoImage
DATA_FILE = ./GSHPUB.DAT
DATA_ZIP = ./gshpub.zip
DATA_ZIP_LOCATION = http://www.seismo.ethz.ch/static/gshap/gshpub.zip
IMAGE_SCRIPT = ./create_earthquake_raster.py
OUTPUT_IMAGE = ./output.tiff
all: ${OUTPUT_IMAGE}
@yanofsky
yanofsky / index.html
Last active August 29, 2015 14:19 — forked from mimno/index.html
<html>
<head>
<!-- Load the d3 library. -->
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<style>
body { font-family: "Open Sans"; }
text.stateID { dominant-baseline: middle; text-anchor: middle; }
</style>
</head>

Keybase proof

I hereby claim:

  • I am yanofsky on github.
  • I am yanofsky (https://keybase.io/yanofsky) on keybase.
  • I have a public key whose fingerprint is 159B 5596 7E1F D37B C966 773A A23B 423C FEDF C341

To claim this, I am signing this object: