Skip to content

Instantly share code, notes, and snippets.

View didierbrun's full-sized avatar

Didier Brun didierbrun

View GitHub Profile
class Explique {}
Explique.stack = []
Explique.on = false
Explique.delay = (time) => new Promise(resolve => setTimeout(resolve, time))
Explique.phrase = (phrase, duration = 0) => {
Explique.stack.push({phrase, duration})
if (!Explique.on){
Explique.on = true
Explique.disNext()
@didierbrun
didierbrun / suspense.js
Created January 16, 2024 19:35
Suspense
const suspense = (f, t) => setTimeout(f, t * 1000)
const message = () => {
let t = 0
suspense(() => {
console.log("Je veux que créer...")
}, t)
suspense(() => {
console.log("...un peu de...")
@didierbrun
didierbrun / RCCNavigationController.m
Last active November 5, 2017 00:49
Hack react-native-navigation
#import "RCCNavigationController.h"
#import "RCCViewController.h"
#import "RCCManager.h"
#import <React/RCTEventDispatcher.h>
#import <React/RCTConvert.h>
#import <React/RCTRootView.h>
#import <objc/runtime.h>
#import "RCCTitleViewHelper.h"
#import "RCCCustomBarButtonItem.h"
#import "UIViewController+Rotation.h"
@didierbrun
didierbrun / test.js
Last active November 3, 2017 15:52
Description
var test = "Fabien";
/**
*
*
* Lunette
*
* @author Didier Brun
* @version 1.0
*
*/
/**
*
*
* ScaleBitmap
*
* @author Didier Brun
* @author Jerôme Decoster
* @version 1.1
*
*/