Skip to content

Instantly share code, notes, and snippets.

View wil's full-sized avatar

Wil Tan wil

View GitHub Profile
@wil
wil / summarize.py
Last active August 29, 2015 14:14 — forked from rodricios/summarize.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
pip install networkx distance pattern
In Flipboard's article[1], they kindly divulge their interpretation
of the summarization technique called LexRank[2].
@wil
wil / link_header.py
Last active December 20, 2015 20:29 — forked from mnot/link_header.py
HTTP Link header parsing routines originally adapted from [Mark Nottingham's gist](https://gist.github.com/mnot/210535) This version adds a `parse_link_value_by_rel` convenience function to address a common use case.
VERSION="0.9.9"
BUILD="betable1"
set -e -x
# Keep track of the original working directory.
OLDESTPWD="$PWD"
# Work in a temporary directory.
cd "$(mktemp -d)"
@wil
wil / echo.c
Created November 12, 2009 15:29 — forked from paulsmith/echo.c
Nothing here, just watching it
/**
* A simple preforking echo server in C.
*
* Building:
*
* $ gcc -Wall -o echo echo.c
*
* Usage:
*
* $ ./echo