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 Cocoa | |
var str = "Hello, playground" | |
typealias LinearEquation = Double -> Double | |
func getLinearEquation(inp: (min: Double, max: Double), | |
out: (min: Double, max: Double)) -> LinearEquation { | |
let m = (out.max - out.min) / (inp.max - inp.min) |
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
#!/bin/bash | |
HEAD_HASH=$(git rev-parse HEAD) | |
TAGS=$(git tag) | |
RESULT_FILE_NAME="" | |
for tag in $TAGS | |
do | |
TAG_COMMIT_HASH=$(git rev-list -n 1 $tag) |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
var str = "Hello, playground" | |
struct Token { | |
var value: String |
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
// | |
// LocationManager.swift | |
// ths | |
// | |
// Created by Arash K. on 22/02/15. | |
// Copyright (c) 2015 Arash K. All rights reserved. | |
// | |
import Foundation | |
import CoreLocation |
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
extension UIView { | |
func anchorEdges(toSuperView: UIView) { | |
self.topAnchor.constraintEqualToAnchor(toSuperView.topAnchor).active = true | |
self.bottomAnchor.constraintEqualToAnchor(toSuperView.bottomAnchor).active = true | |
self.leftAnchor.constraintEqualToAnchor(toSuperView.leftAnchor).active = true | |
self.rightAnchor.constraintEqualToAnchor(toSuperView.rightAnchor).active = true | |
} | |
} |
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
// | |
// ScrollableStackedViewController.swift | |
// StackView | |
// | |
// Created by Arash Kashi on 10/7/16. | |
// Copyright © 2016 Arash Kashi. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
// | |
// MyView.swift | |
// TestPopover | |
// | |
// Created by Arash Kashi on 1/2/17. | |
// Copyright © 2017 Arash Kashi. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
// | |
// DesignableView.swift | |
// Views | |
// | |
// Created by Arash Kashi on 2017-12-05. | |
// Copyright © 2017 Arash Kashi. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
// | |
// LocationManager.swift | |
// Kirina | |
// | |
// Created by Arash K. on 22/02/15. | |
// Copyright (c) 2015 Arash K. All rights reserved. | |
// | |
import Foundation | |
import CoreLocation |
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
// | |
// CollectionViewDataSource.swift | |
// Khan Academy | |
// | |
// Created by Andy Matuschak on 10/14/14. | |
// Copyright (c) 2014 Khan Academy. All rights reserved. | |
// | |
import UIKit |
OlderNewer