- @TheLeadDev #LeadDevLondon
- white coat captioning - @whitecoatcapxg
- wvnts.co/lduk2018
- happy pride! it’s like the world cup for people with fashion sense
- who am I?
require 'octokit' | |
client = Octokit::Client.new(access_token: "<TOKEN>") | |
repos = client.repos('gds-attic') | |
repos.take(10).each do |repo| | |
puts "archiving #{repo.url}..." | |
client.post( | |
"#{repo.url}/transfer", |
I wrote a thing to keep the prison index service prototype up-to-date. It works by polling the RSF for updates, and only downloads new entries.
However, the prison register is in discovery and I’m told it will be deleted and reloaded (possibly a number of times). This means that if I only download entries from the last entry number I saw, I’ll miss the entries which have been completely rewritten.
#!/usr/bin/env python3 | |
def regex_for(required_letters): | |
# special cases for 1 and 2 letters, to keep things a bit tidier | |
if len(required_letters) == 1: | |
return required_letters[0] | |
if len(required_letters) == 2: | |
x,y = required_letters | |
return "%s.*%s|%s.*%s" % (x,y,y,x) | |
subregexes = [] |
========================================================================== FAILURES =========================================================================== | |
______________________________________________________ test_audit_proofs_are_valid_with_alternative_impl ______________________________________________________ | |
@given(st.lists(st.binary(), max_size=99), st.integers(min_value=0, max_value=99)) | |
> def test_audit_proofs_are_valid_with_alternative_impl(data, leafIndex): | |
tests/test_verifiable_log.py:146: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/nix/store/s5f9zba6xbrjqxmmnjikwndqg9wk2xvr-python3.5-hypothesis-3.5.2/lib/python3.5/site-packages/hypothesis/core.py:524: in wrapped_test | |
print_example=True, is_final=True |