Skip to content

Instantly share code, notes, and snippets.

View aklefdal's full-sized avatar

Alf Kåre Lefdal aklefdal

View GitHub Profile
@aklefdal
aklefdal / Mod10.bas.vb
Last active December 6, 2017 00:49
VBA-funksjoner for å gjøre MOD10-generering av kontrollsiffer
Option Explicit
Function LagSjekksiffer(grunnlag)
Dim isOne As Boolean
Dim controlNumber As Integer
Dim length As Integer
Dim i As Integer
isOne = False
controlNumber = 0
@aklefdal
aklefdal / paket.dependencies
Last active December 1, 2017 14:15
paket.dependencies from doing 'paket.exe convert-from-nuget' on master branch of https://github.com/Azure/azure-webjobs-sdk-script/
source https://www.nuget.org/api/v2/
nuget Autofac 4.2.1 restriction: >= net46
nuget Autofac.WebApi2 4.0.1 restriction: >= net46
nuget Castle.Core 3.3.3 restriction: >= net46
nuget Edge.js 6.11.3 restriction: >= net46
nuget FSharp.Compiler.Service 9.0.1 restriction: >= net46
nuget FSharp.Core 4.0.0.1 restriction: >= net46
nuget Microsoft.ApplicationInsights 2.4.0
nuget Microsoft.ApplicationInsights.Agent.Intercept 2.4.0 restriction: >= net46
@aklefdal
aklefdal / convert-from-nuget.log
Created November 7, 2017 13:22
Complete log from doing "paket.exe convert-from-nuget" on master branch of https://github.com/Azure/azure-webjobs-sdk-script/
Paket version 5.122.0
Package Microsoft.ApplicationInsights is referenced multiple times in different versions: ["2.4.0"; "2.2.0"]. Paket will choose the latest one.
Package Microsoft.Data.Edm is referenced multiple times in different versions: ["5.8.1"; "5.6.4"]. Paket will choose the latest one.
Package Microsoft.Data.OData is referenced multiple times in different versions: ["5.8.1"; "5.6.4"]. Paket will choose the latest one.
Package Microsoft.Data.Services.Client is referenced multiple times in different versions: ["5.8.1"; "5.6.4"]. Paket will choose the latest one.
Package System.Spatial is referenced multiple times in different versions: ["5.8.1"; "5.6.4"]. Paket will choose the latest one.
Package WindowsAzure.ServiceBus is referenced multiple times in different versions: ["3.4.5"; "4.1.0"]. Paket will choose the latest one.
Package xunit is referenced multiple times in different versions: ["2.1.0"; "2.2.0"]. Paket will choose the latest one.
Package xunit.abstractions is referenced multiple times in
@aklefdal
aklefdal / errors.txt
Created November 7, 2017 12:39
Errors when running paket.exe convert-from-nuget on dev branch on https://github.com/Azure/azure-webjobs-sdk-script/
Resolving packages for group Main:
- RestSharp is pinned to 105.2.3
- Microsoft.NET.Test.Sdk is pinned to 15.5.0-preview-20170923-02
- Microsoft.Build is pinned to 15.3.409
- FSharp.Compiler.Service is pinned to 13.0.0
- Newtonsoft.Json is pinned to 10.0.3
- WindowsAzure.Storage is pinned to 8.3.0
- Sendgrid is pinned to 8.0.5
- Microsoft.Data.Edm is pinned to 5.8.1
Performance:
open System
open System.IO
open System.Collections.Generic
open System.Security.Cryptography
type CommandLineOptions = {
startkatalog : DirectoryInfo
minFilStorrelseIBytes : int64
}
private bool IsPersonDead(DateTime? dodstidspunkt)
{
if (dodstidspunkt == null)
return false;
DateTime deathDate = (DateTime)dodstidspunkt;
int compareResult = DateTime.Compare(DateTime.Now, deathDate);
if (compareResult > 0)