Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am finsprings on github.
  • I am finsprings (https://keybase.io/finsprings) on keybase.
  • I have a public key ASCuz9hMGpJnvfCD5Wr-i6r8oxXvOzN5Qbr48EqhNZ6NBAo

To claim this, I am signing this object:

on run {input, parameters}
set now to (do shell script "date '+%Y-%m-%d-%H-%M-%S'") as string
set home to (path to home folder) as string
set filename to home & "Dropbox:notesy:" & input & " (" & now & ")" & ".txt"
set snippet to the clipboard as «class utf8»
set fd to open for access filename with write permission
write snippet to fd as «class utf8»
close access fd
say "created " & input
end run
set now to (do shell script "date '+%Y-%m-%d-%H-%M-%S'") as string
set home to (path to home folder) as string
set filename to home & "Dropbox:notesy:New Note " & now & ".txt"
set snippet to the clipboard as «class utf8»
set fd to open for access filename with write permission
write snippet to fd as «class utf8»
close access fd
#include <SimpleRemote.h>
#include <Bounce.h>
const byte PLAY_BUTTON_PIN = 5;
const byte VOL_PLUS_BUTTON_PIN = 6;
const byte VOL_MINUS_BUTTON_PIN = 7;
const unsigned long DEBOUNCE_MS = 20;
Bounce playButton(PLAY_BUTTON_PIN, DEBOUNCE_MS);
// Simple example of using iPodSerial library to send
// Simple Remote Play command on the press of a button.
// This will alternate between Play and Pause on the iPod.
//
// Uses the Arduino Bounce library for debouncing.
// You can get this from http://arduino.cc/playground/code/Bounce
#include <SimpleRemote.h>
#include <Bounce.h>
const byte BUTTON_PIN = 5;
// Simple example of using iPodSerial library to send
// Simple Remote Play command on the press of a button.
// This will alternate between Play and Pause on the iPod.
#include "iPodSerial.h"
const int BUTTON = 5;
const long debounce = 200;
int lastButtonState = LOW;
int buttonState;
long now;