Skip to content

Instantly share code, notes, and snippets.

View grahamc's full-sized avatar
❄️

Graham Christensen grahamc

❄️
View GitHub Profile
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>
A *.php
A "D bar"
A "foo\"bar"
@grahamc
grahamc / Instructions
Created September 8, 2011 04:38
Fabulous!
1. Bookmark this page ( Control - D in Chrome ).
2. Click Edit when it comes up.
3. Paste in the JS contents into the URL bar.
4. Enjoy.
route_name:
url: /foo/bar/:parameter
_requirements:
parameter: validation-regex
another_param: another regex
@grahamc
grahamc / config
Created September 12, 2011 13:41
# GitHub Clone URL:
# git clone gh:nationalfield/app.git
Host gh
Hostname github.com
User git
ForwardAgent no
SELECT
role.name,
role.id,
role.rank,
IF(role.id = 6, 0, 1) AS bottom
-- short-circuits sorting to put a specific record on top of the resultset
FROM
field_role AS role
WHERE
role.rank >= 8
$ story
As a writer of user stories
I want to have "As a" filled in for me
So that I can avoid all that typing.
More? (Y/n)y
As a writer of user stories
I want to have "I want to" filled in for me
So that I can avoid all that typing.
[filter "whitespace"]
smudge = rtrim
#
# /abc/def/.htaccess -- per-dir config file for directory /abc/def
# Remember: /abc/def is the physical path of /xyz, i.e., the server
# has a 'Alias /xyz /abc/def' directive e.g.
#
RewriteEngine On
# let the server know that we were reached via /xyz and not
# via the physical path prefix /abc/def
input[type=submit],.input
{
background-image: url(https: //d2jn41w0phxv03.cloudfront.net/images/round-btn.png);
border: 0;
color: #777;
font-family: "Helvetica Neue",Helvetica,Arial,sansserif;
font-size: 12px;
font-weight: 700;
height: 32px;
padding: 2px 5px;