Skip to content

Instantly share code, notes, and snippets.

Oleg Lavrovsky loleg

Block or report user

Report or block loleg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@loleg
loleg / datapackage.json
Last active Dec 3, 2018
List of members of the Swiss parliament attached to the Parldigi (Parlamentarische Gruppe Digitale Nachhaltigkeit)
View datapackage.json
{
"profile": "tabular-data-package",
"resources": [
{
"name": "mitglieder",
"path": "parldigi.csv",
"profile": "tabular-data-resource",
"schema": {
"fields": [
{
@loleg
loleg / scratchbook.ipynb
Last active Nov 25, 2018
(WIP) Röstigrabendetektor #plurilinguism hack
View scratchbook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@loleg
loleg / opendata.ch_flowchart.svg
Last active Mar 6, 2020
Flowchart diagram of Opendata.ch made with Mermaid.js
View opendata.ch_flowchart.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@loleg
loleg / diagram.svg
Created Oct 19, 2018
Does the investment of time vs. perceived gain balance out in your favor? A handy hacky flowchart for hackathon-goers-to-be.
View diagram.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@loleg
loleg / .block
Last active Jun 25, 2018
TTN Vega-Lite Example
View .block
license: bsd-3-clause
border: no
scrolling: no
height: NaN
@loleg
loleg / avalanche_switzerland_mapboxgl.ipynb
Last active Feb 25, 2018
Avalanches in Switzerland visualized with the Mapboxgl-Jupyter Python Library
View avalanche_switzerland_mapboxgl.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@loleg
loleg / classification.ipynb
Last active Feb 16, 2018
An experiment with PyTorch, Torchvision, RESNET18 and melted cheese
View classification.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@loleg
loleg / openfood-dribdat-event.md
Last active Jan 19, 2018
Dribdat configuration for a Open Food Data event
View openfood-dribdat-event.md

Description:

At the «Open Food Data Hackdays» diverse food-interested actors, including big data specialists, software engineers, nutrition experts, farmers, app designers, students and entrepreneurs, are united. This potential is combined with publicly available data on the production, movement, consumption and impact of food, in order to enable groundbreaking projects.

Guide to datasets:

# Data resources

We are preparing a [collection of data packages](https://openfood.schoolofdata.ch) for use at the Hackdays. At the Hackdays, you are free to use these, your own, or other data - just remember to always properly **attribute your sources** and respect each license. Be aware of the Terms of Use before you dig in. Your experience and support will help us to open more data according to the [Open Definition](http://opendefinition.org/) and [open licenses](http://licenses.opendefinition.org/)! 
@loleg
loleg / ckan-opendata-example.r
Last active Aug 9, 2018
A snippet of R showing how to access a CKAN portal via its API, in this case opendata.swiss
View ckan-opendata-example.r
install.packages("ckanr")
library('ckanr')
# Initialise the CKAN library with a remote portal
ckanr_setup(url = "https://opendata.swiss")
# Run a search to get some data packages
x <- package_search(q = 'name:arbeitslosenquote', rows = 1)
# Note that on the Swiss server the titles are multilingual
@loleg
loleg / conda.fish
Last active Dec 8, 2017 — forked from jiffyclub/conda.fish
Activate and deactivate commands for working with conda environments in the fish shell. Currently assumes you are switching to a named environment, not specifying a directory.. Adapted from https://penandpants.com/2014/02/28/using-conda-environments-and-the-fish-shell/
View conda.fish
# To use this, add to the ~/.config/fish/ directory and source them from
# the end of the ~/.config/fish/config.fish file:
#
# source $HOME/.config/fish/conda.fish
#
# set this to YOUR anaconda/miniconda path:
set CONDAHOME $HOME/miniconda3/envs
function condalist -d 'List conda environments.'
for dir in (ls $CONDAHOME)
You can’t perform that action at this time.