Author: Sean Gillies Version: 1.0
This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Just some classes that help benchmark execution speed. | |
Timer : A context manager | |
AutoTimer: A self-adjusting timer. It replicates the behavior of the timeit module. | |
""" |
# https://github.com/sjl/friendly-find | |
$ ffind 'test.*sh\b' | |
./raster/r.timestamp/test_suite/test.r.timestamp.sh | |
./raster/r.series/test_suite/test.r.series.sh | |
./raster/r.to.rast3elev/test.r.to.rast3elev.sh | |
./raster/r.in.lidar/testsuite/test_base_resolution.sh | |
./raster/r.in.lidar/test/sample_test.sh | |
./raster/r.to.rast3/test_suite/test.r.to.rast3.sh | |
./raster/r.drain/tests/test.r.drain.sh |
pytest --collect-only | |
=============================================================================================== test session starts =============================================================================================== | |
platform linux -- Python 3.7.2, pytest-4.3.0, py-1.8.0, pluggy-0.9.0 | |
rootdir: /home/feanor/Prog/svn/grass, inifile: | |
collected 1429 items | |
<Module db/db.columns/testsuite/test_dbcolumns.py> | |
<UnitTestCase TestDbColumns> | |
<TestCaseFunction test_dbcols> | |
<Function test> | |
<Module db/db.copy/testsuite/test_dbcopy.py> |
import argparse | |
def my_func(arg1, arg2, arg3=None): | |
print(arg1, type(arg1)) | |
print(arg2, type(arg2)) | |
print(arg3, type(arg3)) | |
if arg3: | |
print("The boolean value of arg3 is <True>") |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from collections import OrderedDict | |
def find_index_of_first_unique_char(string): | |
seen_once = OrderedDict() # LinkedHashMap | |
seen_many = set() # HashSet | |
for index, char in enumerate(string): # O(N) |
Kinesis Freestyle (Terrible key switches. Mushy and un-lovable)
Kinesis Freestyle Edge (Traditional layout with too many keys, mech switches, proably too big to be tented easily/properly)
Matias Ergo Pro (Looks pretty great. Have not tried.)
ErgoDox Kit (Currently, my everyday keyboard. Can buy pre-assembled on eBay.)
ErgoDox EZ (Prolly the best option for most people.)
This gist will contain all the exercises from the book
Tuning Intel Skylake and beyond for optimal performance and feature level support on Linux:
Note that on Skylake, Kabylake (and the now cancelled "Broxton") SKUs, functionality such as power saving, GPU scheduling and HDMI audio have been moved onto binary-only firmware, and as such, the GuC and the HuC blobs must be loaded at run-time to access this functionality.
Enabling GuC and HuC on Skylake and above requires a few extra parameters be passed to the kernel before boot.
Instructions provided for both Fedora and Ubuntu (including Debian):
Note that the firmware for these GPUs is often packaged by your distributor, and as such, you can confirm the firmware blob's availability by running: