(arquivo em branco)
statement list
| var sys = require('sys'); | |
| var path = require('path'); | |
| var http = require('http'); | |
| http.createServer(function(req, res) { | |
| res.writeHead(200, {'Content-Type': 'text/plain'}); | |
| res.end('Hello World!\n'); | |
| console.log('servi'); | |
| }).listen(1337, "localhost"); |
| var sys = require('sys'); | |
| this.hey = function() { | |
| sys.puts('hey'); | |
| setTimeout(this.hey, 2000); | |
| }; | |
| this.hey(); |
| | | |
| | | |
| _______|_______ | |
| verbo / / \ | |
| / objeto \ | |
| / / \ modo | |
| / / \ | |
| V V V | |
| apertar o botão do foda-se deliciosamente | |
| \_________^ |
| // Ele tirava todos os caracteres que não fossem alfa e aspas | |
| $_q = preg_replace('/[^A-Za-z\']/i', '', $_REQUEST['query']); | |
| // Agora ele tira todos que não forem alfa ou espaços, e corta os espaços do começo e do final. | |
| // Preciso lidar com os acentos e tals ainda | |
| $_q = preg_replace('/[^A-Za-z\'\s]/i', '', trim($_REQUEST['query'])); |
| { "_": "oa:person", | |
| , "first": "John" | |
| , "last": "Appleseed" | |
| , "birthday": { "$": "oa:date" | |
| , "value": '2012-02-06T00:00:00.000Z' | |
| } | |
| , "gender": "male" | |
| , "address": { "_": "oa:location" | |
| , "street": "Ariel Apletiroa" | |
| , "city": "Belo Horizonte" |
| if ((!$.browser.msie) && (!($.browser.mozilla && $.browser.version.indexOf("1.8.") == 0))) | |
| { | |
| document.domain = document.domain; // for comet | |
| } |
| SELECT count(*) as activity, actor_attributes_login FROM publicdata:samples.github_timeline WHERE actor_attributes_login != '' GROUP BY actor_attributes_login ORDER BY activity DESC LIMIT 1000; |
| /** | |
| * This function is similar to bind, but the received value of "this" | |
| * gets passed as the first function argument. | |
| */ | |
| function bind2 (fn, _this) { | |
| return function() { | |
| var args = [].slice.call(arguments); | |
| args.unshift(this); | |
| fn.apply(_this, args); | |
| } |
| // These are known beforehand | |
| int imageWidth = 640; | |
| int imageHeight = 480; | |
| int tileWidth = 32; | |
| int tileHeight = 32; | |
| int tilesPerRow = imageWidth / tileWidth; | |
| int index = 5; |