Skip to content

Instantly share code, notes, and snippets.

View gcman105's full-sized avatar

Gary Cheeseman gcman105

View GitHub Profile
@gcman105
gcman105 / gist.md
Created December 4, 2011 11:10
MD: Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

@gcman105
gcman105 / 960gs.scss
Created December 6, 2011 00:17 — forked from jmblog/960gs.scss
SCSS: 960gs.scss
/*-----------------------------------------------------
960 Grid System ~ Core CSS.
Learn more ~ http://960.gs/
Licensed under GPL and MIT.
-------------------------------------------------------*/
/* Grid Settings
---------------------------*/
// 12-column grid
@gcman105
gcman105 / couchdb_curl_commands.html
Created June 14, 2012 09:49
curl replication example
curl -X POST http://username:password@127.0.0.1:5984/_replicate -H "Content-Type: application/json" -d '{"source":"http://username:password@xxx.xxx.xxx.xxx:5984/database", "target":"database"}'
@gcman105
gcman105 / couchdb_curl_commands.html
Created June 14, 2012 10:23
Start CouchDB as a service, after brew install couchdb
sudo chown root /usr/local/Cellar/couchdb/1.2.0/Library/LaunchDaemons/org.apache.couchdb.plist
sudo launchctl load -w /usr/local/Cellar/couchdb/1.2.0/Library/LaunchDaemons/org.apache.couchdb.plist
@gcman105
gcman105 / Gemfile.rb
Created August 23, 2012 09:24
Rails 3.2.8 with Postgresql
source 'https://rubygems.org'
gem 'rails', '3.2.8'
# gem 'rails', :git => 'git://github.com/rails/rails.git'
# ----------------------------------------------------------
# rails new APPNAME -T -d postgresql
#
# use this file as the Gemfile and run
#
@gcman105
gcman105 / houses_steps.rb
Created November 13, 2012 21:40
Test gist from RubyMine
Given /^I have houses named (.+)$/ do |names|
names.split(', ').each do |name|
House.create!(:name => name)
end
end
gem 'mongo', '~> 1.7.0'
gem 'bson_ext', '~> 1.7.0'
gem 'mongoid', '~> 3.0.1'
gem 'angular-rails'
gem 'kaminari'
gem 'jquery-rails'
gem 'redcarpet'
gem 'draper'
gem 'devise', '~> 2.1.2'
gem 'simple_form'
<div class="products">
{exp:playa:parents field="product_collections" orderby="product_display_sort_order" sort="asc"}
<div class="a_product">
{if product_detail_image}
<a href="{path=product}/{url_title}">
<img class="product_detail_image" src={product_detail_image}"{path}_width310/{filename}.{extension}"{/product_detail_image} width="230px" border="0" alt="{title}" title="{title}" />
</a>
{if:else}
<img src="/images/wg/picture_soon.jpg" width="230px" height="175px" />
{/if}
@gcman105
gcman105 / js2cs.rb
Created November 25, 2012 13:57 — forked from unamashana/js2cs.rb
Converting project files from Javascript to CoffeeScript
SRC_BASE_DIR = "."
DEST_BASE_DIR = "."
JS2COFFEE = "~/node_modules/js2coffee/bin/js2coffee"
dirs = []
files = []
Dir.glob("#{SRC_BASE_DIR}/**/*.js").each do |file|
files << file
dir = File.dirname(file).split(SRC_BASE_DIR)[1]
@gcman105
gcman105 / .vimrc
Last active October 3, 2020 11:21
Gary Cheeseman, gcman105's .vimrc file
" .vimrc
" Author: Gary Cheeseman <gary@cheeseman.me.uk>
" http://gary.cheeseman.me.uk
"
" vim: foldmethod=marker
"
" The line below allows me to update the Gist with the command :Gist
" GistID: 5821422
"-----------------------------------------------------------------------------