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 | |
| // This is for dmoe, you can use a generice type to limit your observer to an UIViewController for common usage. | |
| protocol Notifiable { | |
| var name: Notification.Name { get } | |
| func observe(by observer: Any, withSelector selector: Selector, object: Any?) | |
| func post(object: Any? ,userInfo: [AnyHashable: Any]?) | |
| static func remove(observer: Any) |
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
| radioRoundTrip : RoundTrip | |
| radioOneWay : OneWay | |
| promoCode : | |
| selOriginPicker : 台北 (TPE) | |
| selOrigin : TPE | |
| selDestPicker : 東京(成田及羽田機場) | |
| selDest : XX1 | |
| dateDepart : 18 Oct 2016 | |
| dateReturn : 22 Oct 2016 | |
| TT_TripKind : return |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <flights> | |
| <flight> | |
| <flight_id>{6A49933F-7FD3-44F1-9278-78E0509B41C0}</flight_id> | |
| <airline_rcd>MM</airline_rcd> | |
| <flight_number>1028</flight_number> | |
| <origin_rcd>TPE</origin_rcd> | |
| <destination_rcd>HND</destination_rcd> | |
| <fare_id>{35C514B6-FFBB-49FC-96F7-1B25FCDA26CA}</fare_id> | |
| <transit_airline_rcd /> |
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 |
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 | |
| // 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
| 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
| //: 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
| //: 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
| // | |
| // ViewController.swift | |
| // SwiftPicker | |
| // | |
| // Created by 默司 on 2016/8/8. | |
| // Copyright © 2016年 默司. All rights reserved. | |
| // | |
| import UIKit |