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).
<table width="600" align="center" cellpadding="10" style="table-layout: fixed;"> | |
<tr> | |
<td> | |
<table align="left" cellspacing="0" cellpadding="0" border="0" style="table-layout: fixed;"> | |
<tr> | |
<td width="144" class="sidebar" style="padding-left: 10px;"> | |
<h2 style="color: #ffffff; font-size: 14px;">In This Issue:</h2> | |
<ul id="contents" style="line-height: 15px; list-style-type: none; margin: 0; padding: 10px 0 0;"> | |
<tableofcontents> | |
<li style="margin-bottom: 10px; padding-bottom: 10px; border-bottom-width: 1px; border-bottom-color: #77929f; border-bottom-style: solid; color: #ffffff"> |
<% [:en, :ru, :de].each do |locale| %> | |
<li> | |
<%= link_to Refinery::I18n.built_in_locales[locale], {:locale => locale}, :class => "flag #{locale.to_s}", :id => "locale_#{locale.to_s}" %> | |
</li> | |
<% end %> |
# 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%; | |
} | |
} |
# $ crx `pwd` | |
function crx() { | |
~/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --pack-extension=$@ --pack-extension-key=$@/key.pem | |
} |