Skip to content

Instantly share code, notes, and snippets.

View jeffThompson's full-sized avatar

Jeff Thompson jeffThompson

View GitHub Profile
@jeffThompson
jeffThompson / GetPatentImages.py
Last active June 19, 2017 21:36
A little Python script that automatically downloads images associated with a patent listing
'''
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.
/*
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"
/*
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 March 30, 2017 19:54
Downloads all 411 paintings by Bob Ross from the site Two Inch Brush
'''
DOWNLOAD EVERY BOB ROSS PAINTING
Jeff Thompson | 2017 | jeffreythompson.org
Downloads all 411 paintings by Bob Ross from the
site Two Inch Brush.
'''
@jeffThompson
jeffThompson / UploadDataOverWifi.ino
Last active February 9, 2023 16:27
How to upload data to a server with Arduino
#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 / 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 / SplitSyllables.py
Last active July 18, 2023 12:57
Splits a word into syllables
'''
SPLIT SYLLABLES
Jeff Thompson | 2016 | jeffreythompson.org
Requires this modified version of the CMU Pronouncing
dictionary by Susan Bartlett, Grzegorz Kondrak and Colin Cherry:
https://webdocs.cs.ualberta.ca/~kondrak/cmudict.html
Download and save to your project directory, or somewhere you can
easily reference it.
@jeffThompson
jeffThompson / preprocess.py
Last active January 18, 2017 11:47
Mod to Torch-rnn preprocess script letting you skip non-ascii characters
# -*- coding: utf-8 -*-
import argparse, json, os
import numpy as np
import h5py
import codecs
parser = argparse.ArgumentParser()
parser.add_argument('--input_txt', default='data/tiny-shakespeare.txt')
00:02:2d:0c:03:53
101
12InteractiveWorldHQ
14wabash
1911
1Gary
2156
21JUMPSTREET
24-7STAR
24seven
float gridSize = 20;
boolean crosshatch = true;
PImage img;
void setup() {
size(1400, 788);
pixelDensity(displayDensity());