Skip to content

Instantly share code, notes, and snippets.

View solson's full-sized avatar

Scott Olson solson

  • Canada/Ireland
  • 02:09 (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)))
.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW

NAME

ncdu - NCurses Disk Usage

SYNOPSIS

ncdu [options] dir

multi advent('day07', '2', Str $in) {
my SetHash %prereqs = parse-prereqs($in);
my $time = 0;
my @queue;
while %prereqs || @queue {
my @available = %prereqs.grep(!*.value).map(*.key).sort;
# Assign as many free workers to available tasks as possible.
while @queue < 5 && @available {
#!/usr/bin/env perl6
my $*INPUT;
proto MAIN(Str $day, Str $part) {
$*INPUT = ('input/' ~ $day).IO.slurp;
{*}
}
multi MAIN('day01', 1) {
'\" t
.\" Title: asciidoctor
.\" Author: Dan Allen, Sarah White, Ryan Waldron
.\" Generator: Asciidoctor 1.5.6.2
.\" Date: 2018-09-08
.\" Manual: Asciidoctor Manual
.\" Source: Asciidoctor 1.5.6.1
.\" Language: English
.\"
.TH "ASCIIDOCTOR" "1" "2018-09-08" "Asciidoctor 1.5.6.1" "Asciidoctor Manual"