This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Helpers | |
{ | |
public class Either<TL, TR> | |
{ | |
private readonly TL left; | |
private readonly TR right; | |
private readonly bool isLeft; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Helpers | |
{ | |
public struct Range<T> where T : IComparable | |
{ | |
public T Start { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using System.Windows; | |
namespace Snippets | |
{ | |
public static class BrowseFolderDialog | |
{ | |
public static string Show(Window owner, string caption, string startingLocation, bool withFileName) | |
{ | |
string result = string.Empty; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- mode:python -*- | |
# | |
# Converts suunto zip files (which contain json files) to a gpx file | |
# until Suunto gets their act together and let me have my own data in | |
# a normal way. | |
# Needs: python 3.7 | |
# | |
# These zip files are producted by the Suunto app and typically on | |
# android are located at: |