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
/** | |
* Copyright (c) 2015-present, Facebook, Inc. | |
* All rights reserved. | |
* | |
* This source code is licensed under the BSD-style license found in the | |
* LICENSE file in the root directory of this source tree. An additional grant | |
* of patent rights can be found in the PATENTS file in the same directory. | |
*/ | |
#import "AppDelegate.h" |
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
// | |
// ShadowViewB.swift | |
// SwiftShadow | |
// | |
// Created by 默司 on 2016/8/4. | |
// Copyright © 2016年 默司. 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
// | |
// ViewController.swift | |
// SwiftPicker | |
// | |
// Created by 默司 on 2016/8/8. | |
// Copyright © 2016年 默司. 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
// | |
// ViewController.swift | |
// SwiftPicker | |
// | |
// Created by 默司 on 2016/8/8. | |
// Copyright © 2016年 默司. 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
//: Playground - noun: a place where people can play | |
import UIKit | |
var closure: ((a: Int, b: Int) -> Int)! | |
//基本型 | |
closure = {(a: Int, b: Int) -> Int in | |
return a + b | |
} |
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 | |
func hello(people: String...) { | |
for person in people { | |
let str = "Hello \(person)" | |
print(str) | |
} | |
} |
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
var express = require('express'); | |
var router = express.Router(); | |
var Promise = require('bluebird'); | |
var moment = require('moment'); | |
var _ = require('lodash'); | |
var mongoose = require('mongoose'), | |
Verification = mongoose.model('Verification'), | |
Account = mongoose.model('Account'); | |
var appKey = 'APPLICATION_KEY'; |
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 | |
// NewMapKit | |
// | |
// Created by 默司 on 2016/9/20. | |
// Copyright © 2016年 默司. All rights reserved. | |
// | |
import UIKit | |
import MapKit |
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 Firebase | |
class StoreTableViewController: UITableViewController { | |
let flavorSet = NSUserDefaults.standardUserDefaults() | |
let conditionRef = FIRDatabase.database().reference() | |
var stores = [Stores]() |
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 | |
// Promise | |
// | |
// Created by 默司 on 2016/10/12. | |
// Copyright © 2016年 默司. All rights reserved. | |
// | |
import UIKit | |
import PromiseKit |