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
type Vertex = { p: vector, n: vector } | |
local function f(v: Vertex, t: vector, b: vector) | |
return v.p:Cross(t):Dot(b) | |
end | |
; function f($arg0, $arg1, $arg2) line 10 | |
; align 32 using ud2 | |
.L11: | |
cmp dword ptr [r14+0Ch],6 |
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
local function seachRepeats(str: string, off: number, symbolToCheck: string) | |
local count = 0 | |
while str:sub(off, off) == symbolToCheck do | |
count += 1 | |
off += 1 | |
end | |
return count | |
end | |
local function generateFunction(code) |
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 std.string; | |
import std.io; | |
import std.hashmap; | |
import std.typeinfo; | |
import std.vector; | |
// Standard library extensions (stuff that should have been in stdlib but isn't there for some reason) | |
int int(string str){ return int(str.data); } | |
int hash_value(string str){ return hash_value(str.data); } | |
StdOut operator<<(StdOut out, string str){ Print(str.data); return out; } |
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 std.string; | |
import std.io; | |
import std.hashmap; | |
import std.typeinfo; | |
import std.vector; | |
// Standard library extensions (stuff that should have been in stdlib but isn't there for some reason) | |
int int(string str){ return int(str.data); } | |
int hash_value(string str){ return hash_value(str.data); } | |
StdOut operator<<(StdOut out, string str){ Print(str.data); return out; } |
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 std.string; | |
import std.io; | |
import std.hashmap; | |
import std.typeinfo; | |
import std.vector; | |
// Standard library extensions (stuff that should have been in stdlib but isn't there for some reason) | |
int int(string str){ return int(str.data); } | |
int hash_value(string str){ return hash_value(str.data); } | |
StdOut operator<<(StdOut out, string str){ Print(str.data); return out; } |
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
// C++17 | |
#include <stdio.h> | |
#include <algorithm> | |
#include <string> | |
#include <vector> | |
#include <unordered_map> | |
#include <typeinfo> | |
#include <iostream> |
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 std.string; | |
import std.io; | |
import std.hashmap; | |
import std.typeinfo; | |
import std.vector; | |
// Standard library extensions (stuff that should have been in stdlib but isn't there for some reason) | |
int int(string str){ return int(str.data); } | |
int hash_value(string str){ return hash_value(str.data); } | |
StdOut operator<<(StdOut out, string str){ Print(str.data); return out; } |
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 std.string; | |
import std.io; | |
import std.hashmap; | |
import std.typeinfo; | |
import std.vector; | |
// Standard library extensions (stuff that should have been in stdlib but isn't there for some reason) | |
int int(string str){ return int(str.data); } | |
int hash_value(string str){ return hash_value(str.data); } | |
StdOut operator<<(StdOut out, string str){ Print(str.data); return out; } |
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 std.string; | |
import std.io; | |
import std.hashmap; | |
import std.typeinfo; | |
import std.vector; | |
// Standard library extensions (stuff that should have been in stdlib but isn't there for some reason) | |
int int(string str){ return int(str.data); } | |
int hash_value(string str){ return hash_value(str.data); } | |
StdOut operator<<(StdOut out, string str){ Print(str.data); return out; } |
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 std.string; | |
import std.io; | |
import std.hashmap; | |
import std.typeinfo; | |
import std.vector; | |
// Standard library extensions (stuff that should have been in stdlib but isn't there for some reason) | |
int int(string str){ return int(str.data); } | |
int hash_value(string str){ return hash_value(str.data); } | |
StdOut operator<<(StdOut out, string str){ Print(str.data); return out; } |
NewerOlder