The plan contains a sequence. It is necessary to think about whether a certain action requires pre-preparation, and cognition and understanding are required before making a decision. Decisions ...
Loop through files to find content
#!/opt/anaconda3/bin/python # -*- coding: UTF-8 -*- import os import sys def show_files(path, all_files): # 首先遍历当前目录所有文件及文件夹 file_list = os.listdir(path) # 准备循环判...
Take care of your missing data in the data preprocessing
# import the stand library import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('Data.csv') X = dataset.iloc[:, :-1].values pri...
Add automatic startup of HomeAssistant
➜ ~ which hass /usr/local/bin/hass sudo vim /etc/systemd/system/home-assistant@zhangyuqing.service ➜ ~ cat /etc/systemd/system/home-assistant@zhangyuqing.service [Unit] Description=Home ...
Mail config of the latest phabricator
{ "metamta.default-address": "xxx@5288z.com", "metamta.reply-handler-domain": "5288z.com", "cluster.mailers": [ { "key": "smtp", "type": "smtp", "options": { ...
Slow is fast
Slow direction, fast landing. Slow goals, fast execution. 慢就是快制定方向的时候要慢,落地要快。制定目标的时候要慢,执行要快。
Responding to unexpected events
It is the least unexpected thing to encounter unexpected situations in the plan. When planning management, it is necessary to add a mechanism and time to respond to emergencies to retain flexibili...
What is a strategy
Reasonable strategies are effective first, and the odds of winning are greater. The acquaintance matchmaking we often use in our lives is an effective strategy with a high chance of winning. Somet...
Have curiosity and initiative
The curiosity referred to here is to brush your head, unsolved cognition attracts you to dig down curiously. It is an excellent habit to like reading books. From excellence to excellence depends o...
Build a sense of purpose
A sense of purpose is a perception of the direction of doing things. You can perceive when the direction is right, you can continue to advance, and when the direction may be wrong and need to be a...
Persuade others effectively
There are several rules to effectively persuade others in social psychology: The law of reciprocity When others have given us certain benefits, we will instinctively return to each other. Th...
Effective review
The first step in effective review is to build awareness, and the key to this step is to grasp the big and let go of the small. With so many things happening, it is impossible for everything to be...
Motivation to trigger behavior
The fear of not getting what you want is the mentality of suffering Fear of losing what you already have is a mentality of loss Wanting to do but unwilling to bear the possible unfavorable r...