Skip to content

Instantly share code, notes, and snippets.

View mrmicahcooper's full-sized avatar
🥋
Focusing

Micah Cooper mrmicahcooper

🥋
Focusing
View GitHub Profile
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
@mrmicahcooper
mrmicahcooper / .tmux.conf.local
Created December 17, 2012 14:34
Preferred setting for Andy and Micah
# 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
@mrmicahcooper
mrmicahcooper / .vimrc.local
Created December 17, 2012 14:32
Preferred vim for Andy and Micah
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
@mrmicahcooper
mrmicahcooper / setup.markdown
Created October 1, 2012 23:26
Setup Rails environment for Ubuntu

#Rails for ubuntu 12.04

Install curl

sudo apt-get install curl

install git

@mrmicahcooper
mrmicahcooper / example.html
Created August 30, 2012 01:59
html sample
<!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>
@mrmicahcooper
mrmicahcooper / harvest.sh
Created July 24, 2012 18:19
Get your git log goodies for tracking
#written by therubymug
#add to your ~/.bashrc.local
harvest() {
dow=$(date "+%u")
if [ -n "$2" ]; then
date=$2
else
if [ $dow = "1" ]; then