Skip to content

Instantly share code, notes, and snippets.

View putnik's full-sized avatar
🇺🇦
Нет войне!

Sergei Leshchina putnik

🇺🇦
Нет войне!
View GitHub Profile
{
"version": 2,
"width": 700,
"height": 300,
"data": [
{
"name": "table",
"values": [
{"year":1907,"population":51815},
{"year":2011,"population":310956},
@putnik
putnik / data-3.csv
Last active February 14, 2018 23:40 — forked from d3noob/data-3.csv
v4 curve interpolation comparison
date close
1907-01-01 51815
2011-01-01 310956
2017-01-01 269022
# coding: utf8
#
# Copyright (c) 2016 Sergey Leschina (putnik) <mail@putnik.tech>
#
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
import pywikibot
from pywikibot import pagegenerators
@putnik
putnik / wikidata-dump.py
Created July 12, 2016 16:59
Чтение дампа Викиданных на Python
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import ijson
import gzip
f = gzip.open('wikidata-all.json.gz', 'rb')
for item in ijson.items(f, 'item'):
@putnik
putnik / trends_be.py
Created October 14, 2015 20:29
@BeWikiTrends
@putnik
putnik / trends_ru.py
Last active October 14, 2015 20:28
@RuwikiTrends