I hereby claim:
- I am lightdiscord on github.
- I am lightdiscord (https://keybase.io/lightdiscord) on keybase.
- I have a public key ASCRe0I7qA1pgeop5W13yK6YxJdom4rq7zEldKWF73I1qgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const match = sentence => sentence.match(); | |
const word_manipulation = word => { | |
const characters = [...word] | |
const start = characters.shift() || '' | |
const end = characters.pop() || '' | |
return `${start}${characters.map((a) => [Math.random(),a]).sort((a,b) => a[0]-b[0]).map((a) => a[1]).join('')}${end}` | |
} |
#!/usr/bin/env bash | |
cd /etc/nixos | |
rm configuration.nix | |
nix-shell -p git --run "git clone git@github.com:LightDiscord/nixos-system.git ." | |
ln -s machines/ec2.nix configuration.nix | |
nix-channel --add "https://nixos.org/channels/nixos-unstable" | |
nixos-rebuild switch --upgrade |
const forms = [ | |
() => { | |
const limits = [...new Array(2)].map(()=>~~(Math.random()*40)-20) | |
const symbols = ['<', '≤'].map((v,i,a)=>a[~~(Math.random()*a.length)]) | |
return `${Math.min(...limits)}${symbols[0]}x${symbols[1]}${Math.max(...limits)}` | |
}, | |
() => { | |
const symbols = ['<', '≤', '=', '≥', '>'] | |
return `x${symbols[~~(Math.random()*symbols.length)]}${~~(Math.random()*40)-20}` |
with import <nixpkgs> { | |
overlays = map (uri: import (fetchTarball uri)) [ | |
https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz | |
]; | |
}; | |
stdenv.mkDerivation { | |
name = "rust-wasm"; | |
buildInputs = [ | |
cargo-web |
#!/usr/bin/env bash | |
set -e | |
cweb_version=0.6.16 | |
cweb=https://github.com/koute/cargo-web/releases/download/$cweb_version/cargo-web-x86_64-unknown-linux-gnu.gz | |
curl -Lo cargo-web.gz $cweb | |
gunzip cargo-web.gz | |
chmod u+x cargo-web |
with import <nixpkgs> {}; | |
stdenv.mkDerivation { | |
name = "postgresql-inside-nixshell"; | |
buildInputs = [ | |
postgresql | |
]; | |
shellHook = '' |
(() => { | |
const words = [...document.querySelector('#words').firstChild.children].map(child => child.innerText); | |
const input = document.querySelector('#inputfield'); | |
words.forEach(word => { | |
input.value = word; | |
input.dispatchEvent(new KeyboardEvent('keyup', { keyCode: 32, which: 32 })); | |
}); | |