Skip to content

Instantly share code, notes, and snippets.

View melodykramer's full-sized avatar

Melody Joy Kramer melodykramer

View GitHub Profile
@davisshaver
davisshaver / analyst.md
Last active December 1, 2016 05:53
Philadelphia Media Network Analytics Team - Interview Questions

Analyst Interview Questions

A collection of questions we typically ask job applicants during analyst interviews.

Scenario

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()
@ayota
ayota / statesexample.py
Created June 14, 2014 17:06
example of goal 2
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
@jeremyjbowers
jeremyjbowers / bookmarklets.html
Created February 21, 2014 14:49
A page to generate bookmarklets for Melody.
<!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. -->
@afeld
afeld / README.md
Last active April 12, 2019 06:17
Twitter bio search

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.

<3 @aidanfeldman

P.S. See also: