Posts with #javascript tag

Leveraging Rust in Python and JavaScript

I had several opportunities to hack with Rust, but so far, besides this very high loaded Web service that runs in production, it was either on prototypes or on stuff that could have been...

JavaScript return await

A very short article about one of the recent bugs I carelessly designed :) I wrote the code below and had certain expectations: no matter what happens, catch the error and return a fallback value....

Check content hash between server and client

In order to make sure that your remote content was fetched successfully by your client, we can use a bit of cryptography. A simple way is to compute a hash on the server, and let the client...

Placeholder for empty lists in CSS

Call me a weirdo but one of my guilty pleasures is to implement minimalist apps with vanilla JavaScript. Especially now that we can do ES6, async/await and even modules, it's a bliss! No npm, no...

Embed Daybed forms

A brief article to introduce backbone-daybed, a few helpers to render Web forms for Daybed models. Daybed, lay down and REST Daybed is a data validation and storage API, written in Python, using...

Test your Leaflet applications with Mocha

Pretty much like n1k0, I feel like I had learned Javascript three or four times, from the alert() back in 1997 to this article about automatic testing. I must admit that, lately, most of my...

Leaflet Tiles in Lambert 93 projection (2154)

What purpose ? Ideally, unless living in Lapland, we should not be bothered that much about maps projections ! Unfortunately, in practice, there are a few contexts in which you simply can't avoid...

Django Handlebars.js integration

In order to write Handlebars.js templates in Django templates, I was gonna copy and paste for the second time Miguel Araujo's verbatim snippet. But since one of the Django weakness is the lack of...

Carte des vélos avec Leaflet

Article original publié chez Makina Corpus Les bookmarks, un peu comme les cahiers de recettes, c'est bien de les remplir mais encore faut-il trouver les bons au moment adéquate ! Même quand il...

URL reverse en Javascript avec django

Article original publié chez Makina Corpus Un aspect fondamental de la philosophie django consiste à éviter toute sorte de redondance : Don't Repeat Yourself. La tentation est souvent trop belle,...

More...