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
[alias]
a = add
aa = add -A # Stage all changes.
amend = commit --amend
ap = add -p # Stage changes chunk by chunk
b = branch -v # Shorthand for branch (verbose)
ba = branch -av
c = commit
ca = !git add -A && git commit # Commit all changes.
@myanbin
myanbin / gist:782ab2d588e57cd28b86bed09d33e0a3
Created May 2, 2017 04:31
给兮兮写的签到签退代码
// ==UserScript==
// @name AutoSign Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 给兮兮写的签到签退代码
// @author Yanbin Ma ([email protected])
// @match https://web.jingoal.com/*
// @grant none
// @require https://cdn.bootcss.com/jquery/2.0.1/jquery.min.js
// ==/UserScript==
#!/bin/sh
#用户名及密码设置
USERNAME=2011110625
PASSWD=100016
URL_LOGIN=http://gw.bupt.edu.cn
URL_LOGOUT=http://gw.bupt.edu.cn/F.htm
URL_RELOGIN=http://gw.bupt.edu.cn/a11.htm
@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
@myanbin
myanbin / resume.md
Last active December 22, 2015 04:39
这是我的中文简历草稿,欢迎大家提出一些意见~~

马艳彬

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

教育背景

@myanbin
myanbin / gist:6353492
Created August 27, 2013 13:27
英中单词转换脚本,数据文件
abandon||抛弃
abandonment||放弃
abasement||滥用
abbreviation||缩写
abeyance||缓办
abide||遵守
ability||能力
abnormal||反常的
aboard||船上
abolish||废除
@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 / 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 / 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 / _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