my selected useful codes.