Date: Apr 15, 2023
This document describes how I got Playscii running on macOS using the following setup:
- Playscii 9.17.1
- Python 3.11.3
- macOS Ventura 13.2.1
- MacBook Air (M1)
Date: Apr 15, 2023
This document describes how I got Playscii running on macOS using the following setup:
CREATE TEMP TABLE input (lineno SERIAL, line TEXT); | |
--\copy input (line) FROM '13-test-input.txt'; | |
\copy input (line) FROM '13-input.txt'; | |
CREATE TEMP TABLE arrivals(arrival_time) AS | |
SELECT line::int FROM input WHERE lineno = 1; | |
CREATE TEMP TABLE bus_lines AS | |
SELECT column_, |
#!/usr/bin/env python3 | |
from http.server import SimpleHTTPRequestHandler | |
import socketserver | |
SimpleHTTPRequestHandler.extensions_map[".wasm"] = "application/wasm" | |
print("Serving at port 8000") | |
socketserver.TCPServer(("", 8000), SimpleHTTPRequestHandler).serve_forever() |
#!/usr/bin/perl | |
use strict; | |
my %fg = (); | |
my %bg = (); | |
for my $i (0 .. 255) { | |
$fg{$i} = "[38;5;${i}m"; | |
$bg{$i} = "[48;5;${i}m"; | |
} |
If you work through [Anirudh Sanjeevs'][sanjeev] excellent tutorial on setting up a [Vue.js][vuejs] project with [Webpack][webpack] and some other goodies, you'll probably hit a handful of minor problems. The tutorial was written a year ago and things have changed a lot since then which naturally explains the issues. So let's tackle them one by one.
The first problem is that Vue.js fails to mount the app component and raises the following error:
Inspired by Bartosz Milewski's article Getting Lazy with C++.
// $ clang++ --std=c++11 defaultref.cpp | |
// $ ./a.out | |
// Calling without the default argument: | |
// | |
// foo in main pre-increment = xyzzy | |
// foo in main post-incement = yzxxz | |
// foo in withFoo pre-increment = yzxxz | |
// foo in withFoo post-increment = zxyyx | |
// foo in main post-withFoo = zxyyx | |
// |
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>My Emacs tweaks</name> | |
<item> | |
<name>Enable Control_L+Command_L+D on Emacs</name> | |
<identifier>private.emacs.enable_control_meta_d</identifier> | |
<only>EMACS</only> | |
<autogen> | |
--KeyToKey-- |