Skip to content

Instantly share code, notes, and snippets.

View wzyy2's full-sized avatar

Jacob Chen wzyy2

View GitHub Profile
def process_trade(trade: Dict[str, Any], user_address: str = None):
"""处理单个交易"""
try:
transaction_hash = trade.get('transactionHash', '')
if transaction_hash in processed_trades:
return
processed_trades.add(transaction_hash)
#!/usr/bin/env python
import os
import sys
import httplib
import threading
import time
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
@wzyy2
wzyy2 / sdl.cc
Created February 26, 2018 01:51
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_thread.h>
#include <iostream>
#include <queue>
#include <string>
SDL_mutex* mutex;
std::queue<int> shared_queue;
@wzyy2
wzyy2 / isp.md
Created November 22, 2017 09:00

111