Skip to content

Instantly share code, notes, and snippets.

View ltsv.py
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import sys
from optparse import OptionParser
def main():
parser = OptionParser()
parser.add_option("-f", "--file", dest="filename", help="filename")
parser.add_option("-c", "--color", dest="is_color", action="store_true", default=False, help="color on")
View sphinxconjp2012.rst

Docutilsについて

DocutilsでHTMLを生成してみよう

  • 2012.09.16
    • PyCon JP 2012
@hekyou
hekyou / app.py
Created Jul 17, 2012
gevent+websocket+ginkgo+Flask
View app.py
import os
from ginkgo import Service
from ginkgo.async.gevent import WSGIServer
from geventwebsocket.handler import WebSocketHandler
from flask import Flask, render_template
class WebSocket(Service):
def __init__(self):
self.add_service(WSGIServer(('127.0.0.1', 8001), self.handle,
handler_class=WebSocketHandler))
@hekyou
hekyou / test.hs
Created Mar 26, 2012
変数を新たに宣言せずに1から100までの整数の和を表示するプログラムを作れ
View test.hs
-- ./test 100
module Main where
import System
main = do
max <- getArgs
print (test (read (head max)::Integer))
test :: Integer -> Integer
test 1 = 1
You can’t perform that action at this time.