Skip to content

Instantly share code, notes, and snippets.

View redas24's full-sized avatar
🏠
Working from home

lucas ch redas24

🏠
Working from home
View GitHub Profile
@redas24
redas24 / HttpServer.cs
Created October 17, 2021 21:09 — forked from define-private-public/HttpServer.cs
A Simple HTTP server in C#
// Filename: HttpServer.cs
// Author: Benjamin N. Summerton <define-private-public>
// License: Unlicense (http://unlicense.org/)
using System;
using System.IO;
using System.Text;
using System.Net;
using System.Threading.Tasks;
var Color;
(function (Color) {
Color[Color["Red"] = 0] = "Red";
Color[Color["Green"] = 10] = "Green";
Color[Color["Purple"] = 2] = "Purple";
})(Color || (Color = {}));
;
var BackgroundColor = Color.Red;
@redas24
redas24 / constructor
Created April 17, 2022 18:45
method do constructor will be changr new and faster way
let service = new CoursesService();
this.courses = service.getCourses();