Skip to content

Instantly share code, notes, and snippets.

@Alfred-Sun
Alfred-Sun / d_redcarpet.rb
Created March 8, 2015 16:09
Used to debug issue one and issue two fo redcarpet under windows
# Use Jekyll process function
module CommonMethods
def add_code_tags(code, lang)
code = code.to_s
code = code.sub(/<pre>/, "<pre><code class=\"language-#{lang}\" data-lang=\"#{lang}\">")
code = code.sub(/<\/pre>/,"</code></pre>")
end
end
module WithPygments
include CommonMethods
@Alfred-Sun
Alfred-Sun / issue_two.md
Last active August 29, 2015 14:16
missing h2 start tag when prasing with redcarpet 3.2.2

光标移动

h,j,k,l = ←, ↓, ↑, →
ctrl+f = 下一页(forward)
ctrl+b = 上一页(backward)
w = 跳到下一个单词的开头
W = 跳到下一个单词(空白分隔)的开头
e = 跳到下一个单词的末尾
E = 跳到下一个单词(空白分隔)的末尾
b = 跳到前一个单词的开头
@Alfred-Sun
Alfred-Sun / issue_one.md
Last active August 29, 2015 14:16
missing h2 end tag when prasing with redcarpet 3.2.2

光标移动

h,j,k,l = ←, ↓, ↑, →
ctrl+f = 下一页(forward)
w = 跳下一个单词的开头
W = 跳到下一个单词(空白分隔)的开头
0 = 跳到本行行头
可以匹配 b,be,bee,beee 等
@Alfred-Sun
Alfred-Sun / .vimrc
Last active August 29, 2015 14:14 — forked from JeffreyWay/.vimrc
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@Alfred-Sun
Alfred-Sun / _vimrc
Last active August 29, 2015 14:14 — forked from cycold/_vimrc
"------default settings安装完就有放入设置---------------
set nocompatible "关闭兼容模式
"模仿win快捷键,如Ctrl+a 全选, Ctrl+c 复制 Ctrl + v 粘贴等
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
"设置无自动备份文件 如index.php~
set nobackup
Class CustomerInfo
Protected PreviousCustomer As CustomerInfo
Protected NextCustomer As CustomerInfo
Public ID As Integer
Public FullName As String
Public Sub InsertCustomer(ByVal FullName As String)
' Insert code to add a CustomerInfo item to the list.
End Sub