Skip to content

Instantly share code, notes, and snippets.

View umhan35's full-sized avatar

Zhao Han umhan35

View GitHub Profile
@umhan35
umhan35 / email.js
Created July 2, 2014 05:49
email in code
['umhan35', ['myumanitoba', 'ca'].join('.')].join('@')
@umhan35
umhan35 / gist:f7fc738686ffd8e3d06b
Last active August 29, 2015 14:14
Java web tech
Tomcat
Jetty
Netty
Spring (Spring Boot)
Play
@umhan35
umhan35 / gist:46a5fa073b74b1786b86
Created February 1, 2015 20:29
Langs compiling to C
ooc
Vala
Genie
@umhan35
umhan35 / gist:74a690a80aa290965785
Last active August 29, 2015 14:14
run java with jar dependencies
java -classpath bin/ -Djava.ext.dirs=lib/ hanzhao.name.simcard.SimCard
@umhan35
umhan35 / setup.sh
Last active March 28, 2016 19:31
virtualbox, ubuntu server, tinyos, genomote
x.org openbox
SLiM # not very needed
sudo apt-get install tinyos-tools
# also installs tinyos-source
sudo apt-get install gcc-msp430
cp -r tinyos-2.x/support/make/genomote* .
@umhan35
umhan35 / one way binding...?.html
Last active April 10, 2016 16:28
one way binding...?
<input type="number">
<p></p>
<script type="text/javascript">
var p = document.querySelector('p')
var i = document.querySelector('input')
i.oninput = function () {
p.textContent = this.value
}
</script>
@umhan35
umhan35 / update conda and anaconda.txt
Last active April 10, 2016 16:27
update conda and anaconda
conda update conda
conda update anaconda
addnginxuser() {
# creating nginx group if he isn't already there
if ! getent group nginx >/dev/null; then
addgroup --system nginx >/dev/null
fi
# creating nginx user if he isn't already there
if ! getent passwd nginx >/dev/null; then
adduser \
--system \
@umhan35
umhan35 / latex-CJK.tex
Last active August 29, 2015 14:20
Latex Chinese/Japanese/Korean support
\usepackage{CJKutf8}
\begin{CJK}{UTF8}{gbsn}
% gbsn (简体宋体, simplified Chinese)
%gkai (简体楷体, simplified Chinese )
% source: http://latex-my.blogspot.ca/2010/06/cjk-support-in-latex.html
@umhan35
umhan35 / body.default.tex
Created June 11, 2015 01:32
body.default.tex
\begin{abstract}
\end{abstract}
\section{Introduction}
\section{Background}
\section{Related Work}