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 one = 'http://blah' | |
, two = '/asdf/asdf/af' | |
; | |
function regexTest () { | |
var start = new Date(); | |
var i = 0; | |
while (i<1000000) { | |
if ( !/^http?:/.test(one) ) true | |
if ( !/^http?:/.test(two) ) true |
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 | |
/** | |
* Reconstruct an array, for small task at: http://www.phpgangsta.de/kleine-aufgabe-ein-array-umbauen | |
* Contribution by DracoBlue | |
*/ | |
function compress($in) | |
{ | |
$in_length = count($in); |
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
/** | |
* @module UserService | |
* | |
* @extends Logging | |
*/ | |
extend(true, exports, Logging.prototype); | |
exports.logging_prefix = 'UserService'; | |
var assert = require('assert'); |
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 | |
/** | |
* AgaviSyslogLoggerAppender allows you to log right into a specific tag of the syslog. | |
* | |
* @package agavi | |
* @subpackage logging | |
* | |
* Licensed under the Public Domain | |
* |
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
AutoScale = function(dom_element) { | |
var that = this; | |
this.dom_element = dom_element; | |
var style = dom_element.style; | |
var transform_property = (style.TransitionDuration === '' && 'Transform'); | |
transform_property = transform_property || (style.MozTransitionDuration === '' && 'MozTransform'); | |
transform_property = transform_property || (style.WebkitTransitionDuration === '' && 'WebkitTransform'); |
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
Index: agavi/database/AgaviDoctrineDatabase.class.php | |
=================================================================== | |
--- agavi/database/AgaviDoctrineDatabase.class.php (revision 759) | |
+++ agavi/database/AgaviDoctrineDatabase.class.php (working copy) | |
@@ -119,7 +119,7 @@ | |
// set our event listener that, on connect, sets the configured charset and runs init queries | |
$cel = $this->getParameter('connection_event_listener_class', 'AgaviDoctrineDatabaseEventListener'); | |
- $this->connection->setListener(new $cel($this)); | |
+ $this->connection->addListener(new $cel($this)); |
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
$ curl -s http://github.com/api/v2/json/issues/list/DracoBlue/node-facebook-client/open | craur issues[].number issues[].title issues[].user | |
14;"cookie expiration check reversed";enki | |
17;"Add simple storage for mapping between oauth-code and access_tokens";DracoBlue | |
24;"Large amount of timeouts over time";dominiek | |
25;"/Picture api fixed";edjoperez | |
26;"Add method to FacebookClient to parse signed_request";leoasis |
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
Index: libs/ApplicationBase/agavi/renderer/ApplicationPhpRenderer.class.php | |
=================================================================== | |
--- libs/ApplicationBase/agavi/renderer/ApplicationPhpRenderer.class.php (revision 305) | |
+++ libs/ApplicationBase/agavi/renderer/ApplicationPhpRenderer.class.php (working copy) | |
@@ -94,6 +94,31 @@ | |
public function render(AgaviTemplateLayer $layer, array &$attributes = array(), array &$slots = array(), | |
array &$more_assigns = array()) | |
{ | |
+ /* | |
+ * Dragons |
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 | |
/** | |
* The AgaviProxyRenderer will try to load multiple renderers by name and | |
* return the first successful attempt to render the given layer. | |
* | |
* This allows you to mix e.g. .twig and .php templates in the same directory, | |
* but still use the proper renderer for each file. | |
* | |
* @example <pre> |
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
Index: libs/agavi/validator/AgaviStringValidator.class.php | |
=================================================================== | |
--- libs/agavi/validator/AgaviStringValidator.class.php (revision 329) | |
+++ libs/agavi/validator/AgaviStringValidator.class.php (working copy) | |
@@ -85,10 +85,12 @@ | |
return false; | |
} | |
+ /* To fix the: 'non SGML character number 11' issue. */ | |
+ $originalValue = preg_replace('/[\x1-\x8\xB-\xC\xE-\x1F]/', '', $originalValue); |