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
# tmux 1.8 offers Zoom mode | |
sudo add-apt-repository ppa:pi-rho/dev | |
sudo apt-get update | |
sudo apt-cache show tmux # list tmux versions | |
sudo apt-get install tmux=LAST_VERSION_LISTED |
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
function dom<T extends HTMLElement>( | |
name: string, | |
props: { [key in keyof T]?: any } = {}, | |
children: Array<HTMLElement> = [] | |
): T { | |
const result = document.createElement(name); | |
Object.entries(props).forEach(([name, prop]) => (result[name] = prop)); | |
children.forEach(child => result.append(child)); | |
return result as T; | |
} |
OlderNewer