- Does stuff
- Brings back stuf
- This thing!!!
| mkdir views models controllers config public public/css public/js | |
| touch Gemfile config.ru Rakefile | |
| touch config/database.yml | |
| touch views/layout.erb views/index.erb | |
| touch public/css/styles.css | |
| touch public/js/scripts.js | |
| echo "source 'https://rubygems.org' | |
| gem 'sinatra' |
| // error: [ngRepeat:dupes] | |
| // Can't have repeat values in an array because angular uses the values to index | |
| // Consider: | |
| <li ng-repeat="thing in things.allOfThem track by $index"> | |
| {{thing}} | |
| </li> |
| git config --global alias.lg 'log --oneline --decorate --graph' | |
| git config --global alias.s 'status -s' |
| var pics = document.getElementsByTagName('img'); | |
| for (var i=0; i<pics.length; i++){ | |
| pics[i].src = 'http://andrewmadden.com/face.png'; | |
| } | |
| function messin(){ |
| function prepEsLinter() { | |
| if [ -f "package.json" ]; then | |
| echo "PackJSON alright there!!!" | |
| else | |
| echo "Creating a default package.json... might want to edit this!" | |
| npm init -f | |
| fi | |
| ( | |
| export PKG=eslint-config-airbnb; | |
| npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG" |