- Yahoo Performance Rules
- Um dos primeiros sites a divulgar esse tipo de info e provavelmente o mais famoso.
- Google Web Performance Best Practices
- Similar ao Yahoo Perf Rules.
- Sitepoint web site optimization steps
- Similar ao yahoo mas entra em mais detalhes sobre implementação.
- Performance Calendar
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 | |
require_once 'PHPUnit/Framework/TestCase.php'; | |
require_once 'businessDays.php'; | |
/** | |
* businessDays() test case. | |
*/ | |
class BusinessDaysTest extends PHPUnit_Framework_TestCase { | |
protected function setUp() { | |
parent::setUp(); |
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 actual implementation is just this file. Others are usage and tests. | |
class TodoList extends ArrayObject | |
{ | |
const CREATE = 'CREATE TABLE IF NOT EXISTS tasks (name VARCHAR(32) PRIMARY KEY, status INT)'; | |
const SELECT = 'SELECT * FROM tasks'; | |
const INSERT = 'INSERT INTO tasks VALUES (?,?)'; | |
const UPDATE = 'UPDATE tasks SET status = ? WHERE name = ?'; |
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
/** | |
* ECMAScript 5 implementation of Python's range function. | |
* @see {@link http://docs.python.org/release/1.5.1p1/tut/range.html} | |
* @param {Number} start | |
* @param {Number} end | |
* @param {Number} step | |
* @return {Array} | |
*/ | |
Object.defineProperty(Array, "range", { | |
writable: false, configurable: false, enumerable: true, |
###Collections Salas{_id} Reservas{_id, sala_id, data}
###Preciso contar as reservas de cada sala por uma data:
map = function () { emit(this.sala_id, [1]); }
NewerOlder