Skip to content

Instantly share code, notes, and snippets.

View brdrcol's full-sized avatar

Andrew P brdrcol

  • Melbourne, Australia
View GitHub Profile
@brdrcol
brdrcol / webcrypto-ptvapi.html
Created June 19, 2018 14:39
Sloppy demo of PTV API request signing using web crypto
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>PTV API WebCrypto demo</title>
<style>
main {width: 100%; max-width: 26rem; margin: 1rem auto; font-family: sans-serif;}
label, input, button, a { display: block; width: 100%; padding: 0.2rem; }
label {padding-top: 0.25rem;}
a {margin: 0.25rem 0; overflow-wrap: break-word}
@brdrcol
brdrcol / tonegen.py
Created December 4, 2016 20:34
Play sinusoids with pygame/numpy
import pygame
import numpy as np
from pprint import pprint
import time
import math
notes = {
'g3':196.00,
'gs3':207.65,
'a3':220.00,