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 | |
# Set your OpenAI API key | |
API_KEY="your api here" | |
# Get the prompt from the command line argument | |
PROMPT="$1" | |
# Set the model ID for GPT-3.5 (cheaper than gpt-4) | |
MODEL_ID="gpt-3.5-turbo" |
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
#include "DigiKeyboard.h" | |
void setup() { | |
// don't need to set anything up to use DigiKeyboard | |
} | |
void loop() { | |
// this is generally not necessary but with some older systems it seems to | |
// prevent missing the first character after a delay: |
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
// Piezo ground base which is to be connected to the arduino ground. The smaller circle is to be connected to pin 9 or 11. | |
// Tested on Arduino UNO | |
int tonePin = 11; //or pin 9 - both have PWM | |
void setup() { | |
} | |
void midi() { | |
tone(tonePin, 293, 93.75); | |
delay(104.166666667); |
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
[Desktop Entry] | |
Version=1.0 | |
Name=Nightly | |
Comment=Browse the World Wide Web | |
GenericName=Web Browser | |
Keywords=Internet;WWW;Browser;Web;Explorer | |
Exec=nightly %u | |
Terminal=false | |
X-MultipleArgs=false | |
Type=Application |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |