Skip to content

Instantly share code, notes, and snippets.

View fdmysterious's full-sized avatar

Florian Dupeyron fdmysterious

View GitHub Profile
@fdmysterious
fdmysterious / hello.txt
Created June 8, 2022 09:06
Gist de test
Coucou c'est moi
@fdmysterious
fdmysterious / vscode-extensions.md
Last active October 10, 2023 12:06
Some memo for vscode extensions I find interesting
@fdmysterious
fdmysterious / documentation-tools.md
Last active May 3, 2023 11:43
Documentation tools

Dumb index of documentation tools

This is a personal list of some documentation tools that I find useful

Note taking

  • Obsidian : Note taking program using markdown. Has a bunch of extensions which can be versionnable in a git repo easily.
@fdmysterious
fdmysterious / Justfile-for-docker.md
Last active November 27, 2024 02:07
Justfile for docker

Justfile for docker

This gist shows how to use the just command runner for a docker based project. The trick is to give the ability to call the recipes inside or outside the container, making it compatible for example with pipelines, or Devcontainers.

image_name := env_var_or_default("IMAGE_NAME", "buildenv:componentTesting")

# https://stackoverflow.com/questions/23513045/how-to-check-if-a-process-is-running-inside-docker-container
@fdmysterious
fdmysterious / doxygen_stuff.md
Last active December 12, 2023 16:54
Doxygen header/source template

Header file

/**
 * @author Name <[email protected]>
 * @date July 2023
 * @brief Blahblah
 */

#pragma once
@fdmysterious
fdmysterious / noise_meditation.fst
Last active October 24, 2023 14:59
Fun with the Faust programming language for meditating sounds
// Load in FAUST IDE: https://faustide.grame.fr/?autorun=1&voices=0&name=noise_meditation&inline=aW1wb3J0KCJzdGRmYXVzdC5saWIiKTsNCg0KUSA9IDI7DQoNCm1hcCh2X21pbiwgdl9tYXgpID0gXyA6ICoodl9tYXgtdl9taW4pIDogKyh2X21pbik7DQoNCmZjX2wgPSBvcy5vc2NwKDAuMDgsIDAuMCkgOiAqKDAuNSkgOiArKDAuNSkgOiBtYXAoNTAwLCAxMDAwKTsNCmZjX3IgPSBvcy5vc2NwKDAuMDgsIDEpIDogKigwLjUpIDogKygwLjUpIDogbWFwKDUwMCwgMTAwMCk7DQoNCm9zY19uICA9IG5vLm5vaXNlOw0KZmlsdF9sID0gZmkucmVzb25scChmY19sLCBRLCAxLjApOw0KZmlsdF9yID0gZmkucmVzb25scChmY19yLCBRLCAxLjApOw0KDQpmaWx0X2MgPSBmaS5yZXNvbmxwKDE1MCwgNSwgNC4wKTsNCg0KY2hhbl9sID0gKG9zY19uIDogZmlsdF9sKSwgKG9zY19uIDogZmlsdF9jKSA6ICs7DQpjaGFuX3IgPSAob3NjX24gOiBmaWx0X3IpLCAob3NjX24gOiBmaWx0X2MpIDogKzsNCg0KZ2FpbiAgID0gaHNsaWRlcigiR2FpbiIsIDAuMiwgMC4wLCAxLjAsIDAuMDEpIDogc2kuc21vbzsNCg0KcHJvY2VzcyA9IGNoYW5fbCAqIDAuNCAqIGdhaW4sIGNoYW5fciAqIDAuNCAqIGdhaW47
import("stdfaust.lib");
Q = 2;
map(v_min, v_max) = _ : *(v_max-v_min) : +(v_min);
fc_l = os.oscp(0.08, 0.0) : *(0.5) : +(0.5) : map(500, 1000);
fc_r = os.oscp(0.08, 1) : *(0.
@fdmysterious
fdmysterious / named_arguments.c
Created December 1, 2023 23:29
Named argument in C99
/**
* \brief Named arguments in C99
* \author Florian Dupeyron <[email protected]>
*/
#include <stdlib.h>
#include <stdio.h>
struct FooArgs {
int a;
@fdmysterious
fdmysterious / preview-style.css
Created January 8, 2024 10:23
Better vscode markdown preview
body {
max-width: 1000px;
margin: auto;
}
img {
display: block;
margin-left: auto;
margin-right: auto;
}