Skip to content

Instantly share code, notes, and snippets.

View yjxiong's full-sized avatar

yjxiong

View GitHub Profile
@yjxiong
yjxiong / dummyfig.tex
Created November 13, 2016 13:31 — forked from dpgettings/dummyfig.tex
Fancy placeholder figures in LaTeX
%% This part goes in preamble
\newcommand{\dummyfig}[1]{
\centering
\fbox{
\begin{minipage}[c][0.33\textheight][c]{0.5\textwidth}
\centering{#1}
\end{minipage}
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Le styles -->
<link href="../bootstrap/css/bootstrap.css" rel="stylesheet">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
</head>
<body>
@yjxiong
yjxiong / README.md
Last active August 29, 2015 14:23 — forked from jpetazzo/README.md
Provides a hub for zerorpc worker-client pattern

Zerohub

This is used to have a bunch of ZeroRPC clients and workers talking to each other.

WARNING: this is not compatible with heartbeats and streaming!

Clients connect to the "in" side of the hub.

Workers connect to the "out" side of the hub.