artist: gunderson author: paul medium: Acrylic on board date: July 2018 title: D.A. ...
In a sparse landscape, a single willow stands on the edge of a lake at sunset
| myproj/performance_utils.py: note: In class "timeit": | |
| myproj/performance_utils.py:18: error: Need type annotation for 'call_counts' |
| ZonedDateTime.ofInstant(Instant.ofEpochMilli(ctx._now), ZoneId.of("Z")) |
| import cProfile | |
| import pstats | |
| def profileit(limit=30): | |
| def inner_profileit(func): | |
| def wrapper(*args, **kwargs): | |
| prof = cProfile.Profile() | |
| retval = prof.runcall(func, *args, **kwargs) |
artist: gunderson author: paul medium: Acrylic on board date: July 2018 title: D.A. ...
In a sparse landscape, a single willow stands on the edge of a lake at sunset
| # This makefile is expected to run in a folder full of plantuml diagrams in | |
| # files called *.uml.txt | |
| # It will output those diagrams as png files into a subfolder called 'diagrams' | |
| .PHONY: diagrams | |
| DIAGRAM_SOURCES = $(wildcard *.uml.txt) | |
| # plantuml based diagrams: | |
| diagrams/%.uml.png: %.uml.txt | |
| plantuml $< -o ./diagrams |
| def transformIntoStage(host_name, environment) { | |
| return { | |
| stage(environment + host_name.tokenize(".")[0]) { | |
| sshagent(credentials: ['my_key']) { | |
| sh "ssh my_user@${host_name} 'whoami'" | |
| } | |
| } | |
| } | |
| } |
| from ansible.plugins.callback import CallbackBase | |
| from ansible.errors import AnsibleParserError | |
| def is_marked_safe(task): | |
| return 'check_vars' in task.tags | |
| def is_local(task): | |
| """ |
| ### Request confirmation | |
| # As a safeguard against accidentally running a playbook against production, | |
| # This play pauses for confirmation if the play is being run without any tags. | |
| # The three ways to bypass this pause are: | |
| # | |
| # * Run on a non-production environment | |
| # * Supply a tag (e.g. --tag=check_vars (See https://t37.net/documenting-your-ansible-roles-interface-and-making-other-people-s-life-easier.html)) | |
| # * Supply an extra var jfdi: (-e jfdi=True) | |
| # |
| ╒══════════════════════════════════════════════════════════════════════════════╕ | |
| │ │ | |
| │ /$$$$$$ /$$ │ | |
| │ /$$__ $$ | $$ │ | |
| │ /$$$$$$$ /$$$$$$ | $$ \__//$$$$$$ /$$$$$$ /$$ /$$ │ | |
| │ /$$_____/ |____ $$| $$$$ /$$__ $$|_ $$_/ | $$ | $$ │ | |
| │ | $$$$$$ /$$$$$$$| $$_/ | $$$$$$$$ | $$ | $$ | $$ │ | |
| │ \____ $$ /$$__ $$| $$ | $$_____/ | $$ /$$| $$ | $$ │ | |
| │ /$$$$$$$/| $$$$$$$| $$ | $$$$$$$ | $$$$/| $$$$$$$ │ | |
| │ |_______/ \_______/|__/ \_______/ \___/ \____ $$ │ |
| WARN: Best practice "YAML should be correctly indented" not met: | |
| roles/mysql_server/tasks/main.yml:5: lines starting with '- ' should have same or less indentation than previous line | |
| WARN: Best practice "Don't compare to "" - use `when: var` or `when: not var`" not met: | |
| roles/mysql_server/tasks/main.yml:5: [EXTRA0015] Don't compare to empty string | |
| WARN: Best practice "Python code should pass flake8" not met: | |
| ./templates/mytemplate.py:28: ./templates/mytemplate.py:28:11: E201 whitespace after '{' |