I hereby claim:
- I am mattstibbs on github.
- I am mattstibbs (https://keybase.io/mattstibbs) on keybase.
- I have a public key ASAkSpGkBuKpwuVmRjuIvRYp5gUC2mRO8iMRRm87hlaGZAo
To claim this, I am signing this object:
| def combinesplitregistrations(message): | |
| def contains_digits(s): | |
| return any(char.isdigit() for char in s) | |
| f = message | |
| words = message.split(" ") | |
| newwords = [] |
| ### Keybase proof | |
| I hereby claim: | |
| * I am mattstibbs on github. | |
| * I am mattstibbs (https://keybase.io/mattstibbs) on keybase. | |
| * I have a public key whose fingerprint is 8019 0DA8 2E70 D27A 341E 2308 6F96 1A24 7506 4F3B | |
| To claim this, I am signing this object: |
| Verifying that +mstibbs is my blockchain ID. https://onename.com/mstibbs |
I hereby claim:
To claim this, I am signing this object:
| import config as config | |
| from flask import Response, request | |
| from functools import wraps | |
| def check_auth(username, password): | |
| """This function is called to check if a username / | |
| password combination is valid. | |
| """ | |
| result = (username == config.API_USER and password == config.API_PASS) |
| def str2bool(v): | |
| return v.lower() in ("yes", "true", "t", "1") |
| import unittest | |
| from recently_used_list import RecentlyUsedList | |
| class RULTests(unittest.TestCase): | |
| def setUp(self): | |
| self.rul = RecentlyUsedList() | |
| def test_new_RUL_gives_empty_list(self): |
| class RecentlyUsedList(): | |
| def __init__(self): | |
| self.list_of_items = [] | |
| def __len__(self): | |
| return len(self.list_of_items) | |
| def insert(self, item): | |
| if item in self.list_of_items: | |
| self.list_of_items.remove(item) |
| def test_log_line_written_ods_code(): | |
| u = User('test-username', 'test-password') | |
| client = RestApiClient(u) | |
| identifier = 'A91547' | |
| data = { | |
| 'success': | |
| { | |
| 'serviceCount': 1, | |
| 'services': | |
| [ |
| import datetime | |
| original_timestamp = datetime.datetime.now() | |
| # Convert datetime object to a string representation | |
| timestamp_string = original_timestamp.strftime("%Y-%m-%dT%H:%M:%S%z") | |
| print(timestamp_string) | |
| # OUTPUT: 2019-08-17T00:00:00+0000 | |
| # Add a colon separator to the offset segment |