Skip to content

Instantly share code, notes, and snippets.

View benkant's full-sized avatar

Ben Giles benkant

View GitHub Profile
@benkant
benkant / git_changelog
Created December 30, 2010 12:40
Git changelog
git log --no-merges --pretty=format:'* %s - %an' tag-1..tag-2
@benkant
benkant / vimrc_hjkl
Created December 16, 2010 15:23
Disable arrow keys in Vim
" Using arrow keys is far too ingrained in my muscle memory.
" This goes into my ~/.vimrc to force my hand
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
imap <up> <nop>
imap <down> <nop>
imap <left> <nop>
imap <right> <nop>
@benkant
benkant / like_totally.py
Created November 16, 2010 12:41
Solution to Problem 10 of Project Euler... in Like, Python
ohai so uh like totally import math bro
anyways like result = 0 yeah
right test_number actually = 0
friggin for test_number totally in ma range(0, 2000000):
if teh test_number <= 1 shiiit:
lol is_prime = False bro
so elif test_number is actually 2 wicked:
bro is_prime = hella True