Skip to content

Instantly share code, notes, and snippets.

View andyinabox's full-sized avatar

Andy Dayton andyinabox

View GitHub Profile
cd `dirname $0`
python -m SimpleHTTPServer
@andyinabox
andyinabox / .gitignore
Last active August 29, 2015 14:11 — forked from salcode/.gitignore
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20140606
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@andyinabox
andyinabox / grunticonLoader.js
Created December 7, 2013 16:36
Grunticon loader AMD module
define(function(){
function grunticon( css, foo ){
// expects a css array with 3 items representing CSS paths to datasvg, datapng, urlpng
if( !css || css.length !== 3 ){
return;
}
// Thanks Modernizr & Erik Dahlstrom
var w = window,
@andyinabox
andyinabox / gist:3870249
Created October 11, 2012 04:52
Nodejitsu deploy error
{
"name": "hotair",
"description": "A game for gasbags.",
"version": "0.2.0-2",
"private": true,
"scripts": {
"start": "node app.js"
},
"dependencies": {
"express": "3.0.0rc1",
@andyinabox
andyinabox / gist:3809241
Created October 1, 2012 03:03
hot air package.js
{
"name": "hotair",
"description": "A game for gasbags.",
"version": "0.0.2-3",
"private": true,
"scripts": {
"start": "node app.js"
},
"dependencies": {
"express": "3.0.0rc1",
@andyinabox
andyinabox / deploy.rb
Created November 26, 2011 03:23 — forked from stojg/deploy.rb
Silverstripe + Capistrano + Git recipe
# My ./config directory in silverstripe looks like this:
# ./503.php <- a 503 Maintainance page
# ./_ss_environment.php <- the production environment settings
# ./deploy.rb <- is the recipe below
#
# multiple stages
set :stages, %w(staging dev production) # no info for production server yet
set :default_stage, "dev"
require 'capistrano/ext/multistage'
@andyinabox
andyinabox / NotionTumblrTheme.html
Created April 23, 2010 04:38
Notion tumbr theme
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
<title>{Title}{block:PostTitle} : {PostTitle}{/block:PostTitle}</title>
<meta name="Description" content="{MetaDescription}" />
<link rel="shortcut icon" href="{Favicon}" />
<!-- DEFAULT COLORS -->
<meta name="color:Background" content="#1a1a1a"/>
@andyinabox
andyinabox / WBSC_Posterous_Template.html
Created April 22, 2010 14:30
Template for WBSC's Posterous submissions account.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{PageTitle}</title>
<link rel="icon" href="/images/favicon.png" type="image/x-png"/>
{block:IndexPage}
<meta name="description" content="{MetaDescription}">
@andyinabox
andyinabox / OembedService.php
Created March 22, 2010 05:03
My first attempt at creating an OEmbed interface for SilverStripe
/*
My first attempt at creating an OEmbed interface for SilverStripe
*/
<?php
/**
* Create an interface to load Oembed embed data
*