standard library → beginner version, twisted → advanced version, add guru version

This commit is contained in:
Toidinamai 2007-11-14 22:27:36 +00:00
parent 534c42e2d5
commit b820321f05
1 changed files with 9 additions and 2 deletions

View File

@ -1,7 +1,8 @@
[[Category:Ruby]] [[Category:Python]]
=Python (base library)=
=Python=
==beginner version==
<source lang="python">
#!/usr/bin/env python
import sys
@ -29,7 +30,7 @@ except KeyboardInterrupt:
pass
</source>
=Python (Twisted)=
==advanced version==
<source lang="python">
#!/usr/bin/env python
@ -51,6 +52,12 @@ log.startLogging(sys.stderr)
reactor.run()
</source>
==guru version==
<source lang="bash">
twistd -n web --path $path --port $port
</source>
=Ruby=
<source lang="ruby">