Skip to content

Instantly share code, notes, and snippets.

@StachuDotNet
StachuDotNet / cla.md
Created June 6, 2025 17:49
Darklang, Inc. Contributor License Agreement

The Darklang Inc. Software Grant and Corporate Contributor License Agreement ("Agreement")

Thank you for your interest in Darklang Inc. ("Darklang"). In order to clarify the intellectual property license granted with Contributions from any person or entity, Darklang must have a Contributor License Agreement (CLA) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Darklang and its users; it does not change your rights to use your

The Parts of Dark

  • core: language, editor, hosting, runtime, infra
    • the Dark language the definition, interpreter, standard library
    • the editor (what you're looking at right now - where you build Dark stuff)
    • the infrastructure, runtime, and hosting the runtime, hosting, connections, scaling
  • handlers: http handlers, REPLs, refactors, migrations, etc.
/// Thin, bytes-friendly middleware
///
/// This Middleware corresponds with `HTTPBytes` handlers
[<RequireQualifiedAccess>]
module HttpMiddleware.HttpMiddlewareV1
module Request =
open Prelude
open LibExecution.VendoredTablecloth
- ![](http://i.imgur.com/UAAlIEX.jpg)
- Go slow and look ahead
- Move anything forward
- Everyone is doing the best they can
- If you ask for money, you get advice. If you ask for advice, you get money
- Tell stories, not plans
- Doing is better than perfect
- If it's not impossible, there must be a way to do it
- It's the scary choices that end up being the most worthwhile
- The deepest principle in human nature is the craving to be appreciated
@StachuDotNet
StachuDotNet / fable-repl.css
Created April 11, 2019 01:04
Created with Fable REPL
html,
body {
font-size: 16px;
}
.main-container {
display: flex;
width: 100%;
height: 100%;
justify-content: center;
@StachuDotNet
StachuDotNet / fable-repl.css
Created April 11, 2019 01:03
Created with Fable REPL
html,
body {
font-size: 16px;
}
.main-container {
display: flex;
width: 100%;
height: 100%;
justify-content: center;
/*
Add these:
using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
*/
void Main()
{
WriteDeltas(new Foo { X = 123, Y = DateTime.Today, Z = null },
open System
let exampleLevel = [
" #####"
" # #"
" #$ #"
" ### $##"
" # $ $ #"
"### # ## # ######"
"# # ## ##### ..#"
open System
type Choice = Rock | Scissors | Paper
type RoundResult = WinRound | TieRound | LoseRound
let roundResult = function
| Rock, Rock | Scissors, Scissors | Paper, Paper -> TieRound
| Rock, Scissors | Scissors, Paper | Paper, Rock -> WinRound
| Rock, Paper | Scissors, Rock | Paper, Scissors -> LoseRound
public abstract class PersistentConnection
{
public virtual void Initialize(IDependencyResolver resolver);
public bool Authorize(IRequest request);
protected virtual TraceSource Trace { get; } }
protected IProtectedData ProtectedData { get; private set; }