Code snippets
vi .bash_profile
alias haku = 'cd haku'
bundle exec rake sunspot:solr:start
bundle exec rake sunspot:solr:stop
Delete session
scripts - delete script
DELETE FROM sessions;
EmailTemplate.load_all_templates
layout
<% puts "asd #{stylesheet_exists?(params[:controller])}" %>
<section id="apps-display" class="<%= defined?(section_type) ? section_type : nil %>">
<%= render "sites/general/branded_display", section_type: "gray-bg" %>
------
<% if defined?(conference) %>
<%= conference %>
<% else %>
<span>THE RUNNING USA INDUSTRY CONFERENCE - FEB 10 to 12 - BOOTH #209</span>
<% end %>
#render layour dalse inside method
render :layout => false
<% du = @event.days_until %>
<% if du > 0 %>
<span class="data-results"><%= du %></span>
<br>
<span class="label-text">Day<%= du == 1 ? nil : 's' %> until event</span>
<% end %>
<%= du == 1 ? nil : 's' %>
if du == 1 ? nil true
s false
----------------
<% @events = [] %>
<% if @events.size < 1 %>
You don't have events
<% else %>
<% @events.each do |event| %>
font
/* text-rendering: optimizeLegibility !important; */
-webkit-font-smoothing: antialiased !important;
text-shadow: 0 0 1px rgba(51, 51, 51, 0.1);