A collection of questions we typically ask job applicants during analyst interviews.
The date is January 4. You are well rested after a festive holiday season. 🎉
We're gearing up to launch a new product, and we need your help.
Let's begin.
| import urllib2 | |
| import json | |
| from bs4 import BeautifulSoup | |
| def get_station_info(index, api_key): | |
| try: | |
| url = "http://api.npr.org/v2/stations/org/{0}?apiKey={1}".format(index, api_key) | |
| content = urllib2.urlopen(url).read() |
| codelist = "" | |
| #this one splits the states.csv file | |
| with open("states.csv","r") as states_file: | |
| states = states_file.read().split("\n") | |
| for index, state in enumerate(states): | |
| states[index] = state.split(",") | |
| #this formats the states in a pretty table |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head><meta charset="utf-8"></head> | |
| <body> | |
| <!-- This is the Underscore.js template for each of our links. --> | |
| <!-- I didn't HAVE to make this a template. But I wanted to show --> | |
| <!-- how you might do this if you were doing it by our standards. --> | |
| <!-- Inside this script tag, you can write HTML with some little things, --> | |
| <!-- <%= foo %> means to print the Javascript variable "foo". --> | |
| <!-- <% %> means you would like to write some Javascript to be evaluated but not printed. --> |
A friend is looking for a new tech job and asked if I knew anyone at a handful of companies. I'm (meaningfully) connected to more people who are relevant to this on Twitter than LinkedIn, so figured it would be easiest to scour people's bios. Naturally, I did this in the nerdiest way possible and automated it.
P.S. See also: