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
| <script> | |
| fbq('track', 'Purchase', {value: {{ total_price | money_without_currency }}, currency: {{ shop.currency }}}); | |
| </script> |
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
| require 'json' | |
| ## | |
| # Combinator module | |
| # contains .map, .bind, .apply, .compose | |
| # a toolkit for building functional programs | |
| ## | |
| module Combinator | |
| Result = Data.define(:success, :error, :value) do | |
| def call(&block) |
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
| #!/usr/bin/env python3 | |
| from enum import Enum | |
| from typing import Optional | |
| from pydantic import BaseModel, Field | |
| class ActionType(str, Enum): | |
| ADD = "add" | |
| DELETE = "delete" |