Skip to content

Instantly share code, notes, and snippets.

View lucianobarauna's full-sized avatar
🐢

Luciano Baraúna lucianobarauna

🐢
View GitHub Profile
@lucianobarauna
lucianobarauna / criando-ambiente-linux.md
Last active August 22, 2024 14:44
Coisas que uso para configurar um ambiente linux

Instalar o zsh:

sudo apt install zsh
  • Instalar oh-my-sh: link
  • Intalar o theme star ship: link
  • Instalar a JetBrains Mono: link
  • Instalar o nvm: link
@lucianobarauna
lucianobarauna / comandos-que-uso.MD
Last active December 11, 2023 17:02
Comandos que uso muito

Comando para resolver os problemas de HD no linux

fsck.ext4 /dev/sda5

Comando para ver globalmente pacotes node

npm list -g --depth 0
@lucianobarauna
lucianobarauna / px-to-rem.scss
Created December 2, 2020 21:12 — forked from premregmi/px-to-rem.scss
PX TO REM FUNCTION in SASS - Convert px value to rem easily in SASS
// 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;
}
@lucianobarauna
lucianobarauna / modal-codigo-antigo.js
Last active October 8, 2020 17:22
Código modal photoswipe
// 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;
}
@lucianobarauna
lucianobarauna / conteudo.md
Last active February 11, 2020 17:21
Links dos conteúdos passados nas aulas do tencogueto 08/02/2020
@lucianobarauna
lucianobarauna / .gitconfig
Created January 2, 2020 20:09
Meu arquivo config do git com alguns alias
[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 --
@lucianobarauna
lucianobarauna / configs_ubuntu.md
Last active November 27, 2021 13:18
Minhas configurações de instalação do ubuntu
@lucianobarauna
lucianobarauna / SassMeister-input.scss
Last active May 22, 2019 20:39
Generated by SassMeister.com. Function to get values in map objects
// ----
// libsass (v3.5.4)
// ----
// color variable map
$colors: (
// non-nested values
text: #FFF,
background: #333,
// nested map inception
@lucianobarauna
lucianobarauna / debug-window.js
Created October 30, 2018 17:29
debug-window
// 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')
@lucianobarauna
lucianobarauna / reduce-array-multidimensional.js
Created June 7, 2018 19:50 — forked from shx-dev/reduce-array-multidimensional.js
Artigos | Array.reduce  - O canivete suíço da programação funcional | Array multidimensional
const users = [
{
name: 'User #1',
bookmarks: [
{ title: 'Movie #1', id: 1 },
{ title: 'Movie #6', id: 6 },
{ title: 'Movie #3', id: 3 },
]
},
{