-
install container
-
sudo apt install fish tmux
-
sudo chsh <username>
/usr/bin/fish
-
curl -L https://get.oh-my.fish | fish
omf install bobthefish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns confluence-version-page-generator.table) | |
(require '[hiccup.core :refer [html]]) | |
(defn render [table-data] | |
(html [:table | |
[:tr | |
[:th "Service"] | |
[:th "SHA(s)"] | |
[:th "Nodes"]] | |
(for [{service "service" versions "versions"} table-data] | |
[:tr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(reduce conj {} (map #(let [{node "Node" address "Address"} %] {address node}) | |
(json/read-str (slurp "http://localhost:8500/v1/catalog/nodes")))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env elixir | |
IO.stream(:stdio, :line) | |
|> Stream.map(&String.trim/1) | |
|> Stream.map(&String.to_integer/1) | |
|> Enum.sum | |
|> IO.inspect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env lein exec | |
(print (reduce + (map read-string (line-seq (java.io.BufferedReader. *in*))))) |
When updating nightly, sometimes it fails, check here for last good build
Then install it with
rustup toolchain install
set default with

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 MODE1: VDU23;8202;0;0;0; :M=9 | |
20 DIM S(7),C(7) | |
30 FOR T=0 TO 7:S(T)=SIN(T*PI/4):C(T)=COS(T*PI/4):NEXT | |
40 MOVE 180,600 | |
50 PROCDRAW(792,0,-1) | |
60 END | |
1000 DEF PROCDRAW(L,I,T) | |
1010 IF L<M THEN PLOT 1,L*C(I),L*S(I):ENDPROC | |
1020 L=L/1.414 | |
1030 PROCDRAW(L,(I+T)AND7,1) |
OlderNewer