Nicd

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?

First Post!

03juan

03juan

This Elixir v1.11 release note on Compiler checks: application boundaries should help.

Most Liked

03juan

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

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.

Where Next?

Popular in Announcing Top

Azolo
Hey everyone, I just released WebSockex which is a Elixir WebSocket client. WebSockex strives to work as a OTP special process, be RFC6...
New
josevalim
Yes, yet another parser combinator library! Most of the parser combinators in the ecosystem are either compile-time, often using AST tra...
159 19951 141
New
devonestes
Introducing assertions, the library that helps you write really great test assertions! GitHub: GitHub - devonestes/assertions: Helpful a...
New
sasajuric
I’d like to announce a small library called boundaries. This is an experimental project which explores the idea of enforcing boundaries ...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44265 214
New
mathieuprog
Hello :waving_hand: Allow me to introduce you to Tz, an alternative time zone database support to Tzdata. Why another library? First a...
New
benlime
LiveMotion enables high performance animations declared on the server and run on the client. As a follow up to my previous thread A libr...
New

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31586 112
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44778 311
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement