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 net = require('net'); | |
var clients = []; | |
net.createServer(function (socket) { | |
clients.push(socket); | |
socket.write('Who are you? '); | |
socket.on('data', function (message) { | |
if (!socket.chatname) | |
return socket.chatname = message.toString().trim(); | |
clients.forEach(function (client) { |
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
<VirtualHost beaver.localhost:80> | |
ProxyPreserveHost Off | |
ProxyRequests Off | |
<Proxy *> | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
<Location /> |
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
/* Get: all */ | |
Employee.query( | |
function success(employees, httpResponse) {}, | |
function error(error) {} | |
); | |
/* Query specify parameter. Resoves to /api/employees?firstName=Irvin123 */ | |
Employee.query({firstName: 'Irvin123'}, function success(data) { | |
console.log(data); | |
}); |
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
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
NewerOlder