Skip to content

Instantly share code, notes, and snippets.

View Big O notation good explanation
https://www.youtube.com/watch?list=PLGLfVvz_LVvReUrWr94U-ZMgjYTQ538nT&v=V6mKVRU1evU
@kbytin
kbytin / loryWithThumbs
Last active Dec 21, 2016
Lory slider nav with thumbs
View loryWithThumbs
import {lory} from 'lory.js';
document.addEventListener('DOMContentLoaded', () => {
const productSlider = document.querySelector('.product-page-slider');
const productSliderCount = productSlider.querySelectorAll('.slide').length;
const productNavContainer = productSlider.querySelector('.product-page-slider__nav');
const productNavItem = document.createElement('li')
const productNavItemInner = document.createElement('div')
function handleSliderNav(e) {
View update wp
UPDATE wp_options SET option_value = replace(option_value, 'http://wp', 'http://pushkarev-adv.ru') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://wp','http://pushkarev-adv.ru');
UPDATE wp_posts SET post_content = replace(post_content, 'http://wp', 'http://pushkarev-adv.ru');
View update wp
UPDATE wp_options SET option_value = replace(option_value, 'http://wp', 'http://pushkarev-adv.ru') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://wp','http://pushkarev-adv.ru');
UPDATE wp_posts SET post_content = replace(post_content, 'http://wp', 'http://pushkarev-adv.ru');
You can’t perform that action at this time.