Skip to content

Instantly share code, notes, and snippets.


Zagfai zagfai

View GitHub Profile
zagfai /
Created Dec 24, 2011
My BOT which got the 800th place in the Ants ( AI Challenge ). Have fun.
#!/usr/bin/env python
import math
import heapq
from ants import *
class MyBot:
def __init__(self):
def do_setup(self, ants):
zagfai / py-non-blocking-input
Created Sep 25, 2013
python non blocking input
View py-non-blocking-input
# -*- coding: utf-8 -*-
""" python non blocking input
__author__ = 'Zagfai'
__version__= '2013-09-13'
import sys
import select
from time import sleep
zagfai /
Last active Aug 29, 2015
CentOS release 6.3 (Final) INSTALL python 2.7 env including pip mysqldb and do the links.
# system packages =============================================================
yum -y install python-devel openssl openssl-devel gcc sqlite sqlite-devel mysql-devel libxml2-devel libxslt-devel
# Python ======================================================================
tar -xzf Python-2.7.6.tgz
cd Python-2.7.6
./configure --prefix=/usr/local/python2.7 --with-threads --enable-shared