This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # set -xv | |
| DIR=/usr/local/opt/zig | |
| if [ "$1" == "clean" ]; then | |
| shift | |
| echo "...from clean" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: |
NewerOlder