Skip to content

Instantly share code, notes, and snippets.

View PauloLuan's full-sized avatar
💭
Ora et labora

Paulo Luan PauloLuan

💭
Ora et labora
View GitHub Profile
@PauloLuan
PauloLuan / Husky afiliado
Created May 9, 2023 14:38
Husky afiliado
https://husky.io?ref=zmqxzdu
@PauloLuan
PauloLuan / chatgpt_coding_inputs.md
Created January 27, 2023 12:37
ChatGPT coding inputs

Coding

  1. Act as senior front end developer
    1. I want you to act as a Senior Frontend developer. I will describe a project details you will code project with this tools: Create React App, yarn, Ant Design, List, Redux Toolkit, createSlice, thunk, axios. You should merge files in single index.js file and nothing else. Do not write explanations. My first request is "Create Pokemon App that lists pokemons with images that come from PokeAPI sprites endpoint"
  2. Create a TypeScript function that computes the implied volatility using the Black-Scholes model. Where the inputs are the underlying price, strike price, free-risk rate, and option price. Write it step by step, with an explanation for each step.
  3. I require UI assistance. I need three action buttons for a card component that includes a long statement, but I don’t want the buttons to always be visible. I need a good UI that functions on both desktop and mobile since if I try to show the buttons on Hoover, that logic won’t work on mobile.
  4. Act as a
@PauloLuan
PauloLuan / url_unshorten.sh
Created November 24, 2022 13:12
Unshorten URL's with CURL
cat urls.txt | while read f; do echo "${f}"; curl -Ls -o /dev/null -w %{url_effective} "${f}" -O; echo "\n"; done;
@PauloLuan
PauloLuan / minha_lapide.txt
Last active June 13, 2024 12:23
minha_lapide.txt
"Todos os caminhos levam a morte, perca-se."
"Se você é capaz manter sua cabeça no lugar quando todos estão perdendo as deles, e o culpam disso;
Se você é capaz confiar em si mesmo quando todos duvidam de você, e no entanto, permite que duvidem;
Se você é capaz de esperar sem perder a esperança;
@PauloLuan
PauloLuan / find_and_copy_file_by_name.sh
Last active June 6, 2022 13:35
Copy all files with a certain extension from all subdirectories
mkdir tests
find . -name \*test.tsx -exec cp {} tests \;
@PauloLuan
PauloLuan / gist:a2d63113ee15b49d7b3dae5aadb584c2
Created April 25, 2022 18:44
Se do nada, nada se faz, porque que existe algo ao invés de nada?
Se do nada, nada se faz, porque que existe algo ao invés de nada?
Vida só vem de vida.
Do nada, nada se faz.
@PauloLuan
PauloLuan / startup_launch.md
Created April 10, 2022 21:17
startup_launch.md

15 day tech startup launch plan:\

  • Domain on GoDaddy - 5 minutes\
  • Logo ideas on Dribbble - 5 minutes\
  • Brand assets on Figma - 40 minutes\
  • Website template design on Wix.com - 2 hours\
  • Webpage on Webflow - 2 hours\
  • Website to backend workflow on Zapier and Notion - 2 hours\
  • Early user testimonial videos on Testimonial - 30 minutes\
  • Early app building on FlutterFlow - 7 days\
  • Step by step instructions on using app on UserGuiding - 2 hours\
@PauloLuan
PauloLuan / gist:f46a46215cc4b6a9ee030f5bdf40e524
Created February 21, 2022 11:26
github actions cron example
name: 1-minute-cron
on:
schedule:
- cron: '*/1 * * * *'
jobs:
cron:
runs-on: ubuntu-latest
steps:
- name: Call the data scrapper API route
run: |
@PauloLuan
PauloLuan / react_native_eslint.md
Created February 2, 2022 13:57
React Native ESLINT config

eslint-config-universe

Shared ESLint configs for Node, Web, and universal Expo projects.

Installation

yarn add --dev eslint-config-universe eslint prettier @typescript-eslint/eslint-plugin @typescript-eslint/parser
@PauloLuan
PauloLuan / Ubuntu 20.04 tela trava quando aperta volume.md
Created September 24, 2021 11:23
Ubuntu 20.04 tela trava quando aperta volume

Deleting the line

modifier_map Mod3 { Scroll_Lock };

at the file:

/usr/share/X11/xkb/symbols/br

ps: only worked for me after deleting the US keyboard input and adding it again, not just switching between them.