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
IniFile | |
= first: Section (BlankLine* others: Section*) {others.unshift(first); return others; } | |
Section | |
= section: SectionHeader "\n" values: KeyValues* {return {section:values}} | |
SectionHeader | |
= "[" section_name: word "]" {return section_name} | |
KeyValues | |
= a: word "=" value: word "\n"? {var o = {}; o[a]=value; return o;} |
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 async = require('async'); | |
function copyFileToStructure(filename, done){ | |
async.parallel([ | |
async.apply(teste, filename , 'param'), | |
async.apply(teste, filename , 'param') | |
], function(result) { | |
console.log("poa"); | |
console.log(done); | |
done(); |
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
(function() { | |
var childProcess = require("child_process"); | |
var oldSpawn = childProcess.spawn; | |
function mySpawn() { | |
console.log('spawn called'); | |
console.log(arguments); | |
var result = oldSpawn.apply(this, arguments); | |
return result; | |
} | |
childProcess.spawn = mySpawn; |
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
express.get('/', function(req, res){ | |
http.get('www.outrolugar.com.br/api/', function(response){ | |
//Posso fazer isso??? | |
//Ou como faço algo parecido | |
res = response; | |
res.end(); | |
}) | |
}) |
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
"use strict"; | |
var path = require("path"); | |
var fs = require("fs"); | |
var Twit = require('twit'); | |
var rateLimiter = {}; | |
var luckyNumber = Math.round(Math.random()*60); | |
var re = /\d+/; | |
var oauth = JSON.parse(fs.readFileSync("./config/twitter_credentials.js", "UTF8")); |
NewerOlder