This file contains hidden or 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 path from 'path'; | |
console.log(Object.keys(path)); |
This file contains hidden or 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
.border { | |
position: relative; | |
background-clip: padding-box; | |
border: 1px solid transparent; | |
border-radius: var(--brand-borderRadius-large); | |
} | |
.border::before { | |
content: ""; | |
position: absolute; |
This file contains hidden or 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 | |
// Save this file somewhere and make it executable: `chmod +x http.mjs`, then add to $PATH. | |
// Just run `http.mjs` from any folder to serve the files. | |
import { createServer } from 'node:http'; | |
import { join } from 'node:path'; | |
import { createReadStream, existsSync } from 'node:fs'; | |
import process from 'node:process'; |
This file contains hidden or 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 | |
// generate a shell command from a text input | |
import { request } from 'node:https'; | |
import { exec } from 'node:child_process'; | |
import { createInterface } from 'node:readline/promises'; | |
import { stdin as input, stdout as output } from 'node:process'; | |
async function call() { |
OlderNewer