This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule NodeProcess.Application do | |
# See https://hexdocs.pm/elixir/Application.html | |
# for more information on OTP Applications | |
@moduledoc false | |
use Application | |
def start(_type, _args) do | |
# List all child processes to be supervised | |
children = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@id": "http://store.example.com/", | |
"@type": "Store", | |
"name": "Links Bike Shop", | |
"description": "The most \"linked\" bike store on earth!", | |
"product": [ | |
{ | |
"@id": "p:links-swift-chain", | |
"@type": "Product", | |
"name": "Links Swift Chain", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@id": "https://gist.githubusercontent.com/robmckinnon/f6f85a7708f24c3736de3ae4a93bd6ce/raw/links-swift-chain", | |
"@type": "Product", | |
"name": "Links Swift Chain", | |
"description": "A fine chain with many links.", | |
"category": ["cat:parts", "cat:chains"], | |
"price": "10.00", | |
"stock": 10, | |
"@context": { | |
"Product": "http://ns.example.com/store#Product", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@id": "https://gist.github.com/robmckinnon/f6a2dcc02e98a66c74a50d7bc44e9c72/raw/store", | |
"@type": "Store", | |
"name": "Links Bike Shop", | |
"description": "The most \"linked\" bike store on earth!", | |
"product": [ | |
{ | |
"@id": "https://gist.githubusercontent.com/robmckinnon/f6f85a7708f24c3736de3ae4a93bd6ce/raw/links-swift-chain", | |
"@type": "Product", | |
"name": "Links Swift Chain", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp wpa_supplicant.conf /Volumes/boot/ | |
touch ssh | |
cp ssh /Volumes/boot | |
ssh [email protected] | |
# raspberry | |
passwd | |
# new p/w | |
exit | |
ssh [email protected] | |
sudo raspi-config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
# Single file copy of https://github.com/SamSaffron/memory_profiler for loading in Sonic Pi. | |
# Licence: https://github.com/SamSaffron/memory_profiler/blob/master/LICENSE.txt | |
# Copyright (c) 2013 Sam Saffron | |
# MIT License | |
module MemoryProfiler | |
VERSION = "0.9.14" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import rtmidi | |
from gpiozero import DistanceSensor # Import the GPIO Zero Library | |
# Define GPIO pins to use on the Pi | |
pinTrigger = 17 | |
pinEcho = 18 | |
midiout = rtmidi.MidiOut() | |
available_ports = midiout.get_ports() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0VC6VftV2#:tone#......#M#.#D#.#P#.#L#.#M#.#M#.#L#...................................... | |
1Vc7VGsV1#:semitone#..#a#.#o#.#h#.#y#.#i#.#i#.#y#...................................... | |
2VD8Vg................#j#.#r#.#r#.#d#.#x#.#n#.#c#...................................... | |
3Vd9VAkV0#:key.index#.#o#.#i#.#y#.#i#.#o#.#o#.#r#...................................... | |
4VEaVa................#r#.#a#.#g#.#a#.#l#.#r#.#i#...................................... | |
5VFbVB................................................................................. | |
......7Xt.#To.change#.#t#.#t#.#s#.#t#.#t#.#s#.#t#...................................... | |
.....57Xt.#mode.copy#.#t#.#s#.#t#.#t#.#t#.#t#.#t#...................................... | |
.....a7Xs.#sequence.#.#s#.#t#.#t#.#t#.#s#.#t#.#s#...................................... | |
.....f7Xt.#from.the.#.#t#.#t#.#t#.#s#.#t#.#s#.#t#...................................... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p nz-electoral-reform/royal-commission-report-1986/pdf | |
cd nz-electoral-reform/royal-commission-report-1986/pdf | |
curl -o 01.pdf https://elections.nz/assets/Report-of-the-Royal-Commission-on-the-Electoral-System-1986/Royal-Commission-Report-Contents.pdf | |
curl -o 02.pdf https://elections.nz/assets/Report-of-the-Royal-Commission-on-the-Electoral-System-1986/Chapter-1-preface-and-introduction.pdf | |
curl -o 03.pdf https://elections.nz/assets/Report-of-the-Royal-Commission-on-the-Electoral-System-1986/Chapter-2-the-voting-system.pdf | |
curl -o 04.pdf https://elections.nz/assets/Report-of-the-Royal-Commission-on-the-Electoral-System-1986/Chapter-3-maori-representation-v2.pdf |