Skip to content

Instantly share code, notes, and snippets.

@spara
spara / install_pyicu.sh
Created Mar 15, 2016
install pyicu on el capitan
View install_pyicu.sh
brew install icu4c
CFLAGS=-I/usr/local/opt/icu4c/include LDFLAGS=-L/usr/local/opt/icu4c/lib pip install pyicu
@JalfResi
JalfResi / revprox.go
Last active May 9, 2022
Simple reverse proxy in Go
View revprox.go
package main
import(
"log"
"net/url"
"net/http"
"net/http/httputil"
)
func main() {
@guyzmo
guyzmo / tornado_event_source_client.py
Created May 25, 2012
A Tornado-based library that enables Event Source support !
View tornado_event_source_client.py
import sys
import argparse
import logging
log = logging.getLogger('eventsource.client')
from tornado.ioloop import IOLoop
from tornado.httpclient import AsyncHTTPClient, HTTPRequest
class Event(object):
def __init__(self):
@benjchristensen
benjchristensen / index.html
Created Aug 9, 2011
Simple Sparkline using SVG Path and d3.js
View index.html
<html>
<head>
<title>Simple Sparkline using SVG Path and d3.js</title>
<script src="http://mbostock.github.com/d3/d3.v2.js"></script>
<style>
/* tell the SVG path to be a thin blue line without any area fill */
path {
stroke: steelblue;
stroke-width: 1;
fill: none;