I hereby claim:
- I am adammcmaster on github.
- I am astopy (https://keybase.io/astopy) on keybase.
- I have a public key whose fingerprint is CFA3 8B0E 8701 160B 96B2 5723 F592 0D1A 64A0 1E73
To claim this, I am signing this object:
| #!/bin/bash | |
| # Based on https://stackoverflow.com/a/29079962/10955319 | |
| SOURCE_NS=$1 | |
| DEST_NS=$2 | |
| ZONE=$3 | |
| if [ "$SOURCE_NS" == "" ] || [ "$DEST_NS" == "" ] || [ "$ZONE" == "" ] | |
| then |
| #!/bin/bash -e | |
| ENDPOINT="${1:-https://panoptes-staging.zooniverse.org}" | |
| export PANOPTES_CLIENT_ID=e094b63362fdef0548e0bbcc6e6cb5996c422d3a770074ef972432d57d41049c | |
| CMD="panoptes -e ${ENDPOINT}" | |
| echo "Running simultaneous full project listings..." |
| import datetime | |
| import dateutil.parser | |
| from panoptes_client import Panoptes, Project | |
| PROJECT_IDS = ( | |
| 10371, | |
| 10524, | |
| 11414, |
| import csv | |
| import json | |
| import os | |
| import re | |
| subject_sets = { | |
| '7585', | |
| '7870', | |
| '7888', |
| """ | |
| Requires panoptes-client and (on Python 2) futures. | |
| pip install panoptes-client futures | |
| """ | |
| from panoptes_client import Panoptes, Organization | |
| ORG_ID = 16 | |
| Panoptes.connect( | |
| username='', |
| from panoptes_client import Panoptes, Project | |
| Panoptes.connect( | |
| username='astopy', | |
| password='', | |
| admin=True, | |
| ) | |
| processed = 0 |
I hereby claim:
To claim this, I am signing this object:
| # Requires panoptes-client 1.1 or newer | |
| from panoptes_client import User | |
| with open('login-names.txt') as users_f: | |
| users = {u for u in (s.strip(' "\n') for s in users_f.readlines()) if not u.startswith('not-logged-in-')} | |
| # A set comprehension inside a list() to weed out duplicates and then make it sortable | |
| credited_names = list({u.credited_name for u in User.where(login=users)}) | |
| credited_names.sort() |
| import csv | |
| import json | |
| import sys | |
| csv.field_size_limit(sys.maxsize) | |
| line_count = {} | |
| with open('shakespeares-world-classifications.csv') as f: | |
| r = csv.DictReader(f) |
| import csv | |
| INCLUDED_FIELDS = ( | |
| 'classification_id', | |
| 'subject_ids', | |
| 'user_name', | |
| 'metadata', | |
| 'annotations' | |
| ) |