Both examples you posted about are okay and don't fit the file hosting rule. You don't have to worry there.
Now if you are just storing scripts without it being part of your site, or you have a public uploader on your site without restricting it from the public and/or it has nothing to do...