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; | |
| void main() | |
| { | |
| writeln("Hello D"); | |
| } |
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; | |
| void main() | |
| { | |
| writeln("Hello D"); | |
| } |
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; | |
| void main() | |
| { | |
| writeln("Hello D"); | |
| } |
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.typecons; | |
| import std.stdio; | |
| import std.format; | |
| import std.meta; | |
| import std.algorithm; | |
| import std.meta; | |
| import std.array; | |
| import std.conv; | |
| import std.functional; | |
| import std.range; |
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.typecons; | |
| import std.stdio; | |
| import std.format; | |
| import std.meta; | |
| import std.algorithm; | |
| import std.meta; | |
| import std.array; | |
| import std.conv; | |
| import std.functional; | |
| import std.range; |
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; | |
| struct Vector(uint n, T) if (n > 0 && n <= 3) | |
| { | |
| T x; | |
| this(T x) | |
| { | |
| this.x = x; | |
| } |
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() | |
| { | |
| import std.algorithm, std.stdio, std.file, std.range; | |
| enum cols = 14; | |
| // Split file into 14-byte chunks per row | |
| thisExePath.File("rb").byChunk(cols).take(20).each!(chunk => | |
| // Use range formatting to format the | |
| // hexadecimal part and align the text part | |
| writefln!"%(%02X %)%*s %s"( | |
| chunk, |
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; | |
| import std.algorithm; | |
| import std.regex; | |
| import std.array; | |
| import std.conv; | |
| import std.csv; | |
| import std.math; | |
| import std.string; | |
| import std.stdio; | |
| import std.string; |
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 : writeln, toFile; | |
| import std.datetime.stopwatch : StopWatch, AutoStart; | |
| import asdf.serialization : deserialize, serializeToJson; | |
| import std.file : readText; | |
| enum TopN = 5; | |
| struct Post | |
| { | |
| string _id; |
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
| auto targetPosition = target.headPosition; | |
| import std.stdio; | |
| //writefln!"Writing yaw: %s"(cameraPosition.yawTo(targetPosition)); | |
| //writefln!"Writing pitch: %s"(cameraPosition.pitchTo(targetPosition)); | |
| immutable controlAngles = getControlAngles; | |
| immutable viewAngles = getViewAngles; | |
| immutable currentYaw = controlAngles[1]; | |
| immutable currentPitch = controlAngles[0]; |