Skip to content

Instantly share code, notes, and snippets.

View solson's full-sized avatar

Scott Olson solson

  • Canada/Ireland
  • 08:15 (UTC +01:00)
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>Ariake</string>
@solson
solson / bronto.ts
Last active September 4, 2020 15:02 — forked from iulia-codes/bronto.ts
Example Deno Static Server
//hello RheinNeckarJS
import {
green,
cyan,
bold,
yellow,
red
} from "https://deno.land/std/fmt/colors.ts";
@solson
solson / playground.rs
Created January 21, 2019 20:18 — forked from rust-play/playground.rs
Code shared from the Rust Playground
let link = (try {
let name = s.stream.get("channel")?.get("name")?.as_str()?;
(try {
let url = format!("https://twitch.tv/{}", name)
.parse::<typed_html::types::Uri>().ok()?;
html!(<a href={url}>{ text!(name) }</a>):
Box<elements::FlowContent<String>>
}: Option<Box<elements::FlowContent<String>>>)
.unwrap_or_else(|| Box::new(dom::TextNode::new(name)))
@solson
solson / LEM.idr
Last active March 29, 2018 19:02 — forked from JadenGeller/LEM.idr
Derivation of Law of the Excluded Middle from call/cc
%default total
postulate callCC : ((a -> Void) -> a) -> a
excludedMIddle : Dec a
excludedMiddle = callCC (\assumption => No (\contradiction => void (assumption (Yes y))))
@solson
solson / playground.rs
Created December 25, 2017 05:30 — forked from anonymous/playground.rs
Rust code shared from the playground
use std::collections::VecDeque;
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
enum State { A, B, C, D, E, F }
// enum State { A, B }
const ITERATIONS: usize = 12_459_852;
// const ITERATIONS: usize = 6;
fn main() {
@solson
solson / playground.rs
Created December 25, 2017 05:01 — forked from anonymous/playground.rs
Rust code shared from the playground
use std::cmp::max;
use std::collections::{HashMap, HashSet};
use std::iter;
const _SAMPLE_INPUT: &str = "\
0/2
2/2
2/3
3/4
3/5
@solson
solson / playground.rs
Created December 25, 2017 05:01 — forked from anonymous/playground.rs
Rust code shared from the playground
use std::cmp::max;
use std::collections::{HashMap, HashSet};
use std::iter;
const _SAMPLE_INPUT: &str = "\
0/2
2/2
2/3
3/4
3/5
@solson
solson / playground.rs
Created December 24, 2017 05:23 — forked from anonymous/playground.rs
Rust code shared from the playground
// 25x25
const INPUT: &str = "\
#.....##.####.#.#########
.###..#..#..####.##....#.
..#########...###...####.
.##.#.##..#.#..#.#....###
...##....###..#.#..#.###.
###..#...######.####.#.#.
#..###..###..###.###.##..
.#.#.###.#.#...####..#...
@solson
solson / playground.rs
Created December 24, 2017 05:19 — forked from anonymous/playground.rs
Rust code shared from the playground
// 25x25
const INPUT: &str = "\
#.....##.####.#.#########
.###..#..#..####.##....#.
..#########...###...####.
.##.#.##..#.#..#.#....###
...##....###..#.#..#.###.
###..#...######.####.#.#.
#..###..###..###.###.##..
.#.#.###.#.#...####..#...
@solson
solson / playground.rs
Created December 21, 2017 07:44 — forked from anonymous/playground.rs
Rust code shared from the playground
const INPUT: &str = "\
../.. => .##/##./.#.
#./.. => .#./#.#/##.
##/.. => #.#/#.#/###
.#/#. => #../.#./.#.
##/#. => ##./#.#/..#
##/## => #.#/#.#/...
.../.../... => ..##/##../##../#.#.
#../.../... => ##.#/..#./#.#./.#..
.#./.../... => ..#./##.#/#.##/###.