- Apply for Personnummer (via yourself)
- Get employee card (via reception)
- Design and order business cards (via Svetlana)
| \documentclass{minimal} | |
| \usepackage{tikz} | |
| \usetikzlibrary{backgrounds, positioning} | |
| \usepackage{xcolor} | |
| \definecolor{ACMYellow}{RGB}{255, 214, 0} | |
| \definecolor{ACMOrange}{RGB}{252, 146, 0} | |
| \definecolor{ACMRed}{RGB}{253, 27, 20} |
| import timeit | |
| import random | |
| import networkx as nx | |
| # from https://networkx.org/documentation/stable/_modules/networkx/algorithms/components/connected.html#connected_components | |
| def _plain_bfs(G, source): | |
| """A fast BFS node generator""" | |
| G_adj = G.adj | |
| seen = set() | |
| nextlevel = {source} |
| \begin{figure}[!htp] \centering | |
| \begin{tikzpicture} | |
| \def \radius {3cm} | |
| \def \margin {10} % margin in angles, depends on the radius | |
| \def \n {6} | |
| \draw[color=white, name path=c] (0:\radius) arc (0:360:\radius); | |
| \node[draw, rounded corners, fill=white, name path=realitynode] at ({360/\n * 2}:\radius) (reality) {Reality of interest}; |
| import networkx as nx | |
| def diffuse_information(G: nx.MultiGraph, seed: list, case='best_case'): | |
| informed_nodes = {n: None for n in seed} | |
| needs_update = True | |
| while needs_update: | |
| needs_update = False | |
| for u, v, dt in G.edges(nbunch=informed_nodes, data='diffusion_time'): | |
| if u in informed_nodes: |
| import requests | |
| import json | |
| from tqdm.notebook import tqdm | |
| import time | |
| import multiprocessing as mp | |
| import datetime | |
| import pandas as pd | |
| import itertools | |
| def convert_gerrit_timestamp_to_datetime(s): |
| def diffuse_information(G: nx.MultiGraph, seed: list, beta: float=1.0, case='best_case'): | |
| informed_nodes = {n: None for n in seed} | |
| changed = True | |
| while changed: | |
| for u, v, dt in G.edges(nbunch=informed_nodes, data='diffusion_time'): | |
| changed = False | |
| if informed_nodes[u] == None or informed_nodes[u] < dt[case]: # shall we | |
| if random.random() < beta: | |
| if v not in informed_nodes or dt[case] < informed_nodes[v]: |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "os" | |
| "time" |
| #!/bin/bash | |
| # Texpad 1.7 Build script to build with latexmk | |
| tempdir="$(dirname "${TEXPAD_ROOTFILE}")/.texpadtmp"; | |
| latexmk -pdf -interaction=nonstopmode -outdir="${tempdir}" -file-line-error -synctex=1 "${TEXPAD_ROOTFILE}"; | |
| #mv "${tempdir}/$(basename "${TEXPAD_ROOTFILE}")" . |