This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Correct frontmatter of MD files in the given DIR converted from rst files using pandoc.. | |
Usage: | |
correct-md.py [options] DIR | |
Options: | |
-h, --help Show this message and exit. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
''' | |
This creates blog post file for Pelican at the directory in the year | |
and month of the current date as ``content/yyyy/mm/dd_slug.[md|rst]`` . | |
This should be run at the directory that includes ``content`` directory. | |
Usage: | |
myblog.py post [options] TITLE | |
myblog.py notebook [options] NOTEBOOK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Genetica algorithm module. | |
Usage: | |
ga.py [options] | |
Options: | |
-h, --help Show this message and exit. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Simulated annealing module. | |
Usage: | |
sa.py [options] | |
Options: | |
-h, --help Show this message and exit. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias post='create_post.py --basedir="/path/to/pelican/" -a "Author name"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
""" | |
Smear 1D data of equidistance intervals with Gaussians. | |
""" | |
import os,sys,math | |
import optparse | |
usage= '%prog [options] datafile' |