- Shore Enuff
- Row Boat Cop
- Boat
- Oh Buoy
- Bust a Capsize
- Current Events
- Frayed Knot
- Hull Lotta Love
- A Seaworthy Cause
- Tide To Go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Determine the type of triangle by inputing in all the lengths. | |
def triangle(a, b, c) | |
case [a,b,c].uniq.size | |
when 1 | |
:equilateral | |
when 2 | |
:isosceles | |
when 3 | |
:scalene |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :deploy do | |
desc 'Deploy to staging' | |
task :staging do | |
remote = "addyourherokustagingpathhere" | |
app = "appnamehere" | |
system "heroku maintenance:on --app #{app}" | |
system "git push -f #{remote} master" | |
system "heroku run rake db:migrate --app #{app}" | |
system "heroku maintenance:off --app #{app}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FormBuilder < ActionView::Helpers::FormBuilder | |
def label(method, text = nil, options = {}, &block) | |
text = text || method.to_s.humanize | |
unless object.nil? || options[:hide_errors] | |
errors = object.errors[method.to_sym] | |
if errors | |
text += " <span class=\"error\">#{errors.is_a?(Array) ? errors.first : errors}</span>" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-flash.keys.each do |type| | |
#flash.flash{class: type} | |
%p= flash[type] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#written by therubymug | |
#add to your ~/.bashrc.local | |
harvest() { | |
dow=$(date "+%u") | |
if [ -n "$2" ]; then | |
date=$2 | |
else | |
if [ $dow = "1" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.8.0.min.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script> | |
<head> | |
<body> |
#Rails for ubuntu 12.04
Install curl
sudo apt-get install curl
install git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set number | |
" display cursorline in active buffer | |
autocmd BufEnter * set cursorline | |
autocmd BufLeave * set nocursorline | |
" open quickfix window after grep commands | |
autocmd QuickFixCmdPost *grep* cwindow | |
" Turbux shortcuts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reclaim default C-b behavior | |
if-shell 'test "$(tmux -V)" = "tmux 1.5"' 'set -g prefix C-z' | |
if-shell 'test "$(tmux -V)" = "tmux 1.6"' 'set -g prefix2 C-z' | |
if-shell 'test "$(tmux -V)" = "tmux 1.7"' 'set -g prefix2 C-z' | |
# mimic vi expectations | |
setw -g mode-keys vi | |
# faster reaction time | |
set -sg escape-time 1 |
OlderNewer