Skip to content

Instantly share code, notes, and snippets.

View bjorn-einar-bjartnes-4ss's full-sized avatar

Bjørn Einar Bjartnes bjorn-einar-bjartnes-4ss

View GitHub Profile
from __future__ import annotations
import builtins
import sys
from collections.abc import Callable
from typing import Any
from fable_modules.fable_library.array_ import map
from fable_modules.fable_library.int32 import parse
from fable_modules.fable_library.list import (of_array, FSharpList, sort, map as map_1, sum_by, zip, fold)
from fable_modules.fable_library.map import (of_list, try_find)
from fable_modules.fable_library.option import default_arg
// y(x) = x + 7
// f(x) = x + 7
let f x = x + 7
(f 4).Dump("f(4)")
let a1 = Some 4
let a2 = None
((Option.map f) a1).Dump("option_f(a1")
async Task<int> GetMe(CancellationToken ct) {
await Task.Delay(1000,ct);
return 5;
}
async Task Main()
{
var memoryCacheOptions = new MemoryCacheOptions();
var cache = new MemoryCache(memoryCacheOptions);
var cts = new CancellationTokenSource();

For testing out a team/mobprogramming session internally. One instructor will introduce some principles and facilitate the process. What you take out of it and what you choose to take out of it will be up to you, there is little "curriculum" except what is on these pages.

Introduction

This is mostly a session about learning how to learn more about programming based on what I have learned the last years.

I think that it's extraordinarily important that we in computer science keep fun in computing. When it started out, it was an awful lot of fun. Of course, the paying customers got shafted every now and then, and after a while we began to take their complaints seriously. We began to feel as if we really were responsible for the successful, error-free perfect use of these machines. I don't think we are. I think we're responsible for stretching them, setting them off in new directions, and keeping fun in the house. I hope the field of computer science never loses its sense of fun. Above all, I hope we don'

@bjorn-einar-bjartnes-4ss
bjorn-einar-bjartnes-4ss / Example.cs
Last active September 19, 2021 20:15
Covariance
using System.Collections.Generic;
using System.Linq;
namespace Covariance
{
interface IMyFace { string Title { get; } }
class MyFace: IMyFace { public string Title => "This is my face"; }
class YourFace : IMyFace { public string Title => "And your face"; }
public class Example
{