Skip to content

Instantly share code, notes, and snippets.

@louis-e
louis-e / UDPSocket.cs
Last active Oct 6, 2021 — forked from darkguy2008/UDPSocket.cs
Simple C# UDP server/client in 62 lines
View UDPSocket.cs
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace UDP
{
public class UDPSocket
{
public Socket _socket;
View youtube.md

youtube makers rlemon enjoys.

Chandler Dickinson - https://www.youtube.com/channel/UCbpVXfX0GBy6Z2vqIwANdEA -- he's an ex-programmer turned blacksmith. uses very simple tools, no power hammer.

Alec Steele - https://www.youtube.com/channel/UCWizIdwZdmr43zfxlCktmNw -- he's a young (like <20) kid from the UK who makes outstanding videos and product. loves Damascus.

Peter Sripol - https://www.youtube.com/channel/UC7yF9tV4xWEMZkel7q8La_w -- he does DIY rc stuff. really neat channel.

Samuria Carpenter - https://www.youtube.com/channel/UC06fO6LNH_AUgjbmqaZRV5Q -- he's slightly annoying, but Canadian and makes outstanding wood working products.

@darkguy2008
darkguy2008 / UDPSocket.cs
Last active Jan 24, 2022
Simple C# UDP server/client in 56 lines
View UDPSocket.cs
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace UDP
{
public class UDPSocket
{
private Socket _socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
@GrantByrne
GrantByrne / UserValidator.cs
Created Apr 24, 2014
Using Fluent Validation with WPF - Dead Simple
View UserValidator.cs
using System.Text.RegularExpressions;
using FluentValidation;
using WpfFluentValidationExample.ViewModels;
namespace WpfFluentValidationExample.Lib
{
public class UserValidator : AbstractValidator<UserViewModel>
{
public UserValidator()
{
@hansmaad
hansmaad / gist:9187633
Last active Nov 25, 2021
WPF Flat Combo Box Style
View gist:9187633
<!-- Flat ComboBox -->
<SolidColorBrush x:Key="ComboBoxNormalBorderBrush" Color="#e3e9ef" />
<SolidColorBrush x:Key="ComboBoxNormalBackgroundBrush" Color="#fff" />
<SolidColorBrush x:Key="ComboBoxDisabledForegroundBrush" Color="#888" />
<SolidColorBrush x:Key="ComboBoxDisabledBackgroundBrush" Color="#eee" />
<SolidColorBrush x:Key="ComboBoxDisabledBorderBrush" Color="#888" />
<ControlTemplate TargetType="ToggleButton" x:Key="ComboBoxToggleButtonTemplate">
<Grid>
<Grid.ColumnDefinitions>
@Ehesp
Ehesp / SteamLogin.php
Last active Sep 8, 2021
PHP Steam Login Script
View SteamLogin.php
<?php
/**
*
* Origin: http://forums.steampowered.com/forums/showthread.php?t=1430511
*
* @package Steam Community API
* @copyright (c) 2010 ichimonai.com
* @license http://opensource.org/licenses/mit-license.php The MIT License
*
@zmilojko
zmilojko / UDPer.cs
Last active Dec 15, 2021
C# sends and receives UDP broadcasts
View UDPer.cs
using System;
using System.Net.Sockets;
using System.Net;
using System.Text;
using System.Threading;
namespace UDPer
{
class UDPer
{