chruby can be used with [pow] to select a specific Ruby per project, or system-wide.
To set a default Ruby for all pow apps, puts the following in
~/.powconfig
.
class Role | |
include DataMapper::Resource | |
has n, :users, :through => Resource | |
property :id, Serial | |
property :name, String | |
property :short_name, String | |
property :description, Text | |
property :created_at, DateTime | |
property :updated_at, DateTime | |
default_scope(:default).update(:order => [:id]) # set default order |
<div id="article"> | |
<p> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla faucibus semper diam quis suscipit. Sed at eros et est scelerisque hendrerit. Nam sagittis tortor vel orci convallis vel tempor nisl suscipit. Fusce at mauris risus, a adipiscing mauris. Nunc nunc erat, luctus id suscipit sed, lacinia sed ligula. In imperdiet, metus nec mattis molestie, odio dui sollicitudin augue, at blandit velit enim vitae nisl. Maecenas id enim eu nunc luctus congue. Sed tempus tellus quis quam ultrices et aliquet arcu porta. Vivamus pretium ipsum sit amet nisl pulvinar consequat. Fusce elementum, lectus in lacinia ultrices, ante tellus euismod urna, gravida cursus augue est id lacus. | |
</p> | |
<p> | |
Quisque vestibulum pellentesque eros, a pharetra nibh elementum vestibulum. Mauris fringilla tortor sed dui egestas dictum. Sed ac velit eu sapien dapibus mollis. Vestibulum volutpat nunc at enim ultrices egestas congue purus gravida. In sed elit sed erat auctor sagittis id nec tellus. Proin iaculis lobortis lac |
<%= javascript_include_tag 'jquery' %> | |
<script> | |
jQuery.noconflict(); | |
</script> | |
<%= javascript_include_tag :defaults %> |
# Last modified: 2011 Sep 14 | |
# Author: Florian CROUZAT <contact@floriancrouzat.net> | |
# Feel free to do whatever you want with this file. | |
# Just make sure to credit what deserve credits. | |
# Binds {{{ | |
# Prefix | |
unbind C-b | |
set-option -g prefix C-a | |
bind a send-prefix |
a = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","aa","bb","cc","dd"]; | |
b = []; | |
while(b.length<5){ | |
t = Math.round(Math.random() * (a.length-1)); | |
console.log(t,$.inArray(a[t],b)); | |
if($.inArray(a[t],b) == -1){ | |
b.push(a[t]); | |
} | |
} | |
console.log(b[0]); |
#!/usr/bin/ruby -w | |
# Ruby implementation of the GNU watch command line utility for Mac OS X. | |
# Written by: Ian Sheridan. December 2011. | |
# Email: ian.sheridan[@]gmail.com | |
if ARGV.length == 0 | |
puts 'Syntax: watch.rb <unix commands>' | |
puts 'If command contains parameters, make sure to enclose them with single quotes' | |
exit |
# Copyright (c) 2012, Thomas Stachl <thomas@stachl.me> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and | |
# associated documentation files (the "Software"), to deal in the Software without restriction, | |
# including without limitation the rights to use, copy, modify, merge, publish, distribute, | |
# sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all copies or | |
# substantial portions of the Software. |
=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') |
You need to get this file downloaded
Once downloaded you install it. Here is a video guide to installing it: