Lorum ipsum gooble gabble
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
import unittest | |
from datetime import time | |
from typing import Callable, Iterable | |
import pandas as pd | |
from pandas._libs.tslibs import to_offset | |
class Tests: |
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
import concurrent.futures | |
import json | |
import requests | |
from datetime import datetime, timedelta | |
from pathlib import Path | |
import matplotlib.pyplot as plt | |
import pandas as pd |
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
chris@zuul:~$ time /opt/conda/bin/conda env create -p /home/chris/moneybox/env --file /home/chris/moneybox/environment.lock.yaml --force | |
Collecting package metadata (repodata.json): done | |
Solving environment: - | |
Found conflicts! Looking for incompatible packages. | |
This can take several minutes. Press CTRL-C to abort. | |
failed / | |
Solving environment: \ | |
Found conflicts! Looking for incompatible packages. | |
This can take several minutes. Press CTRL-C to abort. | |
failed \ |
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
import concurrent.futures | |
import json | |
import requests | |
from datetime import datetime | |
from pathlib import Path | |
import pandas as pd | |
from tqdm.notebook import tqdm |
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
[tool.poetry] | |
name = "ansible-config" | |
version = "0.1.0" | |
description = "" | |
authors = ["Chris Withers <[email protected]>"] | |
[tool.poetry.dependencies] | |
python = "^3.7" | |
ansible = "^2.8" | |
jinja2 = "^2.10" |
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
>>> class Wut(object): | |
... __slots__ = ('a',) | |
... | |
>>> Wut() | |
<__main__.Wut object at 0x7ffff7f55b40> | |
>>> Wut().b = 1 | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
AttributeError: 'Wut' object has no attribute 'b' |
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
switch = Switch({ | |
'foo': lambda x: x+1, | |
}) | |
switch['foo']('bar') | |
switch = Switch() | |
@switch.handles('foo') |
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
{% set data = load_setup_py_data() %} | |
package: | |
name: "{{ data['name'] }}" | |
version: "{{ data['version'] }}" | |
source: | |
path: . | |
build: |
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
__________________ ERROR at setup of fail.rst line=1 column=1 __________________ | |
self = <FixtureRequest for <SybilItem 'line:1,column:1'>> | |
fixturedef = <FixtureDef name='session_fixture' scope='session' baseid='' > | |
def _getfixturevalue(self, fixturedef): | |
# prepare a subrequest object before calling fixture function | |
# (latter managed by fixturedef) | |
argname = fixturedef.argname | |
funcitem = self._pyfuncitem |
NewerOlder