Skip to content

Instantly share code, notes, and snippets.

Jeff Thompson jeffThompson

View GitHub Profile
@jeffThompson
jeffThompson / WordWrap.pde
Last active Dec 8, 2019
A word-wrap function for Processing with hyphenation! Returns overall height of resulting text block.
View WordWrap.pde
/*
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:
View ThingsUsedInDivination.txt
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
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 / 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 TrumpWikipediaEdits_Deletions.txt
214739: trump
92232: donald
75604: 2016
74504: news
72717: http
69936: title
66900: cite
66443: date
65369: 2015
46124: accessdate
View TrumpWikipediaEdits_Additions.txt
213077: trump
91662: donald
75669: 2016
74596: news
72122: http
69864: title
66856: date
66778: cite
64664: 2015
45687: accessdate
@jeffThompson
jeffThompson / GetPatentImages.py
Last active Jun 19, 2017
A little Python script that automatically downloads images associated with a patent listing
View GetPatentImages.py
'''
GET PATENT IMAGES
Jeff Thompson | 2017 | jeffreythompson.org
A little Python script that automatically downloads
images associated with a patent listing. Use Google's
Patent Search first, then the "Download (CSV)" button
to save a file with all the results.
View Si4703.cpp
/*
Si4703 LIBRARY FOR ATTINY CHIPS
Jeff Thompson | 2017 | jeffreythompson.org
See .h file for credit where credit is due.
*/
#include "Arduino.h"
#include "Si4703_ATtiny.h"
View Si4703.h
/*
Si4703 LIBRARY FOR ATTINY CHIPS
Jeff Thompson | 2017 | jeffreythompson.org
A library for the Si4703 FM radio breakout from Sparkfun
for ATtiny chips like the ATtiny85. Mostly a little work
porting to the TinyWireM library, plus a bit of general
cleanup and formatting.
@jeffThompson
jeffThompson / DownloadEveryBobRossPainting.py
Last active Mar 30, 2017
Downloads all 411 paintings by Bob Ross from the site Two Inch Brush
View DownloadEveryBobRossPainting.py
'''
DOWNLOAD EVERY BOB ROSS PAINTING
Jeff Thompson | 2017 | jeffreythompson.org
Downloads all 411 paintings by Bob Ross from the
site Two Inch Brush.
'''
You can’t perform that action at this time.