Subversion (source control)
Subversion Tutorial: 10 Most Used SVN Commands with Examples
- http://www.thegeekstuff.com/2011/04/svn-command-examples/
- http://www.linuxfromscratch.org/blfs/edguide/chapter03.html
Needed to know how to retrieve information in svn. It's been a long time. Git is so much better.
svn checkout/co URL PATH
jQuery Timepicker
- https://code.google.com/p/jquery-timepicker/
- https://code.google.com/p/jquery-timepicker/downloads/detail?name=jquery.timepicker.js&can=2&q=
- http://engineeredweb.com/blog/10/4/jquery-date-and-time-pickers/
- http://jonathonhill.net/2009-03-27/jquery-datetime-picker/
- https://jquery-timepicker.googlecode.com/files/jquery.timepicker.js
- http://milesich.com/timepicker/
- http://source.cet.uct.ac.za/svn/sakai/ux/timepicker/
- https://github.com/trentrichardson/jquery-timepicker-addon
Was looking for a viable time picker for tracker.
JQuery
.addClass() | jQuery API Documentation
http://api.jquery.com/addClass/Adds the specified class(es) to each of the set of matched elements.
$( "p" ).addClass( "myClass yourClass" );
How can I make a redirect page in jQuery/JavaScript? - Stack Overflow
http://stackoverflow.com/questions/503093/how-can-i-make-a-redirect-page-in-jquery-javascriptRedirecting users after an AJAX call using JavaScript.
window.location.replace(...)
It is better than using window.location.href =, because replace() does not put the originating page in the session history, meaning the user won't get stuck in a never-ending back-button fiasco
Ryan McGeary, Feb 3 '09
Ruby/Rails
ruby - Radio buttons on Rails - Stack Overflow
http://stackoverflow.com/questions/623051/radio-buttons-on-railsHow to use Rails models in combination with radio buttons.
<div class="form_row"> <label for="theme">Theme:</label> <% [ 'plain', 'desert', 'green', 'corporate', 'funky' ].each do |theme| %> <br><%= radio_button_tag 'theme', theme, @theme == theme %> <%= theme.humanize %> <% end %> </div>
Run migrations from rails console - Stack Overflow
- http://stackoverflow.com/questions/7287250/run-migrations-from-rails-console
- http://www.cse.unsw.edu.au/~stulocal/lib/ruby/gems/1.8/doc/activerecord-3.2.3/rdoc/ActiveRecord/Generators/MigrationGenerator.html
- http://www.cse.unsw.edu.au/~stulocal/lib/ruby/gems/1.8/doc/activerecord-3.2.3/rdoc/ActiveRecord/Generators/MigrationGenerator.html#method-i-create_migration_file
- http://www.cse.unsw.edu.au/~stulocal/lib/ruby/gems/1.8/doc/activerecord-3.2.3/rdoc/ActiveRecord/Migration.html
- http://www.cse.unsw.edu.au/~stulocal/lib/ruby/gems/1.8/doc/activerecord-3.2.3/rdoc/ActiveRecord/Migration.html#method-i-announce
- http://api.rubyonrails.org/classes/ActiveRecord/MigrationProxy.html
- http://apidock.com/rails/ActiveRecord/Migrator/migrate
- http://apidock.com/rails/v3.2.13/ActiveRecord/Migrator/down/class
- http://apidock.com/rails/v3.2.13/ActiveRecord/Migrator/migrate
I love this! Use console to run migrations instead of waiting for the environment to load with each run.
# run migrations ActiveRecord::Migrator.migrate "db/migrate" ActiveRecord::Migrator.down "db/migrate", 20131011115823 # show the available migrations puts ActiveRecord::Migrator.get_all_versions puts ActiveRecord::Migrator.migrations_path # show the available migrations; does not show whether those migrations have been applied or not puts (ActiveRecord::Migrator.migrations "db/migrate").map{|x| "#{x.version}: #{x.filename}"}
No comments:
Post a Comment