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
| // | |
| // UIColor+lerp.h | |
| // Lotus | |
| // | |
| // Created by Andrei on 3/3/13. | |
| // Copyright (c) 2013 Andrei. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.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
| [[NSNotificationCenter defaultCenter] addObserverForName:nil | |
| object:nil | |
| queue:[NSOperationQueue mainQueue] | |
| usingBlock:^(NSNotification *notification) { | |
| PO(notification) | |
| }]; |
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
| require 'json' | |
| def tabspaces indent_level | |
| return " " * indent_level | |
| end | |
| def to_objc object, indent_level = 0, ignore_first = false | |
| first_indent = ignore_first ? "" : tabspaces(indent_level) | |
| indent = tabspaces indent_level | |
| if object.is_a? Array |
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
| [APUtils benchmark:^{ | |
| for (int i = 0; i < 1000000; ++i) { | |
| self.testing = @(i); | |
| } | |
| } name:@"self.testing = @(i);"]; | |
| [APUtils benchmark:^{ | |
| for (int i = 0; i < 1000000; ++i) { | |
| [self setValue:@(i) forKey:@"testing"]; | |
| } |
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
| // | |
| // UITextField+Autocomplete.h | |
| // | |
| // Created by Andrei Puni on 7/23/13. | |
| // | |
| #import <UIKit/UIKit.h> | |
| typedef void(^UpdateStringBlock)(NSArray *strings); |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <opml version="1.0"> | |
| <head> | |
| <title>My feedly feeds</title> | |
| </head> | |
| <body> | |
| <outline text="iOS Programming"> | |
| <outline text="Cocoa Is My Girlfriend" htmlUrl="http://www.cimgf.com" type="rss" xmlUrl="http://www.cimgf.com/feed/"/> | |
| <outline text="iDevBlogADay" htmlUrl="http://idevblogaday.com" type="rss" xmlUrl="http://feeds.feedburner.com/idevblogaday"/> |
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
| javascript: alert($('#_ctl3_uphone_uphwl').css('color')) |
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
| + (id)alloc { | |
| static dispatch_once_t onceToken; | |
| static SettingsViewController *singleton = nil; | |
| dispatch_once(&onceToken, ^{ | |
| singleton = [super alloc]; | |
| }); | |
| return singleton; | |
| } | |
| - (id)init { |
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
| /** | |
| * Macros for metaprogramming | |
| * ExtendedC | |
| * | |
| * Copyright (C) 2012 Justin Spahr-Summers | |
| * Released under the MIT license | |
| */ | |
| #ifndef EXTC_METAMACROS_H | |
| #define EXTC_METAMACROS_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
| [ | |
| { | |
| "name": "class_addIvar", | |
| "abstract": "Adds a new instance variable to a class. ", | |
| "abstract_xml": "<p class=\"abstract\">Adds a new instance variable to a class. </p>\n", | |
| "declaration": "\nBOOL class_addIvar(Class cls, const char *name, size_t size, uint8_t alignment, const char *types)\n", | |
| "declaration_xml": "<pre class=\"declaration\">\nBOOL class_addIvar(Class cls, const char *name, size_t size, uint8_t alignment, const char *types)\n</pre>\n", | |
| "return_value": "Return ValueYES if the instance variable was added successfully, otherwise NO (for example, the class already contains an instance variable with that name).", | |
| "return_value_xml": "<div class=\"return_value\">\n<h5 class=\"tight\">Return Value</h5>\n<p><code>YES</code> if the instance variable was added successfully, otherwise <code>NO</code> (for example, the class already contains an instance variable with that name).</p>\n</div>", | |
| "api_discussion": "DiscussionThis function may only be called after objc_allocat |