Skip to content

Instantly share code, notes, and snippets.

View WalternativE's full-sized avatar
👨‍💻
Thesis writing for the greater good 🛰️

Gregor Beyerle WalternativE

👨‍💻
Thesis writing for the greater good 🛰️
View GitHub Profile
@WalternativE
WalternativE / TypeProviderTreasureHuntSolution.fsx
Created September 4, 2018 21:36
A possible solution for the C4FS Type Provider Treasure Hunt Dojo
#r "System.Xml.Linq.dll"
#r "packages/FSharp.Data/lib/net45/FSharp.Data.dll"
open FSharp.Data
// ------------------------------------------------------------------
// WORD #1
//
// Use the WorldBank type provider to get all countries in the
// "North America" region, then find country "c" with the smallest
// "Life expectancy at birth, total (years)" value in the year 2000
@WalternativE
WalternativE / download-paket-bootstrapper.ps1
Last active August 22, 2017 11:04
download paket bootstrapper binary
param (
[string]
$OutputDir
)
function DownloadBootstrapper {
param(
[string]
$OutputPath
)
@WalternativE
WalternativE / compute-sha-256-hash.ps1
Created March 28, 2017 07:18
Powershell script that returns SHA-256 hash for a given string
Param (
[Parameter(Mandatory=$true)]
[string]
$ClearString
)
$hasher = [System.Security.Cryptography.HashAlgorithm]::Create('sha256')
$hash = $hasher.ComputeHash([System.Text.Encoding]::UTF8.GetBytes($ClearString))
$hashString = [System.BitConverter]::ToString($hash)