Skip to content

Instantly share code, notes, and snippets.

@DadKeats
DadKeats / .py
Created December 28, 2018 13:25
gen_data.py
from __future__ import print_function
import sys
import datetime
import random
def main(n):
start = -86400*365*20
end = 86400*365
filename = 'testdata.txt'
with open(filename, 'w') as fp:
@DadKeats
DadKeats / txt
Last active December 12, 2018 02:59
daodejing
1.1
Is it not a , said the Master, to acquire knowledge and put it into practice? Is it not a pleasure to meet friends coming from afar? Is he not an intelligentleman, who is careless alike of being known or unknown?
子曰:“学而时习之,不亦说乎?有朋自远方来,不亦乐乎?人不知,而不愠,不亦君子乎?”
1.2
Few who respect parents and their elders, said Master You, would do anything against their superiors. None who do nothing against their superiors would rise in revolt. An intelligentleman should be fundamentally good. A fundamentally good man will behave in the right way. Respect for one's parents and elder brothers is the fundamental quality for a good man.
有子曰:“其为人也孝弟,而好犯上者,鲜矣;不好犯上,而好作乱者,未之有也。君子务本,本立而道生。孝弟也者,其为仁之本与!”