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
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 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
if ((!$.browser.msie) && (!($.browser.mozilla && $.browser.version.indexOf("1.8.") == 0))) | |
{ | |
document.domain = document.domain; // for comet | |
} |
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
{ "_": "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" |
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
// 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'])); |
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
| | |
| | |
_______|_______ | |
verbo / / \ | |
/ objeto \ | |
/ / \ modo | |
/ / \ | |
V V V | |
apertar o botão do foda-se deliciosamente | |
\_________^ |
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 sys = require('sys'); | |
this.hey = function() { | |
sys.puts('hey'); | |
setTimeout(this.hey, 2000); | |
}; | |
this.hey(); |
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 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"); |
NewerOlder