Skip to content

Instantly share code, notes, and snippets.

View gliyao's full-sized avatar
:octocat:
hungry

Liyao Chen gliyao

:octocat:
hungry
View GitHub Profile
var map = [[Int]]()
var path = [[Int]]()
var level = 3
var stack = [Int]()
func nextSetp(currentStep: Int, currentIndex: Int) {
let value = map[currentStep][currentIndex]
@gliyao
gliyao / animationWtihConstrains
Last active August 29, 2015 14:08
Push animation block in Array. Use recursive method (nextAnimation) to pop each animation block.
//
// LaunchController.swift
// Combo
//
// Created by Liyao on 2014/10/27.
// Copyright (c) 2014年 swiftTaipei. All rights reserved.
//
import UIKit
import AVFoundation
//
// ViewController.swift
// constrainAnimation
//
// Created by Liyao on 2014/10/30.
// Copyright (c) 2014年 swiftTaipei. All rights reserved.
//
import UIKit
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Setup Data
String[] values = new String[] { "Android", "iPhone", "WindowsMobile",
"Blackberry", "WebOS", "Ubuntu", "Windows7", "Max OS X",
"Linux", "OS/2", "Ubuntu", "Windows7", "Max OS X", "Linux",