This is to clarify the terms of "There are no restrictions on how you reuse this code."
As explained here, there are several problems with simply stating that others can freely use a work without restriction:
There's no guarantee that that permission cannot be retracted at any point
Under jurisdictions that don't recognise public domain (e.g. USA), the author is still liable for warranty claims if the work causes harm, unintentional or not
Therefore it is useful to include a strong "public domain" license, as it protects users and authors.
I've chosen CC0 as it's very common, but others such as unlicense are also fine, as they contain the warranty disclaimer.
If you want to retain copyright, permissive licenses like MIT/X11 or BSD are also good.
This is to clarify the terms of "There are no restrictions on how you reuse this code."
As explained here, there are several problems with simply stating that others can freely use a work without restriction:
Therefore it is useful to include a strong "public domain" license, as it protects users and authors.
I've chosen CC0 as it's very common, but others such as unlicense are also fine, as they contain the warranty disclaimer.
If you want to retain copyright, permissive licenses like MIT/X11 or BSD are also good.