Skip to content

Instantly share code, notes, and snippets.

View renanlido's full-sized avatar
👨‍💻
for(const routine of life) { console.log(routine) } => //family //work //study

Renan Oliveira renanlido

👨‍💻
for(const routine of life) { console.log(routine) } => //family //work //study
View GitHub Profile
{
"extensions.experimental.affinity": {
"asvetliakov.vscode-neovim": 1
},
//eslint prettier
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
@renanlido
renanlido / .p10k.zsh
Created May 20, 2022 04:33
Configuração do P10K
# Generated by Powerlevel10k configuration wizard on 2021-12-28 at 01:07 -03.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 40968.
# Wizard options: nerdfont-complete + powerline, small icons, classic, unicode, dark,
# 24h time, angled separators, sharp heads, flat tails, 2 lines, disconnected, no frame,
# sparse, many icons, fluent, transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
@renanlido
renanlido / .zshrc config
Last active May 20, 2022 15:42
Configuração do meu terminal
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
typeset -g POWERLEVEL10K_INSTANT_PROMPT=quiet
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
@renanlido
renanlido / settings.json
Created May 20, 2022 03:37
Configs Windows Terminal
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
},
middlewares
@renanlido
renanlido / jest.config.ts
Created April 9, 2022 19:17
Config Jest 04-2022
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/
export default {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after `n` failures
@renanlido
renanlido / getWindowDimensions.tsx
Created October 28, 2021 19:35
React hook to get window dimensions in real time
import { useEffect, useState } from 'react';
function getWindowDimensions() {
const { innerWidth: width, innerHeight: height } = window;
return {
width,
height
};
}
@renanlido
renanlido / jsonSettingsFirm
Last active August 19, 2021 14:44
Configuração do settings da firm
"settings": {
"color": '#FECC02',
"schedule_settings":
{
"tour_default_duration": 30,
"availability": [
{
"available": true,
"day_start": "07:00",
"day_end": "18:00"
@renanlido
renanlido / fonte_caixa.php
Last active May 4, 2019 01:20
Codigo Fonte caixa
<!doctype html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="http://localhost/projects/caixa/assets/img/favicon.ico">
<title>Template de dashboard, usando Bootstrap.</title>