Building a terminal version of Emacs on OS X is easy. However it took me quite a bit of time to land on the correct incantation:
$ ./autogen.sh
$ ./configure --without-x --without-sound --prefix=/usr/local
$ make bootstrap
$ sudo make install
Output of `brew install ocaml-findlib` | |
-------------------------------------- | |
==> Downloading http://download.camlcity.org/download/findlib-1.2.7.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/ocaml-findlib-1.2.7.tar.gz | |
/usr/bin/tar xf /Library/Caches/Homebrew/ocaml-findlib-1.2.7.tar.gz | |
==> ./configure -config /usr/local/Cellar/ocaml-findlib/1.2.7/etc | |
./configure -config /usr/local/Cellar/ocaml-findlib/1.2.7/etc | |
Welcome to findlib version 1.2.7 | |
Configuring core... |
<?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-- |
// $ 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 | |
// |
Inspired by Bartosz Milewski's article Getting Lazy with C++.
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:
#!/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"; | |
} |
#!/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() |
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_, |