Skip to content

Instantly share code, notes, and snippets.

View zrod's full-sized avatar
💻
Refactoring https://donating.io

Rodrigo zrod

💻
Refactoring https://donating.io
View GitHub Profile
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.
@zrod
zrod / uri.js
Created October 16, 2012 02:29 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@zrod
zrod / main.js
Created July 18, 2012 01:18 — forked from fivetanley/main.js
requirejs configuration example
( function() {
var myLoader = require.config( {
baseUrl: '/js'
// any other settings here.
});
myLoader( [ 'list', 'of', 'deps' ], function( dep1, dep2, dep3 ) {
/* do stuff here */
});
}())