Skip to content

Instantly share code, notes, and snippets.

View NuSkooler's full-sized avatar
💭
Mostly focusing on ENiGMA right now

Bryan Ashby NuSkooler

💭
Mostly focusing on ENiGMA right now
View GitHub Profile
@NuSkooler
NuSkooler / term_util.js
Created November 14, 2022 17:09
Terminal Util from SC example
const EventEmitter = require('events');
// some regex'seq that match mouse-backed events
const MouseEventRegExs = [
/\u001b\[M/,
/\u001b\[M([\x00\u0020-\uffff]{3})/,
/\u001b\[(\d+;\d+;\d+)M/,
/\u001b\[<(\d+;\d+;\d+)([mM])/,
/\u001b\[<(\d+;\d+;\d+;\d+)&w/,
/\u001b\[24([0135])~\[(\d+),(\d+)\]\r/,

Keybase proof

I hereby claim:

  • I am nuskooler on github.
  • I am nuskooler (https://keybase.io/nuskooler) on keybase.
  • I have a public key whose fingerprint is E72C 1D0D 1D7C 15E1 232C F69A B49E B437 951D 2542

To claim this, I am signing this object:

/* jslint node: true */
'use strict';
let _ = require('lodash');
// FNV-1a based on work here: https://github.com/wiedi/node-fnv
module.exports = class FNV1a {
constructor(data) {
this.hash = 0x811c9dc5;