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
| Verifying that "barbosa.id" is my Blockstack ID. https://onename.com/barbosa |
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
| import UIKit | |
| protocol ReusableView: class { | |
| static var defaultReuseIdentifier: String { get } | |
| } | |
| protocol NibLoadableView: class { | |
| static var nibName: String { get } | |
| } |
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
| import UIKit | |
| final class MyViewController: UIViewController { | |
| func loadView() { | |
| view = MyView.fromNib() | |
| } | |
| } | |
| final class MyView: UIView, NibLoadableView { |
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
| protocol Resource { | |
| associatedtype ResourceFinderType | |
| static var localObjects: ResourceFinderType { get } | |
| } | |
| extension Resource { | |
| static var localObjects: ResourceFinder<Self> { | |
| return ResourceFinder() | |
| } | |
| } |
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
| # source: http://www.raywenderlich.com/downloads/jenkins_shell_steps.txt | |
| ##################### | |
| # JENKINS step #1 | |
| # add to it's own execute shell section | |
| ##################### | |
| export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer | |
| xcodebuild -target GuildBrowserLogicTests \ |
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 = 'JSONKit' | |
| s.version = '1.6' | |
| s.summary = 'A Very High Performance Objective-C JSON Library.' | |
| s.homepage = 'https://github.com/johnezang/JSONKit' | |
| s.author = 'John Engelhart' | |
| s.source = { :git => 'https://github.com/creativemess/JSONKit.git' } | |
| s.source_files = 'JSONKit.*' | |
| end |
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
| #ifndef IOSVersionMacros_h | |
| #define IOSVersionMacros_h | |
| #define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) | |
| #define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) | |
| #define IS_IPHONE_5 (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 568.0f) | |
| #define IS_IPHONE_4 (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 480.0f) | |
| #define IS_RETINA ([[UIScreen mainScreen] scale] == 2.0f) | |
| #define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame) |
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
| source ~/.git-prompt.sh | |
| # aliases | |
| # ------------------------------ | |
| alias ls='ls -G' | |
| alias ll='ls -al' | |
| # colors | |
| # ------------------------------ | |
| ################## |
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
| var Robot = function(robot){ | |
| robot.turnLeft(robot.angle % 90); | |
| //robot.turnGunRight(90); | |
| robot.clone(); | |
| this.direction = 1; | |
| }; | |
| Robot.prototype.onIdle = function(ev) { | |
| var robot = ev.robot; | |
| robot.ahead(1); | |
| if (robot.parentId) { |
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
| virtualenv --no-site-packages . | |
| source bin/activate | |
| bin/pip install Django psycopg2 django-sentry | |
| bin/pip freeze > requirements.txt | |
| bin/django-admin.py startproject mysite | |
| cat >.gitignore <<EOF | |
| bin/ | |
| include/ | |
| lib/ | |
| EOF |