Note 2024-05-11T14.04.28
========================
I hereby claim:
To claim this, I am signing this object:
The best stuff off [deno.land/x][dlandx] and others.
NOTE: All urls can be pointed to the latest version by just removing the @versionnumber
segment.
A lot of deno modules can be used from https://esm.sh or other cdn urls.
esm.sh
is my go-to cdn for deno.
import { } from 'npm:moduleName'
is also available.
#!/usr/bin/env bash | |
# Convenience for when using `git-bash` | |
# Currently found in my `~/Downloads` Dir but that will change. | |
# GitHub Gist Url: https://gist.github.com/awsomesawce/2e2d247dd37fe2a76fe66426764cf0bc | |
# <script src="https://gist.github.com/awsomesawce/2e2d247dd37fe2a76fe66426764cf0bc.js"></script> | |
alias g=git | |
alias gst="git status" | |
# Retrieve cheat sheets from cht.sh |
"" Taken from https://github.com/neoclide/coc.nvim | |
" May need for Vim (not Neovim) since coc.nvim calculates byte offset by count | |
" utf-8 byte sequence | |
set encoding=utf-8 | |
" Some servers have issues with backup files, see #649 | |
set nobackup | |
set nowritebackup | |
" Having longer updatetime (default is 4000 ms = 4s) leads to noticeable |
# | |
# Module manifest for module 'OpenGitRepoBrowser' | |
# | |
# Generated by: Carl Capodice | |
# | |
# Generated on: 11/17/2023 | |
# | |
@{ | |
#!/usr/bin/env -S pwsh -nop | |
<# | |
.DESCRIPTION | |
Take an array of function definitions and write them to the console synchronously. | |
.PARAMETER FunctionName | |
An array of strings which contains each function's name to have their definitions dumped. | |
.PARAMETER SurroundDefinition | |
Whether or not the output will have function declarations surrounding the code. | |
.NOTES | |
This particular script/function makes it _so easy_ to develop an entire module |
tcl
is a scripting language.
Most people who use tcl
use it thru python's tkinter
library.
TCL is available from these grocers:
"""Object Dict from tornado.util | |
Reduce contained code to it's absolute minimum and import what you need. | |
""" | |
from pprint import pprint | |
from typing import Dict, List, Any, AnyStr, NamedTuple, Tuple, Union, Sequence | |
import json | |
import os, sys | |
__all__ = [ |
More JSON Manipulation goodness in almighty object-oriented Powershell:
Here is a function I wrote that simply gets the dependencies of an npm package thru npm info pkgName --json
and converting it to a powershell object using convertfrom-json
, then getting the dependencies key using foreach-object { $_.dependencies }
.
I can further add functionality to this function by allowing the user to pick which key to parse (eg. devDependencies) by adding it to the list of param
s.
I could also use Classes instead of straight PSObjects, which would then allow me to add methods to the class to further manipulate, parse, query, etc.