-
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
| 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 = { |
| 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 |
| <!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; } |
| 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)): |
| 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) |
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
| import pandas as pd | |
| INPUT_FIELDS = [ | |
| "Book Id", | |
| "Title", | |
| "Author", | |
| "Author l-f", | |
| "Binding", | |
| "Original Publication Year", | |
| "Bookshelves", |
| { config, lib, pkgs, ... }: | |
| with lib; | |
| let | |
| kibanaPort = 5601; | |
| netdataPort = 19999; | |
| oauthProxyPort = 4180; | |
| innerNginxPort = 8080; | |
| in |
| import urllib.error | |
| import urllib.parse | |
| import urllib.request | |
| SMILES_URL_TEMPLATE = 'http://cactus.nci.nih.gov/chemical/structure/{}/smiles' | |
| IUPAC_URL_TEMPLATE = 'http://cactus.nci.nih.gov/chemical/structure/{}/iupac_name' | |
| def retrieve(url): | |
| with urllib.request.urlopen(url) as f: | |
| return f.read() |
| #include <netdb.h> | |
| #include <sys/socket.h> | |
| #include <unistd.h> | |
| #include <algorithm> | |
| #include <cerrno> | |
| #include <cstring> | |
| #include <iostream> | |
| #include <sstream> | |
| #include <string> | |
| #include <string_view> |