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
describe("class system", function(){ | |
it("should be possible to create classes", function(){ | |
Class({name:'MyClass'}); | |
expect(window.MyClass === undefined).toBeFalsy(); | |
}); | |
it("should be possible to create properties within classes", function(){ | |
Class({ | |
name:'MyClass', | |
attrs:{ |
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
/** | |
* Um objeto de origem qualquer | |
*/ | |
var o = { x: 10, y: 10 }; | |
/** | |
* Criação do Proxy (API antiga). | |
* Cada uma dessas propriedades do proxy representa uma operação no objeto de origem; O proxy | |
* receberá a operação e delegará (ou não) para o objeto de origem. | |
*/ |
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
/** | |
* Removes all previously-attached event handlers from the elements. | |
*/ | |
$.fn.unbindAll = function() { | |
var events = $(this).data('events'); | |
return this.each( function() { | |
var $this = $(this); | |
for ( var evt in events ) { |
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
/** | |
* Implementação do algorítimo SoundEx em Javascript. | |
* @author João Batista Neto | |
* | |
* SoundEX é um algorítimo fonético para indexação de nomes pelo som segundo | |
* sua pronúncia. O algorítimo foi desenvolvido por Robert C. Russell e | |
* Margaret K. Odell e patenteado em 1918 e 1922. | |
* {@link http://en.wikipedia.org/wiki/Soundex} | |
* | |
* @return {String} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>AnythingSlider Video Demo</title> | |
<link rel="shortcut icon" href="demos/images/favicon.ico"> | |
<link rel="apple-touch-icon" href="demos/images/apple-touch-icon.png"> |
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 | |
/** | |
* | |
* Paypal Request Class. | |
* | |
* Classe que adiciona os produtos e cria a requisição para a API Paypal utilizando o Express Checkout. | |
* | |
* @author R'Santiago. | |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>IndexDB Demo - Version 1.1</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
<meta name="author" content="Ido Green"/> | |
</head> | |
<style> | |
#footer { | |
background-color: yellowgreen; |
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
#!/usr/bin/env node | |
var net = require('net'), | |
host = 'localhost', | |
start = 1, | |
end = 10000, | |
timeout = 15000; | |
while ( start <= end ) { | |
var port = start; |
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 page = new WebPage(), | |
address, output, size; | |
address = "http://www.metachunk.com/"; | |
width = 1024; height = 600; | |
output = "./screenshots/wat-"+width+"X"+height+".png"; | |
page.viewportSize = { width: width, height: height }; | |
if (phantom.args.length === 3 && phantom.args[1].substr(-4) === ".pdf") { |
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('MongoFactory.php'); | |
class MongoActiveRecord extends MongoFactory{ | |
private $model; | |
private $statement; | |
private $class; | |
private $className; |
OlderNewer