Skip to content

Instantly share code, notes, and snippets.

View baldwindavid's full-sized avatar

David Baldwin baldwindavid

  • Indianapolis, IN
View GitHub Profile

Keybase proof

I hereby claim:

  • I am baldwindavid on github.
  • I am baldwindavid (https://keybase.io/baldwindavid) on keybase.
  • I have a public key whose fingerprint is 4F3A C424 8315 8EF6 3CC5 DCF1 E130 F0B0 D0D2 73C2

To claim this, I am signing this object:

.DS_Store
log/*.log
tmp/attachment_fu/[^.]*
tmp/cache/[^.]*
tmp/pids/[^.]*
tmp/sessions/[^.]*
tmp/sockets/[^.]*
public/flv/[^.]*
git submodule add git://github.com/rails/acts_as_list.git vendor/plugins/acts_as_list
git submodule add git://github.com/nex3/haml.git vendor/plugins/haml
git submodule add git://github.com/rails/acts_as_tree.git vendor/plugins/acts_as_tree
git submodule add git@github.com:bilson/simple_form_mailer.git vendor/plugins/simple_form_mailer
git submodule add git@github.com:bilson/dumpimp.git vendor/plugins/dumpimp
git submodule add git://github.com/rails/rails.git vendor/rails
git submodule add git://github.com/thoughtbot/paperclip.git vendor/plugins/paperclip
git submodule add git@github.com:bilson/basic_haml_generators.git vendor/plugins/basic_haml_generators
git submodule add git://github.com/rubyist/aasm.git vendor/plugins/aasm
git submodule add git://github.com/technoweenie/restful-authentication.git vendor/plugins/restful_authentication
/* This fixes the problem with right columns being pushed below in ie6*/
/* -----------------------------------------------------------------------
Blueprint CSS Framework 0.7.1
http://blueprintcss.googlecode.com
* Copyright (c) 2007-2008. See LICENSE for more info.
* See README for instructions on how to use Blueprint.
* For credits and origins, see AUTHORS.
# JRAILS init file - for noConflict
# uncomment to use jQuery.noConflict()
ActionView::Helpers::PrototypeHelper::JQUERY_VAR = '$j'
#ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery','jquery-ui','jrails']
#ActionView::Helpers::AssetTagHelper::reset_javascript_include_default
require 'jrails'
Substruct - http://code.google.com/p/substruct/
Spree - spreehq.org
Minimal Cart - http://github.com/jbresnik/minimal-cart/tree/master
FoxyCart - http://www.foxycart.com/
# make'em pretty colors
export PS1='\[\033[0;35m\]\h\[\033[0;33m\] \w\[\033[00m\]: '
# show current Git branch
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
function proml {
local BLUE="\[\033[0;34m\]"
@baldwindavid
baldwindavid / gist:88795
Created April 1, 2009 17:24
Jquery / Rails Basic Setup
// outside of this you can refer to jQuery as $j
$j = jQuery.noConflict();
jQuery(document).ready(function($){
// your stuff goes here!
// just use $ to refer to jQuery from within here
});
In layout file below linked stylesheets/js files. Note: This is HAML...
:javascript
jQuery(function($){
#{yield :onload}
});
In view files. Again HAML...
class ApplicationController < ActionController::Base
sublayout '2col'
end
class PagesController < ApplicationController
sublayout '3col'
end
class AdminController < ApplicationController
sublayout '1col'