Skip to content

Instantly share code, notes, and snippets.

@lcheylus
lcheylus / nvim_init.lua
Created October 8, 2025 16:35
Minimal configuration file for Neovim
-- Minimal configuration file for Neovim
-- Check if needed commands are available
local function is_command_available(cmd)
-- os.execute returns true (or exit code 0) if the command exists
local result = os.execute('command -v ' .. cmd .. ' >/dev/null 2>&1')
-- Lua 5.2+ returns true on success, or nil/false on failure
-- Lua 5.1 returns status code shifted left (e.g., 0 = success)
if result == true or result == 0 then
@lcheylus
lcheylus / get_covid19_datas.py
Last active March 29, 2020 08:00
Get Covid-19 datas (total cases, deaths) for France by date
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Get datas for Covid-19 in France (2020).
Datas extracted from https://github.com/opencovid19-fr/ (JSON format)
Python script by Laurent Cheylus (foxy@free.fr)
"""