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
| $.fn.mood = (function(){ | |
| var Mood = function(el, opts){ | |
| this.el = $(el); | |
| this.range = { bottom: opts.range[0]*1, top: opts.range[1]*1 }; | |
| this.init(); | |
| }; | |
| Mood.prototype = { | |
| init: function(){ | |
| this.initTime = this.checkTime(); // 1, 0, -1 |
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
| games = ["Super Mario Bros.", "Contra", "Metroid", "Mega Man 2"] | |
| puts "Games in your vast collection: #{games.count}" unless games.empty? | |
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
| <div class="bar btn btn-info" style="width: 20%;"></div> | |
| Will be: | |
| <div class="bar btn btn-info" style="width: <%= @job.AirToxicologyOne %>%;"></div> |
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
| ~cd almMngt | |
| #cd into the application directory | |
| ~ rails s | |
| #start server | |
| ~rake db:migrate | |
| #migrating the database | |
| #then wait to see the generated url for the application...as this is running locally on port 3000 |
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
| <script> | |
| $.getJSON('js/data_videos.json', function(data) { | |
| var output="<li>"; | |
| for (var i in data.videos) { | |
| output+="<video width='320' height='240' controls> <source src='+ data.videos[i].videoURLsDood'>" + "</video>"; | |
| } | |
| output+="</li>"; | |
| document.getElementById("Featured").innerHTML=output; | |
| }); |
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
| ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) |
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
| # Add Homebrews binary path to the front of the $PATH | |
| echo "export PATH=/usr/local/bin:$PATH" >> ~/.bash_profile | |
| source ~/.bash_profile |
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 doctor | |
| brew update |
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 | |
| echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
| source ~/.bash_profile |
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
| rbenv install 2.0.0-p0 | |
| rbenv rehash |