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
javascript:(function(){function getBoxes(e){return""===e.innerText.trim()?e.children.length:" `"+[].slice.call(e.children).map(e=>e.innerText||"_").join(" ")+"` "}function listClues(e){return`\n**__${e.toUpperCase()}__**\n`+[].slice.call(document.getElementsByClassName("puzzle-frame")[0].contentDocument.getElementById(e+"holder").children[0].children[1].children).map(e=>"**"+e.children[0].innerText.replace("\n","** ").split("_").join("\\_")+" ("+getBoxes(e.children[1])+")").join("\n")}navigator.clipboard.writeText(`<${window.location.href.replace("www.","")}>${listClues("across")}\n${listClues("down")}`);})(); |
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
const fs = require('fs'); | |
const Discord = require('discord.js'); | |
const client = new Discord.Client(); | |
let saveData; | |
try { | |
saveData = JSON.parse(fs.readFileSync('./save-data.json', 'utf8')); // Load save data | |
} catch(e) { | |
saveData = { caseCount: 0 }; // Init if no save data found | |
} |
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
'use strict'; | |
const Eris = require('eris'); | |
var EventEmitter = require("events").EventEmitter; | |
var inherits = require('inherits'); | |
var util = require('./../web/script/common/util'); | |
module.exports = Inbox; | |
inherits(Inbox, EventEmitter); | |
var commandCooldowns = {}; |
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
'use strict'; | |
var util = require('./../common/util.js'); | |
var EventEmitter = require('events').EventEmitter; | |
var inherits = require('inherits'); | |
var BetterCanvas = require('./../common/bettercanvas.js'); | |
module.exports = Canvas; | |
inherits(Canvas, EventEmitter); | |
var scales = [0.5,1,2,3,4]; |
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
var fs = require('fs'); | |
var filename = './sendHistory.json'; | |
var sendHistory; | |
try { | |
JSON.parse(fs.readFileSync(filename)); | |
} catch(err) { | |
fs.writeFileSync(filename, JSON.stringify({data:[]})+'\n'); | |
} finally { | |
sendHistory = JSON.parse(fs.readFileSync(filename)).data; | |
} |
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
/* | |
############################################################################## | |
# # | |
# Sorry, this script is outdated and I can't justify maintaining it anymore. # | |
# # | |
# If you want to view the last version, it's archived here: # | |
# https://gist.github.com/vegeta897/e3d2fcd4b661bd9d021c397e7505be05 # | |
# # | |
# If you want to see a newer one that is similar, look here: # | |
# https://github.com/Baggette/minecraft-server-ping-example # |