Setup remote repository:
ssh [email protected]
mkdir my_project.git
cd my_project.git
git init --bare
On local machine:
cd my_project
Setup remote repository:
ssh [email protected]
mkdir my_project.git
cd my_project.git
git init --bare
On local machine:
cd my_project
for f in *.rhtml; do git mv $f `basename $f rhtml`html.erb; done |
pretty_echo(){ | |
echo '--------------------------------' | |
echo " $*" | |
echo '--------------------------------' | |
echo '' | |
} | |
prompt(){ | |
read -p 'Press any key to continue...' | |
} |
// When you’re queuing up a chain of animations, you can use the delay() | |
// method to pause the animation for a length of time; pass that time as | |
// a parameter in milliseconds. | |
$('div').hide().delay(2000).show(); // div will stay hidden for 2 seconds before showing. |
moduleConfigurator | |
classApplication < Rails::Application | |
# By default, let OSX resolve the path to the binary | |
config.wkhtmltopdf = "wkhtmltopdf" | |
end | |
end |
<% if @obj.errors.any? %> | |
<div class="error-messages"> | |
<h2><%= pluralize(@obj.errors.count, 'error') %> are preventing this object from being created:</h2> | |
<ul> | |
<% @obj.errors.full_messages.each do |message| %> | |
<li><%= message %></li> | |
<% end %> | |
</ul> | |
</div> |
heroku create [appname] --stack cedar
git push heroku master
heroku run rake db:migrate
var foo = { | |
11 sample: function() { | |
10 alert('sample!'); | |
9 }, | |
8 | |
7 mix: function() { | |
6 alert('mix!'); | |
5 } | |
4 }; | |
3 |
class Votd | |
attr_reader :reference, :text, :version | |
def initialize | |
@reference = "John 3:16" | |
@text = "For God so loved the world..." | |
@version = "NIV" | |
end | |
def to_html |
gem 'capistrano', '~> 2.11.2' | |
gem 'rails', github: 'rails/rails', branch: '3-2-stable', ref: '123...' | |
gem 'rails', path: '~/code/rails' | |
gem 'capybara', group: :test |