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
| var o = new IntersectionObserver(function (a, s) | |
| { | |
| a.forEach(e => | |
| { | |
| if (e.isIntersecting) | |
| { | |
| e.target.src = e.target.getAttribute("data-ls"); | |
| e.target.removeAttribute("data-ls"); | |
| s.unobserve(e.target); | |
| } |
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
| <?php | |
| /** | |
| * Front to the WordPress application. This file doesn't do anything, but loads | |
| * wp-blog-header.php which does and tells WordPress to load the theme. | |
| * | |
| * @package WordPress | |
| */ | |
| /** |
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
| alias prodterm='gnome-terminal --window-with-profile=LIVE' | |
| alias m2='php bin/magento' | |
| alias setphp5.6=' | |
| sudo a2dismod php7.0 && | |
| sudo a2dismod php7.1 && | |
| sudo a2dismod php7.2 && | |
| sudo a2enmod php5.6 && | |
| sudo update-alternatives --set php /usr/bin/php5.6&& | |
| sudo update-alternatives --set phar /usr/bin/phar5.6&& |
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
Show hidden characters
| { | |
| "env": { | |
| "browser": true, | |
| "es6": true, | |
| "node": true | |
| }, | |
| "extends": "eslint:recommended", | |
| "parserOptions": { | |
| "ecmaFeatures": { |
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
| {"lastUpload":"2019-03-19T17:30:58.785Z","extensionVersion":"v3.2.7"} |
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
| version: '3.3' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| ports: | |
| - "3306:3306" | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| restart: always | |
| environment: |
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
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress @salcode | |
| # ver 20160309 | |
| # | |
| # This is from the root of the server dir - remove the public folder "httpdocs" to init from one level deep | |
| # | |
| # From the root of your project run | |
| # curl -O https://gist.githubusercontent.com/benjamenhogben/fb93e46f4825e77e1a9f02a35dec9462/raw/024ca685f8a61e755c45b3391286c173e78d34c1/.gitignore | |
| # to download this file | |
| # |
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
| <?php | |
| /** | |
| * Product controller | |
| * @id = product id | |
| */ | |
| class ProductController extends CoreController { | |
| const maxproducts = 18; | |
| protected $itemsPerPage = array(2,23,31,50); | |
| protected $sortByOptions = array( |
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
| /* | |
| * Replace all SVG images with inline SVG | |
| */ | |
| jQuery('img.svg').each(function(){ | |
| var $img = jQuery(this); | |
| var imgID = $img.attr('id'); | |
| var imgClass = $img.attr('class'); | |
| var imgURL = $img.attr('src'); | |
| jQuery.get(imgURL, function(data) { |