Skip to content

Instantly share code, notes, and snippets.

View jboynyc's full-sized avatar
🍜

John Boy jboynyc

🍜
View GitHub Profile
@jboynyc
jboynyc / demo.css
Last active December 14, 2015 14:29
/* if you want images to drop a shadow */
img {
box-shadow: 10px 10px 5px #888;
}
/* if you want "fleurons" instead of bullets in unordered lists */
ul {
padding-left:1em;
list-style:none;
margin-left:0;
@jboynyc
jboynyc / topsy-scraper.py
Last active February 16, 2016 13:33
This is a short Python script to scrape data from Topsy through their API and store it in MongoDB. (Now they require an API key, so some changes are necessary to get it to work.)
#!/usr/bin/env python
from urllib2 import urlopen, urlencode
from pymongo import connection
import json
from optparse import OptionParser
from time import sleep
verbose = 1
parser = OptionParser()