Skip to content

Instantly share code, notes, and snippets.

View MDemetrio's full-sized avatar
🦖

Matheus Demetrio MDemetrio

🦖
  • Curitiba, Brasil
View GitHub Profile
@AliSawari
AliSawari / tcp-server.js
Created October 28, 2018 18:54
a small TCP-based chat room server application with Node.js
// including the net module
const net = require('net');
// clients array
let clients = [];
// a nice little logger with a time stamp
// loggin messages for both server and Client
function logger(m){
let d = new Date().toLocaleString();
@angusbreno
angusbreno / BlobHelper.cs
Last active January 19, 2018 12:55
UploadFile WebAPI - Client
using System;
using System.IO;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace UploadImageTest
{
public class BlobHelper
{
@creationix
creationix / chatServer.js
Created November 19, 2010 20:47
A simple TCP based chat server written in node.js
// Load the TCP Library
net = require('net');
// Keep track of the chat clients
var clients = [];
// Start a TCP Server
net.createServer(function (socket) {
// Identify this client