Whenever you open a .md file, Neovim will prompt you to open a live preview in your browser. The preview syncs to your buffer as you type.
- Neovim 0.12+
- Git
- Node.js
| ## This help screen | |
| help: | |
| printf "Available targets\n\n" | |
| awk '/^[a-zA-Z\-\_0-9]+:/ { \ | |
| helpMessage = match(lastLine, /^## (.*)/); \ | |
| if (helpMessage) { \ | |
| helpCommand = substr($$1, 0, index($$1, ":")-1); \ | |
| helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \ | |
| printf "%-15s %s\n", helpCommand, helpMessage; \ | |
| } \ |
| package clistuff | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "net/url" | |
| "os" | |
| "strings" | |
| ) |
| #!/usr/local/bin/python3 | |
| import operator | |
| import re | |
| import subprocess | |
| import sys | |
| # Slightly modified from the semver.org spec (see note below). | |
| # https://regex101.com/r/Ly7O1x/3/ |
| import os | |
| import requests | |
| import random | |
| from datetime import datetime | |
| from urllib.parse import quote | |
| from bs4 import BeautifulSoup | |
| BASE_URL = 'http://www.imsdb.com' |
Important: Only supports the default profile!
If you have more than one profile setup via aws configure, this script is only capable of targetting the default profile. Other profiles are ignored.
To install and run:
install-and-run.sh to your terminal and press enter.| func pairingForInts(k ...int64) int64 { | |
| if len(k) == 0 { | |
| return -1 | |
| } | |
| if len(k) == 1 { | |
| return k[0] | |
| } | |
| var p float64 |
| #!/bin/bash | |
| filter="$1" | |
| if [ -z "$filter" ]; then | |
| echo "Please supply a filter value." | |
| exit 1 | |
| fi | |
| groupNames=$(aws logs describe-log-groups \ |
| # remove all files below a generated directory except .gitkeep | |
| find . -type f -regex .*generated/.* -not -regex .*\.gitkeep -delete | |
| # run all unit tests excluding integration tests and only show failures | |
| go test -count=1 -race $(go list ./... | grep integrationtest -v) 2>/dev/null | grep FAIL | |
| # run all unit tests with coverage and list them from highest coverage to lowest | |
| for p in $(go list ./... | grep integrationtest -v); do go test -count=1 -cover -race $p; done | grep \? -v | sort -k 4 | |
| # list log group ARNs for CCV2 |
| // Must executes the supplied function and panics if the function returns an error. | |
| // | |
| // In practice, this approach to forcing a panic should be avoided because it's non-performant, | |
| // and does nothing to increase code clarity. But it was a fun little rabbit hole to wander down. | |
| // It's also a nice little example of how to call a function via reflection. | |
| // | |
| // supported type for f is | |
| // func(T) error | |
| // where `T` is the underlaying type for `input` | |
| // |