Skip to content

Instantly share code, notes, and snippets.

module od.meta;
/+
_this_
+/
enum _name_ = __FILE__[0 .. $ - 2];
enum _this_ =
q{
{
import std.regex, std.format;
module od.meta;
/+
_this_
+/
enum _name_ = __FILE__[0 .. $ - 2];
enum _this_ =
q{
{
import std.regex, std.format;
@zaydek-old
zaydek-old / name.d
Created August 8, 2017 21:50
possible?
mixin(assign("base.name"));
auto assign(string name)
{
import std.string;
return format(q{module %s; import %s;}, name, split(name)[0]);
}
void main()
{
@zaydek-old
zaydek-old / test.d
Last active August 9, 2017 08:02
test
import std.stdio;
void main()
{
writeln("hello, dlang!");
}
We couldn’t find that file to show.
We couldn’t find that file to show.
We couldn’t find that file to show.
@zaydek-old
zaydek-old / log (example)
Created February 5, 2018 17:40
Example of some source code: this aggregates all US stock securities given desired parameters, e.g. price, average volume, and market cap
$ traverse -open=,25k -avgv=500k -mcap=500m
SYMBL Name Open AvgV MCap
GTES Gates Industrial Corporation plc 18.76 4746935 5502345000
AVYA Avaya Holdings Corp. 21.27 808037 10602883400
LILAK Liberty Latin America Ltd. Class C Common Stock 22.13 834480 3807396300
LFIN LongFin Corp Class A Common Stock 33.00 1278735 2399625000
NMRK Newmark Group, Inc. Class A Common Stock 15.97 867653 2477118700
CEIX CONSOL Energy Inc. 30.70 602684 866433400
SAIL SailPoint Technologies Holdings 15.04 783591 1323225400
SFIX Stitch Fix, Inc. Class A Common Stock 19.83 1267414 1945274900