Skip to content

Instantly share code, notes, and snippets.

View blizzarddreams's full-sized avatar
❄️
arctic fox

Blizzard blizzarddreams

❄️
arctic fox
  • Kentucky
  • 08:13 (UTC -04:00)
View GitHub Profile
var express = require('express');
var fs = require('fs');
var app = express();
app.get('*', function(req, res) {
fs.readFile('public' + req.originalUrl, function(err, data) {
if (err) {
res.send('File not found ' + req.originalUrl);
} else {
res.contentType('application/json');
@hayajo
hayajo / gist:8328903
Created January 9, 2014 03:22
vim-refでcodic
let g:ref_source_webdict_sites = {
\ 'codic': {
\ 'url': 'http://codic.jp/search?q=%s',
\ 'keyword_encoding': 'utf-8',
\ 'cache': 1
\ } }
function g:ref_source_webdict_sites.codic.filter(output)
return join( split(a:output, "\n")[15 :], "\n" )
endfunction

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
@zpd-2016-17
zpd-2016-17 / gist:5233770
Created March 24, 2013 22:09
Super awesome calculator!
import java.util.Scanner;
class apples{
public static void main(String args[]){
Scanner calculator = new Scanner(System.in);
double n1, n2, n3;
System.out.println("The Calculator can make a sum of 2 numbers.");
System.out.print("Number 1 - ");
n1 = calculator.nextDouble();
System.out.print("Number 2 - ");
@FSX
FSX / ircbot.py
Created December 20, 2011 21:14
A very simple IRC bot. It does nothing.
import re
import socket
from tornado import ioloop
from tornado import iostream
RE_ORIGIN = re.compile(r'([^!]*)!?([^@]*)@?(.*)')