Skip to content

Instantly share code, notes, and snippets.

View jefBinomed's full-sized avatar

Jean-François Garreau - Binomed jefBinomed

View GitHub Profile
@jefBinomed
jefBinomed / 2024-devfest-nantes-openfeedback.json
Last active October 30, 2024 10:37
2024-devfest-nantes-openfeedback.json
{
"sessions": {
"keynote": {
"id": "keynote",
"title": "Keynote d'ouverture",
"tags": [
"💡 Discovery"
],
"trackTitle": "00 - Jules Verne",
"startTime": "2024-10-17T09:00:00+02:00",
@jefBinomed
jefBinomed / 2023-devfest-nantes-openfeedback.json
Last active October 18, 2023 12:17
2023-devfest-nantes-openfeedback.json
{
"sessions": {
"keynote": {
"id": "keynote",
"title": "Keynote",
"tags": [
"💡 Discovery"
],
"trackTitle": "Jules Verne",
"startTime": "2023-10-19T09:00:00+02:00",
{
"sessions":{
"100":{
"title":"Opening Keynote",
"description":"Opening Keynote",
"tags":[
"💡 Discovery"
],
"speakers":[
"speakeropeningkeynote"
@jefBinomed
jefBinomed / 2021-devfest-nantes-openfeedback.json
Last active August 22, 2022 11:32
JSON File for Open Feedback for DevFest Nantes 2021
{
"sessions":{
"0":{
"title":"Et si les meilleurs Dockerfile étaient ceux que l'on n'écrit pas",
"description":"Une manière assez commune de construire une image aujourd'hui consiste à écrire un Dockerfile.\nL'écriture d'un bon Dockerfile n'est pas simple, il faut sélectionner une image de base, mettre en place un ensemble de bonnes pratiques autour de la sécurité, de la maintenabilité, de la performance etc.\nMais ce n'est pas tout, il va aussi falloir le maintenir dans le temps !\n\nLa CNCF propose une spécification, les Cloud Native Buildpacks, qui vise à transformer notre code source en une image pouvant tourner sur n'importe quel cloud.\nJe vous propose durant ce talk une rapide présentation des Cloud Native Buildpacks, suivi d'une mise en oeuvre pratique avec la création et la mise à jour d'une image... sans Dockerfile !\n",
"tags":[
"☁️ Cloud & DevOps"
],
"speakers":[
"lWCalu3iuOTT2OsRHMmHMCJ7BoR2"
@jefBinomed
jefBinomed / PWA-console-snippets.js
Last active January 25, 2023 12:53
PWA Console Helpers
// Copy and paste the one you need
// Check current registration
navigator.serviceWorker.getRegistration()
.then(registration => console.log('Registration : ', registration));
// Cancel current registation
navigator.serviceWorker.getRegistration()
.then(async (registration)=>{
if (!registration){
@jefBinomed
jefBinomed / RxSnippet.js
Last active December 17, 2020 16:36
RxJS in Devtools (Source Panel -> Snippet Tab -> Create a new Snippet)
(async ()=>{
let libUrl = 'https://unpkg.com/@reactivex/[email protected]/dist/esm2015/index.js';
// Change with your version
let opUrl = 'https://unpkg.com/@reactivex/[email protected]/dist/esm2015/operators/index.js';
// Change with your version
const Rx = await import(libUrl);
const Op = await import(opUrl);
@jefBinomed
jefBinomed / ImagePrepare.js
Created December 3, 2020 12:54
2020-fugu-image-trick
export function prepareImage(img) {
return new Promise((resolve) => {
fetch(img.src)
.then((response) => response.blob())
.then((blob) => {
var reader = new FileReader();
reader.onload = function () {
img.src = this.result;
resolve();
}; // <--- `this.result` contains a base64 data URI
@jefBinomed
jefBinomed / UserMediaHelperJsDoc.js
Created December 3, 2020 12:54
2020-fugu-user-media-helper
class UserMediaHelper {
/**
* @param canvas: the dom element corresponding to canvas
* @param video: the dom element corresponding to video
* @param videoArea: the dom element around the canvas (to fix the size of the output video)
**/
constructor(canvas, video, videoArea) {}
/**
@jefBinomed
jefBinomed / DetectorJSDoc.js
Created December 3, 2020 12:52
2020-fugu-detector-helper
class Detector {
/**
* Will create the write dectector object according to the type.
* @param type: the type of detector to use -> see constant TYPES to use the correct types
* @param options: each detector should work with specifics options that could override. Check the desire constant. Note that text detector don't need options
**/
constructor(type, options) {}
/**
@jefBinomed
jefBinomed / BarCodeContent.js
Created December 3, 2020 12:51
2020-fugu-barcode-detection-content
[
{
boudingBox: // DOMRectReadOnly / The position and size of the face
{
bottom: xxx.xxx // absolute bottom position in the image
height: xxx.xxx // absolute height in the image
left: xxx.xxx // absolute left position in the image
right: xxx.xxx // absolute right position in the image
top: xxx.xxx // absolute top position in the image
width: xxx.xxx // absolute width in the image