Skip to content

Instantly share code, notes, and snippets.

View jkingry's full-sized avatar

Joseph Kingry jkingry

View GitHub Profile
@jkingry
jkingry / ParallelMazeSolver.cs
Created October 16, 2015 20:10
Parallel MazeSolver
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
@jkingry
jkingry / Program.cs
Created October 16, 2015 18:51
MazeSolver
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
namespace MazeSolve
{
@jkingry
jkingry / Madness.cs
Last active August 29, 2015 13:57
NCAA Tournament Bracket Picker - 2014
namespace Madness
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
internal interface IResult
{
@jkingry
jkingry / fiddle.html
Last active August 29, 2015 13:56
Alex Scene Communication Sequence
<div id="diagram"></div>
<script type="text/javascript">
var diagram = Diagram.parse("A->B: Message");
diagram.drawSVG("diagram", {theme: 'hand'});
</script>
@jkingry
jkingry / index.html
Last active December 31, 2015 16:28
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">
<scene id="scene1" height="400">
<label t="translate(0,400)">
<tspan x="0" y="0em">December 17, 2013</tspan>
</label>
@jkingry
jkingry / answer.cs
Created May 6, 2011 13:32
How do you close TCP connections gracefully without exceptions?
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
namespace Example
{
class Channel
// http://stackoverflow.com/questions/3322741/synchronizing-multiline-textbox-positions-in-c/3779949#3779949
namespace Kingry.StackOverFlow.Question_3779949
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;
namespace RxDemoServer
{
class Program
namespace JoeKingry
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
class Program
{
static void Main(string[] args)
// http://stackoverflow.com/questions/2545796/how-to-get-a-majority-color-in-an-image/2546506#2546506
namespace FastImageAverage
{
using System;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
class Program