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
import argparse | |
import os | |
import re | |
import requests | |
from w3lib.encoding import html_body_declared_encoding, http_content_type_encoding | |
from scihub import IdentifierNotFoundError, SciHub | |
# DOIs taken from https://www.crossref.org/blog/dois-and-matching-regular-expressions/ |
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
//Before your interview, write a program that runs a server that is accessible on http://localhost:4000/. | |
//When your server receives a request on http://localhost:4000/set?somekey=somevalue it should store the | |
//passed key and value in memory. When it receives a request on http://localhost:4000/get?key=somekey it | |
//should return the value stored at somekey. | |
//During your interview, you will pair on saving the data to a file. You can start with simply appending | |
//each write to the file, and work on making it more efficient if you have time. | |
package main |
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
package main | |
import ( | |
"github.com/Wussell/wordlebot" | |
"fmt" | |
"log" | |
"strconv" | |
"strings" | |
) | |
//eval evaluates the performance of wordlebot, tells you what words it failed to guess in a given word list, and returns the average score. |