Skip to content

Instantly share code, notes, and snippets.

View loleg's full-sized avatar

Oleg Lavrovsky loleg

View GitHub Profile
@loleg
loleg / scratchbook.ipynb
Last active November 25, 2018 09:34
(WIP) Röstigrabendetektor #plurilinguism hack
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@loleg
loleg / datapackage.json
Last active December 3, 2018 13:40
List of members of the Swiss parliament attached to the Parldigi (Parlamentarische Gruppe Digitale Nachhaltigkeit)
{
"profile": "tabular-data-package",
"resources": [
{
"name": "mitglieder",
"path": "parldigi.csv",
"profile": "tabular-data-resource",
"schema": {
"fields": [
{
@loleg
loleg / datapackage.json
Created December 9, 2018 22:24
World map of Impact Hub locations, republished as a Data Package from impacthub.net
{
"profile": "tabular-data-package",
"resources": [
{
"name": "worldmap-geojson",
"path": "impacthub-worldmap.geojson",
"spatial-profile": "simple-vector",
"type": "fill",
"format": "geojson"
},
@loleg
loleg / Abalone-ML-DataPackage-example.ipynb
Created January 28, 2019 15:58
An example of using DataHub and the Frictionless Data libraries with the Keras library for Machine Learning
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
id name grams watts
1 Andreas 435 148
2 Matthias 422 120
3 Dimi 1 380 130
4 Jonas 316 87
5 Goliath 308 87
6 David 304 102
7 Wolfram 300 130
8 Tatiana 300 85
9 Anna 2 297 130
Thema Kategorie Jahr Amount
Betriebsertrag Erträge aus Mitgliederbeiträge 2015 15700.00
Betriebsertrag Erträge aus Mitgliederbeiträge 2016 17979.45
Betriebsertrag Erträge aus Mitgliederbeiträge 2017 18720.00
Betriebsertrag Erträge aus Mitgliederbeiträge 2018 17035.70
Betriebsertrag Erträge aus Konferenzen 2015 42109.81
Betriebsertrag Erträge aus Konferenzen 2016 45150.88
Betriebsertrag Erträge aus Konferenzen 2017 53137.67
Betriebsertrag Erträge aus Konferenzen 2018 40000.00
Betriebsertrag Erträge aus Projekten 2015 10022.59
@loleg
loleg / seasonsgreets.js
Created December 6, 2019 11:17
December dweet
// replace this in the editor at https://www.dwitter.net/d/16799
// it's not < 140 bytes yet, improvement suggestions welcome --> twitter.com/loleg
for(i=0;i<99;i++)for(j=0;j<50;j++){x.fillStyle=`hsl(${S(i)*(i%2?10:1500)},89%,60%,.1`;x.fillRect(i*20,j*20,40*C(t+S(i*j+t/9)^2),9*S(t/11+C(t)*T(t*2+j/t)))}
x.fillStyle='white';K=99
for(i=K;i--;)x.fillRect(i*20,800+S(i/7+t*5)*55,20,500)
x.font='17em monospace'
x.fillStyle='green'; x.fillText('Seasons Greets',115,903)
x.fillStyle='red'; x.fillText('Seasons Greets',105,900)
@loleg
loleg / opendata.ch_flowchart.svg
Last active March 6, 2020 12:03
Flowchart diagram of Opendata.ch made with Mermaid.js
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@loleg
loleg / hslu 2020.3.md
Last active March 13, 2020 10:40
Presentation on how to run an open data hackday at Hochschule Luzern
title tags description
hslu 2020.3
presentations
View with "Slide Mode".
<style>.reveal section.present img { border:0px; background:transparent; box-shadow:none } body { background: #444 }</style>

Oleg Lavrovsky Data Activist