- Does the code work?
- Description of the project status is included.
- Code is easily understand.
- Code is written following the coding standarts/guidelines (React in our case).
- Code is in sync with existing code patterns/technologies.
- DRY. Is the same code duplicated more than twice?
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
docker run -d -p 8082:80 --mount type=bind,source="$(pwd)",target=/var/www/html php:apache | |
// That's it! If you try this, and it works for you, you're done! | |
// The command does the following: | |
// If the Docker image php:apache is not present in your machine's local Docker registry, it will be downloaded from Docker hub. | |
// It creates a new container based on the image php:apache. | |
// It maps port 80 from the container to port 8082 on your host machine. | |
// It mounts the current directory from your host machine to /var/www/html in the container. |
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 coin_price() { | |
const myGoogleSheetName = | |
// Change "Sheet1" to the name of your sheet where you want to run this. | |
SpreadsheetApp.getActiveSpreadsheet().getSheetByName('COINMARKETCAP') | |
// Get preferred currency, defaults to BRL | |
const defaultCurrency = 'BRL' | |
const preferedCurrency = myGoogleSheetName.getRange(2, 6).getValue() || defaultCurrency |
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 coin_price() { | |
const myGoogleSheetName = | |
// Change "Sheet1" to the name of your sheet where you want to run this. | |
SpreadsheetApp.getActiveSpreadsheet().getSheetByName('COINMARKETCAP') | |
// Get preferred currency, defaults to BRL | |
const defaultCurrency = 'BRL' | |
// Data should be in the sheet at B6 | |
const preferedCurrency = myGoogleSheetName.getRange(2, 6).getValue() || defaultCurrency |
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
{% comment %} | |
Use this snippet to add a responsive image to page. | |
Requires lazysizes.js | |
Specify Shopify image you want to make responsive in the "with" parameter (see examples below). | |
You can use following variables to customize the image | |
* type: specifies the type of image file being accessed (ie an image from content, a product image, or a theme asset image). | |
* default_size: size of placeholder image until full image is loaded (default: '150x') |
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
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
Go to https://{{your_shopify_domain}}/admin/themes/{{your_theme_code}}/language?category=checkout+%26+system
Open your browser console and paste this code:
var obj = {};
$(".translation__target").each(function() {
var value = this.children[0].value ? this.children[0].value : this.children[0].placeholder
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
{ | |
"extends": "stylelint-config-standard", | |
"plugins": [ | |
"stylelint-no-unsupported-browser-features", | |
"stylelint-order" | |
], | |
"ignoreFiles": ["**/*.js","**/*.jsx","**/*.ts","**/*.tsx","**/*.html"], | |
"rules": { | |
"declaration-block-no-redundant-longhand-properties": [ | |
true, |
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
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"plugins": ["react"], | |
"ecmaFeatures": { |
NewerOlder