Skip to content

Instantly share code, notes, and snippets.

@S0und
S0und / person.cs
Created Jan 16, 2020
Java like "static" builder pattern for c#
View person.cs
public class Person
{
public string Name { get; private set; }
public int Age { get; private set; }
private Person(Builder builder)
{
Name = builder.name;
Age = builder.age;
}
@S0und
S0und / rgbcontroller.cs
Last active Mar 17, 2020
Wifi RGB LED controller Device for Aurora
View rgbcontroller.cs
using Aurora;
using Aurora.Devices;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.IO;
using System.Net.Sockets;
using System.Threading.Tasks;
View gist:6312819
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(blink-cursor-mode nil)
'(org-hide-leading-stars t)
'(text-mode-hook (quote (text-mode-hook-identify)))
'(tool-bar-mode nil))
(custom-set-faces