-
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 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) |
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 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*))))) |
This file contains 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 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 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 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
defmodule TableRenderer do | |
def render_html(service_data) do | |
markup = """ | |
table | |
tr | |
th Service | |
th SHA(s) | |
th Nodes | |
= Enum.map service_data, fn({service, data}) -> |
This file contains 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
/** | |
* Copyright 2011-2017 GatlingCorp (http://gatling.io) | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
NewerOlder