Skip to content

Instantly share code, notes, and snippets.

View dentia's full-sized avatar

Mihaela Encheva dentia

  • Sofia, Bulgaria
View GitHub Profile
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
location / {
proxy_pass http://node_cluster/;
}
upstream node_cluster {
server 127.0.0.1:3000;
server 127.0.0.1:3001;
server 127.0.0.1:3002;
}
var http = require('http');
function startServer(host, port) {
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Nice to meet you at ' + host + ':' + port);
}).listen(port, host);
console.log('Warming up your server at ' + host + ':' + port);
}
http://goo.gl/7Kw0es
//Write a program that exchanges bits {p, p+1, …, p+k-1} with bits {q, q+1, …, q+k-1} of a given 32-bit unsigned integer.
namespace BitExchange_Advances
{
using System;
class BitExchange_Advances
{
static void Main(string[] args)
{