Skip to content

Instantly share code, notes, and snippets.

View mikeshi80's full-sized avatar

Mike Shi mikeshi80

  • Shanghai Hyron Software Co Ltd.
  • Shanghai, China
View GitHub Profile
@mikeshi80
mikeshi80 / vimrc.vim
Created February 4, 2017 07:36
vimrc.vim with ycm and colored code
set nocompatible
filetype off
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,chinese
set fileencoding=utf-8
set termencoding=utf-8
language messages zh_CN.utf-8
set nocompatible
filetype off
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,chinese
set fileencoding=utf-8
set termencoding=utf-8
language messages zh_CN.utf-8
@mikeshi80
mikeshi80 / extractcomment.py
Last active April 15, 2024 22:17
Extract the comments from the C/C++ style source code to the same name add .cmt ext name. Usage is python extractcomment.py topdir .ext1 .ext2 ... You can set the encoding to read and write file correctly. Reference the source here http://www.cppblog.com/luyulaile/archive/2012/12/03/195907.html
#!/usr/bin/env python
import sys
import re
import os.path
import codecs
import os
encoding = 'cp932'
@mikeshi80
mikeshi80 / vimrc.vim
Last active October 10, 2015 09:34
my vim rc file. Current version is for NodeJS development.
set nocompatible
filetype off
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,chinese
set fileencoding=utf-8
set termencoding=utf-8
language messages zh_CN.utf-8