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
var configuration = Realm.Configuration.defaultConfiguration | |
let encryptionKey = NSMutableData(length: 64)! | |
SecRandomCopyBytes(kSecRandomDefault, encryptionKey.length, UnsafeMutablePointer<UInt8>(encryptionKey.mutableBytes)) | |
configuration.encryptionKey = encryptionKey | |
let filename = "private.realm" | |
let fileURL = configuration.fileURL?.URLByAppendingPathComponent(filename) | |
configuration.fileURL = fileURL |
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
// UIView+KHMNibLoading.h | |
@interface UIView (KHMNibLoading) | |
+ (instancetype)viewFromNib; | |
@end | |
// UIView+KHMNibLoading.m | |
+ (instancetype)viewFromNib { | |
NSString *className = NSStringFromClass([self class]); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>StandardOutPath</key> | |
<string>/var/log/jenkins/jenkins.log</string> | |
<key>StandardErrorPath</key> | |
<string>/var/log/jenkins/jenkins.log</string> | |
<key>EnvironmentVariables</key> | |
<dict> |
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
#!/bin/bash | |
# Script to compile and run unit tests from the command line | |
# The scheme and target name of the main app | |
MAIN_APP_TARGET="$1" | |
# The scheme and target name of the unit tests | |
UNIT_TEST_TARGET="$2" | |
# The path to libXcodeTest.a, if not in current directory |
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
#!/bin/bash | |
# run prior to building with XcodeTest to install WaxSim. | |
# clone and install waxsim | |
git clone https://github.com/jonathanpenn/WaxSim.git | |
cd WaxSim | |
xcodebuild install DSTROOT=/ INSTALL_PATH=/usr/local/bin |
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
# .gitignore file to use with Unity3d projects on a mac | |
# annoying, autogenerated, hidden file used by Finder | |
.DS_Store | |
# Enable Meta Files in in Unity -> Edit -> Project Settings -> Editor | |
# or you will mess up your prefabs, models and materials when | |
# ignoring Library/ | |
Library/ |