Skip to content

Instantly share code, notes, and snippets.

View divarvel's full-sized avatar

Clément Delafargue divarvel

View GitHub Profile
2026-07-04T19:16:16.081 helix_lsp::transport [INFO] ocamllsp -> {"jsonrpc":"2.0","method":"ocamllsp/typeSearch","params":{"doc_format":"","limit":10,"position":366,"query":"Db.task","textDocument":"<redacted>/lib/render.ml","with_doc":false},"id":1}
2026-07-04T19:16:16.082 helix_lsp::transport [INFO] ocamllsp <- {"id":1,"jsonrpc":"2.0","error":{"data":{"exn":"Ppx_yojson_conv_lib__Yojson_conv.Of_yojson_error(_, _)","backtrace":"Raised at Ppx_yojson_conv_lib__Yojson_conv.of_yojson_error in file \"yojson_conv.ml\", line 57, characters 34-80\nCalled from Lsp__Types.TextDocumentPositionParams.t_of_yojson.(fun).iter in file \"lsp/src/types.ml\", line 50269, characters 30-64\nCalled from Lsp__Types.TextDocumentPositionParams.t_of_yojson.(fun) in file \"lsp/src/types.ml\", line 50284, characters 7-25\nCalled from Ocaml_lsp_server__Req_type_search.TypeSearchParams.t_of_yojson in file \"ocaml-lsp-server/src/custom_requests/req_type_search.ml\", line 19, characters 31-84\nCalled from Ocaml_lsp_server__Req_type_search.on
Repo: https://github.com/divarvel/homepage
build script: https://github.com/divarvel/homepage/blob/main/statichost_build.sh
open Vif
module Reduction = struct
type t = Standard
let assoc = [ ("STANDARD", Standard) ]
let jsont = Jsont.enum ~kind:"Reduction" assoc
end
module Country = struct
---
title: "Bon c’est bien joli vos technos de hipster, mais moi je fais de la prod"
#display-notes: true
#light: true
#ratio43: true
overlay: "@clementd"
author:
- name: Clément Delafargue
desc:
- Software developer at <a href="https://datadoghq.com">Datadog</a>
{
"name": "Iris Rev. 7",
"vendorProductId": 3406852694,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_MUTE",
"KC_1",
"KC_2",
"KC_3",
theme = "tokyonight_storm"
[editor]
rulers = [80,120]
auto-format = true
whitespace.render = "all"
file-picker.hidden = false
soft-wrap.enable = true
soft-wrap.wrap-at-text-width = true

Rust like a champ

  • leverage the type system
  • move constraints upstream
  • parse don't validate
  • make invalid states unrepresentable
  • type-driven dev
  • hexagonal architecture of sorts
  • DTOs / DAOs
@divarvel
divarvel / biscuit-datalog.kak
Created April 6, 2023 07:55
Kakoune support for biscuit datalog
# http://https://datalog-biscuit-lang.org
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
# Detection
# ‾‾‾‾‾‾‾‾‾
hook global BufCreate .*\.biscuit-datalog %{
set-option buffer filetype biscuitdl
}

+++ title = "Biscuit 3.0" description = "Version 3.0.0 of the biscuit reference implementation has been released" date = 2023-03-29T00:09:00+02:00 draft = false template = "blog/page.html"

[taxonomies] authors = ["clementd"]

import {Biscuit, Authorizer} from '@biscuit-auth/biscuit-wasm';
export function middleware(pubkey) {
return function(mkAuthorizer) {
return function(req, res, next) {
if(req.query.token) {
let parsed;
try {
let authorizer;
if(typeof mkAuthorizer === "function") {