🏴☠️
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
const { Transform } = require('stream') | |
const debug = require('debug')('serialport/mouse-parser') | |
const StartByteMarkerByte = 0b01000000 | |
const LeftMouseButtonByte = 0b00100000 | |
const RightMouseButtonByte = 0b00010000 | |
const isStart = byte => byte & StartByteMarkerByte | |
const DEFAULT_STATE = Object.freeze({ |
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
### STARTED Filters for GitHub Actions 03:52:54Z | |
Pulling image: gcr.io/github-actions-images/action-runner:latest | |
latest: Pulling from github-actions-images/action-runner | |
cd784148e348: Already exists | |
23e2dcc28013: Pulling fs layer | |
1b231fbdf683: Pulling fs layer | |
bd89504cdd3c: Pulling fs layer | |
ad8707eb42ef: Pulling fs layer | |
ad8707eb42ef: Waiting |
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
node_modules/blynk-library/certs/server.crt |
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
const { pipe, transform } = require('bluestream') | |
const mysql = require('mysql') | |
const { createWriteStream } = require('fs') | |
const connection = mysql.createConnection({ | |
socketPath: '/var/run/mysqld/mysqld.sock', | |
user: 'root', | |
password: 'root', | |
dateStrings: true, | |
}) |
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
import childProcess from 'child_process' | |
import { Readline } from '@serialport/parser-readline' | |
import { PortInfo } from '@serialport/binding-abstract' | |
// get only serial port names | |
function checkPathOfDevice(path: string) { | |
return /(tty(S|ACM|USB|AMA|MFD|O)|rfcomm)/.test(path) && path | |
} | |
type PropName = 'DEVNAME' | 'ID_VENDOR_ENC' | 'ID_SERIAL_SHORT' | 'ID_VENDOR_ID' | 'ID_MODEL_ID' | 'DEVLINKS' |
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
const Benchmark = require('benchmark') | |
const Bl = require('./bl') | |
Bl.prototype.oldSlice = function slice (start, end) { | |
if (typeof start == 'number' && start < 0){ | |
start += this.length | |
} | |
if (typeof end == 'number' && end < 0){ | |
end += this.length | |
} |
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
const Benchmark = require('benchmark') | |
const Bl = require('./') | |
const smallBuffers = new Bl(new Array(100).fill(1).map(() => Buffer.alloc(8, 1))) | |
const largeBuffers = new Bl(new Array(100).fill(1).map(() => Buffer.alloc(1024, 1))) | |
const mixedBuffers = new Bl(new Array(100).fill(1).map((val, i) => Buffer.alloc(i ** 2 % 1024, 1))) | |
const veryLargeBuffers = new Bl(new Array(100).fill(1).map(() => Buffer.alloc(1024 * 1024, 1))) | |
const notFindableSmall = Buffer.alloc(7, 0) | |
const notFindableMedium = Buffer.alloc(510, 0) |
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 r2 = require('r2'); | |
const API_HOST = 'https://api.github.com/graphql'; | |
const PUBLIC_READ_TOKEN = 'XXX'; // (only needs public repo scope) | |
const query = ` | |
query { | |
repository(owner: "node-serialport", name: "node-serialport") { | |
nameWithOwner | |
owner { |
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
license: gpl-3.0 |
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
{ | |
"Image": { | |
"3900284": [ | |
"No validator for Image 'o:HasMedia': 1" | |
], | |
"3900287": [ | |
"No validator for Image 'o:HasMedia': 1" | |
], | |
"3900290": [ | |
"No validator for Image 'o:HasMedia': 1" |