Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am adamnbowen on github.
  • I am adamnbowen (https://keybase.io/adamnbowen) on keybase.
  • I have a public key ASCdkPhy8DCnLZD2wMO7qTp4QwPk1uN6EHZxjlbG9cT1Nwo

To claim this, I am signing this object:

begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
# Activate the gem you are reporting the issue against.
@adamnbowen
adamnbowen / .tmux.conf
Created May 18, 2012 22:09
My tmux conf file
# Use C-a instead of the default prefix
set -g prefix C-a
# Free up the default prefix, C-b
unbind C-b
# Reduce delay in sending commands
set -sg escape-time 1
# Set base index for windows to 1, not zero
set -g base-index 1
@adamnbowen
adamnbowen / .vimrc
Created May 18, 2012 20:59
My .vimrc file, using vundle
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
@adamnbowen
adamnbowen / Sanitize.php
Created April 11, 2011 16:55
quick & helpful class for cleaning up arrays like $_POST. Go here for the newest version: https://github.com/adamnbowen/php-utility/
<?php
class Sanitize {
private $_sanitizedArray = array();
public function __construct($uncleanArray)
{
foreach ($uncleanArray as $key => $value) {
$this->_sanitizedArray[$this->_sanitize($key)] = $this->_sanitize($value);
}
}