- end-of-stream - specify a callback to be called when a stream ends (which is surpsingly hard to get right)
- duplexify - compose a Duplex stream from a Readable and a Writable stream
- pump - pipe streams together and close all of them if one of them closes
- pumpify - combine an array of streams into a single duplex stream using pump and duplexify
- through2 - tools for making Transform streams
- from2 - tools for making Readable streams
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const Modbus = require('@glanglois/jsmodbus'); | |
const net = require('net'); | |
const wifiName = require('wifi-name'); | |
// const BATTERY_ITEMS = [ | |
// ['battery voltage', 259, 100], | |
// ['battery current', 261, 10], | |
// ]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import re | |
import sys | |
from telnetlib import Telnet | |
from env_tools import apply_env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const assert = require('assert'); | |
function fieldNumberToLetter(number) { | |
return String.fromCharCode(number + 65); | |
} | |
function squareToNeighbors(square) { | |
square = square.toUpperCase(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ | |
"keys": ["ctrl+2"], | |
"command": "run_macro_file", | |
"args": { | |
"file": "Packages/User/to-2.sublime-macro" | |
} | |
}, | |
{ | |
"keys": ["ctrl+4"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var Benchmark = require('benchmark'); | |
var emojis = require('emojilib'); | |
var nearley = require('nearley'); | |
var emojiGrammar = require('./parsers/emoji.js'); | |
var pegjs = require('pegjs-import'); | |
var pegjsEmoji = pegjs.buildParser('./parsers/emoji.pegjs'); | |
var _ = require('lodash'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 -u | |
import signal | |
class Runner: | |
def __init__(self): | |
self.stop = False | |
self.previous_handler = signal.signal(signal.SIGINT, self.cb_signal_handler) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_thing = SomeThingModel() | |
# type 1 | |
class ModifyThing: | |
@classmethod | |
def format_date(cls, thing): | |
return thing.created.format('MMMM ddd ...') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Message ID <20200331183800.66D2823017CE5B90@becu.org> | |
Created at: Tue, Mar 31, 2020 at 4:38 PM (Delivered after -17996 seconds) | |
From: BECU Credit Union <no-reply@becu.org> | |
To: beau@beaugunderson.com | |
Subject: BECU Account Alert | |
SPF: PASS with IP 64.147.108.52 Learn more | |
DMARC: 'FAIL' Learn more |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.5434598344325519e+09 error terminal/output.go:97 Error handling escape sequence: Unknown OSC control sequence: 1337;RemoteHost=beau@theodore | |
github.com/liamg/aminal/terminal.(*Terminal).processInput | |
/Users/beau/go/src/github.com/liamg/aminal/terminal/output.go:97 | |
1.5434598344326131e+09 error terminal/output.go:97 Error handling escape sequence: Unknown OSC control sequence: 1337;CurrentDir=/Users/beau | |
github.com/liamg/aminal/terminal.(*Terminal).processInput | |
/Users/beau/go/src/github.com/liamg/aminal/terminal/output.go:97 | |
1.543459834432895e+09 error terminal/output.go:97 Error handling escape sequence: Unknown OSC control sequence: 1337;ShellIntegrationVersion=5;shell=bash | |
github.com/liamg/aminal/terminal.(*Terminal).processInput | |
/Users/beau/go/src/github.com/liamg/aminal/terminal/output.go:97 | |
1.5434598346229088e+09 error terminal/output.go:97 Error handling escape sequence: Unknown OSC control sequence: 133;C; |
NewerOlder