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
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 / GenerateSlippyMapTiles.py
Last active Sep 21, 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 / 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 / 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)
@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 / 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 / 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());
You can’t perform that action at this time.