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
/* | |
* Discord: Don't copy stuff into this box | |
* Me: dOn'T COpy sTuFf iNtO tHIs bOx | |
*/ | |
clearMessages = function (guild_id, author_id, authToken, deleted = new Set()) { | |
if (guild_id[0] == "_" && guild_id[guild_id.length - 1] == "_") { | |
alert("Oops! You forgot to set the guild_id. Please fill it in.") | |
return; | |
} | |
if (author_id[0] == "_" && author_id[author_id.length - 1] == "_") { |
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
$biggest =100; | |
$all_numbers = range(0,$biggest); | |
$threes = array_fill_keys(range(3, $biggest, 3), 'Fizz'); | |
$fives = array_fill_keys(range(5, $biggest, 5), 'Buzz'); | |
$fifteens = array_fill_keys(range(15, $biggest, 15), 'FizzBuzz'); | |
$all_numbers = array_replace($all_numbers, $threes, $fives, $fifteens); | |
var_dump($all_numbers); |