Skip to content

Instantly share code, notes, and snippets.

name: aletheia # you probably want to 'snapcraft register <name>'
version: '0.3' # just for humans, typically '1.2+git' or '1.3.2'
summary: Aletheia decentralized scientific publishing # 79 char long summary
description: |
Aletheia is...
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
apps:
@step21
step21 / harvest
Last active October 12, 2017 02:31
# encoding=utf-8
import epidat_parse_bfs
from loc import loc
from poerelief import db, models
import untangle
#import db_access
#import pymongo as PyMongo
baseurl = "http://steinheim-institut.de/cgi-bin/epidat?id="
#baseurl for list of records
@step21
step21 / venv_wrapper
Created May 3, 2019 00:12 — forked from dbtek/venv_wrapper
Python 3 venv wrapper. Manages all virtual environments under ~/.venv/ .
# include following in .bashrc / .bash_profile / .zshrc
# usage
# $ mkvenv myvirtualenv # creates venv under ~/.venv/
# $ venv myvirtualenv # activates venv
# $ deactivate # deactivates venv
# $ rmvenv myvirtualenv # removes venv
export VENV_HOME="$HOME/.venv"
[[ -d $VENV_HOME ]] || mkdir $VENV_HOME
@step21
step21 / machine.js
Created August 29, 2020 14:40
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@step21
step21 / keybase.md
Last active April 27, 2022 16:39
keybase.md

Keybase proof

I hereby claim:

  • I am step21 on github.
  • I am fl0_id (https://keybase.io/fl0_id) on keybase.
  • I have a public key ASB5JZ85eLvhyMHQvG9xX0U07Le7xwlTMHL_JQSxbCxciAo

To claim this, I am signing this object:

@step21
step21 / jupyter_solc_magic.md
Created December 28, 2020 14:13
solidity compiler (solc) in jupyter notebook

The line below gives an example of how to compile solidity code from a jupyter notebook cell. Replaces the '--ast-json' with whatever options or output you like, and adjust the binary to where your solc is. The dash at the end is necessary to signify stdin.

%alias_magic solidity script -p "/home/jovyan/.solcx/solc-v0.6.7 --ast-json -"