Skip to content

Instantly share code, notes, and snippets.

View lorinc's full-sized avatar

Lőrinc Nyitrai lorinc

View GitHub Profile
@lorinc
lorinc / index.html
Created December 6, 2023 13:02
Moire Pattern Playground
<!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 / 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 / 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 / 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 / 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 / heart.ipynb
Created June 17, 2019 18:50
heart.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lorinc
lorinc / german_sentence_deck.ipynb
Last active September 26, 2019 07:52
German_Sentence_Deck.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lorinc
lorinc / nested_table_iterator.lua
Last active February 7, 2019 05:11
This is a function I wrote to support deeply nested data structures at Google in the Cloud Support BI pipeline.
-- iterator function to traverse nested tables
function iterate(tbl, parent)
parent = parent or {}
if (type(tbl)=="table") then
for key, value in pairs(tbl) do
iterate(value, table.extend(parent, key))
end
end
coroutine.yield(parent, tbl)
end
@lorinc
lorinc / feature_extraction_from_images.ipynb
Last active October 17, 2016 18:59
feature extraction experiment on the Swedish Leaf Dataset
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lorinc
lorinc / parentesis_checker.ipynb
Last active September 29, 2016 23:32
We asked this as a Java interview question and I HAD to show them the beauty of Python ;)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.