Skip to content

Instantly share code, notes, and snippets.

View lorinc's full-sized avatar

Lőrinc Nyitrai lorinc

View GitHub Profile
@lorinc
lorinc / distance_calculation.sql
Last active August 22, 2019 17:09
Visualization of political polarization in Hungary using public parliamentary voting data using Google BigQuery. Pro bono work for atlatszo.hu, the recognized Hungarian pro-democracy data journalist group.
/*
Pairwise distance between every single members of the parliament
active in that specific term, for every single voting that happened.
Generates a 61GB dataset for the 14,452 voting events.
Next step is reducing the amount of data, using roling window aggregation
on the time dimension, and clustering on the people dimension.
*/
@lorinc
lorinc / docugen.ipynb
Created March 8, 2022 12:36
iPyton notebook that I used to prototype the generation of the 3200 formal delegation letters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lorinc
lorinc / solar.ipynb
Created September 28, 2022 15:52
solar.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lorinc
lorinc / analysis.ipynb
Last active April 27, 2023 21:39
Answering the deceptively simple question, "why the pipeline runs slower"? First with visualization, then simplifying the answer further and giving "top 10 problems" daily.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lorinc
lorinc / index.html
Last active May 10, 2024 08:41
Moire Pattern Playground - https://jsfiddle.net/L90j3wnk/
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.0/p5.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8" />
</head>
<body>
<main>
@lorinc
lorinc / interwiev_question.ipynb
Last active May 10, 2024 09:14
interview question - given a set of readable and a set of writable folders, find writables with readable parent
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.