Nicd
LanguageColours - Get colours for programming languages
I needed a way to get the GitHub colours for programming languages based on their name (as in the colours used in the bars that show how much of each language a project has) so I wrote a small library for it. You can find it at language_colours | Hex
I also wanted to learn how to structure a library to be configurable so it’s a bit overkill in that regard but should be simple to use. It has support for a fallback in case the language is not found, using the Rainbow package.
Actually currently I have an issue with the 1.0.0. It has a mix task that lets you download the colour data. This task uses httpc and thus it uses inets also. When compiling, it complains that the current project doesn’t have inets in the applications list. But it’s only used in this task so I don’t think it should be there at all. How should I get rid of this message?
Most Liked
03juan
Fair enough, coming from José I guess that’s all one can do… Sorry for necroing the thread.
For what it’s worth I’ve learned some good things related to configuration and dependency injection from your code. Thank you.
03juan
Yes, I did note of the map interface and I’m also partial to that; probably a remnant of my Ruby days.
Always good to see how others implement things even if it’s not necessarily “the done way”, can always learn something when I’m sitting in the butt-end of the world without personal mentors.








