Skip to content

Instantly share code, notes, and snippets.

/*******************************************************************************
1. DEPENDENCIES
*******************************************************************************/
var gulp = require('gulp'); // gulp core
sass = require('gulp-sass'), // sass compiler
uglify = require('gulp-uglify'), // uglifies the js
jshint = require('gulp-jshint'), // check if js is ok
rename = require("gulp-rename"); // rename files
concat = require('gulp-concat'), // concatinate js
@reecefowell
reecefowell / composer.json
Created January 29, 2014 20:06
composer.json for CCDN
{
"name": "codeconsortium/ccdn-sandbox",
"description": "The \"CodeConsortium Standard Edition\" distribution",
"license": "MIT",
"type": "project",
"autoload": {
"psr-0": { "": "src/" }
},
"minimum-stability": "dev",
"repositories": [
#!/usr/bin/env bash
sudo cp -rR /etc/yum.repos.d/ /etc/yum.repos.d-backup/
sudo ln -s /CCDNSandbox/Vagrant /vagrant
sudo chmod 755 /vagrant/shell/*.sh
sudo /vagrant/shell/os-detect.sh
sudo /vagrant/shell/initial-setup.sh
sudo /vagrant/shell/update-puppet.sh
sudo /vagrant/shell/librarian-puppet-vagrant.sh
assertArrayHasKey()
assertClassHasAttribute()
assertClassHasStaticAttribute()
assertContains()
assertContainsOnly()
assertContainsOnlyInstancesOf()
assertCount()
assertEmpty()
assertEqualXMLStructure()
assertEquals()
@reecefowell
reecefowell / ToDoApp.html
Created May 6, 2013 21:35
Todo list app, written in Javascript. By Reece Fowell.
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css" rel="stylesheet" type="tex/css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
@reecefowell
reecefowell / git-prompt.sh
Created March 31, 2013 03:45
~/.git-prompt.sh
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see the current branch in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@reecefowell
reecefowell / gist:4966533
Created February 16, 2013 11:46
Crapola
interface ChainedInterface
{
public function init();
public function prerequisites();
}
class SetupVHost implements ChainedInterface
{
public function init()

1) Install git-core

$ sudo port selfupdate               # updates the ports tree and port utility
$ sudo port install git-core +svn    # installs git

2) Create your ~/.git-prompt.sh ~/.bash_rc

Open vi and paste the following code, save file as ~/.git-prompt.sh:

@reecefowell
reecefowell / gitconfig
Created January 23, 2013 06:41
~/.gitconfig
[core]
excludesfile = /Users/reecefowell/Library/Application Support/TorusKnotSoftware/SourceTree/gitignore_default.txt
quotepath = false
ignorecase = false
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/Other/Developer/Version Management/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true