This file contains 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
// MONGO COMMAND LINE | |
// start mongod | |
ulimit -n 2048 && mongod | |
// ctrl-c ends in same window, but can also use | |
killall mongod | |
// start mongod with data directory in another location | |
mongod -dbpath /path/to/data/dir | |
// open command line interface (mongo shell) | |
mongo | |
// restore a DB dump from a binary (BSON) dump file |
This file contains 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
"""Get useful information from live Python objects. | |
This module encapsulates the interface provided by the internal special | |
attributes (co_*, im_*, tb_*, etc.) in a friendlier fashion. | |
It also provides some help for examining source code and class layout. | |
Here are some of the useful functions provided by this module: | |
ismodule(), isclass(), ismethod(), isfunction(), isgeneratorfunction(), | |
isgenerator(), istraceback(), isframe(), iscode(), isbuiltin(), |
This file contains 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
# chmod +x karhoo_setup.sh | |
#!/bin/bash | |
#NODE_VERSION=0.4.7 | |
#NPM_VERSION=1.0.94 | |
# Examples | |
# https://github.com/donnemartin/dev-setup/blob/master/brew.sh | |
# https://gist.github.com/phatblat/1713458#file-heroku-node-init-sh | |
# https://gist.github.com/zenorocha/7159780 |
This file contains 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 XCTest | |
import Foundation | |
var testCases: [AnyClass] = [] | |
class computedTests: XCTestCase { | |
let formula = 2 * M_PI | |
func testComputedGet() { | |
var radius: Double = 1 |
This file contains 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
// | |
// AsyncTests.swift | |
// | |
import XCTest | |
// MARK: Async Helper Extension | |
extension XCTestCase { | |
This file contains 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
fastlane_version "1.49.0" | |
default_platform :ios | |
###################### | |
slack_webhook = 'https://...' #See Slack Incoming Webhook | |
slack_default_channel = '#channel' | |
default_production_scheme = 'YOUR-PRODUCTION-SCHEME' | |
certificates_output_path = './certificates' | |
profiles_output_path = './profiles' |
This file contains 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 Foundation | |
import SnapKit | |
class SnapkitExampleContainer:SnapKitHelperView{ | |
// TODO - remove xcode constraints and | |
private lazy var supplierImageContainer: UIView = self.viewByTag(500) | |
private lazy var statusLabel: UILabel = self.labelByTag(501) | |
private lazy var detailsViewSnapkitContainer: UIView = self.viewByTag(502) |
This file contains 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 Foundation | |
import SnapKit | |
let screenWidth = UIScreen.mainScreen().bounds.width | |
class SnapKitHelperView:UIView{ | |
var debugConstraints = false | |
This file contains 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
gem install snapshot; snapshot reset_simulators | |
killall Xcode | |
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService | |
rm -rf ~/Library/Developer/CoreSimulator/Devices | |
open /Applications/Xcode.app |
This file contains 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
// | |
// HARFile.swift | |
// HarReader | |
// | |
// Created by John Pope on 8/26/16. | |
// Copyright © 2016 John Pope. All rights reserved. | |
// | |
import Foundation | |
import Decodable |