Skip to content

Instantly share code, notes, and snippets.

View karvus's full-sized avatar

Thomas Stenhaug karvus

View GitHub Profile
const fsPromise = require('fs/promises');
const { tmpdir } = require('os');
const path = require('path');
const { spawn } = require('child_process');
const streamBuffers = require('stream-buffers');
async function jtdToTS(jtdPath) {
let tmpDir = await fsPromise.mkdtemp(`${tmpdir()}${path.sep}`);
let child = spawn('jtd-codegen', [jtdPath, '--typescript-out', tmpDir]);
let errbuf = new streamBuffers.WritableStreamBuffer();
package cp.week10;
import java.io.IOException;
import java.nio.file.*;
import java.util.List;
import static java.util.stream.Collectors.toList;
import java.util.Deque;
import java.util.concurrent.ConcurrentLinkedDeque;
import java.util.concurrent.CountDownLatch;
@karvus
karvus / 0table-math-mode.org
Last active October 21, 2016 05:13
Demonstration of how exporting a table to LaTeX math mode yields correct output with Org version 8.2.10, but corrupt output with 8.3.6
12

whops