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
// a.js | |
//goog.provide('myapp.A'); | |
myapp.A = function() {} | |
myapp.A.prototype.move = function() { | |
console.log('moveA'); | |
} | |
// b.js | |
//goog.provide('myapp.B'); | |
//goog.require('myapp.A'); |
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 defined('SYSPATH') or die('No direct script access.'); | |
class Kohana extends Kohana_Core { | |
/** | |
* Augments the core method for two reasons: | |
* 1) Reserve an extra 1M memory to allow handling memory_limit violation. | |
* 2) Reserve more exec time to allow max_execution_time violation. | |
* | |
* Note: keep variable creation at a minimum. |
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 | |
/** | |
* | |
* When using sprintf and mt_rand to generate a random hex-like string, the | |
* output seems to take more memory than it should. | |
* | |
* Changing the output to a string via a (string) cast or by any other mean, | |
* such as concatenating a string to it seems to fix the memory usage. | |
* |
NewerOlder