Fortunatly we could use pre-built gccemacs right now.
Those two repos did the greate job for us.
https://github.com/twlz0ne/nix-gccemacs-darwin
https://github.com/twlz0ne/nix-gccemacs-sierra
Here is the tutorial:
// Import memoize from lodash fp package - it is convention in EH project | |
import memoize from 'lodash/fp/memoize'; | |
// in lodash functional programming, memoize only have 1 argument | |
// this is code to changed to original API which support keyResolver | |
const memoizeWithResolver = memoize.convert({ fixed: false }); | |
const keyResolver = (...args) => JSON.stringify(args);// Just sample code, you can choose method which you prefer | |
const withMemo = memoizeWithResolver((a,b) => doSomethingWith(a,b), keyResolver) |
Fortunatly we could use pre-built gccemacs right now.
Those two repos did the greate job for us.
https://github.com/twlz0ne/nix-gccemacs-darwin
https://github.com/twlz0ne/nix-gccemacs-sierra
Here is the tutorial:
// Paste in browser console and run | |
async function deleteStaleBranches(delay=500) { | |
var stale_branches = document.getElementsByClassName('js-branch-delete-button'); | |
for (var i = 0; i < stale_branches.length; i++) | |
{ | |
stale_branches.item(i).click(); | |
await new Promise(r => setTimeout(r, delay)); | |
} | |
} |
layout: blog title: Explore Memoization date: 2019-07-18T16:20:16.898Z author: Toan Nguyen Gia authorAvatar: /img/uploads/t0d8dq73q-u9hr7hu1m-706d3758d60e-512.jpeg image: /img/uploads/deco-iskusstvoa-helix.jpg tags: