- Anonymous and protected forever
- Create account with just an email
- Privacy protection baked in from the start
- Hosted in a freedom-protecting country
- Partner with EFF or similar
- Back up forever
- Profitable
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
$ cat hello.nim | |
echo "hello world" | |
$ nim c -d:mingw hello.nim | |
Hint: used config file '/home/oatman/.choosenim/toolchains/nim-1.2.0/config/nim.cfg' [Conf] | |
Hint: system [Processing] | |
Hint: widestrs [Processing] | |
Hint: io [Processing] | |
Hint: hello [Processing] | |
Hint: [Link] |
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
live_loop :metronome do | |
cue tick | |
128.times do | |
t = tick | |
bar = ((t - 1) / 4) + 1 | |
beat = (t - 4 * bar) + 4 | |
cue String(bar) + "/" + String(beat) | |
sleep 1 | |
end | |
end |
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 bash | |
echo "Sonic-pi will be installed into ./sonic-pi. Press enter to continue, ctrl-c to abort." | |
read input | |
sudo apt-get install ruby erlang-base libscsynth1 sc3-plugins libjack-jackd2-0 qt5-default libffi7 git cmake build-essential ruby-dev libqt5svg5-dev qttools5-dev qttools5-dev-tools qtdeclarative5-dev libqt5webkit5-dev qtpositioning5-dev libqt5sensors5-dev libqt5opengl5-dev qtmultimedia5-dev libffi-dev libjack-jackd2-dev libxt-dev libudev-dev libboost-dev libasound2-dev libavahi-client-dev libicu-dev libreadline6-dev libfftw3-dev libaubio5 | |
git clone https://github.com/samaaron/sonic-pi.git | |
cd sonic-pi/app/gui/qt | |
./unix-prebuild.sh --build-aubio | |
./unix-config.sh |
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
app: | |
nim c app.nim | |
clean: | |
rm app | |
run: | |
./app |
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
import math, strformat, times | |
func fib(n: int): int = | |
if n <= 2: | |
return 1 | |
else: | |
return fib(n - 1) + fib(n - 2) | |
when isMainModule: | |
let x = 47 |
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
import httpClient | |
import strutils | |
func protocol(url: string): bool = ## ok, pure function | |
return "http://" in url | |
func get(url: string): string = ## side-effects.nim(7, 6) Error: 'get' can have side effects | |
if protocol url: | |
return newHttpClient().getContent(url) | |
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 stack | |
{- stack | |
script | |
--resolver lts-15.1 | |
--install-ghc | |
--ghc-options -Wall | |
--ghc-options -Werror | |
--package rio | |
--package process | |
-} |
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
main :: IO () | |
main = (do | |
(putStrLn "Starting Server....") | |
(scotty 3000 (do | |
(get "/hello/:name" (do | |
name <- param "name" | |
text ("hello " <> name <> "!"))) | |
(get "/users" | |
(json allUsers)) |
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
hello: | |
ghc -static -optl-static -o hello hello.hs | |
upx --best --ultra-brute hello | |
install: | |
sudo apt install upx haskell-stack | |
stack upgrade --binary-only | |
stack setup |