I'm testing multiple output with enlightenment
The copyright of this code is owned by NixOS project
https://github.com/NixOS/nixpkgs/tree/nixos-unstable/pkgs/desktops/enlightenment/enlightenment
type | |
MySeq*[T] = object | |
data: ptr UncheckedArray[T] | |
proc createSeq*[T](elems: varargs[T]): MySeq[T] = | |
result.data = cast[typeof(result.data)](alloc(elems.len * sizeof(T))) |
{ | |
services = [ "beegfs" "bird" "bird6" "beegfsEnable" "buildkite-agent" "cgmanager" "chronos" "couchpotato" "cryptpad" "dd-agent" "deepin" | |
"dnscrypt-proxy" "flashpolicyd" "fourStore" "fourStoreEndpoint" "fprot" "frab" "geoip-updater" "gogoclient" "kippo" | |
"mailpile" "marathon" "mathics" "meguca" "mesos" "moinmoin" "mwlib" "openfire" "openvpn" "osquery" "prey" "quagga" "racoon" | |
"railcar" "redis" "riak" "rmilter" "seeks" "shellinabox" "ssmtp" "venus" "virtuoso" "wakeonlan" "winstone"]; | |
programs = ["bash" "oblogout" "qt5ct" "tilp2" "way-cooler"]; | |
security = ["hideProcessInformation" "klogd" "rngd" "setuidOwners" "setuidPrograms"]; | |
systemd = ["generator-packages"]; | |
} |
from std/random import randomize, sample | |
randomize() | |
type | |
✊🤚✌️ = enum | |
✊, 🤚, ✌️ | |
🏆 = enum | |
👈, 🤷, 👉 |
# import a lot of things because I'm to lazy (or dumb) to think about what imports | |
import std/[ | |
algorithm, | |
asyncdispatch, | |
asyncfile, | |
asyncnet, | |
asyncstreams, | |
base64, | |
browsers, |
I'm testing multiple output with enlightenment
The copyright of this code is owned by NixOS project
https://github.com/NixOS/nixpkgs/tree/nixos-unstable/pkgs/desktops/enlightenment/enlightenment
{ config, pkgs, lib, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
]; | |
# Use the systemd-boot EFI boot loader. | |
boot.loader.systemd-boot.enable = true; |
{ token, rating ? "pg-13", tag ? "so-excited", timestamp ? "n" }: | |
let | |
random_gif_response = builtins.fetchurl { | |
url = "https://api.giphy.com/v1/gifs/random?api_key=${token}&tag=${tag}&rating=${rating}&t=${timestamp}"; | |
name = "random_gif_json"; | |
}; | |
random_gif_json = builtins.readFile random_gif_response; | |
in builtins.fromJSON random_gif_json | |