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 net = require("net") | |
const path = require("path") | |
const pipePath = process.platform == "win32" ? path.join('\\\\?\\pipe', process.cwd(), 'huh') : "./huh.pipe"; | |
(async () => { | |
await delay(3000); | |
console.log("C: Attempting to connect") | |
const client = net.connect(pipePath); | |
client.on('data', function(data) { | |
console.log("S->C:", data.toString()); |
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
{"names": [ | |
"A Nova", | |
"Abbasak", | |
"Aberdeen", | |
"Abner Cay", | |
"Abruka", | |
"Absecon", | |
"Abu Musa", | |
"Acheron", | |
"Achill", |
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 { spawn } = require("child_process"); | |
const util = require("util"); | |
const exec = util.promisify(require("child_process").exec); | |
const { writeFileSync } = require("fs"); | |
const chalk = require("chalk"); | |
const COMMAND_PREFIX = ";;"; | |
const COMMANDS = { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="description" content="Starter Snowpack App" /> | |
<title>Starter Snowpack App</title> | |
<script type="module" src="/index.js"></script> | |
</head> | |
<body> |
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 { | |
LitElement, | |
html, | |
css, | |
} from "https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js"; | |
export class SimpleGreeting extends LitElement { | |
static properties = { | |
name: {}, | |
}; |
OlderNewer