Skip to content

Instantly share code, notes, and snippets.

@zmilojko
zmilojko / UDPer.cs
Last active December 15, 2021 14:59
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
{
@Ehesp
Ehesp / SteamLogin.php
Last active May 12, 2023 05:35
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
*
@hansmaad
hansmaad / gist:9187633
Last active November 12, 2023 11:37
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>
@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()
{
@darkguy2008
darkguy2008 / UDPSocket.cs
Last active April 21, 2024 14:48
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);

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.

@louis-e
louis-e / UDPSocket.cs
Last active April 14, 2024 02:43 — 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;