Skip to content

Instantly share code, notes, and snippets.

@stianl
stianl / keynote_export.applescript
Last active October 18, 2022 14:01 — forked from kenjisato/keynote_export.applescript
Script to Export Keynote Presentation Files to PDF or JPEG
on sansExt(theFileName)
do shell script "file=" & theFileName & ";" & "echo ${file%.*}"
end sansExt
on run argv
set keynote_path to (item 1 of argv)
set out_path to (item 2 of argv)
set extension to (item 3 of argv)
set basename to sansExt(out_path)
@stianl
stianl / continous-qunit.ps1
Created October 16, 2012 13:53 — forked from jfromaniello/continous-qunit.ps1
Since less doesn't include a --watch option, and the only options I found was with ruby watchr+shell scripting I modified this Powershell script that continuously watch for file changes in a directory, and compiles less file
# watch a file changes in the current directory,
# compiles bootstrap.less
$watcher = New-Object System.IO.FileSystemWatcher
$watcher.Path = get-location
$watcher.IncludeSubdirectories = $true
$watcher.EnableRaisingEvents = $false
$watcher.NotifyFilter = [System.IO.NotifyFilters]::LastWrite -bor [System.IO.NotifyFilters]::FileName
while($TRUE){