See: https://computers-are-fast.github.io/
Create a file system in RAM:
See: https://computers-are-fast.github.io/
Create a file system in RAM:
hosts.csv | |
hosts.db |
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
import Data.Binary (Binary (..)) | |
import Data.Typeable (Typeable) | |
import Hakyll.Core.Compiler.Internal (compilerAsk, compilerProvider) | |
import Hakyll.Core.Provider (resourceFilePath) | |
import Hakyll |
$ ./dist/build/site/site build | |
Initialising... | |
Creating store... | |
Creating provider... | |
Running rules... | |
Checking for out-of-date items | |
Compiling | |
updated hello.txt | |
Success | |
$ ls _site/ |
The theme-color
meta tag is used to specify a toolbar color on Android. The color is used both in Chrome and when the page is used as a web app added to the home screen (actually, there is also a theme-color attribute in the manifest).
To turn the page into a web app (instead of a Chrome tab), add a web app manifest file. See https://developers.google.com/web/fundamentals/engage-and-retain/app-install-banners/ for some detail. Note that the service worker is not necessary for the web app look.
The service-worker is used to implement the off-line behavior of the app, but also web push notifications.
{ pkgs ? import <nixpkgs> { } }: | |
let | |
kernel_version = "4.4.52"; | |
kernel-sha256 = "e8d2ddaece73e1a34e045bbdcdcc1383f658e24537797f8d8e0dd520cf1b1f06"; | |
nix_version = "1.11.9"; | |
nix-sha256 = "0e943e277f37843f9196b0293cc31d828613ad7a328ee77cd5be01935dc6e7e1"; | |
in rec | |
{ | |
linux-tarball = pkgs.fetchurl { |
Note: this gist is a bit dated. Start at https://github.com/noteed/nix-notes instead.