This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function eliminateDuplicates(arr) { | |
var i, | |
len=arr.length, | |
out=[], | |
obj={}; | |
for (i=0;i<len;i++) { | |
obj[arr[i]]=0; | |
} | |
for (i in obj) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% http://www.cs.uiuc.edu/~jeffe/pubs/latex.html | |
% ============================-*- LaTeX -*-============================= | |
% | |
% jeffe.sty -- macros I use everywhere | |
% | |
% Jeff Erickson ([email protected]) | |
% Last modified 22 May 2010 | |
% This is free; caveat emptor! | |
% | |
% Requirements that may not be part of every TeX distribution: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -n -e '/(http:\/\/community.livejournal.com\/clinic_duty\/[0-9]+.html)/ && print "$1\n"' toc.html | wc -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -n -e '/(http:\/\/community.livejournal.com\/clinic_duty\/[0-9]+.html)/ && print "$1\n"' toc.html | wget |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% http://tug.org/pracjourn/2006-4/madsen/madsen.pdf | |
\begin{align*} | |
\dbx &= \dbx[3cm] \\ | |
&= \dbx | |
\end{align*} | |
\begin{equation} | |
\begin{split} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\begin{figure} | |
% Manual: http://bit.ly/N5qECH | |
\begin{algorithm}[H] | |
\caption{$\textsc{AlgName}$} | |
\label{alg:foobar} | |
\SetAlFnt{\tiny \sf} | |
\SetCommentSty{textrm} | |
\SetKwComment{Comment}{~$\triangleright$~}{} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\usetheme{default} | |
\usepackage{mathpazo} | |
\usepackage{fontspec} | |
\setbeamertemplate{background canvas}{\includegraphics [width=\paperwidth]{blackboard_bk.pdf}} | |
\newfontfamily\chalkd{Chalkduster.ttf} | |
\newfontfamily\chalkb{Chalkboard.ttc} | |
\setbeamerfont*{normal text}{family = \chalkd} | |
\setbeamerfont{alerted text}{family = \chalkd} | |
\setbeamerfont{structure}{family = \chalkd} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
draft: | |
pandoc -N --latex-engine=xelatex --template=template.tex def.markdown -o def.pdf --biblio def.bib | |
final: | |
pandoc -N --latex-engine=xelatex --template=template.tex def.markdown -o def.tex --biblio def.bib | |
bibtex def | |
xelatex def.tex | |
xelatex def.tex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\marginparwidth 0pt | |
\oddsidemargin 0pt | |
\evensidemargin 0pt | |
\marginparsep 0pt | |
\parindent 0pt | |
\parskip 5pt | |
\topmargin 0pt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\begin{figure}[htbp] | |
\begin{minipage}[b]{0.5\linewidth} | |
\label{SzvsT} | |
\centering | |
\includegraphics[width=\textwidth]{fig/SzvsT.pdf} | |
\caption{initial node set size $|V_Q|$ versus runing time} | |
\end{minipage} | |
\vspace{0.5cm} | |
\begin{minipage}[b]{0.5\linewidth} | |
\label{RvsTime} |