It gives the commit before develop
and release/
start to differentiate.
This file contains 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
import UIKit | |
import SnapKit | |
class SomeViewController: UIViewController { | |
var addButton = UIButton() | |
var helloWorldLabel = UILabel() | |
override func viewDidLoad() { | |
let superView = view | |
let views = [ |
This file contains 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
// Try this in 32bit and 64bit iOS Simulator. | |
// In 32bit one, both tests pass. | |
// In 64bit one, - (void)testStubWorksForYES fails. | |
// Test support | |
#import <XCTest/XCTest.h> | |
#define MOCKITO_SHORTHAND | |
#import <OCMockito/OCMockito.h> |
This file contains 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
" To test this file in isolation, | |
" put it in a folder other then ~/, | |
" then run 'vim -u vundle-with-bootstrap.vim'. | |
set nocompatible | |
filetype off | |
" modified bootstrap, originally by John Whitley | |
" https://github.com/jwhitley/vimrc/blob/master/.vim/bootstrap/bundles.vim | |
This file contains 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
var arr = [ "one", "two", "three", "four", "five" ]; | |
jQuery.each(arr, function(index, value) { | |
console.log(this); | |
return (this != "three"); // will stop running after "three" | |
}); |
This file contains 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
$("<input/>", { | |
id: "permissionsInput", | |
name: "permissions", | |
type: "checkbox", | |
click: function(){ | |
update(); | |
}, | |
checked: "checked" | |
}).appendTo("#myForm"); |
This file contains 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
import Argo | |
let json = [ | |
"urlString": "http://www.example.com", | |
"timestamp": 1433132865, | |
"date": "20150525", | |
"intString": "12345", | |
] | |
struct ExampleModel { |
This file contains 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
protocol Named: class { | |
var name: String { get set } | |
} | |
class Person: Named { | |
var name: String | |
init(name: String) { | |
self.name = name | |
} |
This file contains 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
import XCTest | |
import Argo | |
import Runes | |
class SuperClass { | |
let something: String | |
init(something: String) { | |
self.something = something | |
} |
g
= git
- Easier to tell what's changed in one line, preferbally in 50 - 72 characters
- Faster code review: no need to read the description or changes to find out what gets changed
- Git commit 50/72 A Note About Git Commit Messages by Tim Pope
- Easier to revert unwanted, published and shared changes by
git revert
OlderNewer