Skip to content

Instantly share code, notes, and snippets.

Oleg Lavrovsky loleg

View GitHub Profile
@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)
@loleg
loleg / datajamdays-24112017.ipynb
Created Nov 24, 2017
DataJamDays 2017 Julia notebook for Jupyter workshop
View datajamdays-24112017.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View generate-datapackage.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@loleg
loleg / dribdat-hacknight-challenge.md
Last active Oct 18, 2017
A sample challenge in Markdown for the DINAcon HACKnight
View dribdat-hacknight-challenge.md

Dribdat is an open platform for data-driven team collaboration, such as Hackathons. It works as a website and project board for running exciting, productive events..with Impact Factor. The platform allows organisers and participants to aggregate project details from multiple sources (Markdown, Wikis, GitHub, Bitbucket), display challenges and projects, reuse the data, plug in community tools like Discourse, Slack, Let's Chat, and chatbots to enhance the hackathon.


{ hacknight challenges }

Yes, Dribdat is the website you see running here. Just [create an account](/register) to login, and add a project you are working on - or join an existing one as team member. Find out how projects are sync'ed and scored for bonus points.

Read the Documentati

@loleg
loleg / git-bokeh-demo.ipynb
Last active Aug 9, 2017
Exploring Git data with Python, Pandas, Numpy and Bokeh
View git-bokeh-demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@loleg
loleg / ubuntu-nginx-docker-stackscript.sh
Created May 24, 2017
A handy script to start a new box, based on other people's Stackscripts
View ubuntu-nginx-docker-stackscript.sh
#! /bin/bash
#
# Base server that sets a root SSH key and disables password auth. Used by me for Ansible-based deploys.
# <UDF name="HOSTNAME" Label="Hostname" />
# <UDF name="USERNAME" Label="Username" />
# <UDF name="PASSWORD" Label="Password" />
# <UDF name="SSH_KEY" Label="SSH Key" />
# <UDF name="FQDN" Label="Domain Name">
source <ssinclude StackScriptID=46109>
@loleg
loleg / count_self_references.sh
Last active Feb 17, 2017
Count lines and references in a bunch of projects' docs
View count_self_references.sh
for dir in `ls -d */`;
do
cd $dir/docs
echo Total lines in ${dir%%/}:
find . -type f -exec cat {} + | wc -l
echo References of ${dir%%/}:
grep -ori ${dir%%/} * | wc -l
cd .. && cd ..
done
@loleg
loleg / datenanalyse-19.1.2017.md
Last active Mar 7, 2018
notes-datenanalyse-19.1.2017
View datenanalyse-19.1.2017.md

Introduction to Open Data

Previously...

Gemeinden in der Schweiz - ersten Überblick zu den Daten - Fragen: Hat mit dem Einlesen alles geklappt wie erwartet? Sind die Daten so kodiert, wie Sie es erwarten? Stimmen die Datenformate der Variablen? Gibt es fehlende Werte und wie sind diese kodiert?

define: loleg

View keybase.md

Keybase proof

I hereby claim:

  • I am loleg on github.
  • I am loleg (https://keybase.io/loleg) on keybase.
  • I have a public key whose fingerprint is 4510 45E3 0B29 B969 7E95 BB6A EA91 3D83 7287 B56A

To claim this, I am signing this object:

View gist:7458a26da3bfcd803b5ed9f7b16d5231
This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.
You can’t perform that action at this time.