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 re | |
import zipfile | |
from collections import defaultdict | |
from datetime import datetime | |
""" | |
Backup Django migration files | |
* Required Python 3.6+ | |
""" |
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
version: '3.1' | |
services: | |
redmine: | |
image: redmine:4.0.1 | |
container_name: redmine | |
restart: always | |
ports: | |
- 8080:3000 | |
environment: |
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
# -*- mode: sh; -*- | |
# (rootdir)/.envrc : direnv configuration file | |
# see https://direnv.net/ | |
pyversion=3.7.1 | |
pvenv=my_python_project_env_name | |
# | |
use python ${pyversion} | |
# Create the virtualenv if not yet done | |
layout virtualenv ${pyversion} ${pvenv} | |
# activate it |
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 datetime import datetime | |
import logging | |
import sys | |
from version import VERSION | |
def create_logger(): | |
""" logging 객체를 만들어서 리턴한다. | |
:return: logging 객체 |
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
""" | |
date: 2016. 12. 22 | |
author: Dokenzy | |
HTML 구조 비교 | |
""" | |
from difflib import HtmlDiff | |
import re | |
import uuid |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
\documentclass{article} | |
\usepackage{xcolor} | |
\usepackage{ulem} | |
\usepackage{soul} | |
\setstcolor{red}%%% | |
\usepackage{fontspec} | |
\usepackage{fontenc} | |
\usepackage{inconsolata} | |
\usepackage{erewhon} |
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 |
NewerOlder