Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeff Thompson jeffThompson

View GitHub Profile
@jeffThompson
jeffThompson / GenerateSlippyMapTiles.py
Last active Dec 28, 2020
Takes a large image as the input, outputs map tiles at the appropriate size and file structure for use in frameworks like leaflet.js, MapBox, etc.
View GenerateSlippyMapTiles.py
# -*- coding: utf-8 -*-
import argparse, magic, re, os, math, glob, shutil
'''
GENERATE SLIPPY MAP TILES
Jeff Thompson | 2016 | jeffreythompson.org
Takes a large image as the input, outputs map tiles
at the appropriate size and file structure for use
@jeffThompson
jeffThompson / Words In The Periodic Table: Results
Created Dec 4, 2013
A (partial but pretty extensive) list of words that can be made from the elements in the periodic table.
View Words In The Periodic Table: Results
Ac
AcCePt
AcCePtS
AcCEsS
AcCEsSeS
AcCrUAl
AcCRuAl
AcCrUAlS
AcCRuAlS
AcCrUEs
@jeffThompson
jeffThompson / UploadDataOverWifi.ino
Last active Dec 7, 2020
How to upload data to a server with Arduino
View UploadDataOverWifi.ino
#include <SPI.h>
#include <WiFi101.h>
/*
UPLOAD DATA OVER WIFI
Jeff Thompson | 2017 | jeffreythompson.org
The great Arduino Wifi101 library includes lots of examples
of how to *get* data from the internet, but no examples on how
View CrosshatchImage.pde
float gridSize = 20;
boolean crosshatch = true;
PImage img;
void setup() {
size(1400, 788);
pixelDensity(displayDensity());
@jeffThompson
jeffThompson / AllBagelPlacesInNewJersey.csv
Last active Sep 2, 2020
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)
View AllBagelPlacesInNewJersey.csv
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
@jeffThompson
jeffThompson / AllCraigslistLocations
Created Jun 4, 2015
A list of all active Craigslist locations. Format as a URL using "http://<location>.craigslist.org".
View AllCraigslistLocations
auburn
bham
dothan
shoals
gadsden
huntsville
mobile
montgomery
tuscaloosa
anchorage
View BashoHaiku.txt
Scarecrow in the hillock
Paddy field --
How unaware! How useful!
Passing through the world
Indeed this is just
Sogi's rain shelter.
A wild sea-
In the distance over Sado
@jeffThompson
jeffThompson / Apollo11GuidanceComputerVertAndNounList.txt
Created Feb 15, 2016
A list of "nouns" and "verbs" to control the Apollo 11 guidance computer.
View Apollo11GuidanceComputerVertAndNounList.txt
APOLLO 11 GUIDANCE COMPUTER: VERB AND NOUN LIST
https://en.wikipedia.org/wiki/Apollo_Guidance_Computer#/media/File:Agc_verb-noun-list.jpg
VERB LIST
50 PLEASE PERFORM
51 PLEASE MARK
53 PLEASE MARK ALT LOG
54 REND COAS MARK
56 TERMINATE P20
58 STICKFLAG (R) V50N18 FLAG(S)
View TrumpWikipediaEdits_Deletions.txt
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 Mar 29, 2017
Extracts the MAC address from an Adafruit Feather M0 Wifi board
View GetFeatherMacAddress.ino
#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.
You can’t perform that action at this time.