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
open System | |
open System.Diagnostics | |
open System.IO | |
[<Literal>] | |
let file = "./measurements.csv" | |
let stations = [ | |
"Abha" | |
"Abidjan" | |
"Abéché" |
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
open System | |
open System.Text.RegularExpressions | |
type Operation = | |
| Add | |
| Subtract | |
type Dice = { Amount: int; Sides: int } | |
type Modification = |
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
/// +--------------------------------------+ | |
/// | | | |
/// | Decider | | |
/// | | | |
/// | Jérémie Chassaing | | |
/// | @thinkb4coding | | |
/// +--------------------------------------+ | |
// A decider is a structure define by 7 parameters: |
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
// resources used: | |
// https://api.cloudflare.com/#dns-records-for-a-zone-create-dns-record | |
// https://www.fastmail.help/hc/en-us/articles/360060591153-Domains-Advanced-configuration | |
#r "nuget: Flurl.Http, Version=3.2.2" | |
#r "nuget: Newtonsoft.Json, Version=13.0.1" | |
open Flurl | |
open Flurl.Http | |
open System |
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 Newtonsoft.Json; | |
using Shouldly; | |
using Xunit; | |
namespace TestSolution.UnitTests | |
{ | |
public class ImplicitConversionTests | |
{ | |
private const string ExampleNumber = "+32 1234 567 890"; |
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 namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
# using this script expects that a nerd font is installed: https://www.nerdfonts.com/ | |
# and configured in the terminal app that you use | |
# it also expects that the module Terminal-icons is installed | |
# Install-Module -Name Terminal-Icons -Repository PSGallery | |
Import-Module -Name Terminal-Icons |
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
// This file was initially generated by Windows Terminal 1.7.1033.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#FEF5ED", | |
"foreground": "#011627", | |
"properties": { |
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 Xunit; | |
using Xunit.Abstractions; | |
namespace KenBonny.TestProject.Tests | |
{ | |
public class CtorTests | |
{ | |
private readonly ITestOutputHelper _console; | |
public CtorTests(ITestOutputHelper console) |
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
public class DebuggerAttributeTests | |
{ | |
[Fact] | |
public void DebuggerTests() | |
{ | |
var person = new Person | |
{ | |
Id = 1, | |
Name = "Ken Bonny", | |
Birthday = new DateTime(1987, 1, 1) |
NewerOlder