Skip to content

Instantly share code, notes, and snippets.

View davidbonnet's full-sized avatar

David Bonnet davidbonnet

View GitHub Profile
@davidbonnet
davidbonnet / @material-ui+core+4.11.3.patch
Created May 2, 2022 16:02
Add this to the `patches` folder and apply it with `patch-package`.
diff --git a/node_modules/@material-ui/core/Grow/Grow.js b/node_modules/@material-ui/core/Grow/Grow.js
index c3813f5..e927b4b 100644
--- a/node_modules/@material-ui/core/Grow/Grow.js
+++ b/node_modules/@material-ui/core/Grow/Grow.js
@@ -41,6 +41,16 @@ var styles = {
transform: 'none'
}
};
+
+/**
@davidbonnet
davidbonnet / cell_redux.html
Last active October 28, 2020 00:59
Using Cell with Redux
<html>
<script src="https://www.celljs.org/cell.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.7.0/redux.min.js"></script>
<script>
function items(state = [], action) {
switch (action.type) {
case 'ADD':
return state.concat(action.value)
case 'CLEAR':
@davidbonnet
davidbonnet / local_variable_bug.coffee
Last active June 24, 2017 10:27
CoffeeScript local variables bug?
# This code…
a = 42
f = ->
a = 42
return
# …compiles to…
a = 42;
f = function() {
a = 42;