This file contains hidden or 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
| Opa, | |
| Bom, estou mandando esse email (atrasado, pelo que tinha prometido pra alguns) pra avisar que infelizmente | |
| você não foi selecionado pra trabalhar com a gente. Agradeço *muito* o interesse em entrar na nossa equipe, | |
| e espero que não desista. | |
| Quem sabe na próxima vez você surpreenda a gente? Seja com algum livro novo que tenha lido(aqui tem uma | |
| lista bem bacana http://plentz.org/unsorted/mustread.html) ou com alguma contribuição que tenha | |
| feito em um projeto opensource (aqui tem algunsque usamos e gostamos http://github.com/plentz/following). |
This file contains hidden or 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
| require 'net/http' | |
| require 'uri' | |
| require 'cgi' | |
| text = "<html><head><title>Delicious2Google</title></head><body>" + | |
| "<h1>Upload</h1>" + | |
| "<form action='https://www.google.com/bookmarks/mark?op=upload&zx=#{rand(65535)}' method='POST'>" + | |
| "<input type='submit'/><input type='hidden' id='data'></form>" + | |
| "<textarea id='xml' style='display:none'>\n<bookmarks>" |
This file contains hidden or 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
| // curl -k https://localhost:8000/ | |
| var https = require('https'); | |
| var fs = require('fs'); | |
| var options = { | |
| key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), | |
| cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem') | |
| }; | |
| https.createServer(options, function (req, res) { |
This file contains hidden or 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
| /* | |
| Usage examples | |
| */ | |
| // select * from users where active = true and last_logged_in > '2010-12-01' and type in ('admin, 'moderator') and expires > now() limit 1 | |
| table('users'). | |
| where({active: true}). | |
| where({'last_logged_in >': new Date(2010, 12, 1)}). | |
| where({type: ['admin', 'moderator']}). | |
| where('expires > now()'). |
This file contains hidden or 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 fs = require('fs'), | |
| step = require('step'), | |
| jsdom = require('jsdom'), | |
| window = jsdom.createWindow(), | |
| Script = process.binding('evals').Script; | |
| window.document = {}; | |
| window.Ext = {data:{Record:{}}}; | |
| var fileNames = [ |
This file contains hidden or 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
| #Steps | |
| pkgin install couchdb | |
| svccfg import /opt/local/share/smf/manifest/couchdb.xml | |
| svcadm enable couchdb | |
| #Test | |
| curl http://127.0.0.1:5984/ | |
| {"couchdb":"Welcome","version":"1.0.1"} |
This file contains hidden or 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
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby | |
| # - a browser with WebSocket support | |
| # | |
| # Usage: | |
| # ruby redis_pubsub_demo.rb | |
| # |
This file contains hidden or 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
| # Index | |
| http://www.call4paperz.com/events.json | |
| # Show do evento | |
| http://www.call4paperz.com/events/1.json | |
| # Show da proposta | |
| http://www.call4paperz.com/events/1/proposals/1.json | |
| # Evento com JSONP (preste atenção no p no formato) |
This file contains hidden or 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
| // | |
| // by Dmitry Soshnikov <[email protected]> | |
| // MIT Style License | |
| // see also: http://wiki.ecmascript.org/doku.php?id=strawman:iterators | |
| // | |
| // --------------------------------------- | |
| // 1. Iteration via for-in loop | |
| // --------------------------------------- |
This file contains hidden or 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
| /** | |
| * by Dmitry Soshnikov <[email protected]> | |
| */ | |
| // infinite objects generator | |
| let g = new function () { | |
| while (true) { | |
| yield; | |
| } | |
| }; |