See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| #!/bin/bash | |
| # Remove all settings in the .npmrc except the required auth token setting. | |
| echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc | |
| # Create a new .yarnrc that specifies the npm registry, or append to an existing one. | |
| echo 'registry: https://registry.npmjs.org/' >> .yarnrc | |
| # Remove and regenerate the yarn.lock. This should be identical to running `yarn upgrade`. | |
| # If you are uncomfortable regenerating the yarn.lock file, you can comment out the next |
| # .github/workflows/publish.yml | |
| name: Generate a build and push to another branch | |
| on: | |
| push: | |
| branches: | |
| - master # Remove this line if your primary branch is "main" | |
| - main # Remove this line if your primary branch is "master" | |
| jobs: |
| import { useLayoutEffect, useCallback, useState } from 'react' | |
| export const useRect = (ref) => { | |
| const [rect, setRect] = useState(getRect(ref ? ref.current : null)) | |
| const handleResize = useCallback(() => { | |
| if (!ref.current) { | |
| return | |
| } |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
Firstly, what is <details> <summary>?
The HTML Details Element (
<details>) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the<summary>element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details.
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Example", | |
| "type": "node", | |
| "request": "launch", | |
| "runtimeExecutable": "node", | |
| "runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"], |
| #!/usr/bin/env python3 | |
| """ | |
| License: MIT License | |
| Copyright (c) 2023 Miel Donkers | |
| Very simple HTTP server in python for logging requests | |
| Usage:: | |
| ./server.py [<port>] | |
| """ | |
| from http.server import BaseHTTPRequestHandler, HTTPServer |