Skip to content

Instantly share code, notes, and snippets.

View myanbin's full-sized avatar
🎉
I may be slow to respond.

Ma Yanbin myanbin

🎉
I may be slow to respond.
View GitHub Profile
@myanbin
myanbin / .bashrc
Created August 15, 2012 04:52
彩色终端
alias code='cd /cygdrive/n/code'
alias ls='ls --color'
# Candy colored terminal
# write on 2012/08
__git_ps1() {
local b="$(git symbolic-ref HEAD 2>/dev/null)"
if [ -n "$b" ]; then
printf "(%s)" "${b##refs/heads/}"
@myanbin
myanbin / .vimrc
Created August 15, 2012 04:55
我的终端下的Vim配置
" Basics {
set nocompatible
set background=dark
syntax on
" }
" General {
filetype plugin indent on
set backspace=indent,eol,start
set encoding=utf-8
@myanbin
myanbin / Custom.css
Last active November 22, 2015 14:57
谷歌浏览器用户自定义样式表
/** The Google Chrome Custom Style **/
body, div {font-family: "Microsoft Yahei" !important;}
table, tbody, th, td {font-family: "Microsoft Yahei" !important;}
h1, h2, h3, h4 ,h5, h6 {font-family: "Microsoft Yahei" !important;}
ul, ol, li {font-family: "Microsoft Yahei" !important;}
p, a, input {font-family: "Microsoft Yahei" !important;}
#wrapper {font-family: "Microsoft Yahei" !important;}
#content {font-family: "Microsoft Yahei" !important;}
#containner {font-family: "Microsoft Yahei" !important;}
@myanbin
myanbin / _vimrc
Created November 21, 2012 09:44
图形界面的gVim配置文件
" The vim configuration file
"
" Author : Yanbin MA
" Date : 2011-04-09 07:00
" Don't use vi-compatible mode
set nocompatible
" Set backspace config
set backspace=indent,eol,start
@myanbin
myanbin / cloud.clp
Created December 6, 2012 04:06
识别云种类的专家系统
;;;======================================================
;;; Cloud Identification Expert System
;;;
;;; A simple expert system which attempts to identify
;;; an cloud based on its characteristics.
;;; The knowledge base in this example is a
;;; collection of facts which represent backward
;;; chaining rules. CLIPS forward chaining rules are
;;; then used to simulate a backward chaining inference
;;; engine.
@myanbin
myanbin / spider.py
Last active December 15, 2015 06:59
爬取网页图片的Python脚本
#!usr/bin/python
import urllib
import urllib2
import re
# Edit this variant to name the download images
index = 6000
@myanbin
myanbin / gist:6353470
Created August 27, 2013 13:25
KJV Bible
This file has been truncated, but you can view the full file.
Holy Bible, Authorized (King James) Version, Textfile 930105.
Ge1:1 In the beginning God created the heaven and the earth.
Ge1:2 And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters.
Ge1:3 And God said, Let there be light: and there was light.
Ge1:4 And God saw the light, that it was good: and God divided the light from the darkness.
Ge1:5 And God called the light Day, and the darkness he called Night. And the evening and the morning were the first day.
Ge1:6 And God said, Let there be a firmament in the midst of the waters, and let it divide the waters from the waters.
Ge1:7 And God made the firmament, and divided the waters which were under the firmament from the waters which were above the firmament: and it was so.
Ge1:8 And God called the firmament Heaven. And the evening and the morning were the second day.
Ge1:9 And God said, Let the waters under the heaven be gathered together unto one place, and let the dry land a
@myanbin
myanbin / gist:6353492
Created August 27, 2013 13:27
英中单词转换脚本,数据文件
abandon||抛弃
abandonment||放弃
abasement||滥用
abbreviation||缩写
abeyance||缓办
abide||遵守
ability||能力
abnormal||反常的
aboard||船上
abolish||废除
@myanbin
myanbin / resume.md
Last active December 22, 2015 04:39
这是我的中文简历草稿,欢迎大家提出一些意见~~

马艳彬

北京邮电大学计算机专业 2015 年应届硕士毕业生

教育背景

@myanbin
myanbin / spider.py
Last active December 28, 2015 13:49
#!/usr/bin/env python
"""This Spider find the images on http://jandan.net/ooxx and
download it to local directory"""
import urllib
import urllib2
import re
# Edit this variant to name the download images