Skip to content

Instantly share code, notes, and snippets.

View narfdotpl's full-sized avatar

Maciej Konieczny aka narf narfdotpl

View GitHub Profile
@narfdotpl
narfdotpl / private
Created June 11, 2014 12:58 — forked from Ciechan/private
class Counter {
let inc: () -> Int
let dec: () -> Int
init(start: Int) {
var n = start
inc = { ++n }
dec = { --n }
}
@narfdotpl
narfdotpl / votes.py
Last active December 10, 2015 22:28 — forked from mstepniowski/results.txt
#!/usr/bin/env python
# Requirements: requests, lxml, cssselect
import requests
from lxml import html
TALKNAME = "TITLE OF MY AMAZING TALK (it's a secret!)"
COLOR = '\033[1;34m'
END = '\033[0m'
r = requests.get('http://2013.djangocon.eu/vote/')