$ sass --watch sass:css
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
struct Pin { | |
var id: Int | |
var height: Int | |
} | |
func layout(_ pins: [Pin], col: Int) -> [[Pin]] { | |
func calcHeight() -> Int { | |
var sum = Int.max | |
var indexMax = 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
exports.config = { | |
capabilities: { | |
'browserName': 'chrome', | |
'chromeOptions': { | |
'args': ['--load-extension=/Users/ashive/Developer/extension'] | |
} | |
}, | |
seleniumAddress: 'http://localhost:4444/wd/hub', | |
specs: ['chrome.js'] | |
}; |
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
// Works with tabs | |
class ViewController: UIViewController { | |
var overlay = MRProgressOverlayView() | |
var isAnimated = true | |
override func viewDidAppear(animated: Bool) { | |
loadProgressView() |
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
// | |
// ViewController.swift | |
// FacebookPOPAnimationTest | |
// | |
// Created by Alex Shive on 10/29/14. | |
// Copyright (c) 2014 Alex. All rights reserved. | |
// | |
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
/* | |
// TYPES OF ANIMATIONS | |
'LINEAR' | |
'QUAD_IN' | |
'QUAD_OUT' | |
'QUAD_IN_OUT' | |
'CUBIC_IN' | |
'CUBIC_OUT' | |
'CUBIC_IN_OUT' | |
'QUART_IN' |
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
compass create --sass-dir "scss" --css-dir "css" --javascripts-dir "js" --images-dir "img"; mv scss/screen.scss scss/style.scss; rm scss/ie.scss; rm scss/print.scss; rm css/*; compass watch |
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
function log(message, parseJSON) { | |
if(parseJSON) { | |
message = JSON.stringify(message); | |
} | |
Ti.API.log(message); | |
} |
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
// Works on 3.2.0GA | |
var win = Ti.UI.createWindow({ | |
backgroundColor : '#ffffff', | |
exitOnClose : true // this makes it a HEAVYWEIGHT window | |
}); | |
var myView = Ti.UI.createView(); | |
var curBtn = Ti.UI.createButton({ | |
color : '#000000', |
NewerOlder