Skip to content

Instantly share code, notes, and snippets.

@louis-e
louis-e / UDPSocket.cs
Last active October 27, 2024 20:53 — forked from darkguy2008/UDPSocket.cs
Simple C# UDP server/client in 62 lines
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace UDP
{
public class UDPSocket
{
public Socket _socket;

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 November 17, 2024 09:00
Simple C# UDP server/client in 56 lines
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 April 24, 2014 06:02
Using Fluent Validation with WPF - Dead Simple
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 October 14, 2024 15:01
WPF Flat Combo Box Style
<!-- 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 May 17, 2024 04:21
PHP Steam Login Script
<?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 August 14, 2024 15:38
C# sends and receives UDP broadcasts
using System;
using System.Net.Sockets;
using System.Net;
using System.Text;
using System.Threading;
namespace UDPer
{
class UDPer
{