Just replace CONFIG_DIR/nvim/init.lua
with the file below , where CONFIG_DIR
is generally ~/.config
in linux and mac
Ever changing implementations of pipes that I reimplement in each codebase for different use cases.
If you do want a package instead. You should go with this https://github.com/barelyhuman/pipe
Single file doc generator for javascript projects where no other programming language is available.
This was a learning project for working with reactive streams for CLI apps and something I needed at work to generate wiki sites from an existing docs folder.
There's an attached Dockerfile
if you wish to deploy it on a container, the script is for flat docs folders with all docs
on the first level of the folder a.k.a nested documents aren't supported right now.
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 glob from 'tiny-glob' | |
import _xs from 'xstream' | |
import zlib from 'zlib' | |
import {promises as fs} from 'node:fs' | |
import _concat from 'xstream/extra/concat.js' | |
const xs = _xs.default | |
const concat = _concat.default | |
// contained exec of the 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 bash | |
ext_root="$HOME/.vscode/extensions/" | |
cd $ext_root | |
extension_dir=$(ls . | grep miguelsolorio.symbols) | |
cd $extension_dir | |
jq -n -f ./src/symbol-icon-theme.json | cat > .tmp | |
npx json -I -e "this.hidesExplorerArrows=true;" -f .tmp | |
mv ./src/symbol-icon-theme.json ./src/symbol-icon-theme.json.bak | |
mv .tmp ./src/symbol-icon-theme.json |
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
[ | |
{ | |
"name": "gray-100", | |
"color": "rgba(25, 24, 21, 1)" | |
}, | |
{ | |
"name": "gray-75", | |
"color": "rgba(113, 113, 113, 1)" | |
}, | |
{ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.44705882668495178</real> |
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
with (import <nixpkgs> {}); | |
with (import /home/maarten/code/nixos/yarn2nix { inherit pkgs; }); | |
let | |
gems = bundlerEnv { | |
name = "project-name"; | |
inherit ruby; | |
gemdir = ./.; | |
}; | |
in stdenv.mkDerivation { | |
name = "project-name"; |