Skip to content

Instantly share code, notes, and snippets.

View edcrypt's full-sized avatar

Padoan edcrypt

View GitHub Profile
function fish_prompt --description Based\ on\ \'Simple\ Pythonista\',\ displays\ GIT\ and\ Job\ count\ info\ as\ well.
set_color yellow
printf '%s' (whoami)
set_color normal
printf ' at '
set_color magenta
printf '%s' (hostname|cut -d . -f 1)
set_color normal
printf ' in '
@edcrypt
edcrypt / crawler.py
Created April 28, 2012 01:36 — forked from jmoiron/crawler.py
Simple gevent/httplib2 web crawler.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Simple async crawler/callback queue based on gevent."""
import traceback
import logging
import httplib2
import gevent