Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| // | |
| // Author: Jonathan Blow | |
| // Version: 1 | |
| // Date: 31 August, 2018 | |
| // | |
| // This code is released under the MIT license, which you can find at | |
| // | |
| // https://opensource.org/licenses/MIT | |
| // | |
| // |
| const i = {}; | |
| i.i = i; | |
| console.log(i); | |
| function I() { | |
| this.i = this; | |
| } | |
| const functionI = new I(); | |
| console.log(functionI); |
| // ==UserScript== | |
| // @name RedaddCSS | |
| // @namespace com.digitalfishfun.nosteponcss | |
| // @version 1 | |
| // @grant none | |
| // @include https://reddit.com/r/* | |
| // ==/UserScript== | |
| const nosteponcss_instructions = ` | |
| USAGE: |
| # data from http://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/population-distribution-demography/geostat | |
| # Originally seen at http://spatial.ly/2014/08/population-lines/ | |
| # So, this blew up on both Reddit and Twitter. Two bugs fixed (southern Spain was a mess, | |
| # and some countries where missing -- measure twice, submit once, damnit), and two silly superflous lines removed after | |
| # @hadleywickham pointed that out. Also, switched from geom_segment to geom_line. | |
| # The result of the code below can be seen at http://imgur.com/ob8c8ph | |
| library(tidyverse) |
type StringBool = "true"|"false";
interface AnyNumber { prev?: any, isZero: StringBool };
interface PositiveNumber { prev: any, isZero: "false" };
type IsZero<TNumber extends AnyNumber> = TNumber["isZero"];
type Next<TNumber extends AnyNumber> = { prev: TNumber, isZero: "false" };
type Prev<TNumber extends PositiveNumber> = TNumber["prev"];I recently happened upon a very interesting implementation of popen() (different API, same idea) called popen-noshell using clone(2), and so I opened an issue requesting use of vfork(2) or posix_spawn() for portability. It turns out that on Linux there's an important advantage to using clone(2). I think I should capture the things I wrote there in a better place. A gist, a blog, whatever.
This is not a paper. I assume reader familiarity with
fork()in particular and Unix in general, though, of course, I link to relevant wiki pages, so if the unfamiliar reader is willing to go down the rabbit hole, they should be able to come ou
Extending the bounds, here is what you get:
| #include <iostream> | |
| #include <cstring> | |
| #define MAX_LETTERS 600005 | |
| #define ALPHABET_SIZE 26 | |
| using namespace std; | |
| // These two structures should be intiialized to all 0 | |
| // (0 is the root and should never be the child of another node) | |
| int trie[MAX_LETTERS][ALPHABET_SIZE]; |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <link rel="stylesheet" type="text/css" href="Naut.css"> | |
| <title>Atlas V is Go, and Ethereum in Practice</title> | |
| </head> |