typeof(self) __weak weakSelf = self;
[[[EDFlux sharedInstance] budgetStore] addChangeObserverWithBlock:^(NSNotification* note) {
[weakSelf doSomething];
}];
/* make the filters a bit more compact */ | |
.ghx-controls-filters dt { | |
margin: 0; | |
} | |
.ghx-controls-filters dd { | |
margin: 0; | |
font-size: 12px; | |
} |
@implementation MyObjcClass | |
. . . | |
if(mySwiftClassInstance.hasFeatureBridged == nil) { | |
// handle nil case | |
} | |
else if(mySwiftClassInstance.hasFeatureBridged boolValue] == YES) { | |
// handle true case | |
} |
A sample of creating a custom drawable, both in xml and via code. |
To find all ancestor branches
./get_ancestor_branches.sh
To create the delete commands for all ancestor branches and echo them as text (not invoking them)
import XCTest | |
@testable import {AppTarget} | |
class TestCase: XCTestCase { | |
func testCode() { | |
let expectation = expectationWithDescription("test description") | |
var result: Bool? | |
// Setup the the test here |
gem install nokogiri -v '1.6.8' -- --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 |
import Foundation | |
func async(callback:(Void -> Void)) { | |
dispatch_async(dispatch_get_main_queue(), { () -> Void in | |
callback() | |
}) | |
} | |
func after(delay:Double, closure:Void->Void) { | |
dispatch_after( |
``` | |
UICTContentSizeCategoryXS | |
Caption 1 = {size: 11pts, weight:normal} | |
default = {size: 13pts, weight:normal} | |
Body = {size: 14pts, weight:normal} | |
Subhead = {size: 12pts, weight:normal} | |
Title 1 = {size: 25pts, weight:normal} |