sudo pacman -Syu zsh
You do not need to install manjaro-zsh-config
and all the other related packages like zsh-syntax-highlighting
, zsh-history-substring-search
, zsh-autosuggestions
, etc., as we will use Oh My Zsh.
module.exports = { | |
purge: [], | |
theme: { | |
extend: { | |
gridTemplateColumns: { | |
'auto-fit': 'repeat(auto-fit, minmax(0, 1fr))', | |
'auto-fill': 'repeat(auto-fill, minmax(0, 1fr))', | |
}, | |
gridTemplateRows: { | |
'auto-fit': 'repeat(auto-fit, minmax(0, 1fr))', |
sudo pacman -Syu zsh
You do not need to install manjaro-zsh-config
and all the other related packages like zsh-syntax-highlighting
, zsh-history-substring-search
, zsh-autosuggestions
, etc., as we will use Oh My Zsh.
constructor(props) { | |
super(props); | |
this.state = { | |
height: window.innerHeight, | |
message: 'not at bottom' | |
}; | |
this.handleScroll = this.handleScroll.bind(this); | |
} | |
handleScroll() { | |
const windowHeight = "innerHeight" in window ? window.innerHeight : document.documentElement.offsetHeight; |
import * as crypto from 'crypto' | |
const merchantSecret = 'secret' | |
const hash = 'sha256' | |
const encoding = 'base64' | |
const payload = { | |
id: 123, | |
somethingElse: 'not 123' | |
} |
TypeScript supports Pick
to allow you to get a "subset" object type of a given type, but there is no built-in Pick
for deeper nested fields.
If you have a function that takes a large object as argument, but you don't use all of its fields, you can use Pick
, Pick2
, Pick3
, etc to narrow down the input type to be only just what you need. This will make it easier to test your function, because when mocking the input object, you don't need to pass all fields of the "large" object.
A quick guide on how to setup Node.js development environment.
nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.