- Download the latest zsh package: https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
| <!-- From https://community.shopify.com/c/Shopify-Discussion/How-to-set-up-minimum-order-quantities-for-each-product/td-p/99243 --> | |
| {% assign show_checkout_button = true %} | |
| {% for item in cart.items %} | |
| {% if item.product.tags contains 'SampleTag' and item.quantity <= 49 %} | |
| {% assign show_checkout_button = false %} | |
| <p>You will need to purchase more than 50 of the product "{{ item.product.title }}"</p> | |
| {% endif %} | |
| {% endfor %} | |
| {% if show_checkout_button %} | |
| <!-- show checkout button --> |
| function mySlowFunction(baseNumber) { | |
| console.time('mySlowFunction'); | |
| let result = 0; | |
| for (var i = Math.pow(baseNumber, 7); i >= 0; i--) { | |
| result += Math.atan(i) * Math.tan(i); | |
| }; | |
| console.timeEnd('mySlowFunction'); | |
| } | |
| mySlowFunction(8); // higher number => more iterations => slower |
| https://hankchizljaw.com/wrote/create-a-split-faux-container-layout-with-css-grid-and-flexbox/ |
| /* Thanks to Andy Bell (https://hankchizljaw.com/wrote/a-modern-css-reset/) */ | |
| /* Box sizing rules */ | |
| *, | |
| *::before, | |
| *::after { | |
| box-sizing: border-box; | |
| } | |
| /* Remove default padding */ |
| data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAAAAAA6fptVAAAACklEQVQYV2P4DwABAQEAWk1v8QAAAABJRU5ErkJggg== |
| " Make Vim more useful | |
| set nocompatible | |
| " Use the OS clipboard by default (on versions compiled with `+clipboard`) | |
| set clipboard=unnamed | |
| " Enhance command-line completion | |
| set wildmenu | |
| " Allow cursor keys in insert mode | |
| set esckeys | |
| " Allow backspace in insert mode | |
| set backspace=indent,eol,start |
| /* MEDIA QUERIES */ | |
| $breakpoints: ( xs: 576px, sm: 768px, md: 992px, lg: 1200px); | |
| $bp-xs: map-get($breakpoints, xs); // < 576px | |
| $bp-sm: map-get($breakpoints, sm); // < 768px | |
| $bp-md: map-get($breakpoints, md); // < 992px | |
| $bp-lg: map-get($breakpoints, lg); // < 1200px | |
| $bp-xl: map-get($breakpoints, xl); // > 1200px | |
| // from 0 -> 575px | |
| @mixin mobile() { |
| # EditorConfig helps developers define and maintain consistent | |
| # coding styles between different editors and IDEs | |
| # http://editorconfig.org | |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf |
| // From https://codepen.io/trys/pen/vjRzPa | |
| h2 { | |
| display: grid; | |
| width: 100%; | |
| align-items: center; | |
| text-align: center; | |
| grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr); | |
| grid-gap: 20px; | |
| } |