Skip to content

Instantly share code, notes, and snippets.

View tiagolagef's full-sized avatar
👨‍💻
Working

Tiago Lage tiagolagef

👨‍💻
Working
View GitHub Profile
@tiagolagef
tiagolagef / README.md
Created May 7, 2023 02:18 — forked from Ademking/README.md
Angular + Node 18 error: ERR_OSSL_EVP_UNSUPPORTED - How to fix

Run:

Windows

set NODE_OPTIONS=--openssl-legacy-provider

Mac & Linux

export NODE_OPTIONS=--openssl-legacy-provider
@tiagolagef
tiagolagef / app.js
Created June 10, 2020 17:52 — forked from michelmany/app.js
Vue.js 2 Vee-validate (pt-br) CPF Validation
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VeeValidator, { Validator } from 'vee-validate'
import CpfValidator from './components/validators/cpf.validator'
import Dictionary from './components/validators/dictionary'
import Produto from './components/produtos.vue'
Validator.extend('cpf', CpfValidator)
@tiagolagef
tiagolagef / consoleColors.js
Created March 18, 2020 14:27 — forked from abritinthebay/consoleColors.js
The various escape codes you can use to color output to StdOut from Node JS
// Colors reference
// You can use the following as so:
// console.log(colorCode, data);
// console.log(`${colorCode}some colorful text string${resetCode} rest of string in normal color`);
//
// ... and so on.
export const reset = "\x1b[0m"
export const bright = "\x1b[1m"
export const dim = "\x1b[2m"