Skip to content

Instantly share code, notes, and snippets.

View liuchang0812's full-sized avatar

Chang Liu liuchang0812

  • Wechat
  • Shenzhen
View GitHub Profile
#include <QCoreApplication>
#include "highgui.h"
#include "cv.h"
#include <vector>
#include <stdio.h>
#include <iostream>
using namespace std ;
using namespace cv ;
vector< vector<int> > f1 , f2 ; //直方图
@liuchang0812
liuchang0812 / api define
Last active December 18, 2015 13:29
api define
host url: http://3.lcusersystem.sinaapp.com/
package exam;
import java.util.Scanner;
import java.util.concurrent.*;
import java.lang.Thread;
class CryptionThread extends Thread {
public long srcnum;
CryptionThread(long scrnum)
{
srcnum = scrnum;
/* 声明一个rmi接口
package exam;
import java.rmi.*;
public interface primeinterface extends Remote {
public boolean isPrime(int num) throws RemoteException;
}
/* 实现这个接口的RMI对象
importjava.net.Socket;
importjava.io.IOException;
importjava.io.InputStreamReader;
importjava.io.BufferedReader;
importjava.io.PrintWriter;
publicclassClientTest{
privateSocketsocket;
BufferedReaderin;
PrintWriterout;
publicClientTest(){
import sys
import gevent
from gevent.monkey import patch_all; patch_all()
from gevent import server, event, socket
from multiprocessing import Process, current_process, cpu_count
"""
Simple multiprocess StreamServer that proxies messages between clients.
Avoids using a multiprocessing.Event since it blocks on a semaphore.
#include <iostream>
#include <ctime>
extern "C"
{
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
@liuchang0812
liuchang0812 / clan.json
Last active August 29, 2015 14:21
clan api
{
"ClanID": 120260760485,
"Tag": "#P0VCVURL",
"Name": "E7VMK7UK",
"Description": "AS16-NOVEMBER-08 RESISTANCE",
"Emblem": 1644183893,
"Type": "InveteOnly",
"Trophies": 13210,
"TrophiesNecessary": 0,
"WarsWin": 21,
#include <iostream>
using namespace std;
class Base
{
public:
int Jiao()
{
return JiaoImpl();
}
@liuchang0812
liuchang0812 / asdfsf.rst
Last active February 28, 2017 13:22
asfsdfa
  1. A one, two, a one two three four

    Half a bee, philosophically,
    must, ipso facto, half not be.
    But half the bee has got to be,
    vis a vis its entity. D'you see?

    But can a bee be said to be
    or not to be an entire bee,