$ cat t.py from pprint import pprint from pytheory import Tone, Fretboard, charts_for_fretboard tones = ( Tone.from_string("F2"), Tone.from_string("C3"), Tone.from_string("G3"), Tone.from_string("D4"),
- Groningen, Netherlands
Workflows (States) in Django
I'm going to cover a simple, but effective, utility for managing state and transitions (aka workflow). We often need to store the state (status) of a model and it should only be in one state at a time.
Common Software Uses
- Publishing (Draft->Approved->Published->Expired->Deleted)
Pushing to Multiple Git Repos
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
|<AuthnProviderAlias ldap auth1>|
|<AuthnProviderAlias ldap auth2>|
Mercurial to Git repo conversion
Here is my personally successful approach to convert an existing Bitbucket hg repo to a new Bitbucket git repo. In this example, I invented a repo with the name "SimonSays". I used Windows 8.1.
- Python 2.7 (https://www.python.org/downloads/release/python-2717/)
- Git (https://git-scm.com/)
- Use Git Bash
- Conversion script / tool fast-export (https://github.com/frej/fast-export)