Skip to content

Instantly share code, notes, and snippets.

小太 kotarou3

Block or report user

Report or block kotarou3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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
kotarou3 / gist:2517950
Created Apr 28, 2012
Pokemon Showdown Moderation Tool
View gist:2517950
var dingSound = null;
socket.on("update", function(data)
{
if (data.room !== "lobby" || !data.logUpdate || data.logUpdate.length === 0 || !data.logUpdate[0].name)
return;
if (data.logUpdate[0].message.toLowerCase().replace(/[^a-z0-9]/, "").indexOf(me.userid) !== -1)
if (dingSound)
dingSound.play();
else
dingSound = soundManager.createSound({id:"ding",url: "http://soundjax.com/reddo/99652%5EDING1.mp3",autoPlay: true,volume: 100});
View gist:5410841
<?php
// 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
kotarou3 / singleprocesshack.diff
Last active May 6, 2019
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
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
109
110
143
993
995
View Tournament Guide.md

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.

Tips:

  • Run /tour by itself for a list of currently running tournaments
  • The tournament bracket becomes dragg
View Kana Sorting Order
あぁアァ
いぃイィ
うゔぅウヺゥ
えぇエェ
おぉオォ
かがカガ
きぎキギ
くぐクグ
けげケゲ
こごコゴヶヵ
View build-mingw-w64.sh
#!/bin/bash
# Please place the appropiate sources in these directories:
# Directory Source Where to get
# --------------------------------------------------------
# m4/src m4 ftp://ftp.gnu.org/gnu/m4/
# gmp/src libgmp ftp://ftp.gmplib.org/pub/
# mpfr/src libmpfr http://www.mpfr.org/mpfr-current/#download
# mpc/src libmpc http://www.multiprecision.org/index.php?prog=mpc&page=download
# binutils-src binutils http://ftp.gnu.org/gnu/binutils/
You can’t perform that action at this time.