Skip to content

Instantly share code, notes, and snippets.

@frenata
frenata / people.py
Last active April 23, 2017 16:30
no metadata!
from pupa.scrape import Person, Scraper
import lxml.html
import re
import pdb
class IAPersonScraper(Scraper):
jurisdiction = 'ia'
def scrape(self, chamber=None):
@frenata
frenata / robot.go
Created April 9, 2017 06:13
Advent of Code 2016 #10, solution with Go and channels
package main
import (
"bufio"
"fmt"
"io"
"os"
"regexp"
"strconv"
)
function alphabet() {
let letter =
arguments.length > 0 ?
arguments[0] :
"a";
let next = String.fromCharCode(letter.charCodeAt(0)+1);
return next == "z" ?
next :
letter + alphabet(next);