Skip to content

Instantly share code, notes, and snippets.

View asbjornu's full-sized avatar
💭
He's a loathsome offensive brute, yet I can't look away.

Asbjørn Ulsberg asbjornu

💭
He's a loathsome offensive brute, yet I can't look away.
View GitHub Profile
@asbjornu
asbjornu / volume-up.scpt
Created September 10, 2011 13:21
Turn up the volume in OS X by two steps
set volume output volume (get (output volume of (get volume settings)) + 2)
@asbjornu
asbjornu / volume-down.scpt
Created September 10, 2011 13:20
Turn down the volume in OS X by two steps
set volume output volume (get (output volume of (get volume settings)) - 2)
@asbjornu
asbjornu / export-address-book.scpt
Created September 10, 2011 12:26
Export all Mac OS X Address Book entries as single vCard files to a chosen folder
property targetfolder : "" as Unicode text
try
set targetfolder to choose folder with prompt "Choose a folder or volume:" as Unicode text
on error
beep
display dialog "Invalid path" buttons "Exit"
return
end try
@asbjornu
asbjornu / gist:1053555
Created June 29, 2011 09:56
IronJS executing UglifyJS results in 'TypeError: 64'
IronJS.UserError: TypeError: 64
at IronJS.Hosting.FSharp.run(Delegate compiled, T t) in D:\AUL\Dev\Misc\IronJS\Src\IronJS\Hosting.fs:line 152
at IronJS.Hosting.CSharp.Context.Execute(String source) in D:\AUL\Dev\Misc\IronJS\Src\IronJS\Hosting.fs:line 240
at Uglify.Uglifier.Uglify(String code) in D:\AUL\Dev\Misc\Uglify.NET\src\app\Uglify\Uglifier.cs:line 28
at Uglify.Terminal.Terminal.Main() in D:\AUL\Dev\Misc\Uglify.NET\src\tests\Terminal\Terminal.cs:line 12