CodeBottle

CodeBottle

MIT-licensed reusable code snippets

2 followers

CodeBottle is a quick way to share code snippets which one re-use and/or learn from. It's for things too small for a library, but big enough that you waste some time on during a project development :) It can be used to share example code too.
CodeBottle gallery image
CodeBottle gallery image
Launch Team
AssemblyAI
AssemblyAI
Build voice AI apps with a single API
Promoted

What do you think? …

Sandoche
I love it but I would like to have an online demo of the script (with Codepen for example) or a screenshot when not possible.
Yousef Sultan
@sandochee The website contains arbitrary code of arbitrary languages - do you have a proposed idea to go about this?
Sandoche
@overcoder0 Yep saw that, that's why it's a bit hard :/ Maybe you can start detecting the language and display it with codepen or even this codesandbox, not sure if their API let you do this though
Yousef Sultan
@sandochee Codesandbox sounds interesting, I'll check to see I can make an integration with them. Thanks!
Salil Sethi
@sandochee Agree with this comment. Maybe just focus on javascript for now and let people try it out interactively. This can turn into a super useful website. A simple curated version of stackoverflow.
Yousef Sultan
@salil_sethi Focusing on JavaScript is also a viable option. I'll definitely look into this.
Yousef Sultan
All feedback is highly appreciated :) UPDATE: We're working on this:
Toby Cook
@overcoder0 Great idea!
Yousef Sultan
@tobyfcook Thanks! Let me know if you have any idea to improve this.
Chris Messina
@overcoder0 would be really cool if @t4t5 incorporated this into his app Codespace!
Samantha Q
Wow this is awesome!
Benjamin Lupton
These are snippets, without any packaging, as such it is up to the consumer to generate and include the copyright notices - the [copy] button doesn't include the appropriate attribution nor copyright notice - and there is no guide on applying the license integration alongside one's own project licensing. Seems it is just asking for inadvertent copyright violations and plagiarism. Why not unlicense? With the copy button including a comment with the permalink and the license. The attribution comment alone would be nice for MIT, however unlicense doesn't also require the project's copyright notices to be redone for the inclusion, as once the unlicense code is embedded into a project, it would inherit the project's license.
Yousef Sultan
@balupton Sorry if I am getting this wrong- MIT license does not require any form of attribution. Thus, content can be used without having to worry about providing a backlink to the website, the author or any other entity.
Benjamin Lupton
@overcoder0 It says directly in the MIT license that its only requirement is the copyright notice (which includes the author) and the license must be retained for the substantial work. "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software." https://choosealicense.com/licen... You should be using Unlicense if a lack of attribution and copyright notice is your intent: https://choosealicense.com/licen... https://en.wikipedia.org/wiki/Un...
Yousef Sultan
@balupton Ah, well it makes a lot of sense to switch to Unlicense then! I'll definitely look into that. Thanks!
Gina
Would be cool to see Swift as a language option
Yousef Sultan
@ginaoftherose Swift has just got added!
Kye Lewis
My feedback.. the discovery needs to be broader, I didn't see a way to view top rated snippets for example? Also search needs to be smarter. A search for color and colour turn up different exclusive results, and neither show up snippets about RGB, which are about colors but don't contain the term.
Yousef Sultan
@kyelewis This feels accurate. I'll put this on the list!
Kartik
The site is down!