Skip to content

Instantly share code, notes, and snippets.

$ sh scripts/build.sh
TokenObject {
pos: -1,
end: -1,
flags: 8,
modifierFlagsCache: 0,
transformFlags: 0,
parent: undefined,
kind: 144
}
class Checkpoint<Semantic> {
type: 'Script' | 'Statement'
constructor(blah: any, type: 'Script'): Checkpoint<Script>
constructor(blah: any, type: 'Statement'): Checkpoint<Statement>
constructor(blah: any, type: 'Script' | 'Statement') {
// ...
this.type = type
}
// Setting up the terminal, swtiching to the alternate screenbuffer;
term.fullscreen(true)
// Horrible hack to freeze the Node.js event-loop long enough for a user to see output;
function sleep(seconds: number) {
let msecs = seconds * 1000
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, msecs)
}
// Ensuring a clean exit, and a return to the users' expected terminal-state
node_modules/@types/babel__core/index.d.ts:13:20 - error TS2307: Cannot find module '@babel/types'.
13 import * as t from "@babel/types";
~~~~~~~~~~~~~~
node_modules/@types/babel__core/index.d.ts:14:31 - error TS2307: Cannot find module '@babel/parser'.
14 import { ParserOptions } from "@babel/parser";
~~~~~~~~~~~~~~~
'use strict';
var AST = require("./aST.bs.js");
var List = require("bs-platform/lib/js/list.js");
var $$Array = require("bs-platform/lib/js/array.js");
var Block = require("bs-platform/lib/js/block.js");
var Curry = require("bs-platform/lib/js/curry.js");
var $$String = require("bs-platform/lib/js/string.js");
var MenhirLib = require("./menhirLib.bs.js");
var Pervasives = require("bs-platform/lib/js/pervasives.js");
'use strict';
var AST = require("./aST.bs.js");
var List = require("bs-platform/lib/js/list.js");
var $$Array = require("bs-platform/lib/js/array.js");
var Curry = require("bs-platform/lib/js/curry.js");
var Pervasives = require("bs-platform/lib/js/pervasives.js");
function hydrate(st) {
return st;
/* Hide horizontal tabs at the top of the window #1349, #1672, #2147 */
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
#nav-bar { margin-top: -27px; padding: 0px 15px 0px 75px !important; }
This file has been truncated, but you can view the full file.
'use strict';
var Gen = require("@elliottcable/bs-gen/src/gen.bs.js");
var $$Array = require("bs-platform/lib/js/array.js");
var Block = require("bs-platform/lib/js/block.js");
var Curry = require("bs-platform/lib/js/curry.js");
var Uchar = require("@elliottcable/bs-uchar/src/uchar.bs.js");
var $$Buffer = require("bs-platform/lib/js/buffer.js");
var Printf = require("bs-platform/lib/js/printf.js");
@ELLIOTTCABLE
ELLIOTTCABLE / 1. tld_regex.js
Created March 12, 2019 11:19
I'm sorry for this
// Test it here: https://rubular.com/r/BP5fM0kqwAONu7
// TLDs represented with >=1,000 domains in the Alexa top-1M. Messily extracted from
// here: <https://www.hayksaakian.com/most-popular-tlds/>
/a[rtuz]|b([egry]|iz)|c([achnz]|l(ub)?|om?)|d[ek]|e([su]|du)|f[ir]|g([r]|ov)|h[kru]|i([delort]|n(fo)?)|jp|k[rz]|lt|m([exy]|il)|n([loz]|et)|org|p([lt]|ro)|r[ou]|s([eku]|ite)|t[hrvw]|u[aks]|vn|xyz|za/
Hello - from /Users/ec/.vscode/extensions/jaredly.reason-vscode-1.5.2/bin.native
Previous log location: /var/folders/xt/wm01x2h50nv993t_csb1t5qm0000gn/T/lsp.log
Sending notification {"jsonrpc": "2.0", "method": "client/registerCapability", "params": {"registrations": [{"id": "watching", "method": "workspace/didChangeWatchedFiles", "registerOptions": {"watchers": [{"globPattern": "**/bsconfig.json", "globPattern": "**/.merlin"}]}}]}}
Sending response {"id": 0, "jsonrpc": "2.0", "result": {"capabilities": {"textDocumentSync": 1, "hoverProvider": true, "completionProvider": {"resolveProvider": true, "triggerCharacters": ["."]}, "signatureHelpProvider": {"triggerCharacters": ["("]}, "definitionProvider": true, "typeDefinitionProvider": true, "referencesProvider": true, "documentSymbolProvider": true, "codeActionProvider": true, "executeCommandProvider": {"commands": ["reason-language-server.add_to_interface_inner"]}, "codeLensProvider": {"resolveProvider": true}, "documentHighlightProvider": true, "documentRangeF