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
#!/bin/bash | |
#### Restart Bluetooth | |
if [ "$1" == "resetBT" ] ; then | |
sudo rfkill block bluetooth && sleep 0.1 && sudo rfkill unblock bluetooth; | |
exit; | |
fi; | |
#### Toggle listen/speak | |
if [ "$1" == "" -o "$1" == "toggle" ] ; then |
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
#Fur Elise by Beethoven played with a sampled Musical Box voice, by Robin Newman June 2016 | |
#array to hold note info for range 52 to 103. Each entry shows three items: | |
#note value, offset of sample to use in sample folder and rpitch value to use with the sample | |
#I recorded 12 samples from a musical box played slowly, and separated them in Audacity | |
#The piece is played an octave above the notated pitch. | |
path="~/Desktop/Samples/MusicalBox/mb2" #path to sample folder. Adjust as necessary | |
nlist=[ | |
[52,0,-22],[53,0,-21],[54,0,-20],[55,0,-19],[56,0,-18], | |
[57,0,-17],[58,0,-16],[59,0,-15],[60,0,-14],[61,0,-13], |
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
<?php | |
/** | |
* Dirty, dirty Reddit bot: Decronym | |
*/ | |
class Reddit { | |
const USERNAME = 'Decronym'; | |
const PASSWORD = '***'; | |
const CLIENTID = '***'; | |
const SECRET = '***'; |