$ rails console >> 1.year.from_now => Sun, 13 Mar 2011 03:38:55 UTC +00:00 >> 10.weeks.ago => Sat, 02 Jan 2010 03:39:14 UTC +00:00 >> 1.hour.from_now => Sun, 12 Aug 2012 09:52:39 UTC +00:00 >> 30.seconds.from_now => Sun, 12 Aug 2012 08:54:00 UTC +00:00
my personal notepad - for all the things I used to write on pieces of paper ( which where never seen again esp. when I needed them ) ...
Sunday, August 12, 2012
ruby rails - examples for date time helpers
with the time helpers it is amazingly easy to deal with dates and times (add, diff...)
Thursday, August 9, 2012
rails haml - translations
<%= yield %> --> .content#content= yield
<%= csrf_meta_tag %> --> = csrf_meta_tag
<%= csrf_meta_tag %> --> = csrf_meta_tag
use stylesheets
<%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %> --> = stylesheet_link_tag 'main'
ruby rails - set up autotest
http://www.andrewsturges.com/2011/06/installing-autotest-with-rails-31-and.html
+ run: rails g rspec:install (rspec-rails have to be installed)
+ run: rails g rspec:install (rspec-rails have to be installed)
Wednesday, August 8, 2012
ruby - problems with rvm
if rvm does not set the right ruby version:
http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395
http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395
Saturday, August 4, 2012
R ggplot - rebuild cdc obesity maps - 1984-2011
Date: 2012-08-04 21:24:07 CEST
Author: mandy
Org version 7.8.02 with Emacs version 23
Validate XHTML 1.0
Labels:
cdc
,
obesity
,
R
,
R ggplot
,
R graphics
,
R map graphics
,
R maps
Subscribe to:
Posts
(
Atom
)