This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// header | |
#ifdef TARGET_OS_IPHONE | |
#define NativeColor UIColor | |
#else | |
#define NativeColor NSColor | |
#endif | |
NativeColor* hexColor(int hex); | |
NativeColor* hexaColor(int hex, float a); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = "MASShortcut" | |
s.version = "1.1.1" | |
s.summary = "Modern framework for managing global keyboard shortcuts compatible with Mac App Store." | |
s.description = <<-DESC | |
Some time ago Cocoa developers used a brilliant framework ShortcutRecorder for managing keyboard shortcuts in application preferences. However, it became incompatible with a new plugin architecture of Xcode 4. | |
The project MASShortcut introduces modern API and user interface for recording, storing and using global keyboard shortcuts. All code is compatible with Xcode 4.3, Mac OS X 10.7 and the sandboxed environment. | |
DESC | |
s.homepage = "http://blog.shpakovski.com/2012/07/global-keyboard-shortcuts-in-cocoa.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (id) allocWithZone:(NSZone *)zone | |
{ | |
static id globalInstance; | |
if(!globalInstance) | |
{ | |
globalInstance = [super allocWithZone:zone]; | |
} | |
return globalInstance; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = "MASPreferences" | |
s.version = "1.0.1" | |
s.summary = "Custom implementation of Preferences window in Cocoa applications for Mac OS X." | |
s.homepage = "https://github.com/shpakovski/MASPreferences" | |
s.license = "BSD" | |
s.author = "Vadim Shpakovski" | |
s.source = { :git => "https://github.com/shpakovski/MASPreferences.git", :commit => 'efeaf31ffb917240b1de0a38ed8c3e110a66866e' } | |
s.platform = :osx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RACSequence *normalizedLongWords = [[words.rac_sequence | |
filter:^ BOOL (NSString *word) { | |
return [word length] >= 10; | |
}] | |
map:^(NSString *word) { | |
return [word lowercaseString]; | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
normalized = words.select { |w| w.length >= 10 }.map { |w| w.downcase } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text = """Messiah (HWV 56) is an English-language oratorio composed in 1741 by George Frideric Handel, with a scriptural text compiled by Charles Jennens from the King James Bible and the Book of Common Prayer. Messiah was first performed in Dublin in 1742, and received its London premiere the following year. After an initially modest public reception, the oratorio gained in popularity, becoming one of the most frequently performed choral works in Western music. Although its structure resembles that of opera, it is not in dramatic form, but a reflection on Jesus Christ as Messiah. Handel begins Part I with prophecies by Isaiah and others, and moves to the annunciation to the shepherds, the only "scene" taken from the Gospels. In Part II he concentrates on the Passion and ends with the Hallelujah Chorus. In Part III he covers the resurrection of the dead and Christ's glorification in heaven. Handel wrote Messiah for modest vocal and instrumental forces; after his death, the work was adapted for performance wit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text = """Messiah (HWV 56) is an English-language oratorio composed in 1741 by George Frideric Handel, with a scriptural text compiled by Charles Jennens from the King James Bible and the Book of Common Prayer. Messiah was first performed in Dublin in 1742, and received its London premiere the following year. After an initially modest public reception, the oratorio gained in popularity, becoming one of the most frequently performed choral works in Western music. Although its structure resembles that of opera, it is not in dramatic form, but a reflection on Jesus Christ as Messiah. Handel begins Part I with prophecies by Isaiah and others, and moves to the annunciation to the shepherds, the only "scene" taken from the Gospels. In Part II he concentrates on the Passion and ends with the Hallelujah Chorus. In Part III he covers the resurrection of the dead and Christ's glorification in heaven. Handel wrote Messiah for modest vocal and instrumental forces; after his death, the work was adapted for performance wit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
osascript <<SCRIPT | |
tell application "Xcode" | |
activate | |
end tell | |
tell application "System Events" | |
tell application process "Xcode" | |
click menu item "Stop" of menu 1 of menu bar item "Product" of menu bar 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = 'CocoaLumberjack' | |
s.version = '1.6.1' | |
s.license = 'BSD' | |
s.summary = 'A fast & simple, yet powerful & flexible logging framework for Mac and iOS.' | |
s.homepage = 'https://github.com/robbiehanson/CocoaLumberjack' | |
s.author = { 'Robbie Hanson' => '[email protected]' } | |
s.source = { :git => 'https://github.com/robbiehanson/CocoaLumberjack.git', | |
:commit => 'b5fbf2da1fa35f208683f9afa441b071cc621cd0' } |
OlderNewer