Skip to content

Instantly share code, notes, and snippets.

View gist:2390188
diff '-ruwx.*' '-xconfig*' -xpokedex.js -xlearnsets.js -xformats-data.js '-xnode_modules*' ../trunk/app.js ./app.js
--- ../trunk/app.js 2012-04-15 14:50:00.582063198 +1000
+++ ./app.js 2012-04-15 14:38:20.902040986 +1000
@@ -49,7 +49,6 @@
toUserid = toId;
BattlePokedex = require('./pokedex.js').BattlePokedex;
-BattleTiers = require('./tiers.js').BattleTiers;
BattleMovedex = require('./movedex.js').BattleMovedex;
BattleStatuses = require('./statuses.js').BattleStatuses;
kotarou3 / gist:2517950
Created Apr 28, 2012
Pokemon Showdown Moderation Tool
View gist:2517950
var dingSound = null;
socket.on("update", function(data)
if ( !== "lobby" || !data.logUpdate || data.logUpdate.length === 0 || !data.logUpdate[0].name)
if (data.logUpdate[0].message.toLowerCase().replace(/[^a-z0-9]/, "").indexOf(me.userid) !== -1)
if (dingSound);
dingSound = soundManager.createSound({id:"ding",url: "",autoPlay: true,volume: 100});
View gist:5410841
// This file throws good practice out of the window
include 'setup.php';
// Put these in config file
$maxResults = 1000;
$intervalLimit = 1000 * 60 * 60; // This should be approximately ((date of last stat) - (date of first stat)) / $maxResults
View mandelbrot.c
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/time.h>
#include <netinet/in.h>
kotarou3 / singleprocesshack.diff
Last active Apr 6, 2020
Pokemon Showdown single process hack
View singleprocesshack.diff
diff --git a/battle-engine.js b/battle-engine.js
index a8d1d27..4cb79c9 100644
--- a/battle-engine.js
+++ b/battle-engine.js
@@ -20,9 +20,9 @@ if (!('existsSync' in fs)) {
global.config = require('./config/config.js');
// graceful crash - allow current battles to finish before restarting
-process.on('uncaughtException', function (err) {
+/*process.on('uncaughtException', function (err) {
kotarou3 / gist:5544626
Created May 9, 2013
Open and completely unfiltered ports for the NSW DET network. These all happen to be POP or IMAP ports for some reason. You can access any address with these ports open, even ones that are meant to be blocked.
View gist:5544626
View Tournament

Tournament Guide

When tournament sign-ups are opened, you will see a interface drop down from the top of the chat area. There will be a button to join if you're not in the tournament and a button to leave if you are. Alternatively, the commands /tour join and /tour leave can be used instead. Please resist any urge to spam joins and leaves since it is a bannable offence.
Once you join the tournament, the bracket will already by displayed. However, do not challenge anyone yet. Please wait until someone starts the tournament.
When the tournament starts, you should see the leave button replaced with information about any match-ups you have. Challenge drop downs and buttons will appear if you are matched up to challenge another user. Please use the interface to challenge the user rather challenging the "normal" way because otherwise it won't count as a tournament match.


  • Run /tour by itself for a list of currently running tournaments
  • The tournament bracket becomes dragg
View Kana Sorting Order
# Please place the appropiate sources in these directories:
# Directory Source Where to get
# --------------------------------------------------------
# m4/src m4
# gmp/src libgmp
# mpfr/src libmpfr
# mpc/src libmpc
# binutils-src binutils
You can’t perform that action at this time.