Skip to content

Instantly share code, notes, and snippets.

View korenmiklos's full-sized avatar

Miklós Koren korenmiklos

View GitHub Profile
@korenmiklos
korenmiklos / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
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.
gistup
from datetime import datetime
import csv
import sys
START_DATE = 'start_date'
END_DATE = 'end_date'
SPELL_ID = 'spell_id'
IMPUTED_END_DATE = 'imputed_end_date'
TOLERANCE = 31 # days
PRIMARY_KEYS = ['frame_id', 'person_id']
@korenmiklos
korenmiklos / .block
Created February 18, 2016 14:35 — forked from mbostock/.block
Hierarchical Edge Bundling
license: gpl-3.0
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.
* 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)