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
| #!/bin/bash | |
| PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') | |
| NEW_PACKAGE_VERSION="${PACKAGE_VERSION//./_}" | |
| BRANCH_NAME="release_${NEW_PACKAGE_VERSION}" | |
| if [ `git branch -ra | egrep "remotes/origin/${BRANCH_NAME}$"` ] | |
| then | |
| echo "Branch name $BRANCH_NAME already exists!" | |
| git checkout $BRANCH_NAME |
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
| #!/bin/bash | |
| PROJECT_DIR="ios/Invygo" | |
| INFOPLIST_FILE="Info.plist" | |
| INFOPLIST_DIR="${PROJECT_DIR}/${INFOPLIST_FILE}" | |
| PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') | |
| # Update plist with new values |
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
| APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}" | |
| # This script loops through the frameworks embedded in the application and | |
| # removes unused architectures. | |
| find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK | |
| do | |
| FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable) | |
| FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME" | |
| echo "Executable is $FRAMEWORK_EXECUTABLE_PATH" |
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
| ACTION = build | |
| AD_HOC_CODE_SIGNING_ALLOWED = NO | |
| ALTERNATE_GROUP = staff | |
| ALTERNATE_MODE = u+w,go-w,a+rX | |
| ALTERNATE_OWNER = grantdavis | |
| ALWAYS_SEARCH_USER_PATHS = NO | |
| ALWAYS_USE_SEPARATE_HEADERMAPS = YES | |
| APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer | |
| APPLE_INTERNAL_DIR = /AppleInternal | |
| APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation |
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
| import React from 'react' | |
| import { View, ScrollView, KeyboardAvoidingView, Platform, StyleSheet } from "react-native"; | |
| import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view"; | |
| import { getStatusBarHeight, getSafeBottomHeight } from "~/Utils"; | |
| const styles = StyleSheet.create({ | |
| safeContainer: { | |
| flex: 1, | |
| backgroundColor: Colors.background, | |
| paddingTop: getStatusBarHeight(true), |
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
| defmodule MyMacro do | |
| defmacro create_some_function_by_number(name, num, do: block) do | |
| params = | |
| for n <- 1..num do | |
| {"id#{n}", Macro.var(:"id#{n}", nil)} | |
| end | |
| # We can't call Macro.escape because it is for escaping values. | |
| # In this case, we have a mixture of values "id#{n}" and | |
| # expressions "Macro.var(...)", so we build the map AST by hand. |
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
| /* OCR Helper */ | |
| import { | |
| NativeEventEmitter, | |
| Platform | |
| } from 'react-native' | |
| import RNFetchBlob from 'rn-fetch-blob' | |
| import Regula from '@regulaforensics/react-native-document-reader-api' | |
| const EventManager = new NativeEventEmitter(Regula.RNRegulaDocumentReader) | |
| const DocumentReader = Regula.DocumentReader |
- Remove temp folder of Android sdk
rm -rf /Users/hauvo/Library/Android/sdk/.temp
- Clear Derived Data of Xcode
rm -rf /Users/hauvo/Library/Developer/Xcode/DerivedData
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).