Skip to content

Instantly share code, notes, and snippets.

View topless's full-sized avatar
💭
Music For The Jilted Generation

Christos Topaloudis topless

💭
Music For The Jilted Generation
View GitHub Profile
@goldo
goldo / lodash-assignIn-merge-defaults-diff.js
Last active December 14, 2023 00:49
Differences between .assignIn(), .assign, .merge(), defaults() and defaultsDeep()
// Tests with Lodash 4.16.4
// Thanks to http://stackoverflow.com/questions/19965844/lodash-difference-between-extend-assign-and-merge
_.assignIn ({}, { a: 'a' }, { a: 'bb' }) // => { a: 'bb' }
_.merge ({}, { a: 'a' }, { a: 'bb' }) // => { a: 'bb' }
_.defaults ({}, { a: 'a' }, { a: 'bb' }) // => { a: 'a' }
_.defaultsDeep({}, { a: 'a' }, { a: 'bb' }) // => { a: 'a' }
---
@bvaughn
bvaughn / index.md
Last active August 21, 2025 15:04
How to use profiling in production mode for react-dom

React recently introduced an experimental profiler API. This page gives instructions on how to use this API in a production release of your app.

Table of Contents

Profiling in production

React DOM automatically supports profiling in development mode for v16.5+, but since profiling adds some small additional overhead it is opt-in for production mode. This gist explains how to opt-in.

@ntarocco
ntarocco / Bookmarklet
Last active November 2, 2020 07:15
Bookmarklet for COVID "Attestation de déplacement dérogatoire", attestation generator in France (https://media.interieur.gouv.fr/deplacement-covid-19/)
Bookmarket (<https://en.wikipedia.org/wiki/Bookmarklet>) to autofill the form for sport. If you need for groceries, replace
document.getElementById('checkbox-sport_animaux').checked = true;
with
document.getElementById('checkbox-achats').checked = true;
Instructions:
1. fill in the values with your personal information