Weave makes networking docker containers easy.
Containers appear to all be on the same network even if they're not.
| import _ from 'lodash' | |
| import { Dimensions } from 'react-native' | |
| const { height } = Dimensions.get('window') | |
| const iphone6Height = 667 | |
| const fieldsToNormalize = [ | |
| 'fontSize', | |
| 'width', | |
| 'height', | |
| 'margin', |
| //in main app | |
| configureScene(route, navigator) { | |
| if (route.sceneConfig) { | |
| return route.sceneConfig; | |
| } | |
| return CustomNavigatorSceneConfigs.HorizontalJump; | |
| }, | |
| //customNavigatorSceneConfigs.js | |
| import React from 'react-native' |
| var hash = {a: 1, b: 2} | |
| {...hash} // => {a: 1, b: 2} <- this hash is like a '_.cloned hash' | |
| // All these hashes are 'cloned'. Nothing every gets mutated | |
| {c: 3, ...hash} // => {a: 1, b: 2, c: 3} | |
| {...hash, c: 3} // => {a: 1, b: 2, c: 3} | |
| {...hash, b: 3} // => {a: 1, b: 3} | |
| {b: 3, ...hash} // => {a: 1, b: 2} |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| ROOT_DIR=$DIR/.. | |
| PLIST_FILE="$ROOT_DIR/iOS/Info.plist" | |
| TMP_DIR="/tmp/apphub/$(uuidgen)/" | |
| BUNDLE_DIR_NAME="ios.bundle" | |
| BUNDLE_DIR="$TMP_DIR$BUNDLE_DIR_NAME" | |
| ZIP_NAME="build.zip" | |
| OUTPUT_ZIP="$TMP_DIR$ZIP_NAME" | |
| BUNDLE_NAME="main.jsbundle" |
| FIND_LEADS_DIR="find-leads" | |
| FIND_LEADS_FULL_PATH="/tmp/$FIND_LEADS_DIR" | |
| if [ ! -d "$FIND_LEADS_FULL_PATH" ]; then git clone [email protected]:z-dev/find-leads.git $FIND_LEADS_FULL_PATH ; fi | |
| cd $FIND_LEADS_FULL_PATH | |
| git checkout master | |
| git pull origin master | |
| npm run start |
| Brew | |
| https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion | |
| https://github.com/michaeldfallen/git-radar | |
| Sublime | |
| [SSH Keys](https://help.github.com/articles/generating-ssh-keys/) |
| brew install nvm #install the node version manager | |
| # Make sure it gets loaded every time a terminal starts | |
| echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.bash_profile | |
| # Break down! | |
| # echo means print out what follows | |
| # $(brew --prefix nvm) will get evaluated as if you typed it in to a command line. | |
| # >> ~.bash_profile means: add whatever the left hand side of >> evaluated to, to the end of the ~/.bash_profile file. | |
| # ~: means home directory. |
| daasdasd | |
| asdasdasd |
Weave makes networking docker containers easy.
Containers appear to all be on the same network even if they're not.
| 419f4d33b43bdbade29ea67ca913b5a6f0f03b2163e9ce4b4bca3a3fe0fe8876f9394c0b1dcfc44614a3f2a5135cf75c18c5e6b9a6b2b673ce7c65a98706c88cc0cb007aef005cf10159fdab9adb4d7ffd1ba232c7eaf284d943203f6300a4d6bb4565cc28f31ab3dd9e7f463522c276dea07b878a88e56bf1756504abc325cc |