Skip to content

Instantly share code, notes, and snippets.

@twolfson
twolfson / .gitignore
Last active December 25, 2020 03:00
Exploration of using Python for a LibreOffice ODS pipeline
output.ods
.~lock*
@twolfson
twolfson / ods-hyperlink.sh
Last active November 11, 2020 11:43
Hyperlink ODS text (LibreOffice Calc)
@twolfson
twolfson / .gitignore
Created October 14, 2020 09:26
Explore SoftwareSerial and using Arduino Uno as a proxy for ATtiny85
.pio/
include/
lib/
src/
test/
@twolfson
twolfson / .gitignore
Last active October 10, 2020 01:41
Exploration of async/await blocking
node_modules/
@twolfson
twolfson / .gitignore
Last active October 13, 2020 11:49
Playground gist for exploring PlatformIO
.pio/
include/
lib/
src/
test/
@twolfson
twolfson / .gitignore
Last active August 28, 2020 00:58
Exploration of polygon boundaries
# Node.js dependencies
node_modules/
# Parcel files
.cache/
dist/
@twolfson
twolfson / index.js
Created July 20, 2020 00:20
Exploration for familiarization with Promise API
(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 July 19, 2020 19:02
Exploration gist for pandas
# 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 July 15, 2020 21:33
ES6 module passthrough import/export editing experimentation
// 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