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 java.util.*; | |
public class AdditionUnderXOR { | |
static final int SS = 1; | |
enum Ore { | |
COAL(60007), |
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
// npm install --save puppeteer | |
// node ./popcat.js | |
const puppeteer = require('puppeteer'); | |
(async () => { | |
const browser = await puppeteer.launch({ headless: true }); | |
const page = await browser.newPage(); | |
await page.goto('https://popcat.click'); | |
setInterval(() => { |
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
{ | |
"donations": [ | |
], | |
"expenses": [ | |
{ | |
"expectedDate": "2020-01-07", | |
"amount": 150 | |
}, | |
{ | |
"expectedDate": "2020-02-07", |
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
[Unit] | |
Description=Teamspeak Service | |
After=network.target | |
[Service] | |
Type=forking | |
User=teamspeak | |
WorkingDirectory=/home/teamspeak/teamspeak3-server_linux_amd64 | |
ExecStart=/home/teamspeak/teamspeak3-server_linux_amd64/ts3server_startscript.sh start | |
ExecStop=/home/teamspeak/teamspeak3-server_linux_amd64/ts3server_startscript.sh stop |
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
// ==UserScript== | |
// @name Fuck FuckAdBlock | |
// @namespace https://jittapan.app/ | |
// @version 0.1 | |
// @description Fuck you too, FuckAdBlock. | |
// @author J.P. | |
// @match http*://*/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name No Endgame spoil | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author komcal | |
// @match *.facebook.com/* | |
// @grant none | |
// ==/UserScript== |
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
guess = function (text) { | |
guess_responses = [ "ให้ทาย", "ยอมแล้วเฉลยที", "ยอมจริงยอมปลอม" ] | |
return guess_responses[(guess_responses.indexOf(text) + 1) % guess_responses.length] | |
} |
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
/** | |
* @param level Your current level | |
* @param EXP Just use 0, the server doesn't do sanity checks | |
* @param targetLevel Where to | |
**/ | |
setExp = (level, exp, targetLevel) => { | |
fetch("https://dino.sit.kmutt.ac.th/api/updateEggStatus/%7B%22name%22:%22loss%22,%22level%22:" + level + ",%22exp%22:" + exp + ",%22warm%22:500,%22hygine%22:500,%22fun%22:500,%22behaviorRatio%22:44,%22expLevelCap%22:" + exp + "%7D", { | |
"credentials": "include", | |
"headers": {}, | |
"referrer": "https://dino.sit.kmutt.ac.th/", |
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
// ==UserScript== | |
// @name Steam Queue Auto Discoverer | |
// @description Discover the Steam queue three times to get the sale cards | |
// @version 2.2.2 | |
// @namespace https://gist.github.com/xPaw/73f8ae2031b4e528abf7 | |
// @updateURL https://gist.github.com/xPaw/73f8ae2031b4e528abf7/raw/steam_quick_queue.user.js | |
// @icon https://store.steampowered.com/favicon.ico | |
// @match https://store.steampowered.com/explore* | |
// @grant none | |
// ==/UserScript== |
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
/** | |
* Circular array queue implementation | |
* @author Jittapan Pluemsumran | |
*/ | |
public class CSQueue<T> { | |
T[] data; | |
int first = -1; | |
int last = -1; | |
int size; // for quick access |
NewerOlder