This file contains hidden or 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
| // ---- | |
| // libsass (v3.2.5) | |
| // ---- | |
| $buttons: ( | |
| 'error': (#d82d2d, #666), | |
| 'success': (#52bf4a, #fff), | |
| 'warning': (#c23435, #fff) | |
| ); | |
This file contains hidden or 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
| amend='git commit --amend' | |
| g=git | |
| ga='git add' | |
| gaa='git add --all' | |
| gac='git add . && git commit -v' | |
| gapa='git add --patch' | |
| gb='git branch' | |
| gba='git branch -a' | |
| gbda='git branch --merged | command grep -vE "^(\*|\s*master\s*$)" | command xargs -n 1 git branch -d' | |
| gbl='git blame -b -w' |
This file contains hidden or 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 randomHex() { | |
| const hexMax = 256 * 256 * 256; | |
| return '#' + Math.floor(Math.random() * hexMax).toString(16).toUpperCase().padStart(6, '0'); | |
| } |
This file contains hidden or 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
| # DEV Sandbox | |
| ## Objective | |
| Learn Shopify and practice JavaScript by following BVA styleguide. | |
| Some designs might be simplified along the way. | |
| ## Links | |
| ### Git |
This file contains hidden or 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
| {"lastUpload":"2020-07-01T19:29:19.444Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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
| /** @jsx jsx */ | |
| import { jsx } from 'theme-ui' | |
| import { useEffect, useState } from 'react' | |
| import Image from 'gatsby-image' | |
| import { getFluidImageObject } from 'gatsby-transformer-cloudinary' | |
| export default () => { | |
| const [fluid, setFluid] = useState(false) | |
| useEffect(() => { |
aria-live="polite"is used for content which might get updated. Polite won't interupt.a11y.jscomes with Slate. HastrapFocusandremoveTrapFocusmethods.- URL mapping
- The
{{ content_for_header }}variable must be placed between the opening and closing<head>tag. It inserts the necessary Shopify scripts into the<head>which includes scripts for Google Analytics, Shopify analytics, for Shopify apps, and more. - The
{{ content_for_layout }}variable must be placed between the opening and closing<body>tag. It outputs dynamic content generated by all of the other templates (index.liquid, product.liquid, and so on). tfilter is used to pull translation fromlocales/ru.json- In tags with more than one
andororoperator, operators are checked in order from right to left. You cannot change the order of operations using parentheses — parentheses are invalid characters in Liquid and will preven
This file contains hidden or 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
| lsof -nP -i4TCP:9000 | grep LISTEN | |
| kill PID |
permalink https://github.com/gatsbyjs/gatsby/blob/ffd8b2d691c995c760fe380769852bcdb26a2278/packages/gatsby/src/bootstrap/index.js
- open and validate gatsby-config (get-config-file.js) 1.5 load themes (swyx added this note July 2019)
- load plugins (load-plugins/index.js) from the list given in
gatsby-config.js - onPreBootstrap: runs
onPreBootstrapif it is implemented in any plugins, for example gatsby-plugin-typography. Receives handy [apiCallArgs](https://github.com/gatsbyjs/gatsby/blob/ffd8b2d691c9