I am a noob in GitHub and open source social programming. My GitHub account is less than a month old. To experiment with stuff, I would like to host chunks of code blah blah blah
tldr
ok, so here's the thing 1. For hosting loose chunks of code that don't belong to a particular project, is there any convention? Like, do I create a new repo for ALL those source codes? Or should I create a repo for C++ works, and another for Java and so on? If a small command line app has more than one source file (i.e. asdf.h asdf.cpp and zxcv.cpp) , should I create a whole new separate repo for it?
2. For hosting organized personal or team projects, how should I do it? Do I just move my entire project file created by my favourite IDE? Or do I just host the source files and resource files?
After intensive googling and looking at random people's repositories, I'm still super confused. Some precise answers to my questions would be nice. Thank you.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Lastly, please do list any other formal, unwritten, popular and/or counter-culture convention you know of.