See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs
The screenshots were taken on different sessions.
The entire sessions are included on the screenshots.
I lost the original prompts, so I had to reconstruct them, and still managed to reproduce.
The "compressed" version is actually longer! Emojis and abbreviations use more tokens than common words.
| cd ~ | |
| curl -sL https://deb.nodesource.com/setup_18.x -o /tmp/nodesource_setup.sh | |
| sudo bash /tmp/nodesource_setup.sh | |
| sudo apt-get install gcc g++ make | |
| sudo apt install nodejs |
| //////////// | |
| // REACT APP | |
| //////////// | |
| // Your login screen | |
| <GoogleLogin | |
| clientId={process.env.REACT_APP_GOOGLE_CLIENT_ID} | |
| buttonText="Sign in with Google" | |
| className="ct-button ct-button--secondary" |
| import React from 'react'; | |
| import PropTypes from 'prop-types' | |
| import debounce from 'lodash.debounce' // or whatevs | |
| import isEqual from 'lodash.isEqual' | |
| class AutoSave extends React.Component { | |
| static contextTypes = { | |
| formik: PropTypes.object | |
| } |
| import random | |
| import time | |
| import numpy | |
| from exceptions import ValueError | |
| class PushID(object): | |
| # Modeled after base64 web-safe chars, but ordered by ASCII. | |
| PUSH_CHARS = ('-0123456789' | |
| 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| /** | |
| * Fancy ID generator that creates 20-character string identifiers with the following properties: | |
| * | |
| * 1. They're based on timestamp so that they sort *after* any existing ids. | |
| * 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs. | |
| * 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly). | |
| * 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the | |
| * latter ones will sort after the former ones. We do this by using the previous random bits | |
| * but "incrementing" them by 1 (only in the case of a timestamp collision). | |
| */ |
| from datetime import timedelta | |
| from flask import Flask, make_response, request, current_app | |
| from functools import update_wrapper | |
| def crossdomain(origin=None, methods=None, headers=None, max_age=21600, attach_to_all=True, automatic_options=True): | |
| if methods is not None: | |
| methods = ', '.join(sorted(x.upper() for x in methods)) | |
| if headers is not None and not isinstance(headers, basestring): | |
| headers = ', '.join(x.upper() for x in headers) |
| # -*- coding: utf-8 -*- | |
| from .bananas import Bananas | |
| from .base import the_api | |
| the_api.add_url_rule('/bananas', view_func=Bananas.as_view('bananas')) | |
| the_api.add_url_rule('/farm/<farm_id>/bananas', view_func=Bananas.as_view('bananas_from_a_farm')) | |
| __all__ = [ |