Skip to content

Instantly share code, notes, and snippets.

@DougEverly
DougEverly / gist:3966598
Created October 27, 2012 22:08
First .coffee
class Car
constructor: (@make) ->
make: -> @make
drive: (m) -> "went #{m} miles"
taurus= new Car("ford")
console.log(taurus.make)
@DougEverly
DougEverly / gist:3341851
Created August 13, 2012 15:26
Open current Safari URL in Webkit
property theURL : ""
tell application "Safari"
set theURL to URL of current tab of window 1
end tell
tell application "WebKit"
make new document
set URL of document 1 to theURL
activate
end tell