Install HomeBrew first
brew update
brew tap caskroom/cask
brew install brew-cask
If you get the error "already installed", follow the instructions to unlink it, then install again:
#!/bin/sh | |
KARABINER_ELEMENTS_PATH="/Applications/Karabiner-Elements.app" | |
echo "Killing Karabiner & associated processes" | |
sudo pkill -f Karabiner -9 # Kills the main Karabiner UI | |
sudo pkill -f karabiner -9 # Kills the background processes | |
echo "Starting Karabiner-Elements... It may be up to a minute after opening Karabiner-Elements before your custom keys activate." | |
open $KARABINER_ELEMENTS_PATH # Open it back up! |
import FirebaseFirestore | |
private struct Property { | |
let label: String | |
let value: Any | |
} | |
struct FirestoreModelData { | |
let snapshot: DocumentSnapshot |
import RxSwift | |
extension UIButton { | |
public func throttledTapObservable(_ throttle : RxTimeInterval = 1.0) -> RxSwift.Observable<Swift.Void> { | |
return self.rx.tap.asObservable() | |
.throttle(throttle, latest: false, scheduler: MainScheduler.instance) | |
} | |
} |
To add a simulator | |
Choose Hardware > Device > Manage Devices. | |
Xcode opens the Devices window. | |
At the bottom of the left column, click the Add button (+). | |
In the dialog that appears, enter a name in the Simulator Name text field and choose the device from the Device Type pop-up menu. | |
//by default |
var webPage = require('webpage'); | |
var page = webPage.create(); | |
var fs = require('fs'); | |
var CookieJar = "cookiejar.json"; | |
var pageResponses = {}; | |
page.settings.userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36'; | |
page.settings.javascriptEnabled = true; | |
page.settings.loadImages = false; | |
phantom.cookiesEnabled = true; |
Install HomeBrew first
brew update
brew tap caskroom/cask
brew install brew-cask
If you get the error "already installed", follow the instructions to unlink it, then install again:
// | |
// DynamicTypeLabel.swift | |
// | |
// Created by Indragie on 10/16/14. | |
// Copyright (c) 2014 Indragie Karunaratne. All rights reserved. | |
// | |
import UIKit | |
class DynamicTypeLabel : UILabel { |
# the IP(s) on which your node server is running. I chose port 3000. | |
upstream app_geoforce { | |
server 127.0.0.1:3000; | |
} | |
upstream app_pcodes{ | |
server 127.0.0.1:3001; | |
} |