This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
## | |
# MXMLC Quickbuild Script v.2010-06-13 | |
# | |
# Based on the Quickbuild feature found in FlashDevelop: | |
# http://www.flashdevelop.org/wikidocs/index.php?title=QuickBuild | |
# | |
# Author: | |
# David Knape, http://www.bumpslide.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find all deleted files and delete them from svn | |
svn status | awk '{if ($1=="!") print $2}' | xargs svn del |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find all un-added files and add them to svn | |
svn status | awk '{if ($1=="?") print $2}' | xargs svn add |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Lazy Database connection class - API version | |
* | |
* The database is not actually opened until we execute a query | |
* | |
* @author David Knape | |
*/ | |
class DBConnection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Bumpslide_Util | |
{ | |
static public function CreatePath( $path ) { | |
$folders=explode('/',$path); | |
$existingPath= (($os = getenv('OS')) && (substr_count($os, 'Win')>0)) ? '' : '/'; | |
foreach($folders as $folder){ | |
if($folder=='') continue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installing OpenCV python libs on mac to work with virtualenv | |
# OpenCV 2.4.3 | |
# Python 2.7.3 installed with brew | |
# assuming you have virtualenv, pip, and python installed via brew | |
# assuming $WORKON_HOME is set to something like ~/.virtualenvs | |
# using homebrew - make sure we're current | |
brew update |