This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Omit<T, Keys> & | |
{ [K in Keys]-?: Required<Pick<T, K>> & Partial<Omit<T, K>> }[Keys]; | |
type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Omit<T, Keys> & | |
{ [K in Keys]: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>> }[Keys] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Universe says Hi Stranger | |
Tranquility is destination (1) | |
Listen to the stars | |
The Light says New Friend | |
If the stars ain't gone | |
Put the stars into the light | |
The Sun is too antediluvian (32 / space) | |
The Moon is your fate (44 / comma) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scroll-shadow-background: rgb(255, 255, 255) !default; | |
$scroll-shadow-color: rgb(0, 0, 0) !default; | |
$scroll-shadow-intensity: 0.15 !default; | |
$scroll-shadow-cover: 40px !default; | |
$scroll-shadow-size: 14px !default; | |
@mixin scroll-shadow-vertical($background-color: $scroll-shadow-background, $shadow-intensity: $scroll-shadow-intensity, $shadow-color: $scroll-shadow-color, $cover-size: $scroll-shadow-cover, $shadow-size: $scroll-shadow-size) { | |
background-image: | |
// Shadow covers | |
linear-gradient($background-color 30%, rgba($background-color,0)), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"exclude": [ | |
".git/**", | |
"node_modules/**" | |
], | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": " ", | |
"color-shorthand": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This code is licensed under the terms of the MIT license | |
* | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { |