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
position: relative; | |
white-space: pre; | |
padding: 10px; | |
float: right; | |
width: 380px; | |
font-size: 12px; | |
font-family: 'Courier new'; | |
font-weight: bold; | |
background: rgba(0, 0, 0, 0.15); | |
border-radius: 4px; |
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
window.App = | |
Models: {} | |
Collections: {} | |
Views: {} | |
Routers: {} | |
init: (options) -> | |
App.project = options.project | |
App.question_set = options.question_set | |
App.router = new App.Routers.QuestionsRouter() | |
Backbone.history.start(); |
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
heroku pgbackups:restore DATABASE `heroku pgbackups:url --app instruments2` --app instruments2-staging |
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
gem install hipsteripsum | |
hipsteripsum 5 latin | mate |
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
# Show full error reports and disable caching | |
config.consider_all_requests_local = true | |
config.action_controller.perform_caching = false | |
# Don't care if the mailer can't send | |
config.action_mailer.raise_delivery_errors = false | |
# Print deprecation notices to the Rails logger | |
config.active_support.deprecation = :log |
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
if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod') | |
{$("#footer").css({'position' : 'static', 'height' : '50px'});}; | |
}); |
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
#wrap{ | |
display: block; | |
position: absolute; | |
height: auto; | |
bottom:0; | |
top:0; | |
left:0; | |
right:0; | |
margin-top:50px; | |
margin-bottom:25px; |
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
irb(main):002:0> Articles.count | |
=> 5 | |
irb(main):003:0> Articles.find(1) | |
=> #<Enumerator: Articles:find(1)> |
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
get '/articles/:id' do | |
@article = Articles.get params[:id] | |
set :public_folder, File.dirname(__FILE__) + '/css/styles.css' | |
erb :article | |
end |
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
<% @articles.each do |article| %> | |
<ul> | |
<li> <%= article.articleName %> </li> | |
</ul> | |
<% end %> |