Skip to content

Instantly share code, notes, and snippets.

@gwwfps
gwwfps / lcs.jl
Last active August 29, 2015 14:04
LCS result simulation
rounds = 4
teams = ["C9" "COL" "CLG" "EG" "LMQ" "DIG" "CRS" "TSM"]
wins =
Uint8[ 0 1 2 2 2 2 2 1 ; # C9
2 0 0 1 0 2 2 0 ; # COL
1 3 0 2 1 3 1 2 ; # CLG
1 2 1 0 0 0 2 0 ; # EG
1 3 2 3 0 1 1 3 ; # LMQ
1 1 0 3 2 0 1 3 ; # DIG
1 1 2 1 2 2 0 0 ; # CRS
@gwwfps
gwwfps / clipshare.py
Created June 4, 2010 22:39
Shares clipboard with LAN.
#!/usr/bin/env python
import socket
import logging
import zlib
from threading import Thread
from PyQt4.QtGui import QApplication
from PyQt4.QtNetwork import QUdpSocket, QHostAddress
# Config