Skip to content

Instantly share code, notes, and snippets.

@corstian
corstian / FAT.c
Created November 7, 2017 10:00
"This is a low-level driver for MMC and SD cards" + "Driver/Library for a FAT filesystem with a PIC"
/////////////////////////////////////////////////////////////////////////
//// FAT_PIC.C ////
//// ////
//// Driver/Library for a FAT filesystem with a PIC ////
//// ////
//// This Library was designed to resemble standard ANSI C I/O as ////
//// much as possible. There are, however, some caveats to this. ////
//// Please read the comments to make sure the inputs and outputs ////
//// to each function are understood before using anything in ////
//// this library. ////
@corstian
corstian / LicenseComparison.cs
Created November 12, 2019 16:32
The scripts which have been used to try and figure out a license plate from some IR over-illuminated shots. Full blog post on https://corstianboerman.com.
void Main()
{
StreamReader csvreader = new StreamReader(@"C:\Documents\subset.csv");
var font = new Font("kenteken", 300, FontStyle.Regular, GraphicsUnit.Pixel, 0x00);
Dictionary<String, double[]> results = new Dictionary<String, double[]>();
var reference = new Bitmap(@"C:\Documents\reference.bmp");
var normalizedRef = Normalize(reference);
@corstian
corstian / mountain.md
Last active June 3, 2019 21:44
Right mountain part

mountain-right

This is the right part of the mountain I use to decorate my profile :)

@corstian
corstian / mountain.md
Created June 3, 2019 21:43
Left mountain part

mountain-left

This is the left part of the mountain I use to decorate my profile :)

@corstian
corstian / CoordinatesToText.linq
Created February 22, 2019 20:41
Representing coordinates in a human readable way
<Query Kind="Program">
<Reference>&lt;RuntimeDirectory&gt;\System.IO.Compression.dll</Reference>
<Reference>&lt;RuntimeDirectory&gt;\System.IO.Compression.FileSystem.dll</Reference>
<NuGetReference>Humanizer</NuGetReference>
<NuGetReference>NetTopologySuite</NuGetReference>
<Namespace>System.IO.Compression</Namespace>
<Namespace>System.Net</Namespace>
<Namespace>System.Threading.Tasks</Namespace>
<Namespace>NetTopologySuite.Index.KdTree</Namespace>
<Namespace>GeoAPI.Geometries</Namespace>
@corstian
corstian / easa_flightlog.html
Created August 7, 2018 16:24
This gist contains the html code to display a table to display the flight log according to EASA standards. Bootstrap has been used.
<table class="table table-bordered">
<thead>
<tr>
<th scope="col" rowspan=2>#</th>
<th scope="col">Date</th>
<th scope="col" colspan=2>Departure</th>
<th scope="col" colspan=2>Arrival</th>
<th scope="col" colspan=2>Aircraft</th>
<th scope="col" colspan=2>Single Pilot Time</th>
<th scope="col" rowspan=2>Multi Pilot Time</th>
/*
Quaack Quack
_
<(o) Quick Qwack
( —) _
^^^^^^^^^^ (o)>
(— )
^^^^~~~~~~