collection of  misc codes when learn or doing some trivial things.