Skip to content

Instantly share code, notes, and snippets.

View dunglehome's full-sized avatar

Dung Le dunglehome

View GitHub Profile
View FibonacciCommand.php
namespace HunterBundle\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
dunglehome /
Created January 14, 2016 21:24 — forked from scttnlsn/
Pub/sub with MongoDB and Node.js

Pub/sub with MongoDB and Node.js


$ mongo
> use pubsub
> db.createCollection('messages', { capped: true, size: 100000 })
> db.messages.insert({})
dunglehome /
Last active August 29, 2015 14:26 — forked from miguelgrinberg/
Generate statistics about PyCon 2014 videos
import argparse
import re
from multiprocessing.pool import ThreadPool as Pool
import requests
import bs4
root_url = ''
index_url = root_url + '/category/50/pycon-us-2014'