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
using UnityEditor; | |
using System; | |
public static class IMGUIDebugger { | |
static Type type = Type.GetType( "UnityEditor.GUIViewDebuggerWindow,UnityEditor" ); | |
[MenuItem( "Window/IMGUI Debugger" )] | |
public static void Open() => EditorWindow.GetWindow( type ).Show(); | |
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
# python2 | |
import os | |
import string | |
charset = string.ascii_uppercase + string.digits | |
random_bytes = os.urandom(25) | |
len_charset = len(charset) | |
indices = [int(len_charset * (ord(byte) / 256.0)) for byte in random_bytes] | |
defaultToken = "".join([charset[index] for index in indices]) |
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
const fs = require("fs").promises; | |
const createReadStream = require("fs").createReadStream; | |
const debug = require("debug"); | |
class MessageLogDB { | |
constructor(filename, separator) { | |
this.separator = separator || "\r\n"; | |
this.separator_length = Buffer.byteLength(this.separator, "utf8"); | |
this.filename = filename; |