Skip to content

Instantly share code, notes, and snippets.

View wieslawsoltes's full-sized avatar

Wiesław Šoltés wieslawsoltes

View GitHub Profile
@wieslawsoltes
wieslawsoltes / ParallelSort.cs
Created September 17, 2013 10:21
C# Parallel Sort
#region References
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Demo
{
static class Program
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Demo
{
static class Program
{
@wieslawsoltes
wieslawsoltes / Demo.cs
Created September 17, 2013 21:17
Solution for http://ayende.com/blog/163394/new-interview-question using ParallelSort with 10 million items.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Demo
{
static class Program
using System;
using System.Collections.Generic;
using System.Linq;
namespace Demo
{
public static class Algorithm
{
public static IEnumerable<long> GetRuns(this int[] n)
{
@wieslawsoltes
wieslawsoltes / Direct2DTransformTest.cs
Created June 3, 2015 07:01
Eto.Forms Direct2D transform test
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Eto.Forms;
using Eto.Drawing;
namespace MyApp1
{
@wieslawsoltes
wieslawsoltes / EtoTransformTest.cs
Created June 3, 2015 08:44
Eto.Forms transform test
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Eto.Forms;
using Eto.Drawing;
namespace MyApp1
{
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace TestWinForms
{
public partial class MainForm : Form
{
@wieslawsoltes
wieslawsoltes / NullReferenceException.cs
Last active August 29, 2015 14:24
Eto.Wpf.Drawing.FontHandler.Dispose throws System.NullReferenceException
using System;
using Eto.Forms;
using Eto.Drawing;
using System.Diagnostics;
using System.Threading;
using System.Globalization;
namespace ConsoleApplication22
{
class MyForm : Form
using System;
using System.Diagnostics;
using Eto.Drawing;
using Eto.Forms;
namespace ConsoleApplication22
{
class MyForm : Form
{
public MyForm()