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:
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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)] |
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 = {} |
""" | |
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`) |
I hereby claim:
To claim this, I am signing this object:
"""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 |
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") |
""" | |
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 |