This community is very small so I decided to share these two codes here.
Please comment if you used one.