Skip to content

Instantly share code, notes, and snippets.

Avatar

Renoir Boulanger renoirb

View GitHub Profile
@renoirb
renoirb / index.ts
Created Dec 3, 2020
TypeORM Only MySQL database handler
View index.ts
/**
* 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 Jun 5, 2020
Attempt at using an ESM/MJS in TypeScript
View playing-with-mjs.patch
From dd22508d45c9a839d26a090bba05e62abe41e492 Mon Sep 17 00:00:00 2001
From: Renoir Boulanger <contribs@renoirboulanger.com>
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 ++++++++++++++
View tokenizer.ts
/* 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 Feb 28, 2020
Example using self-contained published package
View example.patch
From 4a22bd3338241b30edddb0bffab035b0b1ba3a99 Mon Sep 17 00:00:00 2001
From: Renoir Boulanger <hello@renoirboulanger.com>
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 Aug 29, 2019
rush post-rush-install script example
View post-rush-install.js
"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://gist.github.com/renoirb/b23b2d60fbe1ca25950005bb4056458d#gistcomment-3012183
*/
const path = require("path");
@renoirb
renoirb / resume.json
Last active Sep 2, 2020
{"theme":"elegant"}
View resume.json
{"meta":{"theme":"elegant","lastModified":"2020-08-31T17:39:60","canonical":"http://registry.jsonresume.org/renoirb","alternate":"https//renoirb.com/resume/detailed","source":"https://gist.github.com/renoirb/65fccabc7dea76fea70dccb14077ab0d#gistcomment-3010170"},"basics":{"name":"Renoir Boulanger","label":"Full-Stack Developer & Senior Web Development Professional","image":"https://secure.gravatar.com/avatar/cbf8c9036c204fe85e15155f9d70faec?size=420","picture":"https://secure.gravatar.com/avatar/cbf8c9036c204fe85e15155f9d70faec?size=420","email":"hello@renoirboulanger.com","url":"https://renoirb.com","website":"https://renoirb.com","summary":"Experienced full-stack developer, I have a broad and deep understanding of the Open Web stack, Front-end and Server Techniques to build, deploy and maintain Web sites that scale.","location":{"city":"Montréal","region":"Quebec","countryCode":"CA","postalCode":"H4P 2G9"},"profiles":[{"network":"LinkedIn","username":"renoirb","url":"https://linkedin.com/in/renoirb"},{"netw
@renoirb
renoirb / file-loading.ts
Last active Mar 19, 2020
JavaScript utility functions bag
View file-loading.ts
/**
* Load data from static files.
*
* ```ts
* // JSON files
* import { loadAllJsonFiles, loadAllFilesAsOneString } from 'file-loading'
* export const users = loadAllJsonFiles(/^user.*\.json$/, 'fixtures')
*
* // Stitch GraphQL
* const typeDefs = `
View render-helpers.js
/**
* Copy-Pasta from Vue.js transpiled source (!).
*
* NOT TO USE, just to point out cool parts.
*
* https://github.com/vuejs/vue/blob/2.6/dist/vue.runtime.esm.js
*/
import {
extend,
@renoirb
renoirb / hooks-index.js
Last active Nov 15, 2018
Nuxt 'render:setupMiddleware' hook example
View hooks-index.js
// file: hooks/index.js
import render from './render'
// 'render:context'
export default (nuxtConfig) => ({
render: render(nuxtConfig),
})
You can’t perform that action at this time.