Skip to content

Instantly share code, notes, and snippets.

View zjyExcelsior's full-sized avatar

Zhu Jiongyao zjyExcelsior

View GitHub Profile
@zjyExcelsior
zjyExcelsior / addpath.py
Last active May 2, 2016 15:18
在当前目录下,将该目录下的package文件夹路径添加到系统路径中
#coding=utf-8
import os
import sys
curdir = os.path.dirname(os.path.realpath(__file__))
sys_paths = []
sys_paths.append(os.path.join(curdir, "packages"))
for p in sys_paths:
sys.path.insert(0, p)
@zjyExcelsior
zjyExcelsior / basic.html
Created May 2, 2016 11:46
Basic template for html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
@zjyExcelsior
zjyExcelsior / 2016.4.25.md
Last active April 24, 2016 17:01
OS X 10.11下,执行`virtualenv venv`命令出错的解决方法

OS X 10.11下,执行virtualenv venv,提示

Operation not permitted: '/usr/local/bin/easy_install'之类错误

解决方法为:rm -rf .pydistutils.cfg

@zjyExcelsior
zjyExcelsior / change_git_history.sh
Created April 22, 2016 09:43
The script to change the Git history of my repository.
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="[email protected]"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="[email protected]"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"