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
# License: CC0 1.0 Universal (CC0 1.0) / Public domain (PD) | |
import g4f | |
import sys | |
content = sys.argv | |
content.pop(0) | |
content = ' '.join(content) | |
response = g4f.ChatCompletion.create( | |
model="gpt-3.5-turbo", |
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
// License: CC0 1.0 Universal (CC0 1.0) / Public domain (PD) | |
// Name: Ask CharacterAI | |
const WebSocket = require('ws'); | |
let crypto; | |
try { | |
crypto = require('node:crypto'); | |
} catch (err) { | |
console.error('crypto support is disabled!'); | |
} |
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
// License: CC0 1.0 Universal (CC0 1.0) / Public domain (PD) | |
// Name: wave.js | |
var canvas = document.createElement("canvas"); | |
canvas.id = 'background'; | |
var ctx = canvas.getContext("2d"); | |
document.body.appendChild(canvas); | |
var waveI = 0; | |
var waveMode = true; | |
var waveI2 = 0; |
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
// License: CC0 1.0 Universal (CC0 1.0) / Public domain (PD) | |
// Name: Export all elements by id or className | |
if (typeof document == 'object'){ // If not browser | |
const dom_elements = document.querySelectorAll('*'); | |
for (let i = 0; i < dom_elements.length; i++) { | |
let e = dom_elements[i]; | |
let id = e.id || e.className; | |
if(id){ | |
// You can put here callback | |
// console.log(id); |