Skip to content

Instantly share code, notes, and snippets.

#include <chrono>
#include <map>
#include <vector>
#include <string>
#include <cstdlib>
#include <cstdio>
#include <unistd.h>
#include <sys/wait.h>
#!/usr/bin/env nodejs
var x = [];
var y = [];
var buffer = "";
require("child_process").spawn("evemu-record", {stdio: [process.stdin, "pipe", process.stderr]}).stdout.on("data", function (data) {
buffer += data.toString();
if (buffer.indexOf("\n") >= 0) {
var lines = buffer.split("\n");
@kotarou3
kotarou3 / randomiseCards.py
Created October 17, 2014 13:03
Randomises the due dates of the cards in a deck, but only bringing them closer to being due. Run in Anki's REPL console (ctrl+:)
# Randomises the due dates of the cards in a deck, but only bringing them closer to being due
# Run in Anki's REPL console (ctrl+:)
from random import random
from math import floor
deckName = u"わかった!"
for cid in self.col.decks.cids(self.col.decks.byName(deckName)["id"], True):
card = self.col.getCard(cid)
@kotarou3
kotarou3 / blacklist
Created October 11, 2014 18:10
Gets word pronounciations from languagepod and forvo for my Anki decks (e.g., https://ankiweb.net/shared/info/3370070635)
さっき-forvo-ankek
いとこ-forvo-atengid
ところで-forvo-cenpoy
くしゃみ-forvo-cocomlle
こんにちは-forvo-dn725
レモン-forvo-GLOCS
しっかり-forvo-gotonobu
こんにちは-forvo-Hijiki
レモネード-forvo-hirata
ひどい-forvo-Hirorina
@kotarou3
kotarou3 / clean.js
Created October 11, 2014 15:46
Cleans small snippets of speech, and attempts to equate loudness
#!/usr/bin/nodejs --harmony
"use strict";
require("prfun");
function readAudio(filename) {
return new Promise(function (resolve, reject) {
let reader = new (require("wav").Reader)();
let rawBuffer = new Buffer(0);
let format;
@kotarou3
kotarou3 / gist:c0c09061a5d805e22c16
Created July 19, 2014 16:50
Darkest names you can get on showdown (less than 7 characters)
qe8r
qi6w
q6t9
12f5
2ulz
29qx
4mkc
acmg8
am51f
anb8u
#!/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/
あぁアァ
いぃイィ
うゔぅウヺゥ
えぇエェ
おぉオォ
かがカガ
きぎキギ
くぐクグ
けげケゲ
こごコゴヶヵ

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
level2:ach3sa6F