Skip to content

Instantly share code, notes, and snippets.

View wy-ei's full-sized avatar
😃
Learning

WangYu wy-ei

😃
Learning
View GitHub Profile
@wy-ei
wy-ei / import.py
Last active June 14, 2019 08:41
neo4j 提供了数据导入工具,但是使用命令行输入太繁琐,多有不便。此处提供一个辅助工具帮助导入。
#coding=utf-8
import sys
import json
import os
import logging
import glob
logging.basicConfig(level=logging.DEBUG,
format="%(asctime)s - %(message)s",
html {
font-size: 100px;
background: #fff;
}
body{
font-size: .14rem;
position: relative;
min-height: 100vh;
color: #000;
(function(){
let comments = document.querySelectorAll('.js-minimizable-comment-group');
let list = [];
[].slice.call(comments, 0).forEach(comment => {
let heads = comment.querySelectorAll('.js-comment h2');
let ref = '#' + comment.getAttribute('id');
if(ref.match(/^#issuecomment/)){
[].slice.call(heads, 0).forEach(head => {
list.push(`- [${head.innerHTML}](${ref})`);
});
int CDate::operator-(const CDate d)const{
int days;
int nm = (_Month + 9) % 12; //
int ny = _Year - nm / 10;
int nd = 365 * ny + ny / 4 - ny / 100 + ny / 400 + (nm * 306 + 5) / 10 + (_Day - 1);
int nm1 = (d._Month + 9) % 12;
int ny1 = d._Year - nm1 / 10;
int nd1 = 365 * ny1 + ny1 / 4 - ny1 / 100 + ny1 / 400 + (nm1 * 365 + 5) / 10 + (d._Day - 1);