#Rails for ubuntu 12.04
Install curl
sudo apt-get install curl
install git
class UiController < ApplicationController | |
end |
@import "whitespace-reset" | |
@function ie_color_fix($color) | |
@if $color == #ffffff | |
$color: #fffffe | |
@else if $color == #fff | |
$color: #fffffe | |
@else if $color == #000000 | |
$color: #000001 | |
@else if $color == #000 |
/* | |
---------------------------------------- | |
Tantek Celik's Whitepsace Reset | |
Author: Tantek Celik, Shane Riley | |
Version: (CC) 2010 Some Rights Reserved - http://creativecommons.org/licenses/by/2.0 | |
Description: Resets default styling of common browsers to a common base | |
---------------------------------------- | |
*/ | |
ul,ol { list-style: none; } |
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 |
def active_link_to(text, path, options={}) | |
if /^#{url_for(path)}/ =~ request.path | |
options[:class] = "#{options[:class]} active" | |
end | |
link_to text, path, options | |
end |
# 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 |
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 |
#Rails for ubuntu 12.04
Install curl
sudo apt-get install curl
install git
<!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> |
#written by therubymug | |
#add to your ~/.bashrc.local | |
harvest() { | |
dow=$(date "+%u") | |
if [ -n "$2" ]; then | |
date=$2 | |
else | |
if [ $dow = "1" ]; then |