Skip to content

Instantly share code, notes, and snippets.

View jwz-ecust's full-sized avatar
:shipit:
=。=

jwzhang jwz-ecust

:shipit:
=。=
View GitHub Profile
@jwz-ecust
jwz-ecust / goose_chinese.py
Created March 14, 2017 14:20
简单的文章爬取库
# -*- coding: utf-8 -*-
# @Date : 2017-03-14 22:03:55
# @Author : "zhangjiawei"
# @Email : "aaronzjw@icloud.com"
# @Link : ${https://github.com/jwz-ecust}
# @Version : $Id$
from goose import Goose
from goose.text import StopWordsChinese
@jwz-ecust
jwz-ecust / 0_reuse_code.js
Created March 14, 2017 14:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jwz-ecust
jwz-ecust / read_contcar.py
Last active February 28, 2017 07:35
read contcar file, which is used to add CO mole to the slab
def read_contcar(contcar_path):
'''
read data from contcar file
return coordiante_array and atom_list
Target: 需要读取 原子种类, 原子坐标, 晶胞参数
return:
lattice (a. b. c)
atom, x, y, z, tf_x, tf_y, tf_z
'''
with open(contcar_path, 'r') as f: