gem install whenever mysql2 pony ruby-s3cmd
Go ahead and create your backup bucket on S3 now. Configure whenvever to do your backups at a time when server load will be low (I picked 2:00 am).
# In a controller | |
# This is not necessary when using the view code below | |
::I18n.locale = params[:locale] |
<h4>July<br /><span>21</span></h4> | |
<time>July 21, 7-9pm</time> | |
<h2>New Voices/new Vistas Muntu’s Summer Concert And Gala</h2> | |
<h3>Harris Theatre For Music And Dance Millennium Park</h3> | |
<p>At 40, Muntu continues to explore the future of African & African American dance. This concert will feature groundbreaking new work by choreographer Jeffery Page who has worked with Beyonce and was a lead dancer in the Broadway production ‘Fela.’</p> | |
<p>Gala dinner and reception following the performance on the Rooftop Terrace.</p> | |
<a class="button" href="#">Buy Tickets</a> |
gem install whenever mysql2 pony ruby-s3cmd
Go ahead and create your backup bucket on S3 now. Configure whenvever to do your backups at a time when server load will be low (I picked 2:00 am).
<%= @blog_posts.each do |post| %> | |
<%= post.published_at.strtime('%B %d, %Y') %> | |
<%= post.title %> | |
<% end %> |
def angle_to_radians(angle) | |
Math::PI * (angle * -1.0 / 180) | |
end | |
def radians_to_cartesian(radian, radius, offset_x, offset_y) | |
{ | |
:x => (offset_x + (radius * Math::sin(radian))).round, | |
:y => (offset_y + (radius * Math::cos(radian))).round | |
} | |
end |
ul { | |
position: relative; | |
float: left; | |
left: 50%; | |
li { | |
position: relative; | |
float: left; | |
left: -50%; | |
} | |
} |
if ($('#main').hasClass('accordion')) { | |
$('#main .content h3').each(function(index) { | |
content = $(this).nextUntil('h1, h2, h3') | |
content.wrapAll('<section />') | |
}); | |
} | |
$('#main.accordion .content').accordion({ | |
header: 'h3', | |
collapsible: true, |
var loadImage = function($img, callback) { | |
var image; | |
image = new Image(); | |
return $img.load(function() { | |
if (typeof callback === 'function') { | |
callback(this); | |
} | |
return this; | |
}); | |
}; |
[\n]+([^\d]) |