Skip to content

Instantly share code, notes, and snippets.

@masui
masui / gist:1333288
Created November 2, 2011 09:54
Find the newest OmniGraffle document on Mac with Spotlight+MacRuby
#
# Find the newest OmniGraffle document
#
framework 'Cocoa'
def finish(notification)
if @query.resultCount > 0 then
puts @query.resultAtIndex(0).valueForAttribute('kMDItemPath')
end
@masui
masui / gist:1335617
Created November 3, 2011 02:30
Find large Microsoft Word documents on Mac with Spotlight+MacRuby
#
# List large Microsoft Word files upto 10
#
framework 'Cocoa'
def finish(notification)
max = @query.resultCount
max = 10 if max > 10
(0...max).each { |i|
@terkel
terkel / reset.css
Created November 12, 2011 10:56
CSS Reset
/*!
* CSS Reset 2011-12-25
* https://gist.github.com/gists/1360380
*
* Author: Takeru Suzuki, http://terkel.jp/
* License: Public domain
*
* Inspired by Normalize.css: http://necolas.github.com/normalize.css/
*/
@ole
ole / update_storyboard_strings.sh
Last active April 4, 2022 06:11
Automatically extract translatable strings from Xcode storyboards and update .strings files. Original version by MacRumors forum user mikezang (http://forums.macrumors.com/showpost.php?p=16060008&postcount=4). Slightly updated by Ole Begemann. NOTE: this Gist moved to a regular repo at https://github.com/ole/Storyboard-Strings-Extraction.
# (File moved to https://github.com/ole/Storyboard-Strings-Extraction)