Skip to content

Instantly share code, notes, and snippets.

Avatar

Julian Andres Klode julian-klode

View GitHub Profile
View ACWI IMI allocation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:9c89aa618cbfd6a36fe751063942f68e
JNJ,Johnson & Johnson,"0,6554 %",Pharmaceuticals,US,"87.776.930,88 $",509.472
BRK.B,Berkshire Hathaway Inc. Class B,"0,5942 %",Reinsurance,US,"79.575.944,40 $",254.220
XOM,Exxon Mobil Corp.,"0,4679 %",Integrated Oil and Gas,US,"62.660.695,32 $",824.917
CVX,Chevron Corp.,"0,3661 %",Integrated Oil and Gas,US,"49.031.004,86 $",373.342
KO,Coca-Cola Co.,"0,3405 %",Soft Drinks,US,"45.600.155,21 $",747.421
WFC,Wells Fargo & Co.,"0,3139 %",Banks,US,"42.045.560,80 $",781.516
MC,LVMH Moet Hennessy Louis Vuitton SE,"0,2939 %",Clothing and Accessories,FR,"39.364.441,11 $",48.596
WMT,Walmart Inc.,"0,2895 %",Diversified Retailers,US,"38.774.485,97 $",277.337
SHEL,Shell plc,"0,2799 %",Integrated Oil and Gas,,"37.491.469,24 $",1.481.199
BRK.A,Berkshire Hathaway Inc. Class A,"0,2385 %",Reinsurance,US,"31.946.740,00 $",68
View apt-solver-z3.cc
/*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* Copyright (C) 2021 Julian Andres Klode <jak@jak-linux.org>
*
* Some portions included below are taken from the dummy apt solver, and hence
* share its copyright owners.
*
*/
View a.hs
import Control.Monad
main = do topic <- getLine
payload <- getLine
let msg = Message (Topic topic) payload
mapM_ (runAction topic payload) rules
where
runAction topic payload (Action (Topic t) cb)
= when (t == topic) $ cb payload
View in-container
#!/bin/sh
. /etc/os-release
case "$DISTRO" in
*:*)
ID=$(echo $DISTRO | cut -f1 -d:)
VERSION_CODENAME=$(echo $DISTRO | cut -f2 -d:)
;;
View 99chrome-vaapi
Dpkg::Post-Invoke:: "grep -q Vaapi /opt/google/chrome/google-chrome || sed -i 's#^exec.*HERE.*/chrome.*#\0 --enable-features=VaapiVideoDecoder#' /opt/google/chrome/google-chrome";
View plot-hr.py
#!/usr/bin/python3
#
# Copyright (C) 2020-2021 Julian Andres Klode <jak@jak-linux.org>
#
# This Source Code Form is subject to the terms of the Mozilla
# Public License, v. 2.0. If a copy of the MPL was not distributed
# with this file, You can obtain one at
# https://mozilla.org/MPL/2.0/.
#
"""HR plotting script.
View plot-hr.py
#!/usr/bin/python3
#
# Copyright (C) 2020-2021 Julian Andres Klode <jak@jak-linux.org>
#
# This Source Code Form is subject to the terms of the Mozilla
# Public License, v. 2.0. If a copy of the MPL was not distributed
# with this file, You can obtain one at
# https://mozilla.org/MPL/2.0/.
#
"""HR plotting script.
View plot-hr.py
#!/usr/bin/python3
#
# Copyright (C) 2020-2021 Julian Andres Klode <jak@jak-linux.org>
#
# This Source Code Form is subject to the terms of the Mozilla
# Public License, v. 2.0. If a copy of the MPL was not distributed
# with this file, You can obtain one at
# https://mozilla.org/MPL/2.0/.
#
"""HR plotting script.
View plot-hr
#!/usr/bin/python3
#
# Copyright (C) 2020-2021 Julian Andres Klode <jak@jak-linux.org>
#
# This Source Code Form is subject to the terms of the Mozilla
# Public License, v. 2.0. If a copy of the MPL was not distributed
# with this file, You can obtain one at
# https://mozilla.org/MPL/2.0/.
#
"""HR plotting script.