Skip to content

Instantly share code, notes, and snippets.

#############################################################
# Application
#############################################################
set :application, "is_that_odd"
set :deploy_to, "/mnt/app/#{application}"
set :repository, "repo"
#############################################################
# Settings
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
url = git@github.com:deckpeck/fisie.git
fetch = +refs/heads/*:refs/remotes/fisie/*
push = refs/heads/master:refs/heads/master
def size_select
change_attribute(:size)
end
def color_select
change_attribute(:color)
end
def change_attribute(attribute)
line_item = LineItem.find(params[:id])
Fetching DiskWriteBytes with 29004450
Fetching DiskReadOps with 28978930
Fetching NetworkOut with 28964980
Fetching CPUUtilization with 28956230
Fetching DiskReadBytes with 28947910
Fetching NetworkIn with 28932220
Fetching DiskWriteOps with 28922170
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
module SimpleForm
module Components
module Errors
def error
template.content_tag(error_tag, error_text, error_html_options) #if has_errors?
end
end
end
end
@cracell
cracell / gist:952537
Created May 2, 2011 23:01
Sandwich Theory - A near Complete Guide
1. Sandwiches must have two or more slices of bread.
2. Sandwiches must be delicious.
3. Sandwiches must be smaller than that consuming them.
@cracell
cracell / gist:1236369
Created September 22, 2011 23:44
mozilla-release/gfx/cairo/cairo/src/cairo-matrix.c
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2002 University of Southern California
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LGPL") or, at your option, under the terms of the Mozilla
* Public License Version 1.1 (the "MPL"). If you do not alter this
* notice, a recipient may use your version of this file under either
@cracell
cracell / gist:1317905
Last active September 27, 2015 19:08
VIM Cheatsheet (A Work in progress)

VIM Cheatsheet

Remember VIM is all about combining commands. These are just the basics with a few combination examples.

Tutor - vimtutor from command line

Insert Mode

  • i - start insert mode at cursor
  • I - insert at the beginning of the line
@cracell
cracell / gist:1318386
Created October 27, 2011 00:00
Rails VIM Cheatsheet

Rails VIM Cheatsheet

  • :A #Switch to alternate file (usually the test)
  • :Rview the_view #Interface for views
  • :Rcontroller the_controller #Interface for controllers
  • :Runittest string #Unit tests
$(".menu ul li").live('click', function(){
//show the loading bar
showLoading();
//load selected section
switch(this.id){
case "home":
navmenu.load("navmenu.html #zhome", hideLoading);
break;
case "our-team":
navmenu.load("navmenu.html #zour-team", hideLoading);