- Students are simultaneously expected to:
- listen to teacher talk
- read code
- copy down code
- make suggestions
- (maybe poorly defined expectations????)
This file contains 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
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" |
This file contains 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
var pics = document.getElementsByTagName('img'); | |
for (var i=0; i<pics.length; i++){ | |
pics[i].src = 'http://andrewmadden.com/face.png'; | |
} | |
function messin(){ |
This file contains 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
git config --global alias.lg 'log --oneline --decorate --graph' | |
git config --global alias.s 'status -s' |
This file contains 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
// 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> |
This file contains 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
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' |
This file contains 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
echo "export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin" >> ~/.bash_profile |
This file contains 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
# awesome print | |
begin | |
require "awesome_print" | |
AwesomePrint.pry! | |
rescue LoadError => e | |
puts "ap gem not found." | |
if ( ENV['RAILS_ENV'] || defined? Rails ) | |
puts "Try adding awesome_print to your Gemfile" | |
else | |
puts "Try typing 'gem install awesome_print' to get super-fancy output." |
NewerOlder