This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Y2RhcC8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMDA3NTAAMDAwMTc1MwAwMDAxNzUzADAwMDAwMDAwMDAwADE0NjEyNDcxNjUzADAxMDU1NQAgNQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1c3RhciAgAGU1NjUwMzQzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZTU2NTAzNDMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABjZGFwL0NoYXJ0LnlhbWwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDAwMDY0MAAwMDAxNzUzADAwMDE3NTMAMDAwMDAwMDIxNjQAMTQ2MTI0NzE2NTMAMDEyNTA2ACAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Y2RhcC1jbHVzdGVyLwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMDA3NTAAMDAwMTc1MwAwMDAxNzUzADAwMDAwMDAwMDAwADE0NjA0MDA0MTEzADAxMjIxNAAgNQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1c3RhciAgAGU1NjUwMzQzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZTU2NTAzNDMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABjZGFwLWNsdXN0ZXIvLmVkaXRvcmNvbmZpZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDAwMDY0MAAwMDAxNzUzADAwMDE3NTMAMDAwMDAwMDAzMjEAMTQ1Njc2MjMzMDAAMDE0NzAzACAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from transformers import ( | |
AutoModelForCausalLM, AutoTokenizer, | |
XLNetLMHeadModel, XLNetTokenizer, | |
T5ForConditionalGeneration, T5Tokenizer | |
) | |
def generate_text(model, tokenizer, prompt, max_length=150, num_return_sequences=1, temperature=0.7): | |
input_ids = tokenizer(prompt, return_tensors="pt")["input_ids"] | |
attention_mask = tokenizer(prompt, return_tensors="pt")["attention_mask"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
agents: | |
queue: agent-tag-name | |
env: | |
# TF_LOG: true | |
steps: | |
- command: git checkout master -- .buildkite/pipeline.sh && .buildkite/pipeline.sh | |
- wait | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
042bcea85825a68adcf4d160d3315f95e708fbef838ecd189e7bcdd1d619e20aecbbdf3de001b880631726fe83e4457cebd039dcd93d68ecaeb98bcb90da59fbf6;codesplicer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import requests | |
import wikipedia | |
from multiprocessing import Pool | |
req = requests.get( | |
'https://cdn.rawgit.com/everypolitician/everypolitician-data/5ee6c14a4708ce018f2999a397c7192cf2ab509f/data/UK/Commons/ep-popolo-v1.0.json') | |
mps = req.json() | |
def get_summary(mp_name): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am mcameron on github. | |
* I am mcameron (https://keybase.io/mcameron) on keybase. | |
* I have a public key whose fingerprint is 1523 3A37 4A0A 9C62 7FDC 1A43 0B91 FA26 E379 6192 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
__author__ = 'Maxwell Cameron' | |
FORMAT = '%(asctime)-15s %(name)s [%(levelname)s]: %(message)s' | |
import sys | |
import pickle | |
import requests | |
import logging | |
import argh | |
from argh import arg, dispatch_command | |
logging.basicConfig(format=FORMAT, level=logging.ERROR, datefmt="%Y-%m-%d %H:%M:%S") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this is a workaround for https://github.com/ansible/ansible/pull/8533. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"t2.micro": [81.0, 0.0092], | |
"t2.small": [163.0, 0.0186], | |
"t2.medium": [326.0, 0.0372], | |
"m3.medium": [457.0, 0.0522], | |
"m3.large": [923.0, 0.1054], | |
"m3.xlarge": [1838.0, 0.2098], | |
"m3.2xlarge": [3668.0, 0.4187], | |
"c4.large": [739.0, 0.0844], | |
"c4.xlarge": [1478.0, 0.1687], |
NewerOlder