Skip to content

Instantly share code, notes, and snippets.

The status is always bike

Will Speak iwillspeak

The status is always bike
View GitHub Profile
View Treetise.fs
type Kind =
| Number
| Literal
| Binary
let chooseLeft = function
| Choice1Of2 x -> Some x
| _ -> None
let chooseRight = function
iwillspeak / LLVM From
Last active Feb 5, 2022
Example of using LLVM from Rust
View LLVM From

An Example of Using LLVM from Rust

This example compiles a simple function using the LLVM C API through the llvm-sys crate.

View Greetings.scmproj
<Project Sdk="Feersum.Sdk/0.2.1">
<Compile Include="hello.scm" />
iwillspeak / .gitignore
Last active Aug 19, 2021
Example Cake Script for Tyrannoport
View .gitignore
iwillspeak /
Last active Aug 6, 2021
Shows how to export .env data to the current environment
#! /usr/bin/env bash
# this sub-shell constrains the scope of the injected variables
export $(xargs <<EOF
iwillspeak / .gitignore
Last active Dec 11, 2020
A Microcrate containing an example hand-written lexer.
iwillspeak / eratosthenes.scm
Created Sep 4, 2020
Sieve of Eratosthenes in Scheme
View eratosthenes.scm
;; Implementation of the Sieve of Eratosthenes
(define (eratosthenes n)
;; Mark multiples of the given prime in the vector
(define (mark-multiples p marked)
(define (mark-multiples-at p m marked)
(if (>= m (vector-length marked))
(vector-set! marked m #t)
iwillspeak / Class1.cs
Last active Aug 20, 2020
.NET NU5104 NoWarn Build Errors
View Class1.cs
using System;
namespace bugz
public class Class1
// This package used to be packable with the .NET Core 3.1.301 SDK but
// packaging fails with the .NET Core 3.1.401 SDK. The exit code from
// `dotnet pack` is now 1 indicating failure. This has prevented
// release builds of some of our libraries.
iwillspeak / Cargo.toml
Created Sep 3, 2016
Simple Pratt-style Parsing in Rust
View Cargo.toml
name = "parsetest"
version = "0.1.0"
authors = ["Will Speak <>"]
name = "parsetest"
path = ""
iwillspeak / Counter.elm
Created May 2, 2018
Simple Elm Counter
View Counter.elm
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
main = Html.beginnerProgram { model = model, view = view, update = update }
type alias Model = Int