Skip to content

Instantly share code, notes, and snippets.


Todd Wolfson twolfson

View GitHub Profile
twolfson / .gitignore
Last active Aug 28, 2020
Exploration of polygon boundaries
View .gitignore
# Node.js dependencies
# Parcel files
twolfson / index.js
Created Jul 20, 2020
Exploration for familiarization with Promise API
View index.js
(async function () {
// Define a Promise generator
function getPromise() {
// return Promise.resolve('done2');
// return Promise.reject('throw text ');
return new Promise((resolve, reject) => {
setTimeout(() => {
}, 300 /* ms */);
twolfson /
Last active Jul 19, 2020
Exploration gist for pandas
# Load in our dependencies
import pandas
import numpy
# Define our main function
def main():
# Create a pandas dataframe
# `numpy.array()` syntax
# df = pandas.DataFrame([
twolfson / alt-submodule.js
Created Jul 15, 2020
ES6 module passthrough import/export editing experimentation
View alt-submodule.js
// Load in our dependencies
import submodule from './submodule.js';
// Edit our pass-through content
// DEV: We can only modify mutable content on the submodule's keys
// If we attempt to replace a direct key, then the edit won't pass through
// = 'world'; // Works in this file, but doesn't pass through = 'hi';
// DEV: The following is a similarly acceptable way to pass-through edit
twolfson /
Created Jul 31, 2019
Proof of concept for reading serial output from Arduino directly


Proof of concept for reading serial output from Arduino directly

Getting started

  • Clone the repo
  • Upload .ino file to Arduino (e.g. via IDE)
  • Verify output is being seen via Serial Monitor in Arduino IDE
  • Open terminal, listen to same port that Arduino writes to
    • tail -f /dev/ttyACM0 on Linux
    • May require more setup on other platforms
twolfson /
Last active Jul 31, 2019
Proof of concept (potentially final) files for ConeDown sensors


Proof of concept (potentially final) files for ConeDown sensors

We're using force-sensitive resistors (FSRs) as sensors to detect presence on our dancefloor tiles. This is an integration between those sensors, an Arduino, and our computer

Getting started

Sensor testing with Arduino

twolfson / .gitignore
Created Jun 10, 2019
Exploration of SF's Assessor-Recorder tax roll

Keybase proof

I hereby claim:

  • I am twolfson on github.
  • I am twolfson ( on keybase.
  • I have a public key ASB3gghMv9nXHX0Rd0KcEHTWc7bhofYUMS6CRaU517DVqwo

To claim this, I am signing this object:

twolfson / .gitignore
Created Dec 20, 2018 — forked from tmcw/
Turn your Foursquare Data Archive into a GeoJSON file
View .gitignore
You can’t perform that action at this time.