Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View sumpygump's full-sized avatar

Jansen Price sumpygump

View GitHub Profile
@sumpygump
sumpygump / getting-started.md
Created February 20, 2014 05:50
symfony getting started

Symfony Standard Getting Started Guide

Requirements

You must have composer and phing installed.

Create New Project

Create a new project by running the command

@sumpygump
sumpygump / gist:8661827
Created January 28, 2014 03:27
games links
http://fantasticcontraption.com/game/Contraption.swf
http://static.learn4good.com/cms/upload/games/board/swf/battleships.swf
http://multiplayerchess.com/
http://www.sheppardsoftware.com/braingames/mousetrap/mousetrapAS2.swf
http://www.sheppardsoftware.com/braingames/castledefensejr/castledefensejr.swf
http://www.gamechit.com/content/games/the-incredibles-save-the-day.swf
http://mapdive.weareinstrument.com/
http://mammoth-quantalideas.rhcloud.com/
http://games.mochiads.com/c/g/ice-breaker_v1/Icebreaker_mochi.swf
http://www.chromeplay.com/games/game2333.swf
@sumpygump
sumpygump / normal
Created October 16, 2013 03:19
Normal
#!/bin/bash
message="Resuming Normal Mode"
width=`tput cols`
height=`tput lines`
len=${#message}
tput clear
@sumpygump
sumpygump / istidy
Last active December 17, 2015 11:18
istidy fetches and parses a URL and provides a report on HTML errors and warnings.
#!/bin/bash
# istidy will use the tidy program to fetch and parse a URL and provide a
# report on errors and warnings found.
#
# Usage: istidy <URL>
# Example: istidy http://google.com/
#
# This script requires wget and tidy
# (apt-get install wget tidy)

Remember

PHP

strpos(haystack, needle)
$leadingZero = sprintf("%02d", $string);
$currency = sprintf("%01.2f", $n);
error_reporting(E_ALL | E_STRICT); ini_set('display_errors', 1);

JavaScript

$(function() { ... }); // on pageload (jQuery)

@sumpygump
sumpygump / git-info
Last active December 14, 2015 13:58 — forked from shrwnsan/.profile
#!/bin/bash
# author: Duane Johnson <duane.johnson@gmail.com>
# contributor: Jansen Price <jansen.price@gmail.com>
# date: 2008 Jun 12
# license: MIT
#
# Based on discussion at http://kerneltrap.org/mailarchive/git/2007/11/12/406496
function main() {
@sumpygump
sumpygump / codereview
Created June 20, 2012 16:59
codereview bash script
#!/bin/bash
if [ -z "$1" -o -z "$2" ]; then
echo "usage: $0 <repository> <username>"
exit
fi
REPO=$1
USER=$2