目前有两种关于翻译排版的观点:
- 用Markdown
- 用LaTeX
我是支持用TeX进行排版的,所以建了这个gist. (那你干嘛写这么多缺点啊
欢迎讨论,哪个好,或者提出新的方向.
优点:
| # Hexo Configuration | |
| ## Docs: https://hexo.io/docs/configuration.html | |
| ## Source: https://github.com/hexojs/hexo/ | |
| # Site | |
| title: wo's lab | Hexo | |
| subtitle: | |
| description: | |
| author: woclass | |
| language: |
| \documentclass{book} | |
| \usepackage{xcolor} | |
| \usepackage{mdframed} | |
| \usepackage[margin=2.8cm]{geometry} | |
| \usepackage{minted} | |
| \setminted{ | |
| %bgcolor=red, % 取消此行注释 陷入死循环 | |
| } % 我想实现的是: |
| import codecs | |
| import utf9 | |
| def main(): | |
| with codecs.open("rfc4042") as file: | |
| data = file.read() | |
| #data = data.replace("\n", "") | |
| #print utf9.utf9decode(data) | |
| file.close() | |
| return utf9.utf9decode(data) |
| #!/usr/bin/env python | |
| #coding=utf-8 | |
| #flag.py | |
| import marshal, zlib, base64 | |
| import uncompyle2 | |
| #exec(marshal.loads( | |
| co = marshal.loads(zlib.decompress(base64.b64decode('eJxtVP9r21YQvyd/ieWm66Cd03QM1B8C3pggUuzYCSWstHSFQijyoJBhhGq9OXJl2ZFeqAMOK6Q/94f9Ofvn1s+d7Lgtk/3O997du/vc584a0eqpYP2GVfwDEeOrKCU6g2LRRyiK4oooFsVVUSqkqxTX6J1F+SfSNYrrdKPorC76luhbpOEGCZNFZw2KG3Rmk26QtuXi3xTb7ND6/aVu0g2RuvhEcZNut5lAGbTvAFbyH57TkYLKy8J6xpDvQxiiiaIlcdqJxVcHbXY6bXNlZgviPCrO0+StqfKd88gzNh/qRZyMdWHE29TZZvIkG7eZFRGGRcBmsXJaUoKCQ9fWKHwSqNeKFnsM5PnwJ7q2aKk4AFhcWtQCh+ChB5+Lu/RmyYUxmtOEYxas7i/2iuR7Ti14OEOSmU0RADd4+dQzbM1FJhukAUeQ+kZROuLyioagrau76kc1slY1NNaY/y3LAxDQBrAICJisV2hMdF2lxQcyFuMoqcX3+TCl6xotqzSpkqmxYVmjXVjAXiwBsEfBrd1VvTvLCj2EXRnhoryAKdpxcIgJcowUB68yAx/tlCAuPHqDuZo0CN3CUGHwkPhGMA7aXMfphjbmQLhLhJcHa0a+mpgB191c1U1lnHJQbgkHx+WGxeJbejnpkzSavo2jkxZ7i725npGAaTc8FXmUjbUETHUmkxXN5zqL5WiWxwE7Bc11yyYzNJpN02jerq+DzNNodfxOX8kE4FcmYKscDdYD1oPGGucXYNmgs1F+NTf3GOt3Mg7b+NTVruqoQyX1hOEUacKw+AGbP38ZOq9THRXaSbL5pXGQ8bho/Z/lrzQaHxdoCrlev+t6nZ7re57r+57r |
| #coding=utf-8 | |
| import hashlib | |
| def sha1(string): | |
| return hashlib.sha1(string).hexdigest() | |
| def calc(strSHA1): | |
| r = 0 | |
| for i in strSHA1: |
| ## This is irb' conf | |
| # https://inkydragon.github.io/Programming-Ruby-ver-2/#15-Ruby-shell | |
| ## Autocompletion | |
| require 'irb/completion' | |
| ## Auto-indent | |
| IRB.conf[:AUTO_INDENT] = true | |
| ## Obj check |
| " From zhihu https://www.zhihu.com/question/19637905 | |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " 文本编码设置 | |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " encoding: Vim 内部使用的字符编码方式,包括 Vim 的 buffer (缓冲区)、菜单文 | |
| " 本、消息文本等。用户手册上建议只在 .vimrc 中改变它的值。 | |
| set encoding=utf-8 | |
| " fileencodings: Vim 启动时会按照它所列出的字符编码方式逐一探测即将打开的文 |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH=/home/wo/.oh-my-zsh | |
| # Set name of the theme to load. Optionally, if you set this to "random" | |
| # it'll load a random theme each time that oh-my-zsh is loaded. | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
| # 主题设置 |