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
document.addEventListener('DOMContentLoaded', Snooper); | |
function Snooper() { | |
var stubs = 'track alias name_tag people.set people.set_once people.increment people.append people.track_charge people.clear_charges people.delete_user'.split(' '); | |
var spies = 'track_links track_forms register register_once unregister identify set_config'.split(' '); | |
var len = 'people.'.length; | |
var sinonize = function(ctx) { | |
if (ctx.ua) { | |
ctx.track_pageview = ctx.ua = sinon.stub(window.mixpanel, 'track_pageview'); |
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
// | |
// Variables | |
// -------------------------------------------------- | |
// Global values | |
// -------------------------------------------------- | |
// Grays | |
// ------------------------- |
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
var multicommand = { | |
"LIST": ["PASV", this.createDataSocket.bind(this)], | |
"GET": ["PASV", this.createDataSocket.bind(this)], | |
"PUT": ["PASV", this.createDataSocket.bind(this)], | |
"RNTO": ["RNFR", this.renameNode.bind(this)] | |
}; | |
(function(){ | |
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
/** | |
* Exception thrown if an error which can only be found on runtime occurs. | |
*/ | |
var RuntimeError = function(message) { | |
Error.call(this); | |
this.type = "RuntimeError"; | |
this.message = message || this.type; | |
}; | |
/** |
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
Array.implement({ | |
diff: function() { | |
var r = [], idx = -1, diff, len, i, pos, array, keys; | |
keys = ((keys = arguments[arguments.length-1]) === true); | |
while(n < arguments.length) { | |
array = arguments[n++]; | |
for(len = array.length, pos = this.length; len--;){ | |
for(i = pos; i && (diff = array[len] !== this[--i]);); | |
diff && (r[++idx] = keys ? len : array[len]); | |
} |
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
var MyTips = new Tips($$('.tooltip'), { | |
text: null, | |
fixed: true, | |
onBound: function(coords){ | |
if (coords.y2) { | |
this.tip.addClass('reverse'); | |
} else { | |
this.tip.removeClass('reverse'); | |
} | |
} |
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
switch(Browser.Engine.name) { | |
case 'trident': | |
if(Browser.Engine.version < 4) | |
return redirect = document.location.href = (URI.base.valueOf()+'browser_detect'); | |
case 'presto': | |
if(Browser.Engine.version < 960) | |
return redirect = document.location.href = (URI.base.valueOf()+'browser_detect'); | |
case 'webkit': | |
if(Browser.Engine.version < 525) | |
return redirect = document.location.href = (URI.base.valueOf()+'browser_detect'); |
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
<xs:redefine schemaLocation="../../../../libs/agavi/config/xsd/_envelope.xsd"> | |
<xs:complexType name="configuration"> | |
<xs:complexContent> | |
<xs:extension base="configuration"> | |
<xs:group ref="static_files_1_0:configuration" /> | |
<xs:attributeGroup ref="types_1_0:contexts" /> | |
</xs:extension> | |
</xs:complexContent> | |
</xs:complexType> | |
</xs:redefine> |
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 | |
/** | |
* @package StaticFiles | |
* | |
* @author Luis Merino <[email protected]> | |
* @copyright Author | |
*/ | |
class StaticFilesModel extends AgaviModel implements AgaviISingletonModel | |
{ | |
protected $files = array(); |