Skip to content

Instantly share code, notes, and snippets.

View atabel's full-sized avatar

Abel Toledano atabel

  • Guadalajara (Spain)
View GitHub Profile
@atabel
atabel / test.js
Created February 4, 2022 16:23
Recursive React.Element
// @flow
import * as React from 'react';
type RendersElement<+TElementType: React.ElementType> = {
+type: TElementType | ((props: any) => RendersElement<TElementType>),
+props: any,
+key: React.Key | null,
+ref: any,
};
@atabel
atabel / flow-typed missing modules
Created June 1, 2020 15:14
flow-typed missing modules
yarn flow check | grep "Cannot resolve module" | sort | uniq | sed s/Cannot\ resolve\ module//g | sed 's/[\`|\.]//g'
@atabel
atabel / gulpfile.js
Last active August 29, 2015 14:20
Gulp bootstrap: amd & livereload
var gulp = require('gulp');
var amdOptimize = require('amd-optimize');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var sourcemaps = require('gulp-sourcemaps');
var del = require('del');
var minifyHtml = require('gulp-minify-html');
var livereload = require('gulp-livereload');
var http = require('http');
var st = require('st');