I hereby claim:
- I am dwinston on github.
- I am dwinston (https://keybase.io/dwinston) on keybase.
- I have a public key ASDlWFACdSLc3gOp8yLr1jda7bFkjDYmEGY8MhBypnNiXgo
To claim this, I am signing this object:
| """ | |
| Logs in to get an API token and then uses it to retrieve | |
| the number of confirmed registrations for an event. | |
| """ | |
| from suds.client import Client | |
| USERNAME = '' | |
| PASSWORD = '' | |
| EVENTID = 1 |
| from citrination_client import * | |
| client = CitrinationClient('API_KEY', 'https://citrination.com') | |
| query = PifQuery( | |
| from_index=0, | |
| size=1000, | |
| system=SystemQuery( | |
| chemical_formula=ChemicalFieldOperation( | |
| filter=ChemicalFilter(equal="Si") |
| """Generate n-word (default n=5) passwords separated by sep (default '-'). | |
| Uses your friendly neighborhood words file by default. | |
| Simple Use: `python nwordspass.py` | |
| Help: `python nwordspass.py --help` | |
| """ | |
| import argparse | |
| import random |
I hereby claim:
To claim this, I am signing this object:
| import re | |
| import dns.resolver | |
| def dns_check_email_domain(domain): | |
| """ | |
| Query DNS records to verify that email server is possible on domain. | |
| If no DNS records are found, user should confirm email address. | |
| """ | |
| response = {} |
| """ | |
| Convert a CSV file of the form | |
| ``` | |
| name, email, cell | |
| First Last, bob@example.com, 800-555-1234 | |
| ... | |
| ``` | |
| to vCard (vcf) files suitable for creating/updating iOS contacts. | |
| Based on https://codereview.stackexchange.com/questions/3517/converting-a-csv-to-vcards-in-python |
| from pymatgen import MPRester | |
| try: | |
| from pydash import chunk as get_chunks | |
| except ImportError: | |
| from math import ceil | |
| def get_chunks(array, size=1): | |
| chunks = int(ceil(len(array) / float(size))) | |
| return [array[i * size:(i + 1) * size] | |
| for i in range(chunks)] |
| """ | |
| Code that takes some Lisp code and returns an abstract syntax tree (AST). | |
| My lisp knows about the following types of tokens: | |
| - the expression delimiters `(` and `)` | |
| - strings (delimited by quote characters) | |
| - numbers | |
| - boolean values `true` (corresponding to Python's `True`) and `false` (corresponding to Python's `False`) | |
| - the null value `null` (corresponding to Python's `None`) |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |