Skip to content

Instantly share code, notes, and snippets.

@johnbouma
johnbouma / LinkedList.cs
Created April 8, 2018 15:08
Linked List Implementation
using System;
using System.Collections;
using System.Collections.Generic;
namespace LinkedListExample
{
public class Node<T>
{
public Node(T value)
{
@johnbouma
johnbouma / Tester.cs
Created June 21, 2018 15:52
Concurrency Tester CommandLine
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace ConcurrencyTester
{
class Program
{
[JsonObject]
internal class ServiceResult
{
public bool IsValid
{
get;
}
public string ServiceName
{
@johnbouma
johnbouma / VerticesCSharp.cs
Created August 17, 2018 04:04
Cuda Vertices
namespace VerticesTest
{
public class VertexTest : IDisposable
{
[DllImport("vertices.dll")]
public static void Compute(IntPtr vertices, IntPtr noise, int cSizeM2, int cSizeP2, int N);
private int[] _vertices;
private int[] _noise;
@johnbouma
johnbouma / DataModel.cs
Created January 10, 2019 15:28
Repository With Includes
namespace Foos.DataModel
{
public class Foo
{
private Foo() {}
public Foo(Bar bar)
{
Bar = bar;