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 type * as monaco from 'monaco-editor' | |
import { ZodArray, ZodBoolean, ZodNumber, ZodObject, type ZodSchema, ZodString, type ZodTypeAny } from 'zod' | |
let isRegistered = false | |
export const registerLiquid = (monacoInstance: typeof monaco, schemas: Record<string, ZodSchema<unknown>>) => { | |
if (isRegistered) { | |
return | |
} | |
isRegistered = true |
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 axios from 'axios' | |
import auth from './auth.json' assert { type: "json" } | |
import * as uuid from 'uuid' | |
import qr from 'qrcode-terminal' | |
import fs from 'node:fs/promises' | |
import { setTimeout } from 'node:timers/promises' | |
const randomuuid = uuid.v4() | |
console.log('QR Code ID:', randomuuid) |
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 axios from 'axios'; | |
import { load } from 'cheerio'; | |
import fs from 'node:fs'; | |
import { setTimeout } from 'node:timers/promises'; | |
import { createObjectCsvWriter } from 'csv-writer' | |
import tiktoken from 'tiktoken-node' | |
import { OpenAIApi, Configuration } from 'openai' | |
import distance from 'compute-cosine-distance'; | |
const domain = '' |
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
__DANGER_filesystem = {} | |
file = {} | |
function file.exists(path) | |
for filek, filev in ipairs(__DANGER_filesystem) do | |
if string.find(filev.path, path, 0, true) then return true end | |
end | |
return false | |
end |
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
--[[--------------------------------------------------------- | |
Promise object definition | |
-----------------------------------------------------------]] | |
local PENDING = 0 | |
local RESOLVED = 1 | |
local REJECTED = -1 | |
local Promise = {} | |
Promise.__index = Promise | |
function Promise:_New(callback) |
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "switchToTab", | |
"index": 7 | |
}, |
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
unbindall | |
bind "0" "slot10" | |
bind "1" "slot1" | |
bind "2" "slot2" | |
bind "3" "slot3" | |
bind "4" "slot4" | |
bind "5" "slot5" | |
bind "6" "slot12" | |
bind "a" "+left" | |
bind "b" "buymenu" |
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
public class Memory | |
{ | |
private const int ProcessVmOperation = 0x0008; | |
private const int ProcessVmRead = 0x0010; | |
private const int ProcessVmWrite = 0x0020; | |
private readonly Process _process; | |
private readonly IntPtr _processHandle; | |
private int _discard; |