Skip to content

Instantly share code, notes, and snippets.

View yanofsky's full-sized avatar

David Yanofsky yanofsky

View GitHub Profile
yanofsky / LICENSE
Last active February 25, 2024 12:21
A script to download all of a user's tweets into a csv
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
yanofsky /
Last active June 7, 2023 17:13
Some Pandas analysis on the PPP data. This was originally used to produce this story

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 /
Created March 7, 2015 21:56
How to Make a gif from a folder of images
# requirement! install imagemagick
# brew install imagemagick
# or build from source here
#navigate to folder of the images
cd folderofmyimages/
# take every jpg in the folder and smash into a gif with a frame rate of 0.5 sec
convert -delay 50 *.jpg gif_of_my_images.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
LC81220442016038LGN00 \
LC81220452016038LGN00 \
LC81210442014281LGN00 \
yanofsky /
Created April 4, 2014 13:09
QZ Two simple charts script
#download the data and save it as json for the overview via a python script
cd overview
cd ../sector
#download the data and save it as json for the sector info via python script
cd ..
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.
761219396635361280,,2016-08-04 15:17:01,"Looking forward to IA & WI with Gov. Pence, tomorrow. Join us! #MAGA",Twitter for iPhone
761025834350018561,,2016-08-04 02:27:52,"Thank you Jacksonville, Florida!
#MakeAmericaGreatAgain",Twitter for iPhone
760976212068106240,,2016-08-03 23:10:41,"Thank you for your support of my candidacy! #MAGA #ImWithYou",Twitter for iPhone
760960985524043777,,2016-08-03 22:10:11,"Thank you to the amazing law enforcement officers today- in Daytona Beach, Florida! #LESM #MAGA",Twitter for iPhone
yanofsky / index.html
Created April 13, 2017 00:23
An issue i'm having with the d3 update pattern
<!DOCTYPE html>
<meta charset="utf-8">
<title>US Map of Nielsen Media Markets</title>
<button data-month="Jan">

Keybase proof

I hereby claim:

  • I am yanofsky on github.
  • I am yanofsky ( on keybase.
  • I have a public key ASAtdhnt_0pr8wgeUzVYpw03u0DhRZgE4cj3DwkNm2XNxQo

To claim this, I am signing this object:

<title>Perfect sp 500 graphic</title>
<script src="" charset="utf-8"></script>
<script src="" charset="utf-8"></script>
<style type="text/css">
@font-face {