Skip to content

Instantly share code, notes, and snippets.

View lenivene's full-sized avatar
🖖
Full-stack dev

Lenivene Bezerra lenivene

🖖
Full-stack dev
View GitHub Profile
@lenivene
lenivene / type-password-in-input-number.css
Last active April 23, 2020 12:46
Show input number equal input password
input[type=number] {
-webkit-text-security: disc;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<input
id="el"
@lenivene
lenivene / auto-dark-mode.css
Created March 5, 2020 02:18
Auto switch dark mode system
body{
@media (prefers-color-scheme: dark) {
color: white;
background-color: black;
}
@media (prefers-color-scheme: light) {
color: black;
background-color: white;
}
@lenivene
lenivene / .env.production
Created February 26, 2020 18:45
Disable "show" your code and "node_modules"
GENERATE_SOURCEMAP=false
// Example
new Date("2020-02-09T13:58:41.838Z").toLocaleDateString('pt-BR');
@lenivene
lenivene / getFirstLetter.js
Last active January 24, 2020 05:33
Function module to get first letter in text
module.exports = function getFirstLetter(text) {
let acronym = "";
const words = text.split(" ");
words.map(word => {
acronym += word[0];
});
return acronym;
};
Hello World
@lenivene
lenivene / listen EACCESS permission denied.readme.md
Created November 18, 2019 17:44
Resolved! error: listen eacces: permission denied 0.0.0.0:8080

RESOLVING PROBLEM

events.js:187
    throw er; // Unhandled 'error' event
error: listen eacces: permission denied 0.0.0.0:8080
  • Start terminal with root access.
@lenivene
lenivene / .gitconfig
Created November 15, 2019 19:02 — forked from diego3g/.gitconfig
[alias]
ci = commit
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
@lenivene
lenivene / install-nodejs.md
Created November 6, 2019 22:01
How to install Node.JS in Ubuntu or Mint Linux

1. Installing NVM

Starting the installation via terminal

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash

The command above will clone the NVM repository from Github to the ~/.nvm directory:

2. Installing Node.js and npm