Run this command periodically to clean loose objects and compress stuff.
git gc --aggressive
List all local branches sorted by last commit date, oldest last
(assuming you are paying cash)
| /* 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 |