Skip to content

Instantly share code, notes, and snippets.

Will Speak iwillspeak

View GitHub Profile
@iwillspeak
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 }
--- MODEL
type alias Model = Int
@iwillspeak
iwillspeak / .editorconfig
Last active Feb 10, 2018
Demonstration of caching of derived type information using the curiously recurring template pattern
View .editorconfig
root = true
[*.cs]
indent_style = space
indent_size = 4
@iwillspeak
iwillspeak / .gitignore
Created Jan 17, 2018
Debugging Windows Build Failure
View .gitignore
/target/
**/*.rs.bk
View keybase.md

Keybase proof

I hereby claim:

  • I am iwillspeak on github.
  • I am willspeak (https://keybase.io/willspeak) on keybase.
  • I have a public key whose fingerprint is 4167 B68D 09F3 B9DF B740 229E FDF5 9F16 C78F 372E

To claim this, I am signing this object:

@iwillspeak
iwillspeak / Cargo.toml
Created Jul 11, 2017
Microcrate for Onig Link Error on Windows
View Cargo.toml
[package]
name = "oni"
version = "0.1.0"
authors = ["Ian Pickering <ipickering2@gmail.com>"]
[dependencies]
onig = "1.4"
[[bin]]
name = "oni"
View Cargo.toml
[package]
name = "yop"
version = "0.1.0"
authors = ["Will Speak <lithiumflame@gmail.com>"]
[dependencies]
[[bin]]
name = "yop"
path = "yop.rs"
View steps.rs
#![feature(inclusive_range_syntax)]
/// Steps At
///
/// Returns the number of combinations of steps which can be made
/// where the top step is a given size. This is used as the recursive
/// step.
///
/// # Arguments
///
@iwillspeak
iwillspeak / LLVM From Rust.md
Last active Mar 11, 2018
Example of using LLVM from Rust
View LLVM From Rust.md

An Example of Using LLVM from Rust

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

@iwillspeak
iwillspeak / Cargo.toml
Created Sep 3, 2016
Simple Pratt-style Parsing in Rust
View Cargo.toml
[package]
name = "parsetest"
version = "0.1.0"
authors = ["Will Speak <lithiumflame@gmail.com>"]
[dependencies]
[[bin]]
name = "parsetest"
path = "main.rs"
@iwillspeak
iwillspeak / Time.cs
Created Jul 5, 2016
Thoughts on Time
View Time.cs
abstract class TZ
{
public abstract TimeSpan UTCOffset { get; }
}
sealed class BST : TZ
{
public override TimeSpan UTCOffset => TimeSpan.FromHours(1);
}
You can’t perform that action at this time.