- Update HISTORY.md
- Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
var p = fmt.Println | |
p("I don't want to type fmt.Println.") |
# -*- coding: utf-8 -*- | |
# In order to run this script, you'll need to | |
# have both py.test and six installed. | |
# Assuming you have pip, in a virtualenv just | |
# type at the command-line: | |
# | |
# pip install pytest six | |
# | |
# To run it, just type: | |
# |
# -*- coding: utf-8 -*- | |
# test_docstrings.py | |
import pytest | |
def test_lambdas(): | |
# Create a lambda and test it | |
doubler = lambda x: " ".join([x, x]) | |
assert doubler("fun") == "fun fun" | |
# Add a docstring to the lambda |
Storing files in a database field should never happen. If it's being considered as a solution | |
to a problem, find a certified database expert and ask for a second opinion. | |
\bigskip | |
To summarize PostgreSQL expert Frank Wiles on the problems with using a database as a filestore: | |
\begin{itemize} | |
\item `read/write to a DB is always slower than a filesystem' | |
\item `your DB backups grow to be huge and more time consuming' | |
\item `access to the files now requires going through your app (Django) and DB layers' |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
Ship Atlantic April 20-May 1 Done! Barcelona Spain May 01-09 Done! Warsaw Poland May 09-24 Done! Krakow Poland May 24 Done! Dynow Poland May 25-28 Done! Krakow Poland May 24-June 10 Done! Florence Italy June 10-June 21 Done
\renewcommand{\linebreak}{\HCode{<br>}} | |
% This is for rendering a .tex file using tex4ht, which renders the output as HTML. | |
% \renewcommand{\linebreak} tells LaTeX to overwrite the default command. | |
% {\HCode{<br>}} says to put in a HTML <br> tag |
class CrazyViewWithTwoForms(DetailView): | |
def post(self, request, *args, **kwargs): | |
# mock the GET action in a post request. | |
# Doesn't need to do anything but this. | |
# Is boilerplate but works. | |
# Clearly designed by and for smart people. ;) | |
return self.get(request, *args, **kwargs) |