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/env python | |
import argparse | |
import sys | |
import collections | |
parser = argparse.ArgumentParser(description='Show the first 10, and last 10 lines of a file.') | |
parser.add_argument('infile', nargs='?', default=sys.stdin, | |
help='Input file. Defauts to stdin if not provided.') | |
parser.add_argument('outfile', nargs='?', default=sys.stdout, |
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
def with_setup_args(setup, teardown=None): | |
"""Decorator to add setup and/or teardown methods to a test function:: | |
@with_setup_args(setup, teardown) | |
def test_something(): | |
" ... " | |
The setup function should return (args, kwargs) which will be passed to | |
test function, and teardown function. |
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
from enum import Enum, auto | |
from math import atan2, cos, degrees, pi, tau, sin, sqrt, tan # NOQA | |
from pprint import pprint | |
from typing import Optional, Sequence # NOQA | |
from skspatial.objects import Circle, Line | |
from skspatial.objects import Point as SKSPoint | |
from skspatial.objects import Vector | |
from fullcontrol import ( # NOQA F401 |
This file has been truncated, but you can view the full file.
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
;FLAVOR:Marlin | |
;TIME:0 | |
;Filament used: 0m | |
;Layer height: 0 | |
;MINX:0 | |
;MINY:0 | |
;MINZ:0 | |
;MAXX:220 | |
;MAXY:220 |