Skip to content

Instantly share code, notes, and snippets.

View DiesIrae's full-sized avatar

Benoit R DiesIrae

View GitHub Profile
@DiesIrae
DiesIrae / cascadeDelete.ts
Last active March 22, 2022 20:10
Abstract Cascade Delete Hook for Keystone 6
// "@keystone-next/types": "^22.0.0",
// "@keystone-next/keystone": "^22.0.0"
// The actual lib
// utils/keystone/cascadeDelete.ts
import { ListHooks } from "@keystone-next/types"
import { BaseGeneratedListTypes } from "@keystone-next/types/src/utils"
type BeforeDeleteType = Exclude<
ListHooks<BaseGeneratedListTypes>["beforeDelete"],
@DiesIrae
DiesIrae / cartprod.js
Last active August 20, 2020 08:42 — forked from sam-roth/cartprod.js
Google Sheets Function for Cartesian Products
// Usually, you'll want to transpose the input (`CARTESIAN_PRODUCT(TRANSPOSE(X1:Y2))`)
function CARTESIAN_PRODUCT(args) {
if (args.length === 0) {
return [];
}
var first = args[0].filter(function (x) { return x !== ""; });
if (args.length === 1) {
return first;
@DiesIrae
DiesIrae / LookBack.md
Last active May 11, 2018 08:42
Look back at Programming, JS, React, Redux
@DiesIrae
DiesIrae / readme.md
Last active March 3, 2020 10:12
Documentation technique du webchat Matcha

Webchat Matcha

Qui suis-je ?

Créé avec amour par l’équipe Matcha, je suis là pour accompagner vos clients dans vos achats de vin. En discutant de manière naturelle, comme le fait un caviste ou un sommelier, je les guide vers la ou les bouteilles correspondant à leurs envies :

  • Vins rouges léger autour de 8€
  • Avez-vous du Morgon à moins de 10€ ?
  • Quel vin ouvrir avec des lasagnes ?
  • Je cherche une bouteille à offrir à mon père : des idées autour de 20€ ?
  • ...
@DiesIrae
DiesIrae / magnum-privacy-policy.md
Created November 14, 2017 09:04
Magnum by Matcha Privacy Policy

Privacy Policy of the Magnum by Matcha Facebook app

In order to receive information about your Personal Data, the purposes and the parties the Data is shared with, contact the Owner.

Data Controller and Owner

Matcha wine, 4 résidence Beausoleil, 92210 Saint-Cloud, France bonjour@matcha.wine