Skip to content

Instantly share code, notes, and snippets.

View awsomesawce's full-sized avatar
🎯
Learning NodeJS and getting certified!

Carl C awsomesawce

🎯
Learning NodeJS and getting certified!
View GitHub Profile

Note 2024-05-11T14.04.28

========================

Microsoft Store - Is it legit?

Keybase proof

I hereby claim:

  • I am awsomesawce on github.
  • I am awsomesawce (https://keybase.io/awsomesawce) on keybase.
  • I have a public key ASCxZTztiM09TbDPeufttkg7Cm6kuBrUKAmw6JbIRUse7Qo

To claim this, I am signing this object:

@awsomesawce
awsomesawce / awesome-deno.md
Created February 20, 2024 07:47
awesome-deno

awesome-deno

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.

@awsomesawce
awsomesawce / gitbash_aliases.sh
Last active December 18, 2023 05:34
Helpers for when using git-bash in git-for-windows
#!/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
@awsomesawce
awsomesawce / coc-example-config.vim
Last active December 16, 2023 17:26
coc-nvim example config taken from the Readme.
"" 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
@awsomesawce
awsomesawce / OpenGitRepoBrowser.psd1
Last active November 18, 2023 02:14
Open a GitHub repository from the commandline using gh and pwsh (or just pwsh)
#
# Module manifest for module 'OpenGitRepoBrowser'
#
# Generated by: Carl Capodice
#
# Generated on: 11/17/2023
#
@{
@awsomesawce
awsomesawce / OutFunctionDef.ps1
Last active July 28, 2022 01:19
Output function definitions in order
#!/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
@awsomesawce
awsomesawce / about_tcl.md
Last active February 24, 2022 22:07
About TCL

TCL

tcl is a scripting language.

Most people who use tcl use it thru python's tkinter library.

More info here

TCL is available from these grocers:

@awsomesawce
awsomesawce / objectdict.py
Last active December 7, 2021 22:44
Python Object Dict
"""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__ = [
@awsomesawce
awsomesawce / JSON_Manipulation_Powershell.md
Created October 20, 2021 22:13
JSON Manipulation in Powershell

JSON Manipulation in Powershell

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 params.

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.