d3js Multiline chart with brushing and mouseover
This file contains 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
# | |
# wavetable_synthio_synth.py -- Demonstrate new synthio.Synthesizer as wavetable MIDI synth | |
# 15 Apr 2023 - @todbot / Tod Kurt | |
# video demo: https://www.youtube.com/watch?v=uUnS3nR2K-8 | |
# | |
# Hooked up to generic I2S DAC | |
# Uses two pots: | |
# knobA - selects the base wave | |
# knobB - selects the mix between base wave and next wave | |
# |
This file contains 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
#!/bin/bash | |
# Begin looking at the system log via the steam sub-command. Using a --predicate and filtering by the correct | |
# subsystem first improves CPU performance DRASTICALLY. Then just pull out the camera event | |
log stream --predicate 'subsystem == "com.apple.VDCAssistant" && eventMessage CONTAINS[c] "Post event kCameraStream"'| while read line; do | |
# If we catch a camera start event, turn the light on | |
if echo "$line" | grep -q "Post event kCameraStreamStart"; then | |
echo "Camera has been activated, turn on the light." | |
curl -s -o /dev/null http://192.168.1.198/gpio/1 |