Skip to content

Instantly share code, notes, and snippets.

View blacki's full-sized avatar

Blacki Migliozzi blacki

  • The New York Times
  • New York City
View GitHub Profile
@blacki
blacki / dev-environment.md
Last active June 14, 2019 00:19
Managing a Python Dev Environment w/ Virtual Env

Dev Environment

I do the following on a per project basis.

Install virtualenv

If you don't have virtualenv installed, install it globally by running pip install virtualenv from any folder. If that didn't work because you have no pip try pip3 install virtualenv instead.

Create a new python for the project

@blacki
blacki / .gitignore
Created December 6, 2017 21:08 — forked from 1wheel/.gitignore
custom d3-selection bundle
.DS_Store
node_modules
npm-debug.log
yarn.lock
package.lock
@blacki
blacki / 538.txt
Last active November 10, 2021 05:00
state grids
ME
WI VT NH
WA ID MT ND MN IL MI NY MA
OR NV WY SD IA IN OH PA NJ CT RI
CA UT CO NE MO KY WV VA MD DE
AZ NM KS AR TN NC SC
OK LA MS AL GA
HI AK TX FL
@blacki
blacki / README.md
Last active August 31, 2016 16:21
CO2 - Keeling Curve

Keeling Curve

click chart

@blacki
blacki / README.md
Last active April 24, 2017 11:28
Visualizing K-Means equilibria

Visualizing stable/unstable equilibria in K-Means unsupervised learning algorithm. Each run follows the path of the mean converging as shown here

@blacki
blacki / README.md
Last active January 19, 2016 15:15
K-Means Algorithm

K-Means Unsupervised Learning Algorithm. Also see K-Means Equilibria here.

@blacki
blacki / README.md
Last active January 2, 2016 21:52
Clustered points

Generating clusters of random points

Generating random points to get a sense of the shape and distribution.

@blacki
blacki / README.md
Last active January 3, 2016 15:20
Moiré-rotation-translate-scale

Moiré spiral patterns resulting from translating, rotating, as well as scaling random points. As described by Tadashi Tokieda on Numberphile