Skip to content

Instantly share code, notes, and snippets.

View zenspider's full-sized avatar
🌈
It's complicated?

Ryan Davis zenspider

🌈
It's complicated?
View GitHub Profile
#!/usr/bin/env -S ruby -w
$: << File.expand_path("~/Links/RI/lib")
$: << File.expand_path("~/Links/ZT/lib")
require "rubygems"
require "inline"
class X
inline :C do |builder|
#!/bin/bash
set -e
# set -xv
DIR=/usr/local/opt/zig
if [ "$1" == "clean" ]; then
shift
echo "...from clean"
class ZenwebBuilder < WEBrick::HTTPServlet::FileHandler
@@semaphore = Mutex.new
def service req, res
@@site ||= @@semaphore.synchronize { website }
url = req.path
target_path = File.join(".site", url)
target_path = File.join target_path, "index.html" if
10422 % ruby -Ilib kaboom.rb
Run options: --seed 39367
# Running:
E
Finished in 0.094671s, 10.5629 runs/s, 0.0000 assertions/s.
1) Error: