Skip to content

Instantly share code, notes, and snippets.


Xiaolin Zhang leoncamel

Block or report user

Report or block leoncamel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 0001-webrtcbin-an-element-that-handles-the-transport-aspe.patch
From e465847873fdb54de7bc834c2d3d78639b98427a Mon Sep 17 00:00:00 2001
From: Matthew Waters <>
Date: Tue, 31 Jan 2017 20:56:59 +1100
Subject: [PATCH] webrtcbin: an element that handles the transport aspects of
webrtc connections
SDP's are generated and consumed according to the W3C PeerConnection API
available from
The SDP is either created initially from the connected
leoncamel / webrtc.rst
Last active May 18, 2019 — forked from voluntas/webrtc.rst
WebRTC 資料まとめ
View webrtc.rst


  • POST
leoncamel / Makefile
Last active May 18, 2016
minimum libhdfs example
View Makefile
export CLASSPATH=$(shell ${HADOOP_ROOT}/bin/hadoop classpath --glob)
export LD_LIBRARY_PATH=${HADOOP_ROOT}/lib/native:${JVM_ROOT}/jre/lib/amd64/server/
CFLAGS = -O2 -g -Wall -fmessage-length=0 -I${HADOOP_ROOT}/include
OBJS = hello.o
View gist:10d165c24d59db1ca09b
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
def build_argparser():
parser = argparse.ArgumentParser()
parser.add_argument('--foo', action='store_true', help='foo help')
# Reference :
now=`date +"%Y-%m-%d" -d "01/01/1987"`
end=`date +"%Y-%m-%d" -d "05/01/2015"`
# end=`date +"%Y-%m-%d"`
#!/usr/bin/env python
# Reference:
# [1]
# This should be executed before other matplotlib imports
import matplotlib
import datetime
leoncamel / gist:dfc0492777bc2db97739
Created Jul 14, 2014
Docker build by docker-py
View gist:dfc0492777bc2db97739
import docker
c = docker.Client(base_url="http://localhost:port", version="1.11")
for i in"file.tar"), stream=True, custom_context=True):
leoncamel / gist:6076222
Last active Dec 20, 2015
Serialization in C# driver of MongoDB
View gist:6076222
using System;
using System.Collections.Generic;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson.Serialization.Options;
using MongoDB.Driver;
namespace TestMongoDot
class MyEntity
View a.diff
diff --git a/GHC/Integer.hs b/GHC/Integer.hs
index c9b50a7..8fd41d9 100644
--- a/GHC/Integer.hs
+++ b/GHC/Integer.hs
@@ -28,6 +28,7 @@ module GHC.Integer (
eqInteger, neqInteger, absInteger, signumInteger,
leInteger, gtInteger, ltInteger, geInteger, compareInteger,
divModInteger, quotRemInteger, quotInteger, remInteger,
+ modInteger, divInteger,
encodeFloatInteger, decodeFloatInteger, floatFromInteger,
You can’t perform that action at this time.