Skip to content

Instantly share code, notes, and snippets.

View radbrt's full-sized avatar

Henning radbrt

View GitHub Profile
@radbrt
radbrt / permischema.json
Last active January 24, 2024 20:49
permischema
{
"$schema": "http://json-schema.org/radbrtpermi/schema#",
"$ref": "#/definitions/Permifrost",
"definitions": {
"Permifrost": {
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
# A list of lists
ll = [[1, 2, 3], [4, 5, 6], [7, 8, 9, 10]]
# flatten to single list
[n for li in ll for n in li]
# Corresponds to:
@radbrt
radbrt / dss_dockerfile
Created March 25, 2019 21:31
Dataiku dockerfile with anaconda
FROM dataiku/dss
USER root
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV PATH /opt/conda/bin:$PATH
RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \
libglib2.0-0 libxext6 libsm6 libxrender1 \
git mercurial subversion
@radbrt
radbrt / README.md
Last active May 30, 2017 20:59
European wage distribution

European wage distribution

This gist is under development. D3 v4.x attempt at showing wage distribution in Europe.

Nodes are clickable, to mark same coutry in other occupations. Hover reveals exact average wage.

Intended further development: Transitions between nominal and PPS, and between years (at least 2010, 2014).

@radbrt
radbrt / europe3.json
Last active September 27, 2015 21:47
Earnings by occupation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@radbrt
radbrt / europe3.json
Last active September 26, 2015 20:24
European earnings
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@radbrt
radbrt / index.html
Last active February 27, 2019 22:26
Innbyggerantall
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Innbyggerantall</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script>
<script type="text/javascript" src="json-stat.js" ></script>
<style type="text/css">
body {
@radbrt
radbrt / README.md
Last active September 21, 2015 20:42
SES Ranking

##SES Ranking

This gist is under development.

The chart shows puchasing-power-adjusted earnings for eight groups of profession, in a selection of european countries. The numbers are from the 2010 structure of earnings survey collected by Eurostat.

@radbrt
radbrt / README.md
Last active March 2, 2019 13:33
Lønnsindeks

Interaktiv lønnsindeks for månedslønn

Ved å klikke på figuren og dra vil lønnendringen mellom tidspunktene regnes ut.

Månedslønnen inkluderer bonus og uregelmessige tillegg, som regnes som hittil-i-år verdi. Derfor kan grafen vise sesongsvingninger avhengig av når på året bonus er utbetalt.

@radbrt
radbrt / README.md
Last active February 27, 2019 22:35
Inntektsfordeling i kommunene

#Inntektsfordeling Dette er et stablet diagram som viser prosent av husstander i de gitte inntektsintervallene. En liten boks under grafen viser mer informasjon, inkludert prosentene.

Grafen summeres ikke alltid til 100%, av to grunner:

  1. Prosentene er avrundet til nærmeste hele prosent, noe som gjør at summen ofte kan bli 99, 100 eller 101 avhengig av tilfeldighetene.
  2. For enkelte inntektsgrupper i enkelte kommuner i enkelte år, mangler data. Dette kommer frem ved at teksten sier null%.

Kilden er Statistisk Sentralbyrå sin API, spesifikt følgende datasett: http://data.ssb.no/api/v0/dataset/56957.