Skip to content

Instantly share code, notes, and snippets.

🐫

ELLIOTTCABLE

🐫
Block or report user

Report or block ELLIOTTCABLE

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View aST.ml
type 'a unresolved = Unresolved | Resolved of 'a | Absent
type 'a or_subexpr = Sub of expression | Literal of 'a | Absent
and flag = { name : string; mutable payload : string or_subexpr unresolved }
and arg = Positional of string or_subexpr | Flag of flag
and expression = { count : int; cmd : string or_subexpr; mutable args : arg array }
View FM2. adding some.xml
<?xml version="1.0" encoding="utf-8"?>
<ModList>
<Name>FM2. adding some</Name>
<modIds>
<li>Core</li>
<li>1507748539</li>
<li>1872244972</li>
<li>818773962</li>
<li>1541460369</li>
<li>1561769193</li>
View gist:6eefb69e4236ac5a7833634b28095fdf
$ sh scripts/build.sh
TokenObject {
pos: -1,
end: -1,
flags: 8,
modifierFlagsCache: 0,
transformFlags: 0,
parent: undefined,
kind: 144
}
View overloading_generics_and_runtime_types.ts
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
}
View alternate-screen.ts
// 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
View gist:8a47990f456274ab05a1ba2ab7752b49
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";
~~~~~~~~~~~~~~~
View parserAutomaton.bs.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 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");
View statement.bs.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;
View userChrome.css
/* 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; }
View lexer.bs.js
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");
You can’t perform that action at this time.