Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@josegonzalez
josegonzalez / README.md
Last active December 16, 2015 11:39 — forked from mbostock/.block

This choropleth encodes unemployment rates from 2008 with a quantize scale ranging from 0 to 15%. A threshold scale is a useful alternative for coloring arbitrary ranges.

@josegonzalez
josegonzalez / redis_migrate.py
Last active January 15, 2024 14:39 — forked from iserko/redis_migrate.py
A simple script to migrate all keys from one Redis to another
#!/usr/bin/env python
import argparse
import redis
def connect_redis(conn_dict):
conn = redis.StrictRedis(host=conn_dict['host'],
port=conn_dict['port'],
db=conn_dict['db'])
return conn