Skip to content

Instantly share code, notes, and snippets.

View corbanmailloux's full-sized avatar

Corban Mailloux corbanmailloux

View GitHub Profile

Keybase proof

I hereby claim:

  • I am corbanmailloux on github.
  • I am corbanmailloux (https://keybase.io/corbanmailloux) on keybase.
  • I have a public key whose fingerprint is CA0D 8FC9 7FD6 B456 570B 2A71 E16F 7376 A681 1A50

To claim this, I am signing this object:

//PWM pins for the LEDs
#define redpin 9
#define greenpin 10
#define bluepin 11
//set up SoftwareSerial for the bluetooth module.
#include <SoftwareSerial.h>
#define SoftRx 2
#define SoftTx 3
SoftwareSerial BTSerial(SoftRx, SoftTx);
@corbanmailloux
corbanmailloux / Pull All.sh
Last active August 21, 2023 10:03
Loop through each subfolder of the current folder and call "git pull" in it.
# Run "git pull" in each subdirectory of the current directory.
# Useful when you store all of your git repos in one folder.
clear
for dir in ./*; # For every item in the folder:
do (
if [ -d "$dir" ]; # If it is a directory:
then (
echo "$dir" && # Print the path,
@corbanmailloux
corbanmailloux / ARDroneSheetsImport.gs
Last active August 29, 2015 14:04
Import AR.Drone Academy Flight Data to Google Sheets
function onOpen() {
SpreadsheetApp.getUi()
.createMenu("AR.Drone Academy")
.addItem("Import New Flight", "flightNumPrompt")
.addToUi();
}
function flightNumPrompt() {
var ui = SpreadsheetApp.getUi(); // Same variations.
@corbanmailloux
corbanmailloux / Default (Windows).sublime-keymap
Last active August 29, 2015 14:10
My Sublime Text Keymap
[
{ "keys": ["f5"], "command": "revert"},
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
]
@corbanmailloux
corbanmailloux / Edelweiss.txt
Created December 8, 2014 18:21
Roomba Songs
128
130
132
140 0 13 59 64 62 32 69 96 67 64 62 32 60 96 59 64 59 32 59 32 60 32 62 32 64 96 62 96
140 1 13 59 64 62 32 69 96 67 64 62 32 60 96 59 64 62 32 62 32 64 32 66 32 67 96 67 96
140 2 15 69 40 62 24 62 32 66 32 64 32 62 32 59 64 62 32 67 96 64 64 67 32 69 64 67 32 66 96 62 96
141 0
141 1
@corbanmailloux
corbanmailloux / Volume Mouse Wheel.ahk
Created January 21, 2015 15:31
Add volume macros to a normal mouse.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#WheelUp::Send, {Volume_Up}
#WheelDown::Send, {Volume_Down}
MButton & WheelUp::Send, {Volume_Up}
@corbanmailloux
corbanmailloux / Spanish.ahk
Created February 20, 2015 03:51
Spanish Keyboard Mapping
; Spanish Accents
/*
Insert Spanish accents within 3 seconds of pressing hotkey.
á Á é É í Í ó Ó ú Ú ñ Ñ ¿ ¡
hotkey = '
hotkey "a" = "á"
@corbanmailloux
corbanmailloux / MKVMerge SRT.sh
Created September 25, 2015 01:15
Loop through a folder, merge SRT files with MP4s and make a MKV.
for i in *.mp4
do
i="${i%.mp4}"
"C:\Program Files\MKVToolNix\mkvmerge.exe" -o "$i.mkv" --default-track 0 --language 0:eng "$i.srt" "$i.mp4"
done
@corbanmailloux
corbanmailloux / RIT Mobile Bus Information.py
Created October 27, 2015 04:32
[OUTDATED] Uses RIT's mobile REST API to get bus information. This API is no longer available. :(
import requests
from datetime import datetime, timezone
def main():
"""
r = requests.get("https://m.rit.edu/rest/transit/routes")
for route in r.json()["response"]:
print(route["title"] + " -- " + str(route["running"]))
"""