Skip to content

Instantly share code, notes, and snippets.

Avatar

Todd Wolfson twolfson

View GitHub Profile
@twolfson
twolfson / ods-hyperlink.sh
Last active Nov 11, 2020
Hyperlink ODS text (LibreOffice Calc)
View ods-hyperlink.sh
@twolfson
twolfson / .gitignore
Created Oct 14, 2020
Explore SoftwareSerial and using Arduino Uno as a proxy for ATtiny85
View .gitignore
.pio/
include/
lib/
src/
test/
@twolfson
twolfson / .gitignore
Last active Oct 10, 2020
Exploration of async/await blocking
View .gitignore
node_modules/
@twolfson
twolfson / .gitignore
Last active Oct 13, 2020
Playground gist for exploring PlatformIO
View .gitignore
.pio/
include/
lib/
src/
test/
@twolfson
twolfson / .gitignore
Last active Aug 28, 2020
Exploration of polygon boundaries
View .gitignore
# Node.js dependencies
node_modules/
# Parcel files
.cache/
dist/
@twolfson
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(() => {
resolve('done');
}, 300 /* ms */);
});
@twolfson
twolfson / main.py
Last active Jul 19, 2020
Exploration gist for pandas
View main.py
# Load in our dependencies
import pandas
import numpy
# Define our main function
def main():
# Create a pandas dataframe
# https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html
# `numpy.array()` syntax
# df = pandas.DataFrame([
@twolfson
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
// submodule.bar = 'world'; // Works in this file, but doesn't pass through
submodule.bar.baz = 'hi';
// DEV: The following is a similarly acceptable way to pass-through edit
@twolfson
twolfson / README.md
Created Jul 31, 2019
Proof of concept for reading serial output from Arduino directly
View README.md

gist-arduino-serial

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
You can’t perform that action at this time.