Skip to content

Instantly share code, notes, and snippets.

View nico2che's full-sized avatar
🙉

Nicolas de C nico2che

🙉
View GitHub Profile
gh () {
cat ~/.oh-my-zsh/plugins/git/git.plugin.zsh | grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox} $1
}
<form id="payment-form"
action="https://www.mollie.com/shopify/checkout/payment?method=creditcard&amp;mode=test"
accept-charset="UTF-8" method="post">
<input type="submit" name="commit" value="Continue to payment" class="full-page-overlay__btn btn hidden-if-js">
<input type="hidden" name="x_reference" id="x_reference" value="14657131937950">
<input type="hidden" name="x_account_id" id="x_account_id" value="6142451">
<input type="hidden" name="x_amount" id="x_amount" value="49.80">
<input type="hidden" name="x_currency" id="x_currency" value="EUR">
<input type="hidden" name="x_url_callback" id="x_url_callback" value="https://connect-weglot-mollie.myshopify.com/services/ping/notify_integration/credit_card_mollie_/42914087070">
- ...
script:
- TO_DEPLOY=$(git diff --name-only $TRAVIS_COMMIT_RANGE | awk -F/ '{ print $1 }' | uniq)
deploy:
- ...
on:
condition: $TO_DEPLOY =~ (folder1|folder2)
function encode(str) {
return encodeURIComponent(str).replace(
/[!'()*]/g,
x =>
`%${x
.charCodeAt(0)
.toString(16)
.toUpperCase()}`
);
}

Weglot x Cookie Information Proposal

This draft explains how Weglot and Cookie Information can interact together.

Problem

Example Website : https://www.rhanders.com/

In this example website, the original language is EN. If a visitor choose the DA language, the cookie information banner will not display in the right language.

Weglot x BoostCommerce Proposal

This draft explains how Weglot and BoostCommerce can interact together.

Problem

Example Website : https://www.party-expert.com/

In this example website, the original language is EN. If a visitor choose the FR language, it won't be able to search a product in french because all suggestions are based on english product names.