Skip to content

Instantly share code, notes, and snippets.

View codelahoma's full-sized avatar

Rod Knowlton codelahoma

View GitHub Profile
@codelahoma
codelahoma / rails31init.md
Created August 31, 2011 17:51 — forked from jraines/rails31init.md
Rails 3.1 with Rspec, Cucumber, Factory Girl, Haml, and Simple Form

Install Rails 3.1 RC

gem install rails --pre

generate new app, skipping Test::Unit file generation

rails new my_app -T

Set up Gemfile

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.

" CtrlP config to replace Gary Bernhardt's Command-T config
" from 'File Navigation with Vim'
" (http://www.destroyallsoftware.com/file-navigation-in-vim.html)
map <leader>f :ClearCtrlPCache<cr>\|:CtrlPCurWD<cr>
map <leader>gf :ClearCtrlPCache<cr>\|:CtrlPCurFile<cr>
map <leader>b :CtrlPBuffer<cr>
" Custom Rails specific CtrlP mappings
map <leader>gv :ClearCtrlPCache<cr>\|:CtrlP app/views<cr>
map <leader>gc :ClearCtrlPCache<cr>\|:CtrlP app/controllers<cr>
@codelahoma
codelahoma / get-your-vim-on.md
Last active August 5, 2020 17:22
Get Your Vim On

Get Your Vim On

Rod Knowlton (@codelahoma)

Tulsa Web Devs - 8/20/2012

Last Updated: - 10/11/2013

First Things First

HTML5/JavaScript/CSS Starting Points

A list of links to resources for the beginning web app programmer.

General

  • Mozilla Developer Network If could only offer a single link for getting started, I don't think I could do any better than this one. From the site:

>We are an open community of developers building resources for a

@codelahoma
codelahoma / multiple-resultsets.clj
Last active March 2, 2017 13:56
Using clojure.java.jdbc to process multiple result sets from a SQL Server instance.
;; Does not handle parametized queries for the
;; simple reason that I was dealing with a pre-formatted
;; string to call a stored procedure.
;;
;; Feel free to fork and improve. :-)
(require '[clojure.java.jdbc :as j]
'[clojure.java.jdbc.sql :as s])
@codelahoma
codelahoma / sicp1.coffee.md
Created June 9, 2013 20:27
A SICP of Coffee - A weekend experiment by @codelahoma

A SICP of Coffee

A weekend experiment by @codelahoma

Chapter 1 - Building Abstractions with Procedures

Mostly for grins, and partly to get a feel

# moved internal properties to arguments.callee so
# we don't have to worry about name collisions with our
# context.
tco = (fn) ->
(args...) ->
my = arguments.callee
my.recurred = false
my.args = []
@codelahoma
codelahoma / everything-david-nolen-mentioned.markdown
Last active March 29, 2021 19:13
Quick and dirty bibliography for David Nolen's Lambda Jam 2013 keynote.

Everything David Nolen Mentioned

When watching David Nolen's excellent Lambda Jam keynote on InfoQ, the references to interesting reading came a little too fast and furious for me to jot down, so I went through the slides and put this gist together.

@codelahoma
codelahoma / iphone-view-src.md
Last active December 26, 2015 05:49
iPhone View Source Bookmarklets