Skip to content

Instantly share code, notes, and snippets.

View Liam0205's full-sized avatar
🎯
Focusing

Liam Huang Liam0205

🎯
Focusing
View GitHub Profile
\documentclass[tikz]{standalone}%
\usetikzlibrary{fit,calc,shadows,backgrounds,positioning}
\tikzset{
polaroid/.cd,
at/.store in=\polaroidat,
at={0,0},
graphics options/.store in=\polaroidgraphicsoptions,
graphics options=,
rotate/.store in=\polaroidrotate,
rotate=0,
@Liam0205
Liam0205 / ltxtest.tex
Created January 21, 2016 08:49
ellipse photo frame
\documentclass{standalone}
\usepackage[skins]{tcolorbox}
\begin{document}
\tikz[radius=1cm,delta angle=180]
\path[draw, thick, fill overzoom image=example-image]
(0,0) ellipse [x radius = 1.5cm, y radius = 2cm];
\end{document}
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage[skins]{tcolorbox}
\usepackage{overpic}
\begin {document}
\begin{tikzpicture}
\draw (0, 0) node[inner sep=0]{
{\fcolorbox{black}{white}
{
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage[skins]{tcolorbox}
\usepackage{overpic}
\begin {document}
\begin{tikzpicture}
\draw (0, 0) node (textfield) [inner sep=0]{
{\fcolorbox{black}{white}
{
inline bool stringLengthLarger (const string & lhs, const string & rhs) {
return lhs.length() > rhs.length();
}
class Solution {
public:
int maxProduct(vector<string>& words) {
size_t sz_words = words.size();
if (sz_words < 2) {
return 0;
\documentclass{mcmthesis}
\mcmsetup{titleinsheet = true}
\usepackage{blindtext}
\title{The Title}
\author{Liam Huang}
\date{today}
\begin{document}
\documentclass{article}
\usepackage{fontspec}
%\usepackage[dvipsnames,pdftex]{xcolor}
\usepackage{xcolor}
\definecolor{lstbgcolor}{rgb}{0.9,0.9,0.9}
\usepackage{listings}
\newenvironment{latexcode}[1][language=command.com, number=left]
{\lstset{backgroundcolor=\color{lstbgcolor},
commentstyle=\color[rgb]{0.133,0.545,0.133},
\documentclass{article}
\usepackage{xeCJK}
%\usepackage[dvipsnames,pdftex]{xcolor}
\usepackage{xcolor}
\definecolor{lstbgcolor}{rgb}{0.9,0.9,0.9}
\usepackage{listings}
\newenvironment{latexcode}[1][language=command.com, number=left]
{\lstset{backgroundcolor=\color{lstbgcolor},
commentstyle=\color[rgb]{0.133,0.545,0.133},
@Liam0205
Liam0205 / test.cc
Created January 30, 2016 17:46
combination
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
vector<string>& combination
(vector<string>& res, const size_t& choose, const size_t& from);
bool compare (const char& lhs, const char& rhs);
int main () {