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
| apt-get update | |
| apt-get upgrade | |
| apt-get install gcc build-essential git-core mongodb | |
| git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
| echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
| . ~/.bash_profile | |
| git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
| rbenv install -l | |
| rbenv install 2.1.0 |
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 | |
| import Accounts | |
| import Social | |
| import SwifteriOS | |
| class AuthViewController: UIViewController { | |
| var swifter: Swifter | |
| // Default to using the iOS account framework for handling twitter auth |
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 | |
| import SwifteriOS | |
| class TweetsViewController: UITableViewController { | |
| var tweets : [JSONValue] = [] | |
| override func viewWillLayoutSubviews() | |
| { | |
| super.viewWillLayoutSubviews() |
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 SpriteKit | |
| class GameScene: SKScene, SKPhysicsContactDelegate | |
| { | |
| // Our main scene. Everything is added to this for the playable game | |
| var moving: SKNode! | |
| // Our running man! Defaults to a stand still position | |
| var hero: SKSpriteNode! = SKSpriteNode(imageNamed: "runningman1") | |
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 SpriteKit | |
| class GameScene: SKScene, SKPhysicsContactDelegate | |
| { | |
| // Our main scene. Everything is added to this for the playable game | |
| var moving: SKNode! | |
| // Our running man! Defaults to a stand still position | |
| let heroAtlas = SKTextureAtlas(named: "hero.atlas") | |
| var hero: SKSpriteNode! |
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
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "encoding/base64" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" |
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
| class DepositsController < BaseController | |
| include Manageable | |
| 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
| class SingletonClass | |
| { | |
| class var shared : SingletonClass | |
| { | |
| struct Static | |
| { | |
| static let instance : SingletonClass = SingletonClass() | |
| } | |
| return Static.instance |
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
| class CurrencyFactory | |
| { | |
| class func currencyForCountry(country:Country) -> Currency? | |
| { | |
| switch country | |
| { | |
| case .Spain, .France : | |
| return Euro() | |
| case .UnitedStates : |
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 PrintStrategy | |
| { | |
| func printString(string: String) -> String | |
| } |