Combine default parameters and destructuring for a compact version of the defaults / overrides pattern.
function foo ({
bar = 'no',
baz = 'works!'
} = {}) {| # | |
| # GIT | |
| # | |
| alias gs='git status' | |
| alias gd='git diff' | |
| alias gp='git pull --rebase --autostash' | |
| alias gl='git log --pretty=format:"%h | %an | %s (%ar)"' | |
| alias gcl='git checkout -'; |
| @mixin for-phone-only { | |
| @media (max-width: 599px) { @content; } | |
| } | |
| @mixin for-tablet-portrait-up { | |
| @media (min-width: 600px) { @content; } | |
| } | |
| @mixin for-tablet-landscape-up { | |
| @media (min-width: 900px) { @content; } | |
| } | |
| @mixin for-desktop-up { |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| <HTML> | |
| <HEAD> | |
| <TITLE>Popup div with disabled background</TITLE> | |
| <style> | |
| .ontop { | |
| z-index: 999; | |
| width: 100%; | |
| height: 100%; | |
| top: 0; | |
| left: 0; |