Skip to content

Instantly share code, notes, and snippets.

Jeff Thompson jeffThompson

Block or report user

Report or block jeffThompson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jeffThompson
jeffThompson / IsCountableNoun.py
Last active Jul 15, 2019
A Python function to test if a noun is countable. Too many requests will get you locked out, so use sparingly.
View IsCountableNoun.py
# -*- 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
@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
@jeffThompson
jeffThompson / UploadDataOverWifi.ino
Last active May 15, 2019
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
@jeffThompson
jeffThompson / GenerateSlippyMapTiles.py
Last active May 10, 2019
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
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 / 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 / RandomPath.pde
Created Aug 15, 2017
Generates a random path between two predefined points.
View RandomPath.pde
/*
RANDOM PATH
Jeff Thompson | 2017 | jeffreythompson.org
Generates a random path between two predefined points.
*/
import java.util.Date; // imports for timestamp
View CrosshatchImage.pde
float gridSize = 20;
boolean crosshatch = true;
PImage img;
void setup() {
size(1400, 788);
pixelDensity(displayDensity());
View LargestNumberOfZerosICouldCount.py
'''
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
@jeffThompson
jeffThompson / Every Word In The Periodic Table
Last active Mar 15, 2018
Python script to generate all the possible words that can be made from the periodic table.
View Every Word In The Periodic Table
'''
EVERY WORD IN THE PERIODIC TABLE
Jeff Thompson | 2013 | www.jeffreythompson.org
Takes as its input the abbreviations of the elements in the
periodic table and returns all possible words that can be
generated from that input*.
Idea occurred while sitting through a boring meeting in a
lecture hall, staring at a periodic table on the wall.
You can’t perform that action at this time.