Skip to content

Instantly share code, notes, and snippets.

View jeziellopes's full-sized avatar
:octocat:

Jeziel Lopes jeziellopes

:octocat:
View GitHub Profile
// get current element ref
const ref = useRef(null)
// persist index
let sectionIndex: number
// helper to get element index from the DOM
const getElementIndex = () => {
// if (sectionIndex) {
// console.log({ sectionIndex })
worker_processes 1;
user nobody nobody;
error_log /dev/stdout;
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
map $sent_http_content_type $expires
{
default off;
text/html 15m;
text/css 15m;
application/javascript 15m;
~image/ 15m;
}
server {
@jeziellopes
jeziellopes / ssh-permissions.md
Last active July 28, 2022 00:23
This is how we should set permissions on private keys in .ssh folder on Linux. Thanks to this guys on source link.
@jeziellopes
jeziellopes / bold.js
Last active July 28, 2022 00:21
This is my imlementation of Typing Bold Effect when searching with ReactJS
import React from "react";
import styled from "styled-components";
export const Bold = styled.label`
cursor: pointer;
font-size: 12px;
font-weight: bold;
`;
/**
@jeziellopes
jeziellopes / gist:71f3dec5a6e61ec8604f5dd6ba579829
Created September 15, 2020 02:29 — forked from jacielmelnik/gist:c225607865d358c0bc87
Tutorial Geração de App de teste para iOS

Requisitos:

  • Device UUID (para todos os devices que sejam necessário instalar o app)
  • Usuário e senha de publicação Apple Store
  • id da editora
  • id do titulo

Passos:

1. Login no member center: