Skip to content

Instantly share code, notes, and snippets.

View VerifyBot's full-sized avatar
๐Ÿˆ
๐Ÿ’จ

Niryo VerifyBot

๐Ÿˆ
๐Ÿ’จ
View GitHub Profile
@VerifyBot
VerifyBot / app.js
Created May 10, 2020 06:49
Devtools change detection
function devtoolsToggle(open_state) {
if (open_state) {
// opened
} else {
// closed
}
}
// Is opened
// Usage: Copy the code into a bookmark value, once you click on it the answers will be sorted
javascript: var jq=document.createElement("script");jq.src="https://code.jquery.com/jquery-3.4.1.min.js",document.getElementsByTagName("head")[0].appendChild(jq),setTimeout(()=>{elems=$("app-item.list-single-item").sort((e,t)=>Number($(t).find(".votesArea .score").text())-Number($(e).find(".votesArea .score").text())).clone(),$("app-item.list-single-item").remove(),$(".response-count-title").after(elems)},1000);
// Actual Code (Don't copy this - Just for reading)
var jq = document.createElement('script');
jq.src = "https://code.jquery.com/jquery-3.4.1.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// Usage: Copy the code into a bookmark value, once you click on it the answers will be sorted
javascript: total=[],Array.from(document.querySelectorAll(".mat-list-item-content")).forEach(t=>{text=t.childNodes[2].childNodes[1].getElementsByTagName("strong")[0].textContent,text&&total.push(Number(text))}),alert(`ืžืžื•ืฆืข: ${total.reduce((t,e)=>t+e)/total.length}`)
// Actual Code (Don't copy this - Just for reading)
total = []
Array.from(document.querySelectorAll('.mat-list-item-content')).forEach(el => {
text = el.childNodes[2].childNodes[1].getElementsByTagName('strong')[0].textContent
if (text) {
total.push(Number(text))
// Usage: Copy the code into a bookmark value, once you click on it the answers will be sorted
javascript: total=[],Array.from(document.querySelectorAll(".grade-text")).forEach(t=>{total.push(Number(t.textContent.split(" ")[1]))}),alert(`ืžืžื•ืฆืข: ${total.reduce((t,e)=>t+e)/total.length}`);
// Actual Code (Don't copy this - Just for reading)
total = []
Array.from(document.querySelectorAll('.grade-text')).forEach(el => {
total.push(Number(el.textContent.split(' ')[1]))
})
import asyncio
import discord
from discord.ext.commands import Paginator as CommandPaginator
from utils.overwrites import Embed
from config import Config
class CannotPaginate(Exception):
pass
@VerifyBot
VerifyBot / [0] information.md
Last active August 22, 2023 18:14
๐Ÿฑโ€๐Ÿ 85 moderators and 96 experts

๐Ÿ“ƒ ืจืฉื™ืžื•ืช

ืขื“ื›ื•ืŸ ืจืฉื™ืžื•ืช ืื—ืจื•ืŸ: 19:46:20 21/01/2022

๐Ÿงฉ ืกื˜ื˜ื™ืกื˜ื™ืงื•ืช

ืขื“ื›ื•ืŸ ืกื˜ื˜ื™ืกื˜ื™ืงื•ืช ืื—ืจื•ืŸ: 21:14:46 22/08/2023
@VerifyBot
VerifyBot / insertion-sort-linked-list.cs
Created November 2, 2022 15:02
Linked List Insertion Sort
static Node<int> CreateSortedList() {
Console.WriteLine("Enter value: ");
int v = int.Parse(Console.ReadLine());
// create first value
// on every next value push it in the right place
Node<int> head = null;
while (v != -1) {
if (head == null) {