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
ssh -oStrictHostKeyChecking=no root@... | |
\ | |
apt update && | |
apt upgrade -y && | |
apt install gcc -y && | |
curl -fsS https://dlang.org/install.sh | bash -s dmd |
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
AAPL | |
TSLA | |
SQ | |
NFLX |
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
module owl_delivery.GET; | |
import owl_delivery; | |
auto GET(string url, Duration duration = seconds(1)) | |
{ | |
string result; | |
auto | |
http = HTTP(url); | |
http.operationTimeout(duration); |
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
void main() | |
{ | |
string result; | |
import std.net.curl; | |
auto | |
http = HTTP("https://robinhood.com/404.html"); | |
http.onReceive((ubyte[] data) { result = cast(string) data; return data.length; }); | |
http.perform(); |
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
import std.traits, std.format, std.string, std.stdio; | |
void main() | |
{ | |
foo(); | |
} | |
enum printLiterals = q{ | |
alias ParameterIdentifierTuple!(mixin(__FUNCTION__)) idents; |
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
import std.array, std.stdio; | |
enum trace = q{version(verbose) | |
{ | |
writefln("%s> %s", "-".replicate(++depth), split(__PRETTY_FUNCTION__, ".")[$ - 1]); scope(exit) | |
writefln("<%s %s", "-".replicate(depth--), split(__PRETTY_FUNCTION__, ".")[$ - 1]); | |
}}; | |
ulong depth; |
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
import std.stdio, core.stdc.stdlib; | |
void main() | |
{ | |
} | |
/+ | |
cache | |
+/ | |
static struct cache |
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
module a; | |
void a() | |
{ | |
import std.stdio; | |
writeln("hello, world!"); | |
} |
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
void a() | |
{ | |
import std.stdio; | |
writeln("hello, world!"); | |
} |
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
import std.stdio; | |
void main() | |
{ | |
writeln("hello, world!"); | |
} |