Skip to content

Instantly share code, notes, and snippets.

@mrsteveheyes
mrsteveheyes / gist:1000471
Created May 31, 2011 13:12
Part of httpd.conf
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/Users/steveheyes/Sites"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
@mrsteveheyes
mrsteveheyes / gist:1044564
Created June 24, 2011 10:43
Datamapper problem
require 'datamapper'
require 'sinatra/base'
require 'mustache/sinatra'
#DataMapper.setup(:default, "mysql://localhost/happie_local")
# MODELS
# END MODELS
@mrsteveheyes
mrsteveheyes / client.js
Created August 26, 2011 14:39 — forked from anildigital/client.js
Twitter streaming API example twitter-node and socket.io
<!DOCTYPE HTML>
<head>
<title>Codesnippit NodeJS Twitter Tracker Client</title>
</head>
<body>
<ul></ul>
<script>
(function() {
var script = document.createElement("script");
script.src = "http://code.jquery.com/jquery.min.js";
@mrsteveheyes
mrsteveheyes / My Code That isn't working
Created August 26, 2011 15:58
Twitter Node.JS Client
// SETUP
// Get the required modules
var express = require("express"),
mustachio = require("mustachio"),
sys = require("sys"),
app = express.createServer();
// Configure the app
@mrsteveheyes
mrsteveheyes / gist:2853300
Created June 1, 2012 16:18
I want the text in the <li> tags to be vertically aligned to the middle of the element.
<ul class="step-by-step">
<li class="step step-1"><a class="button" href="/signup" title="Sign Up for free">Sign Up <span>for free</span></a></li>
<li class="step step-2">Sign up to set up rewards</li>
<li class="step step-3">TELL YOUR FOLLOWERS WHAT THEY COULD EARN BY RECOMMENDING YOUR SERVICE</li>
<li class="step step-4">THE MORE THEY SHOUT ABOUT YOU ON THEIR SOCIAL NETWORKS. THE MORE POINTS THEY EARN AND THE MORE PEOPLE HEAR ABOUT YOU.</li>
<li class="step step-5">YOU REWARD THEM FOR HELPING YOUR VIRAL CAMPAIGN SPREAD</li>
<li class="step step-6">SEE WHO ARE YOUR MOST INFLUENTIAL CUSTOMERS &amp; MAYBE REWARD THEM SOME MORE? </li>
</ul><!-- /.step-by-step -->
filetype off
set nocompatible
set backspace=indent,eol,start
let mapleader=" "
" Soft tabs
set smartindent
set expandtab
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"binary_file_patterns":
[
"generated/*",
"*.tbz2",
"*.gzip",
"*.jpg",
"*.jpeg",

Keybase proof

I hereby claim:

  • I am mrsteveheyes on github.
  • I am mrsteveheyes (https://keybase.io/mrsteveheyes) on keybase.
  • I have a public key whose fingerprint is 3C8E 039D 0989 B26C 241D B8AD 6A1C 885F 8706 572F

To claim this, I am signing this object:

// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions