Learning notes on codes and math