Skip to content

Instantly share code, notes, and snippets.

View zacharydanger's full-sized avatar
🥔
POTATO!

Zachary Danger zacharydanger

🥔
POTATO!
View GitHub Profile
<?php
class Foobar {
static $global_value;
private $_local_value;
public function __construct($local_val = null) {
if(false == is_null($local_val)) {
$this->_local_value = $local_val;
}
@zacharydanger
zacharydanger / git-submodule-recurse
Created July 17, 2009 01:17
Simple bash script for recursive submodule init/update
#!/bin/bash
#save this file somewhere in your path and make it executable
#then you can just run git-submodule-recurse to recursively init / update your git submodules
git submodule init
git submodule update
git submodule foreach git-submodule-recurse