Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import timeit
from pylibmc import Client
from multiprocessing import Process
def worker(x, y):
mc = Client(['127.0.0.1'])
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import timeit
from pylibmc import Client
mc = Client(['127.0.0.1'])
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import timeit
from umemcache import Client
from multiprocessing import Process
def worker(x, y):
umc = Client('127.0.0.1:11211')
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import timeit
from memcache import Client
from multiprocessing import Process
def worker(x, y):
mc = Client(['127.0.0.1:11211'], debug=0)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import timeit
from umemcache import Client
umc = Client('127.0.0.1:11211')
umc.connect()
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import timeit
from memcache import Client
mc = Client(['127.0.0.1:11211'], debug=0)
@tomislater
tomislater / sample.py
Created May 16, 2013 21:53
Gist from BPython
>>> wow = "wow"
>>> udalo_sie = "^_^"
>>>
@tomislater
tomislater / do_gist_json
Last active December 17, 2015 10:29
Script for uploads code on gitst. For BPython.
#!/usr/bin/env python
import sys
import json
import requests
def do_gist_json(s):
""" Use json to post to github. """
gist_url = 'https://api.github.com/gists'