Skip to content

Instantly share code, notes, and snippets.

View plucury's full-sized avatar

plucury plucury

  • AriesApp
  • Chengdu, China
View GitHub Profile
@plucury
plucury / bsort.py
Last active July 30, 2016 03:21
bsort.py
# coding: utf-8
def bsort(l, start, end, t):
if start == end:
return
m = start + (end - start)/2
if l[m] == t:
return m
if l[m] > t:
return bsort(l, start, m, t)
# coding=utf-8
import threading
class BlockingQ(object):
def __init__(self, size):
self.size = size
self.q = []
self.lock = threading.Condition()
# coding: utf-8
from concurrent.futures import ThreadPoolExecutor
from hyper import HTTP20Connection
def req(conn):
sid = conn.request('GET', '/')
resp = conn.get_response(sid)
return resp.status, resp.read()
@plucury
plucury / xxx.as
Created September 28, 2016 13:39
stop();
var offset:int = 20
var answeris5StartX:int = 849.05
var answeris5StartY:int = 318.25
var answeris5EndX:int = 1066.95
var answeris5EndY:int = 514.2
answeris5.buttonMode = true;
Verifying my Blockstack ID is secured with the address 1G3hSp3s6XdbzR4Mzy9LEReWWi5wCrbjQQ https://explorer.blockstack.org/address/1G3hSp3s6XdbzR4Mzy9LEReWWi5wCrbjQQ
Verifying my Blockstack ID is secured with the address 1FhfnGhAeAjdWPm917KtS7CZGDp3zVWLS https://explorer.blockstack.org/address/1FhfnGhAeAjdWPm917KtS7CZGDp3zVWLS
[
{
"type": "checkbox_field",
"index": 0,
"key": "checked",
"value": " "
},
{
"type": "checkbox_field",
"index": 0,
Traceback (most recent call last):
File "shell/backfill_history_signed_doc_sync_es.py", line 46, in <module>
do_backfill()
File "shell/backfill_history_signed_doc_sync_es.py", line 33, in do_backfill
with ClusterRpcProxy(config) as cluster_rpc:
File "/usr/local/lib/python2.7/site-packages/nameko/standalone/rpc.py", line 221, in __enter__
return self.start()
File "/usr/local/lib/python2.7/site-packages/nameko/standalone/rpc.py", line 227, in start
self._reply_listener.setup()
File "/usr/local/lib/python2.7/site-packages/nameko/rpc.py", line 308, in setup
{
"type": "multiple_choice_field",
"key": "multiple_choice_field-result_list-0",
"index": "0",
"value": "Default Choice",
"sub_index": null
},
{
"type": "multiple_choice_field",
"key": "multiple_choice_field-result_list-0",
Failed to build
{ Error: (client) ./pages/add_wishlist.js
Module not found: Error: Can't resolve '/components/templates/dummyTemplates/ListDummy' in '/home/ubuntu/sogoke-wap-ssr/pages'
@ ./pages/add_wishlist.js 34:0-71 69:29-38
@ multi ./pages/add_wishlist.js
at /home/ubuntu/sogoke-wap-ssr/node_modules/next/dist/build/index.js:144:31
at finalCallback (/home/ubuntu/sogoke-wap-ssr/node_modules/webpack/lib/MultiCompiler.js:247:12)
at runWithDependencies.err (/home/ubuntu/sogoke-wap-ssr/node_modules/webpack/lib/MultiCompiler.js:270:6)
at done (/home/ubuntu/sogoke-wap-ssr/node_modules/neo-async/async.js:2928:13)
at runCompilers (/home/ubuntu/sogoke-wap-ssr/node_modules/webpack/lib/MultiCompiler.js:174:48)