# Yes, I know that cURL isn't part of POSIX but it's pretty ubiquitous. Maybe see if a Wget fallback would be possible? (note: Apparently Wget is not installed on macOS by default)
# The alternative to use cURL (or possibly Wget) is to use the Git "sparse checkout" technique I'm currently utilizing. Yet again, not POSIX. And probably pre-installed on less UNIX-like operating systems than cURL or Wget.
LATEST_RELEASE=$(basename $(curl --head --location --output /dev/null --silent --write-out %{url_effective} https://github.com/jbenner-radham/node-readme-md-cli/releases/latest))
# After messing around with it for a bit, here's a potential Wget (and grep and sed) based alternative.
# So why is `grep` in there you ask? Well apparently `sed` cannot do multiline regex (at least through pipes). So it's just there to get that "Location" header line for `sed` to extract from.
# Also, `sed` uses "basic regular expressions" (apparently "modern regular ex
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
# `sheldon` configuration file | |
# ---------------------------- | |
# | |
# You can modify this file directly or you can use one of the following | |
# `sheldon` commands which are provided to assist in editing the config file: | |
# | |
# - `sheldon add` to add a new plugin to the config file | |
# - `sheldon edit` to open up the config file in the default editor | |
# - `sheldon remove` to remove a plugin from the config file | |
# |
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
eval "$(/opt/homebrew/bin/brew shellenv)" | |
# Added by Toolbox App | |
export PATH="$PATH:/Users/jamesbenner/Library/Application Support/JetBrains/Toolbox/scripts" |
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
.Dd $Mdocdate$ | |
.Dt README-MD 1 | |
.Os | |
.\" | |
.Sh NAME | |
.\" ==== | |
.Nm readme-md | |
.Nd Automatically generate a readme for your project from the CLI. | |
.\" | |
.Sh SYNOPSIS |
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
const get2dCanvasContext = (): CanvasRenderingContext2D | null => { | |
const canvas = document.createElement('canvas') | |
const context = canvas.getContext('2d') | |
if (!context) return context | |
const { fontWeight, fontSize, fontFamily } = window.getComputedStyle(document.body) | |
context.font = `${fontWeight} ${fontSize} ${fontFamily}` | |
return context |
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
.fullscreen-centered { | |
position: fixed; | |
inset: 0; | |
width: 100vw; | |
height: 100vh; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} |
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
tap "homebrew/bundle" | |
tap "homebrew/cask-fonts" | |
tap "oven-sh/bun" | |
brew "bat" | |
brew "dog" | |
brew "git" | |
brew "has" | |
brew "httpie" | |
brew "jq" | |
brew "mandown" |
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
{ | |
"name": "unzipper", | |
"version": "0.0.0", | |
"description": "", | |
"exports": "./lib/index.js", | |
"type": "module", | |
"scripts": { | |
"start": "node ./lib/index.js", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, |
NewerOlder