Skip to content

Instantly share code, notes, and snippets.

View jlewallen's full-sized avatar

Jacob Lewallen jlewallen

View GitHub Profile
@jlewallen
jlewallen / BUGS.txt
Last active November 5, 2021 19:26
Bugs
Affected Firmware: LIST
Working Firmware: LIST
Reproducible: Yes / No
(A section for each affected station)
Station: NAME
Backplane: None / Empty, Empty, Weather, Empty (Status of *every* bay)
Battery: None / Battery V
Solar: None / Yes
USB: Yes / No
#!/usr/bin/python3
counter = 0
while True:
compiled = compile(
"""
class Hello:
def __init__(self, counter: int):
self.name = "Hey world {0}".format(counter)
@jlewallen
jlewallen / parse.py
Last active November 18, 2021 18:38
#!/usr/bin/python3
import re
import sys
# This is used to filter readings keys as well as set the sort order
# for known columns. In the end it was easier to just predefine these
# keys and their order rather than scan all the rows and find unknown
# keys to generate a consistent column order.
selected_key_order = [
@jlewallen
jlewallen / joulescope-csv.py
Created January 6, 2021 01:40
joulescope-csv.py
#!/usr/bin/python3
from typing import Tuple, List, Iterator
import sys
import logging
import csv
import math
import numpy
import pprint