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
// ==UserScript== | |
// @name Manga18FX Image Upscaler Redirector (preload + timed sequential HTTPS) | |
// @namespace http://tampermonkey.net/ | |
// @version 2.3 | |
// @description Đổi src ảnh sang server upscaler tuần tự mỗi 1s, preload cả ảnh lazy-load (data-src) | |
// @match https://manga18fx.com/manga/** | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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
import http from "http"; | |
import fs from "fs"; | |
const callModel = async (modelName, delay, successRate) => { | |
await new Promise((r) => setTimeout(r, delay)); | |
if (Math.random() > successRate) | |
throw new Error(`${modelName} | |
failed`); | |
return { |
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
// node_modules/chess.js/dist/esm/chess.js | |
var WHITE = "w"; | |
var BLACK = "b"; | |
var PAWN = "p"; | |
var KNIGHT = "n"; | |
var BISHOP = "b"; | |
var ROOK = "r"; | |
var QUEEN = "q"; | |
var KING = "k"; | |
var DEFAULT_POSITION = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"; |
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
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
public class Bai1 { | |
public static int tongdoanhthu(ArrayList<int[]> a) { |