Now I would like to share it so others can use.
To me, this sounds like you need a distribution platform. And the Stack Exchange network is not a distribution platform. It's a Q&A network. Using SO for code distribution is like going on Jeopardy to try to sell something. You're looking in the wrong place.
I would suggest taking a look at existing options that are geared towards code distribution (GitHub, BitBucket, and Google Code are some off the top of my head). They would be much more friendly to both you and your users for something like that.
or what if I want to keep some rights for myself about project? like copyright or copy left?
If you find a valid reason to post your project onto SO and are worrying about licensing/copyright, you should probably give the licensing terms of SO a read. At the bottom of each page you see this:
user contributions licensed under cc by-sa 3.0 with attribution required
Which are probably a good start. You do give up some rights when posting content to SO, but unfortunately I don't have the knowledge to tell you exactly what rights you lose, so I'd recommend looking through those yourself and figuring out whether you are comfortable with those terms.