Skip to content

Instantly share code, notes, and snippets.

View ellieLitwack's full-sized avatar

Ellie Litwack ellieLitwack

View GitHub Profile
@ellieLitwack
ellieLitwack / visualize_zipchord_debug.py
Created February 7, 2023 03:44
A tool for visualize keypress data from ZipChord's debug log files.
import re
import matplotlib.pyplot as plt
from matplotlib.widgets import Slider
# open the chords file and read the lines
print('Scroll through the diagram using the "Pos" slider.')
print('Click on the chart to draw a vertical line (useful for seeing when keypresses overlap.')
file = open(input('Enter the path to the debug.txt file: '), 'r')
lines = file.readlines()
@ellieLitwack
ellieLitwack / zipchord_to_monkeytype.py
Last active February 7, 2023 03:45
Extract a word list for Monkey Type from a ZipChord chord file, then copy it to the clip board
import pyperclip # library for copying to clipboard
# open the chords file and read the lines
file = open(input('Enter the path to the debug.txt file: '), 'r')
lines = file.readlines()
file.close()
word_list = []
# iterate through the lines
for line in lines:
@ellieLitwack
ellieLitwack / pm25.in-api-docs-english.md
Last active January 12, 2018 05:02
The API docs from PM25.in translated from Chinese to English

In order to let even more people quickly access good PM2.5 data, we made the difficult decision to make our PM2.5 API free and open. Now, it’s more useful to developers.

Important

Read Before Applying

  1. Take the following disclaimers seriously;
  2. You must have programming skill, or have someone on your team who does;
  3. You must really understand how to use the API key. I must be convinced you have a programmer capable of seeing the API and knowing it. We don’t keep a copy of you’re private key, and there’s no way to recover it;
  4. Right now we don’t offer any historical data, we just offer the last hour of data. There’s no way for the API to get the data between two specified times;