Skip to content

Instantly share code, notes, and snippets.

View perrupa's full-sized avatar

Christopher Marlow perrupa

View GitHub Profile
<?php
# Implements a recursive null object pattern.
#
# Implemented as a trait so any object can make it's properties use
# the null pattern without resorting to inheritance.
#
# The goal is so you can pull data off a partially populated object
# without excessive existance checks.
trait NullPattern {
@perrupa
perrupa / Gruntfile.js
Last active August 29, 2015 14:08 — forked from jlouthan/Gruntfile.js
// wrapper function
module.exports = function(grunt){
// load all our Grunt plugins
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// task configuration goes here
jshint: {