Let's say you want to host domains first.com and second.com.
Create folders for their files:
| enum SizeMatching { | |
| case Width, Height, Both, None | |
| } | |
| class IKScrollView: UIScrollView { | |
| //MARK: - Outlets | |
| @IBOutlet private var contentView: UIView? | |
| //MARK: - Properties | |
| @IBInspectable var sizeMatching = SizeMatching.Width |
| //`UITableViewCell` and `UICollectionViewCell` are `Reusable` by defaut | |
| //Use the extension method to dequeue an instance of the appropriate `Reusable` | |
| class MyVC: UITableViewDataSource { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| tableView | |
| .registerReusable(FooCell.self) | |
| .registerReusable(BarCell.self) | |
| } |
| #!/bin/sh | |
| # Create a RAM disk with same perms as mountpoint | |
| # Script based on http://itux.idev.pro/2012/04/iservice-speed-up-your-xcode-%D0%BD%D0%B5%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D1%81%D0%BF%D0%BE%D1%81%D0%BE%D0%B1%D1%8B/ with some additions | |
| # Usage: sudo ./xcode_ramdisk.sh start | |
| USERNAME=$(logname) | |
| TMP_DIR="/private/tmp" | |
| RUN_DIR="/var/run" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| Titanium.App.addEventListener("playvideo", function (e) { | |
| var win11 = Titanium.UI.createWindow({ | |
| orientationModes: [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT], | |
| title: "Video", | |
| zIndex: 222222 | |
| }); | |
| var activeMovie = Titanium.Media.createVideoPlayer({ | |
| fullscreen: !0, | |
| autoplay: !0, |
| # 中西文切換鍵的默認設置寫在 default.yaml 裏面 | |
| # 以下的 default.custom.yaml 在全局範圍重定義該組快速鍵 | |
| # | |
| # 可用的按鍵有 Caps_Lock, Shift_L, Shift_R, Control_L, control_R | |
| # Mac 系統上的鼠鬚管不能區分左、右,因此只有對 Shift_L, Control_L 的設定起作用 | |
| # | |
| # 已輸入編碼時按切換鍵,可以進一步設定輸入法中西文切換的形式。 | |
| # 可選的臨時切換策略有三: | |
| # inline_ascii 在輸入法的臨時西文編輯區內輸入字母、數字、符號、空格等,回車上屏後自動復位到中文 | |
| # commit_text 已輸入的候選文字上屏並切換至西文輸入模式 |
| #include "KDTree.h" | |
| #include <iostream> | |
| #include <math.h> | |
| using namespace std; | |
| node *KDTree = 0; | |
| // Print the KD Tree | |
| void printTree(node *Tree) | |
| { |