Skip to content

Instantly share code, notes, and snippets.

Jerry zrwang

Block or report user

Report or block zrwang

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
zrwang / streaming-video.html
Last active Oct 2, 2016
streaming video from different sources for people from different region
View streaming-video.html
<!DOCTYPE html>
<html lang="en">
<script type="text/javascript">
// global variable
var fromChina = -1;
// detect whether the user is from China
function jsonpCallback(data) {
View opencv_version.cpp
#include <ros/ros.h>
#include <iostream>
#include "opencv2/core/version.hpp"
int main(int argc, char ** argv)
ros::init(argc, argv, "opencv");
std::cout << "OpenCV version: "
View pretty git history
# Creates an alias called "git hist" that outputs a nicely formatted git log.
# Usage is just like "git log"
# Examples:
# git hist
# git hist -5
# git hist <branch_name>
# git hist <tag_name> -10
git config --global alias.hist "log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --graph --date=short"
You can’t perform that action at this time.