Skip to content

Instantly share code, notes, and snippets.

View jeffThompson's full-sized avatar

Jeff Thompson jeffThompson

View GitHub Profile
From fairest creatures we desire increase,
That thereby beauty's rose might never die,
But as the riper should by time decease,
His tender heir might bear his memory:
But thou contracted to thine own bright eyes,
Feed'st thy light's flame with self-substantial fuel,
Making a famine where abundance lies,
Thy self thy foe, to thy sweet self too cruel:
Thou that art now the world's fresh ornament,
And only herald to the gaudy spring,
@jeffThompson
jeffThompson / IsCountableNoun.py
Last active March 14, 2022 08:52
A Python function to test if a noun is countable. Too many requests will get you locked out, so use sparingly. EDIT: probably won't work with changes to the NGram viewer; see comments below
# -*- coding: utf-8 -*-
import re, urllib2, json
def countable_noun(thing):
'''
searches Google NGram to see if a word is a countable/mass noun
returns True if countable, False if not
float gridSize = 20;
boolean crosshatch = true;
PImage img;
void setup() {
size(1400, 788);
pixelDensity(displayDensity());
@jeffThompson
jeffThompson / AllCraigslistLocations
Created June 4, 2015 15:04
A list of all active Craigslist locations. Format as a URL using "http://<location>.craigslist.org".
auburn
bham
dothan
shoals
gadsden
huntsville
mobile
montgomery
tuscaloosa
anchorage
@jeffThompson
jeffThompson / AllBagelPlacesInNewJersey.csv
Last active May 21, 2021 18:24
Even though no one asked for it, this is a list of all bagel places in New Jersey. Pulled from NJ Division of Revenue and Enterprise Services (https://www.njportal.com/DOR/BusinessNameSearch/Search/BusinessName)
BUSINESS_NAME ENTITY_ID CITY BUSINESS_TYPE DATE_INCORPORATED
A & A BAGEL CO. 0100814320 (NOT LISTED) DP 4/18/2000
A & A BAGELS, INC. 0100639675 (NOT LISTED) DP 9/19/1995
A & A HOT BAGEL, LLP. 0600104048 SOUTH ORANGE LLP 12/13/2000
A & B BAGEL AND DELI III L.L.C. 0450427131 MORRIS PLAINS LLC 10/15/2019
A & B BAGEL II LLC 0450093808 RANDOLPH LLC 7/29/2016
A & B BAGELS & DELI II INC 0100790450 (NOT LISTED) DP 8/3/1999
A & B BAGELS & DELI, INC. 0100735913 NEWTON DP 2/18/1998
A & C BAGELS, INC. 0100576056 UNION DP 1/24/1994
A & D BAGEL, LLC. 0600192148 MONTVALE LLC 2/4/2004
214739: trump
92232: donald
75604: 2016
74504: news
72717: http
69936: title
66900: cite
66443: date
65369: 2015
46124: accessdate
@jeffThompson
jeffThompson / GetFeatherMacAddress.ino
Created March 29, 2017 15:34
Extracts the MAC address from an Adafruit Feather M0 Wifi board
#include <SPI.h>
#include <WiFi101.h>
/*
GET FEATHER MAC ADDRESS
Jeff Thompson | 2017 | jeffreythompson.org
Extracts the MAC address from an Adafruit Feather
M0 Wifi board.
@jeffThompson
jeffThompson / WordWrap.pde
Last active December 8, 2019 21:01
A word-wrap function for Processing with hyphenation! Returns overall height of resulting text block.
/*
WORD-WRAP (with hyphenation and text-box height)
Jeff Thompson | 2019 | jeffreythompson.org
A word-wrap function for Processing with hyphenation! Great for weirdo text,
URLs, etc. Returns overall height of resulting text block, which is super helpful
for times where you want to add something directly below a bunch of text.
OPTIONS:
by a baby's crawling
by a basin of water
by a divining rod
by a letter in a written language
by aerial visions
by altars
by animal behavior
by animal excrement
by animal horoscope
by animal shoulder blades
'''
LARGEST NUMBER OF ZEROS I COULD COUNT
Jeff Thompson | 2018 | jeffreythompson.org
After a breakfast conversation with Angeles, this script calculates
a number with so many zeros you couldn't count them in your lifetime.
RESULTS
8 hrs/day: 1 with 300,318,091 zeros