- foo (should be 1.)
- bar (should be 2.)
Second
For the following decision tree, keep in mind that typically, one first thinks
| format pal quality=1 aspect=4:3 mpeg2sound=ac3 mpeg2=3,192 | |
| # later: quality=1 interlaced | |
| set dur=sec | |
| set resize=resize | |
| set title_offset=20%,80% title_area=15% | |
| # http://computoser.com/track/722 | |
| # http://computoser.com/track/6340 | |
| audio spacy.mp3 | |
| #set label=green |
| """ | |
| Progress bar for rsync | |
| ======================== | |
| Shows file progress and total progress as a progress bar. | |
| Usage | |
| --------- | |
| Run rsync with -P and pipe into this program. Example:: |
| while true | |
| do | |
| rsync -avz ./ user@host:remote/directory/ | |
| inotifywait -r ./ | |
| done |
| import matplotlib.pyplot as plt | |
| import numpy | |
| from numpy import log, exp | |
| import scipy.misc | |
| import scipy.optimize | |
| # see Buchner et al (2015), Appendix A, for details on the method | |
| # http://adsabs.harvard.edu/abs/2015ApJ...802...89B | |
| Nsamples = 1000 |
| # based on http://spatial-analyst.net/wiki/index.php?title=Uncertainty_visualization | |
| import numpy | |
| import colorsys | |
| from matplotlib.colors import hsv_to_rgb | |
| def to_rgb(value, error): | |
| z = value | |
| f1 = -90 - z*300 |
| import numpy | |
| # Sampling from a broken powerlaw or powerlaw segments | |
| # Reference material: | |
| # http://mathworld.wolfram.com/RandomNumber.html | |
| # The strategy is to draw from each powerlaw segment, and make sure the proportions are right based on the segment integrals | |
| # This code does not work correctly, improvements are welcome |
| # To submit just at the right time (deadline 14:00 EST), | |
| # | |
| # How to use: | |
| # - Make sure your clock is synced to https://arxiv.org/localtime | |
| # - Prepare arxiv submission up to last page, move cursor over submission button | |
| # - execute below function which will produce a left-button mouse click at 14:00 | |
| # - if too early, unsubmit, fix clock, try again the next day | |
| # | |
| # Hopefully one day arxiv will randomize their submission ordering. |
| #!/bin/bash | |
| # Author: Johannes Buchner (C) 2013 | |
| # tool for publishing sphinx documentation on github | |
| # and releasing packages on PyPI | |
| case "$1" in | |
| doc) | |
| # see https://help.github.com/articles/creating-project-pages-manually | |
| make -C doc/ html && | |
| git checkout gh-pages && |