Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import pandas as pd
import io
data = """ name, type, number
0, David, A, 1234
1, Tom, B, 2233
2, Jack, C, 2244
3, Allen, B, 2355
4, , D, 2345
5, Test, E, 3456
@ruoyu0088
ruoyu0088 / build.py
Last active January 19, 2017 08:32
from cffi import FFI
ffibuilder = FFI()
ffibuilder.set_source("_square",
r"""
#include "square.h"
""",
sources=["square.c"])
with open("square.h") as f:
import socket
import time
UDP_IP = "0.0.0.0"
UDP_PORT = 2368
sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
sock.bind((UDP_IP, UDP_PORT))
start = time.clock()