Simple proof of concept for keeping instance variables out of the views while also allowing for some reuse of variable declarations.
References:
Simple proof of concept for keeping instance variables out of the views while also allowing for some reuse of variable declarations.
References:
/* Comments ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ | |
.Comments { margin: 20px 0px 0px 0px; position: relative;} | |
.Comments h3 { font-size: 16px; letter-spacing: -1px; margin: 0px 0px 5px 0px; padding: 10px 0px; color:#660000; border-bottom: solid 2px #660000;} | |
/* Comments List ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ | |
.List ol { padding: 0px; margin: 0px;} | |
.List li { position: relative; padding: 5px 0px; margin: 10px 0px; list-style-type: none; background: url(images/PostDotted.gif) repeat-x bottom; } | |
/**/ * html .List .LGrav { right: 30px;} /* */ |
# from http://rpheath.com/posts/409-rails-time-date-formatting-with-lambda | |
# config/initializers/date_time_formats.rb | |
Time::DATE_FORMATS.merge!( | |
:full => '%B %d, %Y at %I:%M %p', | |
:md => '%m/%d', | |
:mdy => '%m/%d/%y', | |
:time => '%I:%M %p' | |
) |
.Post { padding: 15px 0px; position: relative; clear: left;} | |
.PostHead { margin-left: 55px; } | |
.PostHead h2 { font-size: 24px; line-height: 24px; letter-spacing: -1px; font-weight: bold; padding: 0px 0px 1px 0px; margin: 0px; color:#000033;} | |
.PostHead h2 a { color: #109dd0; text-decoration: none;} | |
.PostHead h2 a:visited { color: #109dd0; text-decoration: none;} | |
.PostHead h2 a:hover { color:#000; text-decoration: none;} | |
.PostHead h3 { font-size: 14px; line-height: 14px; font-weight: bold; padding: 0px; margin: 0px; color:#000033;} |
# A Simple MD5/SHA1 calculator in Ruby | |
#!/usr/bin/ruby1.8 -w | |
# | |
# A Simple Hash Code Calculator | |
# Returns SHA1 and MD5 hash for any given file | |
# Author: Alessio Saltarin | |
# |