This file contains 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
\documentclass{beamer} | |
\usepackage{tikz} | |
\begin{document} | |
\begin{frame} | |
\begin{center} | |
\begin{tikzpicture} | |
\node (img1) {\includegraphics[height=3cm]{img0.jpg}}; | |
\pause | |
\node (img2) at (img1.south west)[yshift=1.4cm,xshift=1.4cm] {\includegraphics[height=3cm]{img1.jpg}}; |
This file contains 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
\usepackage{tikz} | |
\usetikzlibrary{arrows} | |
\begin{document} | |
\begin{minipage}{0.4\textwidth} | |
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=1.8cm, | |
thick,main node/.style={circle,draw,font=\sffamily\Large\bfseries}, | |
box/.style = {rectangle, draw,minimum width=12mm, minimum height=7mm}] | |
\node[main node] (1) {4096}; | |
\node[main node] (2) [right of=1]{8}; | |
\node[main node] (3) [below of=2] {4}; |
This file contains 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
from __future__ import print_function | |
import cv2 | |
import pytesseract | |
import numpy as np | |
from os import listdir | |
from os.path import join | |
import pandas | |
import xlsxwriter |
This file contains 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
import os | |
import torch | |
from tqdm import tqdm | |
import time | |
# declare which gpu device to use | |
cuda_device = '0' | |
def check_mem(cuda_device): | |
devices_info = os.popen('"/usr/bin/nvidia-smi" --query-gpu=memory.total,memory.used --format=csv,nounits,noheader').read().strip().split("\n") |
This file contains 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
import sys | |
import os | |
import subprocess | |
ROOTDIR = '<you path>/hexo/public' | |
YEAR = ['2017','2018','2019'] | |
URLList = [] | |
BEGIN = 0 | |
NUM = 10 | |
if __name__ == '__main__': | |
for year in YEAR: |
This file contains 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
def evenFilter(d): | |
if d['idx'] % 2 == 0: | |
return True | |
else: | |
return False | |
if __name__ == '__main__': | |
L = [] | |
for i in range(10): | |
d={} |
This file contains 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
\usepackage[textsize=tiny]{todonotes} | |
\usepackage{marginnote} | |
\paperwidth=\dimexpr \paperwidth + 6cm\relax | |
\oddsidemargin=\dimexpr\oddsidemargin + 3cm\relax | |
\evensidemargin=\dimexpr\evensidemargin + 3cm\relax | |
\marginparwidth=\dimexpr \marginparwidth + 3cm\relax |
This file contains 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
import time | |
from tqdm import tqdm | |
if __name__ == '__main__': | |
s = 0 | |
t = tqdm(range(100)) | |
for i in t: | |
s += i | |
time.sleep(0.05) | |
t.set_description("step{0:3d}".format(i)) |
This file contains 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
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" | |
__version__ = "0.2" | |
__all__ = ["SimpleHTTPRequestHandler"] |
This file contains 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Author: Axel Angel, copyright 2015, license GPLv3. | |
import sys | |
import caffe | |
import numpy as np | |
import lmdb | |
import argparse |
NewerOlder