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
use std::{f32}; | |
use std::collections::HashSet; | |
use std::fmt::{Debug, Display}; | |
use std::fs::File; | |
use std::io::{BufRead, BufReader}; | |
use lazy_static::lazy_static; | |
use regex::Regex; | |
mod test; |
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
git ls-files --ignored --exclude-standard -z | xargs -0 git rm --cached | |
git commit -am "Remove ignored files" |
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
let methodStart = Date() | |
// do some stuff | |
let methodFinish = Date() | |
let executionTime = methodFinish.timeIntervalSince(methodStart) | |
print("Execution time: \(executionTime)") |
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
/** | |
Just add Coccoa Lumberjack and NSLogger to your podfile: | |
pod 'CocoaLumberjack/Swift', '~> 3.1.0' | |
pod 'NSLogger', '~> 1.8.1' | |
And add the sink to your CoccoaLumberjack logging chain: | |
let xcdLumberjackNSLogger = LumberjackNSLogger(bonjourServiceName: serviceName) | |
DDLog.add(xcdLumberjackNSLogger) |
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
// The trick is to link the DeviceSupport folder from the beta to the stable version. | |
// Updated on Jan 24th, 2017 for Xcode 8.3b1 | |
ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.3\ \(14E5230d\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport | |
// Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions | |
// sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :) |
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
# Remove all version of cocopods and all sub modules | |
gem list --local --no-version | grep cocoapods | xargs sudo gem uninstall -aIx |