a bit cleaned up version of my "slides"
disclaimer: this "talk" was done to show some "real life use cases" to simplify the knowledge I mainly got from Axel Rauschmayer's articles
function useFPS() { | |
const [fps, setFPS] = useState(0); | |
useEffect(() => { | |
let then = performance.now(); | |
let frames = 0; | |
let req; | |
(function loop(now) { | |
req = window.requestAnimationFrame(loop); |
/* | |
* usage: | |
* | |
* tmpl( id_of_template_source:string , [template_data:object] ); | |
* | |
*/ | |
var minimold = (function(){ | |
"use strict"; | |
var cache = {}; |
made with esnextbin
made with esnextbin
function quicksort([ x, ...xs ]) { | |
if (!arguments[0].length) return []; | |
return [ ...xs.filter( y => y <= x ), x, ...xs.filter( y => y > x ) ]; | |
} |
/*! normalize.css v1.0.0 | MIT License | git.io/normalize */ | |
/* | |
* usage: | |
* @import "normalize"; | |
* | |
* // this will print out ALL selectors | |
* @include normalize(); | |
* | |
* // this will print out minimal set (*) -- you can see the list of "excluded" tags below |
{ | |
"scripts": { | |
"start": "nodemon -w . index.js" | |
}, | |
"dependencies": { | |
"nodemon": "~1.0.9" | |
} | |
} |
function either() { | |
foreach ( func_get_args() as $arg ){ | |
if ( is_string( $arg ) ? !! trim( $arg ) : !! $arg ) { | |
return $arg; | |
} | |
} | |
return false; | |
} |
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Dayle Rees Color Schemes/Peacock.tmTheme", | |
"default_line_ending": "unix", | |
"draw_minimap_border": true, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"flatland_sidebar_tree_small": true, | |
"flatland_square_tabs": false, | |
"folder_exclude_patterns": |