Skip to content

Instantly share code, notes, and snippets.

View plucury's full-sized avatar

plucury plucury

  • AriesApp
  • Chengdu, China
View GitHub Profile
[
{
"type": "checkbox_field",
"index": 0,
"key": "checked",
"value": " "
},
{
"type": "checkbox_field",
"index": 0,
Verifying my Blockstack ID is secured with the address 1FhfnGhAeAjdWPm917KtS7CZGDp3zVWLS https://explorer.blockstack.org/address/1FhfnGhAeAjdWPm917KtS7CZGDp3zVWLS
Verifying my Blockstack ID is secured with the address 1G3hSp3s6XdbzR4Mzy9LEReWWi5wCrbjQQ https://explorer.blockstack.org/address/1G3hSp3s6XdbzR4Mzy9LEReWWi5wCrbjQQ
@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;
# 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()
# coding=utf-8
import threading
class BlockingQ(object):
def __init__(self, size):
self.size = size
self.q = []
self.lock = threading.Condition()
@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)
marks = {'a': '0', 'b': '1'}
def transfer(code):
i = 0
binary = ''
while i < len(code):
cnt = ''
while code[i].isdigit():
cnt += code[i]
i += 1
{
"RequestId": "FD55C8DE-B87A-4B13-9577-0BA2480F6403",
"MonitorData": {
"InstanceMonitorData": [{
"IOPSRead": 0,
"IntranetBandwidth": 0,
"BPSWrite": 0,
"IntranetTX": 0,
"IntranetRX": 0,
"InstanceId": "i-250vgbzl7",
--- code/stock » python analyze.py
2010-01-01 2010-12-31
buy 2010-01-06 19.35 17.36
sell 2010-01-12 18.61 17.07
buy 2010-01-13 18.03 16.15
sell 2010-01-14 17.52 16.33
buy 2010-01-15 18.33 16.31
sell 2010-01-18 17.43 16.18
buy 2010-02-01 16.82 15.29
sell 2010-02-05 16.69 15.48