rails new my_app -T -d postgresql
Add:
#!/bin/bash | |
readonly lm75=0x48 # Slave address with A0, A1, and A2 set to 0v (ground). | |
while [ $# -gt 0 ] | |
do | |
if [ "$1" == "-debug" ] | |
then | |
debug=true | |
fi |
http://www.austinstory.com/integrating-wicked-pdf-paperclip-and-mercury-rails-for-an-editable-web-document-that-can-be-exported-to-pdf/ | |
http://botreeconsulting.com/wicked_pdf-generate-pdf-from-haml-template/ | |
https://gist.github.com/micahroberson/5988843 | |
http://snikt.net/blog/2012/04/26/wicked-pdf/ | |
http://www.sitepoint.com/pdf-generation-rails/ |
# lib/tasks/db.rake | |
namespace :db do | |
desc "Dumps the database to db/APP_NAME.dump" | |
task :dump => :environment do | |
cmd = nil | |
epoch = Time.now.to_i | |
with_config do |app, host, db, user| | |
cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}-#{epoch}.dump" | |
end |
var elements = document.getElementsByClassName('section'); | |
Array.prototype.forEach.call(elements, function(element) { | |
element.style.backgroundColor = Please.make_color({ format: 'rgb-string' }); | |
}); |
/* Border */ | |
border: 5px solid #eee; | |
/* Border-Radius */ | |
-webkit-border-radius: 10px; | |
-moz-border-radius: 10px; | |
border-radius: 10px; | |
/* Gradient */ | |
background: #fff; |