Skip to content

Instantly share code, notes, and snippets.

View andyinabox's full-sized avatar

Andy Dayton andyinabox

View GitHub Profile
@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
cd `dirname $0`
python -m SimpleHTTPServer
@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
*
@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 / 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 / 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 / exercise_a.txt
Last active September 29, 2015 03:13 — forked from aparrish/exercise_a.txt
Programming Exercise A for RWET
RWET Programming Exercise A
Text processing on the UNIX command line
---
Step 1. Write the command to download the text file with the following URL to
your computer with the filename "frost.txt". (Hint: You'll need to use the
"curl" command, and possibly redirection with ">").
Here's the URL:
http://rwet.decontextualize.com/texts/frost.txt
@andyinabox
andyinabox / brainfuck-pi
Created September 30, 2015 01:44
Pi in Brainfuck
>
+++++
+++++
+++++
+++++
+++++
+++++
+++++
+++++
+++++
@andyinabox
andyinabox / exercise_c.py
Created October 6, 2015 01:47 — forked from aparrish/exercise_c.py
Programming Exercise C for RWET (dictionaries, sets, list comprehensions)
#
# Worksheet #3
#
# This worksheet is also a Python program. Your task is to read the
# task descriptions below and then write one or more Python statements to
# carry out the tasks. There's a Python "print" statement before each
# task that will display the expected output for that task; you can use
# this to ensure that your statements are correct.
#
# In this worksheet, some of the tasks will throw an error that causes