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
// Home page slider | |
.slick-homepage { | |
margin: 0 auto; | |
} | |
.slick-homepage>.slick-prev { | |
left: 40px !important; | |
z-index: 1; | |
} |
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
// select2 with search option | |
$(document).on('facetwp-loaded', function() { | |
$('.facetwp-dropdown').select2(); | |
}); | |
// select2 without search option | |
$(document).on('facetwp-loaded', function() { | |
$('.facetwp-sort-select').select2({ | |
minimumResultsForSearch: -1, | |
}); |
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
## 1. Clone repo from github | |
## 2. Install RVM without disable IPv6 | |
gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
## 3. Install stable version ruby via RVM | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby | |
## 3.1 run command - CHANGE ***USERNAME*** to your username |
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
## In project folder where node is installed | |
npm uninstall node-sass && npm install node-sass | |
or with -g flag if globally rebuild is needed |
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
## 1. Install babel-eslint and update .eslintrc.js | |
yarn add babel-eslint | |
## 2. install react-router-dom | |
yarn add react-router-dom | |
## 3. Update eslintrc.js 'parser': 'babel-eslint' before 'parserOptions' |
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
In DO problem with paste new key via web console, below description how to do it via terminal on mac | |
1. Recovery password in DO to root | |
2. After login to root via console, check the list of users | |
(for ubuntu) | |
# cut -d: -f1 /etc/passwd | |
3. Switch to another user if is created if not create new user or proceed with root | |
https://askubuntu.com/questions/410244/is-there-a-command-to-list-all-users-also-to-add-delete-modify-users-in-the |
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
async function UrlChanger() { | |
const { headers } = await fetch(window.location.origin, { | |
method: 'GET', | |
}) | |
const origin = { | |
proxy: headers.get('x-bud-proxy-origin'), | |
dev: headers.get('x-bud-dev-origin'), |
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
function OffCanvas() { | |
const offOPen = document.getElementById('offcanvas__open'); | |
const offMenu = document.getElementById('offcanvas__menu'); | |
const body = document.body; | |
const offNav = document.querySelectorAll('.nav-secondary ul .menu-item'); | |
// Aria expanded | |
const ariaMenu = () => { | |
if( offMenu.classList.contains('is-active') ) { |
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
"use client" | |
import React, {useRef, useMemo} from 'react'; | |
import { Canvas, useFrame } from '@react-three/fiber'; | |
import { Mesh, BufferAttribute, Points } from "three"; | |
import { OrbitControls } from '@react-three/drei'; | |
const Scene: React.FC = () => { | |
const meshRef = useRef<Mesh>(null!); |
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
/** | |
* Use: | |
* const isMobile = useMinWidth('700px'); | |
* | |
*/ | |
import { useState, useEffect } from 'react'; | |
export function useMinWidth(_width: string): boolean { |