-
Download latest NixOS image: https://nixos.org/nixos/download.html
-
Use
lsblkto find the right block device, then copy it over usingdd$ sudo lsblk
$ sudo dd bs=4M if=${image.iso} of=${/dev/sdx} status=progress oflag=sync
| import pandas as pd | |
| INPUT_FIELDS = [ | |
| "Book Id", | |
| "Title", | |
| "Author", | |
| "Author l-f", | |
| "Binding", | |
| "Original Publication Year", | |
| "Bookshelves", |
Download latest NixOS image: https://nixos.org/nixos/download.html
Use lsblk to find the right block device, then copy it over using dd
$ sudo lsblk$ sudo dd bs=4M if=${image.iso} of=${/dev/sdx} status=progress oflag=sync
| module Main (main) where | |
| import Data.Bit | |
| import Data.Bits | |
| import Data.Vector.Unboxed as V | |
| import Data.Vector.Unboxed.Mutable as MV | |
| import GHC.Float (castFloatToWord32, castWord32ToFloat) | |
| import Data.Word (Word32, Word64) | |
| import Data.Int (Int32) |
| from collections import deque | |
| import itertools | |
| def init(fish): | |
| """ | |
| >>> init([3, 4, 3, 1, 2]) | |
| [0, 1, 1, 2, 1, 0, 0, 0, 0] | |
| """ | |
| result = [0] * 9 | |
| for day, fish in itertools.groupby(sorted(fish)): |
| <!doctype html> | |
| <html lang="de"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="https://unpkg.com/@picocss/[email protected]/css/pico.min.css"> | |
| <style> | |
| /* Show <tr>s in the overview table not marked with class="failure" iff #all-files is checked. */ | |
| table.overview tbody tr { display: none; } |
| with Stichtag as (select "2018-12-31" as Stichtag), | |
| ags as ( | |
| select Gemeindeschluessel as ags from EinheitSolar | |
| union select Gemeindeschluessel as ags from EinheitWind | |
| union select Gemeindeschluessel as ags from EinheitBiomasse | |
| union select Gemeindeschluessel as ags from EinheitGeoSolarthermieGrubenKlaerschlammDruckentspannung | |
| union select Gemeindeschluessel as ags from EinheitWasser | |
| ), | |
| pv as ( | |
| select |
| from collections import defaultdict | |
| import csv | |
| from functools import reduce | |
| from itertools import groupby | |
| import json | |
| import sqlite3 | |
| from disjoint_set import DisjointSet | |
| # Diese AGS werden ignoriert, weil wir zurzeit für gemeindefreie Gebiete keine Daten aufbereiten. | |
| IGNORE = { |