This gist contains the source code in my video series about Realtime Database triggers. You can watch the three parts here:
index.ts contains the Cloud Functions code, and dialog.ts contains the script to run
| class Solution { | |
| func isPalindrome(_ x: Int) -> Bool { | |
| return self.reverseWay(x) | |
| } | |
| // Recommanded | |
| func reverseWay(_ x: Int) -> Bool { | |
| class Solution { | |
| func fib(_ N: Int) -> Int { | |
| return self.recursiveWay(N) | |
| } | |
| func recursiveWay(_ N: Int) -> Int { | |
| if N == 0 { return 0 } |
| import UIKit | |
| enum KeyboardDirection { | |
| case none | |
| case up | |
| case down | |
| } | |
| struct KeyboardFrameDelta { |
This gist contains the source code in my video series about Realtime Database triggers. You can watch the three parts here:
index.ts contains the Cloud Functions code, and dialog.ts contains the script to run
| import copy | |
| class Solution: | |
| def subsets(self, nums): | |
| """ | |
| :type nums: List[int] | |
| :rtype: List[List[int]] | |
| """ | |
| numsCount = dict() | |
| numsCount[nums[0]] = 1 |
| // | |
| // TableViewController.m | |
| // testProject | |
| // | |
| // Created by WZ on 03/10/2017. | |
| // Copyright © 2017 zeus. All rights reserved. | |
| // | |
| #import "DeviceInfoTableViewController.h" |
| #import "XXRootViewController.h" | |
| @implementation XXRootViewController { | |
| NSMutableArray *_objects; | |
| } | |
| - (void)loadView { | |
| [super loadView]; | |
| _objects = [[NSMutableArray alloc] init]; |
| #import "XXRootViewController.h" | |
| @implementation XXRootViewController { | |
| NSMutableArray *_objects; | |
| } | |
| - (void)loadView { | |
| [super loadView]; | |
| _objects = [[NSMutableArray alloc] init]; |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| import UIKit | |
| import Alamofire | |
| class OrderListTableViewController: UITableViewController { | |
| var orderNameList = ["jack", "ken", "howard"] | |
| var orderLandlordNameList = ["ord1", "ord2", "ord3"] | |
| var orderDurationList = ["1~2", "3~4", "5~6"] | |
| var orderStatusList = ["new", "old", "change"] | |
| var result = " " |