Skip to content

Instantly share code, notes, and snippets.

View gtuckerkellogg's full-sized avatar

Greg Tucker-Kellogg gtuckerkellogg

View GitHub Profile
// This is a little bit for using extended args
var f = function (id) {
// The first arg is an id. let's get the rest.
// the args variable will come back as a real array, after the first arg
var args = [].slice.call(arguments,1);
return(args)
} ;
@gtuckerkellogg
gtuckerkellogg / gtk-modes.el
Created February 23, 2012 03:51
AppleScript editing continuation lines
; AppleScript is just intolerable, but
; at least I can now add continuation lines properly
;
(require 'applescript-mode)
(defun as-insert-continuation-line ()
"Insert the weird AppleScript continuation character"
(interactive)
(ucs-insert "00C2" 1 nil)
(newline)
(indent-according-to-mode)
@gtuckerkellogg
gtuckerkellogg / evernote-links-to-orgmode.applescript
Created February 10, 2012 15:11
emacs org-mode links to evernote notes