Skip to content

Instantly share code, notes, and snippets.

@the5fire
the5fire / slides.md
Last active August 29, 2015 14:14 — forked from rduplain/slides.md

Interactive Debugging in any Python Web Project

Ron DuPlain - PyOhio 2013

Turn this:

@the5fire
the5fire / txt2epub.py
Last active September 17, 2021 05:18 — forked from scturtle/txt2epub.py
# coding: utf-8
import os
#书籍信息
title='test book'
creator='scturtle'
description='blablablabla'
#章节文件
txtlist=['1.txt','2.txt']
#!/bin/zsh
# pyenv install for CentOS 6.5 x86_64
yum install -y gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel
git clone git://github.com/yyuu/pyenv.git ~/.pyenv
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
"""
client.py - AsyncIO Server using StreamReader and StreamWriter
This will create 200 client connections to a server running server.py
It will handshake and run similar to this:
Server: HELLO
Client: WORLD