Skip to content

Instantly share code, notes, and snippets.


Xiaolin Zhang leoncamel

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 / gist:2943625
Created Jun 17, 2012
my brew installation list
View gist:2943625
# GNU coreutils
brew install coreutils
brew install findutils
brew install binutils
brew install patchutils
# gdb & gcc
brew install gdb
leoncamel / gist:2942254
Created Jun 16, 2012
build gcc on mac lion
View gist:2942254
# 1: Could not find the frame base for "main(int, char**)".
# gdb ./hello
# GNU gdb (GDB) 7.4
# Copyright (C) 2012 Free Software Foundation, Inc.
# License GPLv3+: GNU GPL version 3 or later <>
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law. Type "show copying"
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
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,
View gist:2918498
diff -urN emacs-24.1/lisp/term/ns-win.el emacs-24.1-lion-fullscreen-patched/lisp/term/ns-win.el
--- emacs-24.1/lisp/term/ns-win.el 2012-05-14 21:00:02.000000000 +0900
+++ emacs-24.1-lion-fullscreen-patched/lisp/term/ns-win.el 2012-06-13 00:52:11.000000000 +0900
@@ -930,7 +930,11 @@
(add-to-list 'frame-creation-function-alist '(ns . x-create-frame-with-faces))
(add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system))
+(declare-function ns-toggle-fullscreen-internal "nsfns.m" ())
+(defun ns-toggle-fullscreen ()
View gist:2335717
brew --config
HEAD: 28a2dfd8b6fa0225bc6cc8d196652ec0c87e39b9
HOMEBREW_PREFIX: /Users/leoncamel/bin/homebrew
HOMEBREW_CELLAR: /Users/leoncamel/bin/homebrew/Cellar
CPU: quad-core 64-bit arrandale
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 4.3
GCC-4.0: N/A
You can’t perform that action at this time.