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
defmodule KV.Mixfile do | |
use Mix.Project | |
def project do | |
[app: :kv, | |
version: "0.1.0", | |
elixir: "~> 1.3", | |
build_embedded: Mix.env == :prod, | |
start_permanent: Mix.env == :prod, | |
aliases: aliases, |
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 | |
/////////////// | |
// View Cell // | |
/////////////// | |
protocol SwitchWithTextCellDataSource { | |
var title: String { get } | |
var switchOn: Bool { 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 | |
struct Article { | |
var title: String | |
var body: String | |
var date: NSDate | |
var saved: Bool | |
var thumbnail: NSURL | |
} |
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
// Follow the horizon | |
import UIKit | |
import XCPlayground | |
import SpriteKit | |
let containerView = UIView(frame: CGRect(x: 0.0, y: 0.0, width: 375.0, height: 300.0)) | |
let view = SKView(frame: CGRectMake(0, 0, 375, 120)) | |
XCPlaygroundPage.currentPage.liveView = view |
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
// Code from: | |
// https://possiblemobile.com/2015/03/prototyping-uiview-animations-swift-playground/ | |
// & | |
// http://mathewsanders.com/animations-in-swift-part-two/ | |
import UIKit | |
import XCPlayground | |
let startingColor = UIColor(red: (253.0/255.0), green: (159.0/255.0), blue: (47.0/255.0), alpha: 1.0) | |
let endingColor = UIColor(red: (255.0/255.0), green: (61.0/255.0), blue: (24.0/255.0), alpha: 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
{ _id: '546bdb97875dcfc44b51617b', | |
time: 1416354711741, | |
latitude: 47.61, | |
longitude: -122.33, | |
color: 'blue', | |
title: 'Hey you, with the fancy shoes', | |
body: 'Nice shoes!!', | |
username_id: 'fred5459', | |
__v: 0, | |
comments: |