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
| public static bool ExportMesh(AssetItem item, string exportPath) | |
| { | |
| const int GL_ARRAY_BUFFER = 34962; | |
| const int GL_ELEMENT_ARRAY_BUFFER = 34963; | |
| const int GL_FLOAT = 5126; | |
| const int GL_UNSIGNED_INT = 5125; | |
| var m_Mesh = (Mesh)item.Asset; | |
| if (m_Mesh.m_VertexCount <= 0) |
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
| #include <iostream> | |
| #include <random> | |
| #include <vector> | |
| #include <chrono> | |
| #include <functional> | |
| #include <algorithm> | |
| #include <cassert> | |
| using namespace std; | |
| using namespace chrono; |
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 re | |
| import json | |
| import datetime | |
| import argparse | |
| import requests | |
| def log(msg): | |
| print(f"[{datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] {msg}") | |
| def get_traffic(repo, auth, all): |