Title=Coding Example Created=2011-05-02 Categories=coding Tags=python,html -----#####----- so let us look at syntax highlighting and see what will happen after I added pygments
import markdown2
from pygments.lexers import guess_lexer
| set nocompatible | |
| set nobackup | |
| set nowritebackup | |
| set noswapfile | |
| set history=100 | |
| set incsearch | |
| set tabstop=4 | |
| set softtabstop=4 | |
| set shiftwidth=4 | |
| set expandtab |
| autoload -U colors && colors | |
| autoload -U compinit && compinit | |
| # completion | |
| zstyle ':completion:*' menu select | |
| setopt completealiases | |
| # history | |
| HISTFILE=$HOME/.zsh_history | |
| HISTSIZE=1000 |
| # 100 posts - 5 images | |
| Shirayuki ~/Projects/drupan venv | |
| $ time python drupan.py ~/tmp/screamingatmyscreen/config.yaml --nodeploy | |
| python drupan.py ~/tmp/screamingatmyscreen/config.yaml --nodeploy 0,77s user 0,06s system 99% cpu 0,835 total | |
| # 200 posts - 10 images | |
| Shirayuki ~/Projects/drupan venv | |
| $ time python drupan.py ~/tmp/screamingatmyscreen/config.yaml --nodeploy | |
| python drupan.py ~/tmp/screamingatmyscreen/config.yaml --nodeploy 0,95s user 0,08s system 97% cpu 1,033 total |
| reader: "filesystem" | |
| writer: "filesystem" | |
| plugins: ["markdown", "blank", "tags"] | |
| deployment: "s3sub" | |
| url_scheme: | |
| index: "" | |
| archive: "/archive/" | |
| tag: "/tag/%slug/" | |
| post: "/%year/%month/%slug/" | |
| page: "/%slug/" |
| Shirayuki ~/Playground/wrtc | |
| $ npm install wrtc | |
| / | |
| > wrtc@0.0.22 install /Users/timo/Playground/wrtc/node_modules/wrtc | |
| > node-pre-gyp install --fallback-to-build | |
| node-pre-gyp ERR! Source compile required: 404 status code downloading tarball | |
| ACTION Run build script /dev/null | |
| TARGET_ARCH=x64 r5982 Release | |
| Preparing directories ... done |
| { | |
| "name": "wrtc", | |
| "description": "Standards-compliant WebRTC implementation for Node", | |
| "keywords": [ | |
| "webrtc", | |
| "p2p", | |
| "peer" | |
| ], | |
| "version": "0.0.22", | |
| "author": { |
| autoload -U colors && colors | |
| autoload -U compinit && compinit | |
| autoload -Uz vcs_info | |
| # completion | |
| zstyle ':completion:*' menu select | |
| setopt completealiases | |
| # history | |
| HISTFILE=$HOME/.zsh_history |
| autoload -U colors && colors | |
| autoload -U compinit && compinit | |
| autoload -Uz vcs_info | |
| # completion | |
| zstyle ':completion:*' menu select | |
| setopt completealiases | |
| # history | |
| HISTFILE=$HOME/.zsh_history |
Title=Coding Example Created=2011-05-02 Categories=coding Tags=python,html -----#####----- so let us look at syntax highlighting and see what will happen after I added pygments
import markdown2
from pygments.lexers import guess_lexer
| # -*- coding: utf-8 -*- | |
| import io | |
| def write(site): | |
| """ | |
| write content to disc | |
| <- site object | |
| """ |