As configured in my dotfiles.
start new:
tmux
start new with session name:
| ### MATPLOTLIBRC FORMAT | |
| # This is a sample matplotlib configuration file - you can find a copy | |
| # of it on your system in | |
| # site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
| # there, please note that it will be overridden in your next install. | |
| # If you want to keep a permanent local copy that will not be | |
| # over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux | |
| # like systems) and C:\Documents and Settings\yourname\.matplotlib | |
| # (win32 systems). |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| import cv2 | |
| import numpy as np | |
| import itertools | |
| lk_params = dict( winSize = (10, 10), | |
| maxLevel = 5, | |
| criteria = (cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT, 10, 0.03)) | |
| feature_params = dict( maxCorners = 3000, | |
| qualityLevel = 0.5, |
| #!/usr/bin/python | |
| # based on monitor-bluetooth | |
| # Changes by Domen Puncer <[email protected]> | |
| import gobject | |
| import dbus | |
| import dbus.mainloop.glib | |
| import os |
| #!/bin/sh | |
| #set -x | |
| # Usage: shibb-cas-get.sh {username} {password} # If you have any errors try removing the redirects to get more information | |
| # The service to be called, and a url-encoded version (the url encoding isn't perfect, if you're encoding complex stuff you may wish to replace with a different method) | |
| DEST=https://myapp.example.com/ | |
| SP=https://myapp.example.com/index.php | |
| IDP="https://myidp.example.com/idp/shibboleth&btn_sso=SSOok" |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # Copyright © 2016 Yannick Loiseau <[email protected]> | |
| # This work is free. You can redistribute it and/or modify it under the | |
| # terms of the Do What The Fuck You Want To Public License, Version 2, | |
| # as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. | |
| """ | |
| on-modify hook for taskwarrior. | |
| This hook connects taskwarrior and watson. |
The automatic test of Martini comprises four components:
A user must be able to run all or part of the test suite on a local or a remote computer. It must be able to overwrite some parameters, and to easily add new tests.