🦫
Automated test maniac, functional programming enthusiast, colemak typist, web developer.
- Nantes
- https://louislebrault.com/
Pinned Loading
-
Xmodmap colemak configuration
Xmodmap colemak configuration 1! Right Windows Key become Mode_switch
2keycode 134 = Mode_switch
34! Navigation keys on Mode_switch / Modified alt gr
5keycode 38 = a A Left 0 agrave
-
-
An equivalent to ramda path or lodas...
An equivalent to ramda path or lodash toPath in a few lines using recursivity 1/**
2* @param {object} json - The json object to run through.
3* @param {Array.string} path - The path of the desired value.
4*/
5const jsonPath = (json, [head, ...tail]) => {
-
how to mock new Date() with jest
how to mock new Date() with jest 1// tiny modification to a solution found at https://codewithhugo.com/mocking-the-current-date-in-jest-tests/
2global.Date = class extends Date {
3constructor(date) {
4if (date) {
5//eslint-disable-next-line constructor-super
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.