This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# system packages ============================================================= | |
yum -y install python-devel openssl openssl-devel gcc sqlite sqlite-devel mysql-devel libxml2-devel libxslt-devel | |
# Python ====================================================================== | |
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz | |
tar -xzf Python-2.7.6.tgz | |
cd Python-2.7.6 | |
./configure --prefix=/usr/local/python2.7 --with-threads --enable-shared |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" python non blocking input | |
""" | |
__author__ = 'Zagfai' | |
__version__= '2013-09-13' | |
import sys | |
import select | |
from time import sleep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import math | |
import heapq | |
from ants import * | |
class MyBot: | |
def __init__(self): | |
pass | |
def do_setup(self, ants): |