Skip to content

Instantly share code, notes, and snippets.

View mopemope's full-sized avatar
🏠
Working from home

Yutaka Matsubara mopemope

🏠
Working from home
View GitHub Profile
@mopemope
mopemope / meinredis.py
Created October 15, 2012 05:24 — forked from methane/meinredis.py
redisをmeinheldから使ってみたら動かなかった時のコード
from meinheld import server, middleware, patch
patch.patch_all()
import greenlet
main_greenlet = greenlet.getcurrent()
import redis
print(main_greenlet)
# -*- coding: utf-8 -*-
nums = [1, 1, 7, 7]
from operator import add, sub, mul, div
ops = {"*": mul, "+": add, "-": sub, "/": div}
def split(nums):
N = len(nums)