Skip to content

Instantly share code, notes, and snippets.

public class DateRange : IEquatable<DateRange>
{
public DateTime Start { get; }
public DateTime End { get; }
public double Days { get; }
public DateRange(DateTime start, DateTime end)
{
// https://stackoverflow.com/a/3670089/1933104
public static bool ScrambledEquals<T>(this ICollection<T> self, ICollection<T> other)
{
if (self == null)
{
throw new ArgumentNullException(nameof(self));
}
if (other == null)
@kosorin
kosorin / temnota-plus.user.js
Last active February 14, 2020 18:14
Temnota.cz UserScript
// ==UserScript==
// @name Temnota Plus
// @namespace http://temnota.cz
// @include http://temnota.cz/*
// @include http://www.temnota.cz/*
// @version 7.1.1
// @grant none
// @require https://code.jquery.com/jquery-3.2.1.min.js
// @require https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js
// ==/UserScript==