- Clear feature ownership
- Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
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
| URL="https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash" | |
| PROFILE="$HOME/.profile" | |
| echo "Downloading git-completion..." | |
| if ! curl "$URL" --silent --output "$HOME/.git-completion.bash"; then | |
| echo "ERROR: Couldn't download completion script. Make sure you have a working internet connection." && exit 1 | |
| fi |
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
| def send_text_message(phone_number, message) do | |
| ExTwilio.Api.create(ExTwilio.Message, | |
| [to: phone_number, | |
| from: Application.get_env(:ex_twilio, :send_number), | |
| body: message]) | |
| end |
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
| " Ignore some folders and files for CtrlP indexing | |
| let g:ctrlp_custom_ignore = { | |
| \ 'dir': '\.git$\|\.yardoc\|node_modules\|log\|tmp$', | |
| \ 'file': '\.so$\|\.dat$|\.DS_Store$' | |
| \ } |
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
| FROM ruby:2.4-alpine3.7 | |
| # Install dependencies: | |
| # - build-base: To ensure certain gems can be compiled | |
| # - nodejs: Compile assets | |
| # - postgresql-dev postgresql-client: Communicate with postgres through the postgres gem | |
| # - libxslt-dev libxml2-dev: Nokogiri native dependencies | |
| # - imagemagick: for image processing | |
| RUN apk --update add build-base nodejs tzdata postgresql-dev postgresql-client libxslt-dev libxml2-dev imagemagick |
Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.
To learn more about migrations, check out this article on the different types of database migrations!