Skip to content

Instantly share code, notes, and snippets.

View craigmarvelley's full-sized avatar

Craig Marvelley craigmarvelley

View GitHub Profile
@craigmarvelley
craigmarvelley / gist:1339292
Created November 4, 2011 13:20
Titanium 1.7.5 and underscore.string.js
// (Starting line 446)
// CommonJS module is defined
if (typeof module !== 'undefined' && module.exports) {
// Export module
module.exports = _s;
// Added: Support Titanium's CommonJS implementation)
} else if (typeof exports !== 'undefined' && exports) {
exports._s = _s;
@craigmarvelley
craigmarvelley / commands.txt
Created May 11, 2011 16:33
Setting up a Symfony 2 project with bleeding edge vendors on Windows
git init
mkdir vendor
git submodule add git://github.com/kriswallsmith/assetic.git vendor/assetic
mkdir vendor\bundles\JMS
git submodule add https://github.com/schmittjoh/SecurityExtraBundle.git vendor/bundles/JMS/SecurityExtraBundle
mkdir vendor\bundles\Sensio\Bundle
@craigmarvelley
craigmarvelley / Web.config
Created May 8, 2011 20:36
Silex IIS Web.config
<?xml version="1.0"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
</files>
</defaultDocument>