Skip to content

Instantly share code, notes, and snippets.

View panicsteve's full-sized avatar

Steven Frank panicsteve

View GitHub Profile
import Foundation
func loadInput() -> [Int] {
let url = URL(fileURLWithPath: "/Volumes/Synology/Projects/Advent of Code 2021/Day 6/input-1.txt")
var s = ""
do {
s = try String(contentsOf: url)
}
catch {
// add-note.scpt
//
// Example of creating a new note in Notes.app using JavaScript for Automation
// Steven Frank <stevenf@panic.com>
notesApp = Application('Notes');
notesApp.activate();
var note = notesApp.Note({

Keybase proof

I hereby claim:

  • I am panicsteve on github.
  • I am stevenf (https://keybase.io/stevenf) on keybase.
  • I have a public key whose fingerprint is E242 B91D A538 6C51 BE1C 838B 0F9B C7D0 029C 857A

To claim this, I am signing this object:

@panicsteve
panicsteve / gist:1641705
Created January 19, 2012 18:26
Form letter template for acquired startups
Dear soon-to-be-former user,
We've got some fantastic news! Well, it's great news for us anyway. You, on
the other hand, are fucked.
We've just been acquired by:
[ ] Facebook
[ ] Google
[ ] Twitter