Skip to content

Instantly share code, notes, and snippets.

View wliu's full-sized avatar
🏔️

wliu

🏔️
  • Bay Area, CA
View GitHub Profile
@wliu
wliu / spam_detector.md
Last active April 11, 2018 21:45
Spam Detector

Spam Detector

Welcome to UnitedMasters. This challenge helps us assess engineering expertise and creative thinking, while enabling you to get a better understanding of the music domain. We also think this challenge is a just a fun exercise for anyone that loves to write code. Feel free to ask questions or get clarification on anything.

Dataset

The dataset for this challenge, dataset.tar, is a archive containing three gzipped JSON Lines files:

sc_tracks.json.gz: contains ~6000 Soundcloud track objects from @corpus, our internal datastore. The track object mirrors the [Soundcloud Track API] (https://developers.soundcloud.com/docs/api/reference#tracks) with UnitedMaster specific fields denoted by a leading "_" character in the field name.

@wliu
wliu / um_web_acts.py
Last active March 28, 2022 20:18
UM Website Activations
# Create activations for website
import services.corpus
c = services.corpus.find_one(services.corpus.Campaign, {'name': 'UnitedMasters Website Launch'})
assert c
# website activation
w = services.corpus.Website(name=u'UnitedMasters', url=u'https://www.unitedmasters.com', timezone=u'America/Los_Angeles')
assert w
services.corpus.insert(w)