Usage
change-github-default-branch.sh "$GITHUB_TOKEN" PurpleBooth/homebrew-repo
Does not delete the old default branch, or change where pull requests are based from, incase something breaks.
/** | |
* This CSS block is a More Effective CSS Image Reset. | |
* It resets the default styles of an image element | |
* and adds some additional styles to improve its rendering. | |
* | |
* The `max-width: 100%;` ensures that the image does not exceed its container's width, | |
* while maintaining its aspect ratio with `height: auto;`. | |
* | |
* The `vertical-align: middle;` aligns the image vertically with the text. | |
* |
foo | |
bar | |
baz |
/** | |
* Recursively transform key/values in object, including array values | |
* | |
* Also can act as a basic deep clone method | |
* @param {Object} obj - Object to transform | |
* @param {Object} [transforms={}] - Object containing transformation functions | |
* @param {Function} [transform.keys] - Function for transforming keys from 'obj' | |
* @param {Function} [transform.values] - Function for transforming values from 'obj' | |
* @param {Number} [level=0] - Level of recursion, passed as the 2nd argument to a transform function | |
* @returns {Object} Transformed object |
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
-------------------------------------------- | |
Version: 1.45.1 | |
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a | |
Date: 2020-05-14T08:33:47.663Z | |
Electron: 7.2.4 | |
Chrome: 78.0.3904.130 | |
Node.js: 12.8.1 | |
V8: 7.8.279.23-electron.0 | |
OS: Darwin x64 18.5.0 | |
------------------------------------------- |
#!/usr/bin/env bash | |
# | |
# Authors: | |
# Stefan Buck (https://github.com/stefanbuck) | |
# Thomas Ruoff (https://github.com/tomru) | |
# | |
# | |
# Description: | |
# Are you still prefixing your commits with a ticket number manually? You will love this script! | |
# This is a git hook script that will automatically prefix your commit messages with a ticket |
If you're OK in having a node-esm
executable, please consider this solution.
#!/usr/bin/env sh
# the /usr/local/bin/node-esm executable
input_file=$1
shift
exec node --input-type=module - $@ <$input_file
import './components/error/error' | |
import content404 from './components/404/404.html' | |
import DATA_SERVICE from './utils/data' | |
const ds = new DATA_SERVICE() | |
// get SPA containing element | |
const $el = document.getElementById('app') | |
// define routes | |
const home = async () => { | |
await import('./components/recipe/recipe') |
Git sees every file in your working copy as one of three things:
Ignored files are usually build artifacts and machine generated files that can be derived from your repository source or should otherwise not be committed. Some common examples are: