This file contains hidden or 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
| @interface UIView (MPAdditions) | |
| @end | |
| @implementation UIView (MPAdditions) | |
| - (id)debugQuickLookObject { | |
| if (self.bounds.size.width < 0.0f || self.bounds.size.height < 0.0f) { | |
| return nil; | |
| } | |
This file contains hidden or 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
Show hidden characters
| { | |
| "color_scheme": "Packages/Dayle Rees Color Schemes/sublime/peel.tmTheme", | |
| "font_face": "Inconsolata", | |
| "font_size": 16, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| "line_padding_bottom": 4, | |
| "line_padding_top": 4, |
This file contains hidden or 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
| bank.client ← list clone | |
| heir.cache ← list clone | |
| definition(‘heir.cache’) depth ← 0 ; “Heirs’ lookups will ‘overlook’ this `heir.cache` definition.” | |
| “This will either retrieve the existing client object from the cache, or create a new one with its `id` set.” | |
| clone ← routine { | |
| result(heir.cache[argument] ⇤ up | |
| id ← argument | |
| client ← HTTP client clone |
This file contains hidden or 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
| """ | |
| Script to convert a Xcode3 Color theme into a Xcode4 one. | |
| Example: | |
| bash# python xcode3_theme_to_xcode4.py Twilight.xcolortheme | |
| It will write a new file: Twilight.dvtcolortheme into the same folder as the script is residing in. | |
| """ | |
| import plistlib,sys | |
| """ Define boilerplate of the color theme """ | |
| defaultConfig = { |
This file contains hidden or 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
| """"""""""""""""""""""""""""" | |
| " Files, backups, undo, etc. | |
| """"""""""""""""""""""""""""" | |
| set nocompatible | |
| set encoding=utf8 | |
| set ffs=unix,dos,mac | |
| set nobackup | |
| set nowb | |
| set noswapfile |
This file contains hidden or 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
| stream:stream | |
| (to example.com | |
| xmlns jabber:client | |
| xmlns:stream http://etherx.jabber.org/streams | |
| version 1.0) | |
| message | |
| (from juliet@example.com | |
| to romeo@example.net | |
| xml:lang en) |
This file contains hidden or 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
| implementation void() | |
| ( infrastructure execution stage() | |
| (infrastructure affix() (locals)) | |
| (infrastructure empty()) ) | |
| ( infrastructure execution stage() | |
| (infrastructure charge() (locals)) | |
| (infrastructure length() (locals)) ) |
This file contains hidden or 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
| class Eva < Zebra | |
| include MongoMapper::Document | |
| include Vegan::Powers | |
| include MongoMapperExt::Taggable | |
| include MongoMapper::Tweetable | |
| ## Keys | |
| key :scarves_count, Integer, :default => 20 | |
| key :compliments_count, Integer, :default => 100 |
This file contains hidden or 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
| Tweetbot for Mac Super Secret Settings | |
| You will need to use the Terminal app to change these settings: | |
| # these all affect the text in a DM or new tweet - the default is yes for all of them | |
| defaults write com.tapbots.TweetbotMac TextAutomaticQuoteSubstitution -bool NO | |
| defaults write com.tapbots.TweetbotMac TextAutoCorrect -bool NO | |
| defaults write com.tapbots.TweetbotMac TextContinuousSpellChecking -bool NO | |
| defaults write com.tapbots.TweetbotMac TextAutomaticTextReplacement -bool NO |
This file contains hidden or 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
| // The upshot: (in legal, sane(?) ISO C99) | |
| type v = Namespace__foo_bar(.first = 123, .third = "non-default value!"); | |
| /* We want a function (macro.) that appears to take “named arguments,” by preprocessing into a designated | |
| * initializer directly at the position of the function call, post-processing. | |
| */ | |
| // This portion is all, effectively, a neat way to define default, named arguments. |
OlderNewer