Create _ext/ and _templates/ subdirectories.
Move edit_on_github.py into the _ext/ subdirectory.
Move sourcelink.html into the _templates/ subdirectory.
Add the following after the import sys, os line
| # :*_markdown_github[__html] | |
| # :*_markdown_commonmark[__html] | |
| # Markdown[HTML] > MarkdownGithub[HTML] | |
| # Markdown[HTML] > MarkdownCommonmark[HTML] | |
| rdfx:Markdown a rdfs:Datatype ; | |
| . | |
| rdfx:MarkdownGithub a rdfs:Datatype ; |
| #!/usr/bin/env python | |
| """ | |
| i3t.py -- list i3wm windows, get next window id, wrap/loop around | |
| Configuration (``.i3/config``):: | |
| set $i3t_alt_tab ~/-dotfiles/src/i3t/i3t.py n | |
| set $i3t_alt_shift_tab ~/-dotfiles/src/i3t/i3t.py p | |
| bindsym Mod1+Tab exec exec $i3t_alt_tab | |
| bindsym Mod1+Shift+Tab exec $i3t_alt_shift_tab |
| #!/bin/sh | |
| ## newtab.sh -- newtab(), newwin() functions and osascripts for OSX Terminal | |
| ## src: https://stackoverflow.com/questions/7171725/open-new-terminal-tab-from-command-line-mac-os-x/12147804#12147804 | |
| ## license: Creative Commons cc by-sa 3.0 | |
| function newtab { | |
| # newtab() -- Open a new tab in the current Terminal window and | |
| # optionally run a command. | |
| # When invoked via a function named 'newwin', opens a new Terminal *window* instead. |
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| """ | |
| Print psutil.Process.memory_info for processes with sockets open to | |
| the specified ports. | |
| """ | |
| import psutil | |
| import logging | |
| def net_connection_memory_info(ports=[80, 443]): |
| .PHONY: default test | |
| default: test | |
| test: | |
| python ./transaction_charts.py | |
| open: | |
| open ./test.html |
| #!/usr/bin/env python | |
| from __future__ import print_function, division | |
| """ | |
| avgs.py | |
| various implementations of 'streaming' simple "cumulative" / "momentary" mean | |
| """ | |
| import sys | |
| try: |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| from __future__ import print_function | |
| """ | |
| clock_hands | |
| __________________ | |
| | 12 | | |
| | | | |
| | | | |
| |9 0 3| |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from __future__ import print_function | |
| """ | |
| sqla2hdfstore | |
| =============== | |
| Input: | |
| sqlalchemy uri |
| ### PowerShell script to install a minimal Workstation with Chocolatey | |
| # https://chocolatey.org | |
| ## To Run This Script: | |
| # 1. Download this PowerShell script | |
| # * Right-click <> ("View Raw") and "Save As" to %USERPROFILE% (/Users/<username>) | |
| # * If Cocolatey is not already installed, see | |
| # "Uncomment to install Chocolatey" | |
| # * If you would like to also install Anaconda | |
| # (Python, IPython, lots of great libraries) |