Milliseconds in your Timestamps.
We got 'em, you want 'em.
Shit needs to be PRECISE
MIT
dependencies: | |
# Compute the assets once and cache them | |
post: | |
- bundle exec rake assets:precompile assets:clean_expired: | |
environment: | |
RAILS_GROUPS: assets | |
cache_directories: | |
- "public/assets" |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
mysqldump [database] | pv | gzip -c > [file].sql.gz |
class Object | |
def try_all(*methods) | |
values = [self] | |
methods.each do |method| | |
value = values.last.try(method) | |
return nil if value.nil? | |
values << value | |
end | |
values.last |
module MyApp | |
# See ActiveSupport::Cache::Store for documentation. | |
module Cache | |
class << self | |
def fetch(key, options = {}, &block) | |
if block_given? | |
if ActionController::Base.perform_caching && options && options[:expires_in].to_i > 0 | |
Rails.cache.fetch(key, options, &block) | |
else | |
yield |
#Model | |
@user.should have(1).error_on(:username) # Checks whether there is an error in username | |
@user.errors[:username].should include("can't be blank") # check for the error message | |
#Rendering | |
response.should render_template(:index) | |
#Redirecting | |
response.should redirect_to(movies_path) |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
It reads your torrents. Spit out magnet URIs.
$ ./magneto.rb magneto.rb.torrent
Results in:
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |