Skip to content

Instantly share code, notes, and snippets.

TravisIngram / Contract Killer
Created Jul 30, 2017 — forked from tony-caffe/Contract Killer
The latest version of Bytes Unlimted ‘killer contract’ for web professionals
View Contract Killer

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Revised by Bytes Unlimited : June 14th 2017

TravisIngram / simple-proxy.php
Created Mar 12, 2017 — forked from simonw/simple-proxy.php
Fix for simple-proxy.php WordPress plugin to get it working with Varnish (addresses a gzip headers error)
View simple-proxy.php
Plugin Name: Simple Proxy
Description: A very simple proxy. Useful when you're moving from one server to another.
Author: Greg Priday
Author URI:
Version: 1.0
function simple_proxy_admin_menu(){
TravisIngram /
Last active Aug 27, 2016 — forked from ascott1/
A list of books recommended to me at Foo Camp 2016
TravisIngram / times.js
Created Jul 26, 2016 — forked from FGRibreau/times.js
Ruby .times & .upto & .downto methods in JavaScript
View times.js
// Ruby = 5.times { |i| puts i }
// JS = (1).times(function(i){console.log(i);})
Number.prototype.times = function(cb) {
var i = -1;
while (++i < this) {
return +this;
TravisIngram / The Technical Interview Cheat
Created Jun 23, 2016 — forked from tsiege/The Technical Interview Cheat
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
TravisIngram / .bash_profile
Last active Sep 3, 2015 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
View .bash_profile
# ---------------------------------------------------------------------------
# Description: This file holds all my BASH configurations and aliases
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
View retune-dnb.rb
# Live coding example for Retune conference 2014
# 1) Press Run (Cmd+R) to start
# 2) Make changes (e.g. comment in/out various lines in :beats & :amen)
# 3) Press Run again (changes will only be audible from next queue point)
# compute loop length (4 bars), bar & quarter note durations
dur = sample_duration :loop_compus
bar = dur / 4
quart = dur / 16
View rot_n_jesse.rb
def rot_n_char(char, rot_by)
fail ArgumentError, "First argument must be a 1-letter String (got `#{char}')" unless char.length == 1
case char
when ('a'..'z')
((char.ord - 'a'.ord + rot_by) % 26 + 'a'.ord).chr
when ('A'..'Z')
((char.ord - 'A'.ord + rot_by) % 26 + 'A'.ord).chr
View user.rb
require 'bcrypt'
class User
include DataMapper::Resource
attr_accessor :password, :password_confirmation
timestamps :at
property :id, Serial