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
// for custom overwrites within an entity like changing an attribute from Boolean to NSNumber, etc | |
- (BOOL)createDestinationInstancesForSourceInstance:(NSManagedObject *)sInstance | |
entityMapping:(NSEntityMapping *)mapping | |
manager:(NSMigrationManager *)manager | |
error:(NSError **)error { | |
NSManagedObject *newObject = | |
[NSEntityDescription insertNewObjectForEntityForName:[mapping destinationEntityName] | |
inManagedObjectContext:[manager destinationContext]]; | |
// do transfer of nsdate to nsstring non-lightweight operations here |
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
###################### | |
# Options | |
###################### | |
set -x | |
set -e | |
REVEAL_ARCHIVE_IN_FINDER=false | |
FRAMEWORK_NAME="${PROJECT_NAME}" |
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
extension Int { | |
var arc4random: Int { | |
if self > 0 { | |
return Int(arc4random_uniform(UInt32(self))) | |
} else if self < 0 { | |
return -Int(arc4random_uniform(UInt32(abs(self)))) | |
} else { | |
return 0 | |
} | |
} |
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
platform :ios, '9.0' | |
workspace '../WebEngageAll' | |
source 'https://github.com/WebEngage/podspecs.git' | |
# source 'https://github.com/CocoaPods/Specs.git' | |
def app_pods | |
pod 'WebEngage' #:path => '../Built' |
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
FILE=$1 | |
ANOTHER_FILE=$2 | |
exec 4> "$ANOTHER_FILE" | |
while read -ru 3 LINE; do | |
line="$LINE" | |
linearray=($line) | |
echo ${linearray[2]} | |
xcrun c++filt "${linearray[2]}" >&4 |
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
alias clean='rm -rf ~/Library/Developer/Xcode/DerivedData/' | |
alias fast='bundle exec fastlane' | |
alias cl='curl -L' | |
alias ll='ls -l' | |
alias ..='cd ..' | |
alias please='sudo' | |
alias now='date +"%T"' | |
alias welcome='sh -x ~/welcome.sh' | |
status --is-interactive; and source (rbenv init -|psub) | |
source ~/.bash_profile |
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
VS Code Settings | |
Run > | |
`code --list-extensions | xargs -L 1 echo code --install-extension` | |
Output > | |
code --install-extension 343max.android-emulator-launcher | |
code --install-extension adelphes.android-dev-ext | |
code --install-extension alexisvt.flutter-snippets |
OlderNewer