Skip to content

Instantly share code, notes, and snippets.

View jhchou's full-sized avatar

Joseph Chou jhchou

View GitHub Profile
@jhchou
jhchou / wind_stations.csv
Created October 7, 2024 10:44
Reporting location data from NWS 10-812 Aviation Wind and Temperature Aloft Forecasts; 2022-09 with some errors corrected
Identifier Location LatitudeDeg LatitudeMin LongitudeDeg LongitudeMin Elevation State FL450_530
BHM Birmingham 33 33 -86 44 620 ALABAMA #
HSV Huntsville 34 33 -86 46 629 ALABAMA
MGM Montgomery 32 13 -86 19 221 ALABAMA
MOB Mobile 30 41 -88 14 190 ALABAMA #
ADK Adakak 51 56 -176 25 133 ALASKA #
ADQ Kodiak 57 46 -152 35 112 ALASKA #
AFM Ambler 67 6 -157 51 289 ALASKA #
AKN King Salmon 58 44 -156 45 49 ALASKA #
ANC Anchorage 61 14 -149 33 131 ALASKA #
import time
import board
import neopixel
# On CircuitPlayground Express, and boards with built in status NeoPixel -> board.NEOPIXEL
# Otherwise choose an open pin connected to the Data In of the NeoPixel strip, i.e. board.D1
pixel_pin = board.NEOPIXEL
# On a Raspberry pi, use this instead, not all pins are supported
@jhchou
jhchou / gwc_ciphers.ipynb
Created February 25, 2019 17:42
Python for ciphers
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jhchou
jhchou / make_it_pulse_modified.py
Created February 24, 2019 23:02
Modified Make It Pulse for Adafruit Circuit Playground for Pulse Sensing
#
# Using the Circuit Playground as a pulse sensor
# - original code by Mike Barela
# - https://learn.adafruit.com/make-it-pulse?view=all
#
# - modified to calculate heart rate from rolling average of interbeat intervals
# - Joseph Chou
#
import time