@Mohammad Simply check against the on-topic checklist, from the [help/on-topic]:
1) Does my question contain code? (Please include the code in the question, not a link to it)
2) Did I write that code?
3) Is it actual code from a project rather than pseudo-code or example code?
4) Do I want the code to be good code, (i.e. not code-golfing, obfuscation, or similar)
5) To the best of my knowledge, does the code work?
6) Do I want feedback about any or all facets of the code?