As websites become more JavaScript heavy, it's harder to automate things like screenshotting for archival purposes. I've seen examples and suggestions to use PhantomJS for visual testing/archiving of websites, but have run into issues such as the non-rendering of webfonts. I've never tried out Selenium until today...and while I'm not thinking about performance implications yet, Selenium seems far more accurate than PhantomJS...which makes sense since it actually opens a real browser. And it's not too hard to script to do complex interactions: here's an [example of how to log in to Twitter, write a tweet, upload an image, and send a tweet via Selenium and DOM element selection](https://gist.github.com/dannguyen/8a6fa49253c1d6a0eb92
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
\newcommand{\supers}[1]{%윗첨자용 | |
\raisebox{0.3em}{% | |
\textcolor{PantoneBlue2}{\tiny{\supergothic #1}} | |
} | |
} |
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
\renewcommand{\thefigure}{\#\arabic{figure}} | |
\renewcommand{\figurename}{} | |
\newfixedcaption{\captionoffig}{figure} | |
\captionnamefont{\color{orange}\ttfamily\footnotesize} | |
\captiontitlefont{\color{gray}\sffamily\footnotesize} | |
\hangcaption | |
\captionstyle{\raggedright} | |
\precaption{\vspace{-3mm}} | |
\newenvironment{fillimg}[1]% |
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
\AtBeginDocument{\renewcommand{\contentsname}{\texttt{\HUGE{\color{gray}{11월의 역사}}}}} | |
\renewcommand{\cftdot}{\raisebox{.5ex}{.}} | |
\cftpagenumbersoff{chapter} | |
\setcounter{tocdepth}{1} | |
\setcounter{secnumdepth}{1} | |
\renewcommand\cftsectionleader{\color{OysterGray}\cftdotfill{\cftsectiondotsep}} | |
\setlength\cftchapterindent{-3.8em} | |
\renewcommand{\cftchapterfont}{\normalfont\ttfamily\LARGE\color{PantoneBlue}} | |
\renewcommand\cftsectionpresnum{} | |
\renewcommand\cftsectionindent{1.6em} |
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
#-*- coding: utf-8 -*- | |
# Python 3.4 | |
# author: http://blog.dokenzy.com/ | |
# date: 2015. 4. 8 | |
# References | |
# http://www.imcore.net/encrypt-decrypt-aes256-c-objective-ios-iphone-ipad-php-java-android-perl-javascript/ | |
# http://stackoverflow.com/questions/12562021/aes-decryption-padding-with-pkcs5-python | |
# http://stackoverflow.com/questions/12524994/encrypt-decrypt-using-pycrypto-aes-256 |
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
# -*- coding: utf-8 -*- | |
""" | |
Python: 3.4.2 | |
author: dokenzy | |
date: 2015. 4. 21 | |
license: MIT License | |
""" | |
import os |
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
# 2015. 10. 08 |
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{article} | |
% http://blog.dokenzy.com/archives/2154 | |
\usepackage{luacode} | |
\begin{luacode*} | |
texs = {'PDFLaTeX', 'XeTeX', 'LuaTeX'} | |
max = 0 | |
for k, v in pairs(texs) do | |
if v:len() > max then | |
max = v:len() | |
end |
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{article} | |
\usepackage{xcolor} | |
\usepackage{ulem} | |
\usepackage{soul} | |
\setstcolor{red}%%% | |
\usepackage{fontspec} | |
\usepackage{fontenc} | |
\usepackage{inconsolata} | |
\usepackage{erewhon} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.