Skip to content

Instantly share code, notes, and snippets.

View manhbi18112005's full-sized avatar
😀
Tớ có 2 chiếc kẹo 🍬 cậu có 1 chiếc kẹo 🍬. To hon cau mot cai nha. 🐰🐰🐰

Le Ngo Duc Manh manhbi18112005

😀
Tớ có 2 chiếc kẹo 🍬 cậu có 1 chiếc kẹo 🍬. To hon cau mot cai nha. 🐰🐰🐰
View GitHub Profile
@manhbi18112005
manhbi18112005 / gradecalc.html
Created September 15, 2025 15:05
Grade Calculator for Examiner
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern Grade Calculator</title>
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<style>
@manhbi18112005
manhbi18112005 / scrape.js
Created February 13, 2022 03:21
Scrape all the svg to steal a discord theme :V
import request from "request";
import fs from 'fs';
var arr = ["discord", "emote", "betterdiscord", "code_braces", "puzzle", "palette", "close", "file", "file_upload", "file_document", "file_archive",
"file_code", "file_webcode", "file_image", "file_video", "file_table", "file_pdf", "file_music", "expand_more", "verified", "popout", "person", "user_profile", "security",
"apps", "link", "nitro", "server_boost", "subscriptions", "gift", "payment", "camera", "accessibility", "mic", "chat", "notifications", "keyboard", "language",
"windows", "linux", "videocam", "bugs", "games", "aspect_ratio", "history", "hypesquad", "exit"
];
var arrle = arr.length;
@manhbi18112005
manhbi18112005 / ModerateMessageWithAI.js
Last active February 4, 2025 17:20
This code snippet is used to detect toxic messages in a Discord server using Google's Perspective API. It checks the toxicity of a message and deletes it if it exceeds a certain threshold. The message author is then notified about the toxic content. The code uses regular expressions to remove emojis and emotes from the message content before ana…
/*
Author: Le Ngo Duc Manh
ModifiedDate: 2024-10-14
Description: This code snippet is used to detect toxic messages in a Discord server using Google's Perspective API. It checks the toxicity of a message and deletes it if it exceeds a certain threshold. The message author is then notified about the toxic content. The code uses regular expressions to remove emojis and emotes from the message content before analyzing it for toxicity. The Google API key is required to make requests to the Perspective API. The maximum allowed toxicity threshold can be adjusted as needed.
*/
const axios = require('axios');
const GOOGLE_API_KEY = "Your Google API Key";
const EMOJIS_REGEX = /<a?:([^:]+):(\d+)>|\p{Emoji_Presentation}|\p{Extended_Pictographic}/gmu;