See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| #source [find interface/stlink-v2-1.cfg] | |
| source [find interface/stlink-v2.cfg] | |
| transport select hla_swd | |
| source [find target/stm32f1x.cfg] | |
| #reset_config srst_only | |
| reset_config none separate |
You have a repository, call it alice/repo. You would like to transfer it to the user bob, so it will become bob/repo.
However, you make heavy use of the GitHub Pages feature, so that people are often accessing https://alice.github.io/repo/. GitHub will helpfully redirect all of your repository stuff hosted on github.com after the move, but will not redirect the GitHub Pages hosted on github.io.
| // NOTE: This is not a by-the-book implementation of the UnitOfWork pattern. If you don't feel it is | |
| // OK, then you can call this class Transaction or anything like that | |
| public class UnitOfWork { | |
| // static reference to entityManagerFactory | |
| public static UnitOfWork createUnitOfWork() { | |
| EntityManager entityManager = entityManagerFactory.createEntityManager(); | |
| return new UnitOfWork(entityManager); | |
| } | |
| Use Case 1: (Target) Title (Type) | |
| ================================= | |
| **Primary Actor**: User | |
| **Scope**: Software system | |
| **Level**: Summary / User Goal | |
| Main success scenario: | |
| ---------------------- | |
| 1. ... | |
| 2. ... |
| ########################################################################### | |
| # | |
| ## @file postgres.py | |
| # | |
| ########################################################################### | |
| import psycopg2 | |
| ########################################################################### | |
| # |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| [RequireComponent(typeof(MeshFilter), typeof(MeshRenderer), typeof(MeshCollider))] | |
| public class MeshGeneration : MonoBehaviour { | |
| // Use this for initialization | |
| void Awake () { | |
| CreateMesh(); |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |