Skip to content

Instantly share code, notes, and snippets.

@pierremonico
pierremonico / Localize Vue files with Django `makemessages`.md
Last active January 8, 2025 10:44
Localize Vue files with Django `makemessages`

NB: the whole approach of serving a Vue project through Django is less than ideal, so this can be seen as deprecated.

Intro

The goal of this gist is to be able to use the built-in makemessages command of Django on your Vue frontend. You can then expose a JavaScript catalog and localize your frontend using gettext.

Following assumptions are made:

  • The directory for the frontend lives in your Django project
  • You are using components (.vue files)

Include the JS Catalog view

Somewhere in urls.py:

@bretton
bretton / inbound-liquidity-ln.md
Last active March 11, 2025 09:14
How to get Inbound Liquidity on the Lightning Network

How to get Inbound Liquidity on the Lightning Network

There are several ways you can find inbound liquidity on LN.

1. Wait

If your node is up 24x7 and you have some outgoing channels, the network will connect to you if you simply wait.

However, it might take a couple of weeks to get a significant amount of incoming liquidity, and ideally you want your outgoing liquidity to match too.

@tkrotoff
tkrotoff / FrontendFrameworksPopularity.md
Last active January 7, 2026 22:03
Front-end frameworks popularity (React, Vue, Angular and Svelte)