Skip to content

Instantly share code, notes, and snippets.

View edcrypt's full-sized avatar

Eduardo de Oliveira Padoan edcrypt

View GitHub Profile
@edcrypt
edcrypt / io_examples.io
Last active August 12, 2016 23:23 — forked from jezen/Io Example Problems
The example problems have gone missing from the Io language website, so here’s a backup.
#Sample code
#Hello world
"Hello world!" print
#Factorial
factorial := method(n, if(n == 1, 1, n * factorial(n - 1)))
99 bottles of beer
@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