Simple logging utility for NodeJS v8+.
const { warn } = require('./logger');
warn('Something');
You can set log level via LOG_LEVEL
env variable.
{ | |
init: function(elevators, floors) { | |
var upWaiters = {}, | |
downWaiters = {}, | |
idleElevators = [], | |
floorCount = floors.length, | |
arrayUnique = function(a) { | |
return a.reduce(function(p, c) { | |
if (p.indexOf(c) < 0) p.push(c); | |
return p; |
<div synaps-secim></div> |
# Prerender kurulumu | |
sudo locale-gen UTF-8 | |
sudo apt-get update | |
sudo apt-get install -y curl | |
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - | |
sudo apt-get install -y nodejs build-essential libfontconfig nginx-extras | |
sudo npm install -g phantomjs | |
sudo npm install -g prerender | |
sudo npm install -g pm2 |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /var/www/${host}/public; | |
index index.html; | |
server_name _; | |
gzip on; |
const OpCodes = { | |
LOGIN_RESULT: -1, | |
PING_RESULT: -3, | |
UDP_CONNECT_MESSAGE: -5, | |
PLAYER_READY_MESSAGE: -7, | |
PLAYER_CONNECT_MESSAGE: -101, | |
PLAYER_DISCONNECT_MESSAGE: -103, | |
} | |
export class Connection { |
Simple logging utility for NodeJS v8+.
const { warn } = require('./logger');
warn('Something');
You can set log level via LOG_LEVEL
env variable.
For more details: https://poste.io/doc/getting-started