This is an variation of BEM/SUIT/RSCSS methodologies.
You will not always need utility classes, but if you want to use then, do in this way.
Syntax: u-<utilityName>
.u-utilityName {}| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Runtime data # |
| var slackTeam = "YOUR_SLACK_TEAM_NAME "; | |
| var token = 'YOUR_ADMIN_TEST_TOKEN'; | |
| // A test token will suffice. | |
| // You can generate one at https://api.slack.com/docs/oauth-test-tokens | |
| // Just make sure that the user issuing the test token is an admin. | |
| var url = 'https://'+ slackTeam + '.slack.com/api/users.admin.invite'; | |
| fetch(url, { | |
| method: 'POST', | |
| headers: {'Content-Type': 'application/x-www-form-urlencoded'}, |
| version: '2' | |
| services: | |
| # Web server - For live reload and development | |
| # This environment can be used to run npm and node | |
| # commands as well | |
| dev: | |
| image: ambientum/node:6 | |
| command: node build/dev-server.js | |
| volumes: |
| ## | |
| # Creates an alias called "git hist" that outputs a nicely formatted git log. | |
| # Usage is just like "git log" | |
| # Examples: | |
| # git hist | |
| # git hist -5 | |
| # git hist <branch_name> | |
| # git hist <tag_name> -10 | |
| ## | |
| git config --global alias.hist "log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --graph --date=short" |
| # lazyload nvm | |
| # all props goes to http://broken-by.me/lazy-load-nvm/ | |
| # grabbed from reddit @ https://www.reddit.com/r/node/comments/4tg5jg/lazy_load_nvm_for_faster_shell_start/ | |
| lazynvm() { | |
| unset -f nvm node npm | |
| export NVM_DIR=~/.nvm | |
| [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
| } |