Instalar o zsh:
sudo apt install zsh
| 'use client'; | |
| import { useRouter, useSearchParams } from 'next/navigation'; | |
| import { | |
| createContext, | |
| ReactNode, | |
| useCallback, | |
| useContext, | |
| useEffect, | |
| useLayoutEffect, |
| // SASS FUNCTION TO CONVERT PX INTO REM | |
| // Defining base font size | |
| // The default font size for html is 16px | |
| $base-size: 16; | |
| //Function to convert px value into rem | |
| //You can replace rem with any other value you want (rem is most preferred value for web) | |
| @function size($target, $context: $base-size) { | |
| @return ($target / $context) * 1em; | |
| } |
| // Select image from thumbnail | |
| $(".product-detail-thumblist").on("click", "a", function (evt) { | |
| const elmId = $(this).attr("href"); | |
| evt.preventDefault(); | |
| if (!elmId || $(this).hasClass("control")) { | |
| return; | |
| } |
| [alias] | |
| # Apaga tudo staged o unstaged. | |
| dismiss = reset HEAD --hard | |
| # Desfaz o último commit e joga os arquivos que estavam nele novamente no workspace. | |
| rollback = reset --soft HEAD~1 | |
| # git unstage -- seuArquivo desfaz o última coisa no seu arquivo e sai do commit podendo ser adicionado novamente. | |
| unstage = reset HEAD -- | |
https://diolinux.com.br/tutoriais/o-que-fazer-apos-instalar-o-ubuntu-20-04.html
sudo apt install build-essential default-jdk libssl-dev
| // ---- | |
| // libsass (v3.5.4) | |
| // ---- | |
| // color variable map | |
| $colors: ( | |
| // non-nested values | |
| text: #FFF, | |
| background: #333, | |
| // nested map inception |
| // https://codepen.io/lucianobarauna/pen/xyMXGw?editors=0010 | |
| // Um simples debug para visualizar as informações do objeto window.screen | |
| (function(){ | |
| const $body = document.querySelector('body') | |
| const objScreen = window.screen | |
| // Create info | |
| let createInfo = (prop, targetObj) => { | |
| const $p = document.createElement('p') | |
| $p.setAttribute('class', 'infodata') |