start new:
tmux
start new with session name:
tmux new -s myname
(function () { | |
// ==UserScript== | |
// @name AdsFight! | |
// @namespace http://blog.thrsh.net | |
// @author daYOda (THRSH) | |
// @description Fight Naughty Ads, Go Fight For Your Right! | |
// @version 6.7 | |
// @updateURL https://userscripts.org/scripts/source/89322.meta.js | |
// =========================================================== |
n = Notification::Answer.new | |
n.class.name.split('::').last || '' | |
# => "Answer" | |
n.class.name.split('::').first || '' | |
# => "Notification" |
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.
#!/usr/bin/env ruby | |
# ********************************************* | |
# Jekyll Post Generator Awesomeness | |
# by Cody Krieger (http://codykrieger.com) | |
# edited by Tao Zhang (http://ztnote.com) | |
# ********************************************* | |
# Usage: | |
# % ./newpost.rb POST NAME |
README.ext | |
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/tags/v1_8_6/README.EXT?revision=12055 | |
Extending Ruby - Pickaxe | |
http://ruby-doc.org/docs/ProgrammingRuby/html/ext_ruby.html | |
Extending Ruby on O'Reilly | |
http://onlamp.com/pub/a/onlamp/2004/11/18/extending_ruby.html | |
Ruby C Extensions - Mark Volkman |
=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') |