Skip to content

Instantly share code, notes, and snippets.

Avatar

Scott Olson solson

  • Canada/Ireland
  • 08:40 (UTC)
View GitHub Profile
View Ariake.tmTheme
<?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 Sep 4, 2020 — forked from iulia-codes/bronto.ts
Example Deno Static Server
View bronto.ts
//hello RheinNeckarJS
import {
green,
cyan,
bold,
yellow,
red
} from "https://deno.land/std/fmt/colors.ts";
@solson
solson / playground.rs
Created Jan 21, 2019 — forked from rust-play/playground.rs
Code shared from the Rust Playground
View playground.rs
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)))
View ncdu.1
.\" 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
View ncdu.pod

NAME

ncdu - NCurses Disk Usage

SYNOPSIS

ncdu [options] dir

View advent.p6
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 {
View advent.p6
#!/usr/bin/env perl6
my $*INPUT;
proto MAIN(Str $day, Str $part) {
$*INPUT = ('input/' ~ $day).IO.slurp;
{*}
}
multi MAIN('day01', 1) {
View asciidoctor.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"