Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Shi mikeshi80

  • Shanghai Hyron Software Co Ltd.
  • Shanghai, China
View GitHub Profile
@mikeshi80
mikeshi80 / extractcomment.py
Last active Mar 21, 2019
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
View extractcomment.py
#!/usr/bin/env python
import sys
import re
import os.path
import codecs
import os
encoding = 'cp932'
@mikeshi80
mikeshi80 / vimrc.vim
Created Feb 4, 2017
vimrc.vim with ycm and colored code
View vimrc.vim
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 / vimrc.vim
Last active Oct 10, 2015
my vim rc file. Current version is for NodeJS development.
View vimrc.vim
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
View vimrc.vim
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