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:1284914
Created October 13, 2011 17:46
Platform Interface Pattern/Idea

Perfect World of Web Development

About This

This writeup is about where I see web development going, where I want it to go and where I think it should go but it shouldn't.

About Me (To understand my perspective)

Platform Interface Pattern

Don't lock things in. But give an obvious path for beginners. Locking things makes evolution to better tools more difficult. Giving options makes getting this done more difficult and time consuming.

@cracell
cracell / gist:1305046
Created October 21, 2011 21:36
BASH Cheat sheet
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + L Clears the Screen, similar to the clear command
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H Same as backspace
Ctrl + R Let’s you search through previously used commands
Ctrl + C Kill whatever you are running
Ctrl + D Exit the current shell
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + W Delete the word before the cursor
@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