This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| from PyQt5.QtWidgets import QApplication | |
| from PyQt5.QtWidgets import QWidget | |
| from PyQt5.QtWidgets import QPushButton | |
| from PyQt5.QtWidgets import QGridLayout | |
| from PyQt5.QtWidgets import QStyle | |
| COL_SIZE = 4 | |
| class Widget(QWidget): |
| function incrementFLoat($float){ | |
| echo $float."\n"; | |
| $decimal = strlen(strrchr($float, '.')) -1; | |
| $factor = pow(10,$decimal); | |
| $incremented = (($factor * $float) + 1) / $factor; | |
| return $incremented; | |
| } | |
| function decrementFLoat($float){ | |
| // get amount of decimals |
| /* | |
| * Add our Custom Fields to simple products | |
| */ | |
| function mytheme_woo_add_custom_fields() { | |
| global $woocommerce, $post; | |
| echo '<div class="options_group">'; | |
| // Text Field |
| let content_security_policy = "script-src 'self'; object-src 'self' https://www.facebook.com/"; // for running in Chrome's JS console | |
| /* Let’s see which Unicode 10.0 emojis Facebook already supports. | |
| <https://github.com/Crissov/unicode-proposals/issues/254#issuecomment-284831620> */ | |
| let myEmojis = new Map([ | |
| ['1f6f7', 'U+1F6F7 🛷 SLED'], | |
| ['1f6f8', 'U+1F6F8 🛸 FLYING SAUCER'], | |
| ['1f91f', 'U+1F91F 🤟 I LOVE YOU HAND SIGN'], | |
| ['1f928', 'U+1F928 🤨 FACE WITH ONE EYEBROW RAISED'], | |
| ['1f929', 'U+1F929 🤩 GRINNING FACE WITH STAR EYES'], | |
| ['1f92a', 'U+1F92A 🤪 GRINNING FACE WITH CRAZY EYES'], |
ICON="data:image/insert-your-base64-image-code-here" attribute in the link;Done!
| $(window).on("scroll", function() { | |
| var scrollHeight = $(document).height(); | |
| var scrollPosition = $(window).height() + $(window).scrollTop(); | |
| if ((scrollHeight - scrollPosition) / scrollHeight === 0) { | |
| // when scroll to bottom of the page | |
| } | |
| }); |
| var toast=function(msg){ | |
| $("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h3>"+msg+"</h3></div>") | |
| .css({ display: "block", | |
| opacity: 0.90, | |
| position: "fixed", | |
| padding: "7px", | |
| "text-align": "center", | |
| width: "270px", | |
| left: ($(window).width() - 284)/2, | |
| top: $(window).height()/2 }) |