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/python | |
"""Convert CSV table to MindMap format | |
Usage: python csv_to_mm.py sometable.csv > mymap.mm | |
CSV format is rows representing tree leaves, e.g.: | |
A1, | |
A1,B1 | |
A1,B1,C1 | |
A1,B1,C2 |
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/python | |
"""Calculates the distribution of a weighted sum of the components of | |
a multivariate hypergeometric random variable, for the special case of | |
three components with weights -1, 0 and +1 - although the generating | |
function can handle any weights and number of components. Given a | |
value t, it also calculates the p value of t under the null hypothesis | |
that it was generated as the weighted sum of the multivariate | |
hypergeometric variable. |
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/fish | |
# Uses ffmpeg to record a timelapse video of the X11 screen. | |
# | |
# Global Flags: | |
# -loglevel: Verbosity | |
# | |
# Input Flags: | |
# -framerate: screenshots to capture per second | |
# -f: input format |
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/fish | |
# | |
# Tracks window titles and records a timelapse for specified duration. | |
# | |
# Duration for running the tracker - quits after sleeping this long. | |
set duration "25m" | |
# Name of project to record in the time entries. | |
set project "none" |
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/fish | |
# Regularly logs the active application and window title to a CSV file. | |
# Project name to include in the filename. | |
set project "none" | |
# Duration in seconds of samples, sleep until timestamp divisible. | |
set duration 60 |