Skip to content

Instantly share code, notes, and snippets.

View korenmiklos's full-sized avatar

Miklós Koren korenmiklos

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# coding: utf-8
# transliteration from http://www.boutler.de/translit/trans.htm
RUS = (u'\u0430', u'\u0431', u'\u0432', u'\u0433', u'\u0434', u'\u0435', u'\u0451', u'\u0436', u'\u0437',u'\u0438', u'\u0439',
u'\u043A', u'\u043B', u'\u043C', u'\u043D', u'\u043E', u'\u043F', u'\u0440', u'\u0441', u'\u0442', u'\u0443', u'\u0444',
u'\u0445', u'\u0446', u'\u0447', u'\u0448', u'\u0449', u'\u044A', u'\u044B', u'\u044C', u'\u044D', u'\u044E', u'\u044F')
HUN = ('a', 'b', 'v', 'g', 'd', 'je', 'jo', 'zs', 'z', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 'sz', 't', 'u', 'f',
'h', 'c', 'cs', 's', 'scs', '', 'i', '', 'e', 'ju', 'ja')
RUS_HUN = dict(zip(RUS,HUN))
def transliterate_to_hungarian(russian):
* oszag = 1,2,3
* kategoria = 1,2,3
gen y = 13-3*orszag-kategoria
tw (line y data if orszag==1, msymbol(circle)) (line y data if orszag==2, msymbol(circle)) (line y data if orszag==3, msymbol(circle)), ylabel(8 "Ausztria" 5 "Belgium" 2 "Dania") legend(off)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@korenmiklos
korenmiklos / .block
Created February 18, 2016 14:35 — forked from mbostock/.block
Hierarchical Edge Bundling
license: gpl-3.0
@korenmiklos
korenmiklos / index.html
Last active January 3, 2016 03:29
Number of WTO members over time
<html>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js"> {"dataSourceUrl":"//docs.google.com/spreadsheet/tq?key=0AhJS2rfBAT8JdE9HTndrVnNQa2s2b014Q1kzQ2JoMnc&transpose=0&headers=1&merge=COLS&range=B1%3AB160%2CD1%3AD160&gid=0&pub=1","options":{"displayAnnotations":true,"titleTextStyle":{"fontSize":16},"vAxes":[{"useFormatFromData":true,"title":"Left vertical axis title","minValue":null,"viewWindow":{"min":null,"max":null},"maxValue":null},{"useFormatFromData":true,"minValue":null,"viewWindow":{"min":null,"max":null},"maxValue":null}],"booleanRole":"certainty","title":"Chart title","wmode":"opaque","hAxis":{"useFormatFromData":true,"title":"Horizontal axis title","minValue":null,"viewWindow":{"min":null,"max":null},"maxValue":null},"width":960,"height":500},"state":{},"view":{},"isDefaultVisualization":true,"chartType":"AnnotatedTimeLine","chartName":"Chart 1"} </script>
</html>
@korenmiklos
korenmiklos / button.css
Last active December 31, 2015 22:09 — forked from lgrammel/button.css
button {
font: 14px Helvetica Neue;
background-color: #222;
background-image: -moz-linear-gradient(top, rgba(255,255,255,.25), rgba(255,255,255,.11));
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, rgba(255,255,255,.25)),color-stop(1, rgba(255,255,255,.11)));
background-image: -webkit-linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.11));
color: #fff;
text-rendering: optimizeLegibility;
text-shadow: 0 -1px 1px #222;
padding: 6px 10px 6px 10px;
# -*- coding: utf-8 -*-
import sys
import re
import csv
where_regex = r"""(In <a href="(?P<url>.*?)">(?P<folder>.*?)</a>, )?"""
who_regex = r"(?P<who>.*?)"
verb_regex = r"(?P<verb>added|edited|deleted|moved|renamed) "
what_regex = r"""(the (file|folder) )?(.*?)<a (.*?) title="(?P<what>.*?)">(.*?)</a>\. """
when_regex = r"(?P<when>.*)$"