$: npx create-react-app my-project --use-npm
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
brew install rbenv ruby-build | |
# Add rbenv to bash so that it loads every time you open a terminal | |
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile | |
source ~/.bash_profile | |
rbenv install 2.4.6 | |
rbenv global 2.4.6 | |
ruby -v |
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
In terminal | |
ssh-agent | |
ssh-add -K ~/.ssh/[your-private-key] | |
in ~/.ssh/config | |
Add UseKeychain yes before host | |
Reboot and 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
patbenatar.advanced-new-file | |
formulahendry.auto-close-tag | |
formulahendry.auto-rename-tag | |
fosshaas.fontsize-shortcuts | |
BriteSnow.vscode-toggle-quotes | |
Zignd.html-css-class-completion | |
christian-kohler.npm-intellisense | |
christian-kohler.path-intellisense | |
octref.vetur | |
dbaeumer.vscode-eslint |
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
# Install libxml2 using Homebrew | |
# If you don't have Homebrew, follow the instructions at: | |
# https://github.com/mxcl/homebrew/wiki/Installation | |
# ------------------------------------------------------- | |
brew install libxml2 | |
# Install libxslt from source code | |
# If you don't have wget, follow the instructions at: | |
# http://www.mactricksandtips.com/2008/07/installing-wget-on-your-mac-for-terminal.html | |
# Or use Homebrew: |
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
# controller | |
def new | |
@account = Account.new | |
@account.build_user # build a blank user or the child form won't display | |
@account.build_company # build a blank company or the child form won't display | |
end | |
# model | |
belongs_to :user, :foreign_key => "account_holder_id" | |
belongs_to :company, :foreign_key => "primary_company_id" |