Skip to content

Instantly share code, notes, and snippets.

@svolle
svolle / dev_towns.py
Last active August 29, 2015 14:01
Brain dead script to get "developer density" in main French cities.
#!/bin/env python
"""
Brain dead script that scraps wikipedia for the top French cities and their population
then queries Github to get an estimated city developer population.
"""
__author__ = 'svolle'
import requests
import github3
from bs4 import BeautifulSoup
@svolle
svolle / easter
Created October 29, 2013 17:32
some konami code easter egg
<script>
var vari = {
easter: {
code: "38 38 40 40 37 39 37 39 66 65",
userIn: ""
}
};
(function(v) {
window.addEventListener("keydown", function(e){
@svolle
svolle / benchmark_yaml.lua
Created January 12, 2012 15:22
PyYAML parsing benchmark
--[[
This module loads all files located in PATH directory in memory and parses them as YAML.
It outputs the parsing operation duration.
--]]
require("lfs")
require("yaml")
local PATH = "yaml_data"
local yaml_data = {}