Skip to content

Instantly share code, notes, and snippets.

View jrothwell's full-sized avatar

Jonathan Rothwell jrothwell

View GitHub Profile
@jrothwell
jrothwell / keybase.md
Created April 15, 2015 00:04
keybase.md

Keybase proof

I hereby claim:

  • I am jrothwell on github.
  • I am jrothwell (https://keybase.io/jrothwell) on keybase.
  • I have a public key whose fingerprint is 4790 B316 D3EA 4E46 6715 8E20 404B BBB8 CC1F 4EB2

To claim this, I am signing this object:

@jrothwell
jrothwell / assignment-input.c
Created February 18, 2013 22:06
An abandoned attempt at translating an implementation for Mack's Method into C, from a BASIC original. I gave up halfway through after an entirely nonsensical line of code.
/* Assignment Problem, Mack's Method
* Based on a program by Person Unknown (possibly Bunday and Garside?)
* Rewritten 01/12/2012 by Jonathan Rothwell <j@rothwell.im>
* with assistance from Alexander Bain
*/
#include <stdlib.h>
#include <stdio.h>
/* DECLARATIONS */
@jrothwell
jrothwell / sweep.applescript
Last active December 9, 2015 23:19
A simple AppleScript to sweep out the contents of a 'junk' folder and a downloads folder to some external storage (usually a USB/FW/Thunderbolt hard drive or a NAS.) As long as AppleScript can see it as a disk, it should work just fine.
(* SWEEP
Moves the contents of your 'junk' and 'downloads' folders to an
external disk, trashing the original copy.
Written 2012/12/20 by Jonathan Rothwell <j@rothwell.im>
Amended 2013/01/02 to fix time-out issue
*)
# Declarations
set diskName to "Catharsis" -- change to your destination volume's label