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 http = require('http'); | |
function getBears(styleId) { | |
var url = [ | |
"http://google.com", | |
"/" | |
].join(''); | |
http.get("http://someurl", function(res) { | |
var body = ''; |
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 WebSocketServer = require('websocket').server; | |
var http = require('http'); | |
var server = http.createServer(function(request, response) { | |
console.log((new Date()) + ' Received request for ' + request.url); | |
response.writeHead(404); | |
response.end(); | |
}); | |
server.listen(9000, function() { |
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
app.service('logcat', function() { | |
var self = this; | |
//***************************************************** | |
//* NODE STUFF HERE! | |
// | |
var adb = require('adbkit'); | |
var Connection = require('adbkit/lib/adb/connection'); | |
//***************************************************** |
NewerOlder