See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| Nothing here, just a Gist hack to display the title correctly on Gist. | |
| (Prefix the title of this file with a dot on Gist.) |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| def read_zmapplusgrid(inputfile,dtype=np.float64): | |
| """Read ZmapPlus grids | |
| Format is explained here http://lists.osgeo.org/pipermail/gdal-dev/2011-June/029173.html""" | |
| # read header, read until second '@', record header lines and content | |
| infile = open(inputfile,'r') | |
| comments=[] | |
| head=[] | |
| a=0 # count '@'s | |
| headers=0 # cound header+comment lines |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| " Ensure correct syntax highlighting and auto-indentation for Fortran free-form | |
| " source code. | |
| let fortran_free_source=1 | |
| let fortran_do_enddo=1 | |
| filetype plugin indent on | |
| syntax on | |
| " Turn on line numbers and row/column numbers. | |
| set nu |