Skip to content

Instantly share code, notes, and snippets.

@roquin
roquin / gist:2751324
Created May 20, 2012 05:28
Polluted domain and bogus-nxdomain in China. Used for tomato
bogus-nxdomain=220.250.64.18
bogus-nxdomain=220.250.64.19
bogus-nxdomain=220.250.64.20
bogus-nxdomain=220.250.64.21
bogus-nxdomain=220.250.64.22
bogus-nxdomain=220.250.64.23
bogus-nxdomain=220.250.64.24
bogus-nxdomain=220.250.64.25
bogus-nxdomain=220.250.64.26
address=/api.twitter.com/199.59.149.243
@roquin
roquin / gist:2723565
Created May 18, 2012 06:29
Blocked IP in China. Used for tomato.
#coolaler.com
96.44.156.0/24
74.208.232.0/24
#docstoc.com
72.172.88.0/24
#ipicture.ru
88.212.206.0/23
#mobile01
202.39.235.0/24
#platform.twitter.com
@roquin
roquin / output
Created February 26, 2012 03:35
Sample output for spark_matrix()
Stay stand
▁▁▁▁▁
▁▁▁▁▁
▁▁▁▁▁
▁▁▁▁▁
Sense green
▁▇▇▁▁
▁▁▇▁▁
▁▁▇▇▁
▁▁▁▁▁
@roquin
roquin / spark_matrix.py
Created February 23, 2012 12:49
A helper function for cs373 from udacity
# usage: spark_matrix([[0.1, 0.5, 0.3],
# [0.0, 1.0, 0.8],
# [0.1, 0.2, 0.1]])
# ▁▅▃
# ▁█▇
# ▁▂▁
#
# If you get encoding errors, uncomment and add next 5 lines to the start of file.
# #!/usr/bin/env python
# # -*- coding: utf-8 -*-