- 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
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": { |
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
"use strict"; | |
//recursive | |
const possibleCombinations = n => { | |
if (n == 0) { | |
return 0; | |
} else { | |
return n + possibleCombinations(n - 1); | |
} |
NewerOlder