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
| Pod::Spec.new do |s| | |
| s.name = 'NSDate+Helper' | |
| s.version = '0.0.1' | |
| s.summary = 'A category to extend Cocoa\'s NSDate class with some convenience functions.' | |
| s.description = 'This is a category for the NSDate class that provides some convenience methods for working with NSDate objects and displaying formatted and relative strings.' | |
| s.homepage = 'http://www.zetetic.net/blog/' | |
| s.license ='Copyright © 2009, 2010, ZETETIC LLC | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without |
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
| // | |
| // Copyright (c) 2012 Cédric Luthi / @0xced. All rights reserved. | |
| // | |
| #if TARGET_IPHONE_SIMULATOR | |
| static NSString * const FakeCarrier = @"AT&T"; | |
| #import <objc/runtime.h> |
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
| { | |
| // Filename: Prefereces.sublime-settings in Packages/User/ | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
| "font face": "Inconsolata-dz", | |
| "font_size": 14.0, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| "tab_size": 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
| echo "{"`find . -type f -exec shasum {} + | sed 's/\.\///g' | awk '{print "\t\"" $2 "\" : \"" $1 "\","}' | grep -v -E "(\.DS_Store|manifest\.json)"`"}" | sed 's/\,}/}/g' | python -mjson.tool > manifest.json |
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
| Pod::Spec.new do |s| | |
| s.name = 'NSLogger-CocoaLumberjack-connector' | |
| s.version = '1.2.cp1' | |
| s.license = 'BSD' | |
| s.summary = 'Bridges NSLogger and CocoaLumberjack.' | |
| s.homepage = 'https://github.com/steipete/NSLogger-CocoaLumberjack-connector' | |
| s.author = { 'Peter Steinberger' => 'steipete@gmail.com' } | |
| s.source = { :git => 'https://github.com/jk/NSLogger-CocoaLumberjack-connector.git', :commit => 'a05e5c51fad2c850c44eab6643f131f48a38929c' } | |
| s.description = 'This is a bridge for the projects http://github.com/robbiehanson/CocoaLumberjack (A general purpose super-fast logging framework) and http://github.com/fpillet/NSLogger (send logs to a client app via network).' | |
| s.source_files = 'DDNSLoggerLogger.*' |
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
| [ | |
| { "keys": ["ctrl+shift+x"], "command": "tidy_xml" }, | |
| { "keys": ["ctrl+shift+j"], "command": "prettify_json" }, | |
| { "keys": ["alt+up"], "command": "inc_dec_value", "args": { "action": "inc_min" } }, | |
| { "keys": ["alt+down"], "command": "inc_dec_value", "args": { "action": "dec_min" } }, | |
| { "keys": ["super+up"], "command": "inc_dec_value", "args": { "action": "inc_max" } }, | |
| { "keys": ["super+down"], "command": "inc_dec_value", "args": { "action": "dec_max" } }, |
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
| - (void)maskUIViewHorizontally:(UIView *)view { | |
| view.layer.mask = nil; | |
| _maskLayer = nil; | |
| if (!_maskLayer) { | |
| _maskLayer = [CAGradientLayer layer]; | |
| UIColor *outerColor = [UIColor colorWithWhite:1.0 alpha:0.0]; // transparent | |
| UIColor *innerColor = [UIColor colorWithWhite:1.0 alpha:1.0]; // opaque | |
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
| -(void)crashQueue { | |
| dispatch_queue_t webviewQueue = dispatch_queue_create("de.company.myCrashQueue", DISPATCH_QUEUE_SERIAL); | |
| _webviewQueueValid = YES; | |
| // NSLog(self.company); | |
| dispatch_async(webviewQueue, ^{ | |
| if (_webviewQueueValid) { | |
| NSURL *companyURL = [NSURL URLWithString:[companyURI stringByAppendingFormat:@"%@.html", self.company.pathName]]; | |
| NSMutableURLRequest *requestCompany = [NSMutableURLRequest requestWithURL:companyURL]; | |
| [self.companyWebView loadRequest:requestCompany]; |
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
| #!/usr/bin/env perl | |
| # objc_api_visibility.pl | |
| # by Ryan Petrich, inspired by Dustin Howett's Logos | |
| # Reads all Objective-C method names from an installed SDK, determines their visibility and optionally compares against an iOS app binary | |
| sub read_methods { | |
| my $cmd = shift; | |
| my $when_found = shift; | |
| my $current_class; | |
| open(LS_CMD, "$cmd |") or die "Can't run '$cmd'\n$!\n"; |
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
| enum ClassNameResult { | |
| ClassNameResultAborted, | |
| ClassNameResultSuccessful, | |
| ClassNameResult… | |
| }; | |
| typedef enum ClassNameResult ClassNameResult; |