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 / debug_nextjs_browser.sh
Last active April 8, 2024 12:12
Debug nextjs on browser
NODE_OPTIONS='--inspect' next dev
@PauloLuan
PauloLuan / png_to_webp.sh
Last active February 27, 2024 18:59
png_to_webp.sh
#!/bin/bash
# Loop through all PNG files in the current directory
for png_file in *.png; do
if [ -f "$png_file" ]; then
# Get the filename without the extension
filename=$(basename -- "$png_file")
filename_noext="${filename%.*}"
# Convert the PNG to WebP
@PauloLuan
PauloLuan / clean_all_nodemodules_from_computer.sh
Created February 16, 2024 13:51
clean_all_nodemodules_from_computer.sh
#! /usr/bin/env sh
set -e
find "${1-"$(pwd)"}" -name 'node_modules' -type d -prune -exec rm -rf '{}' +
@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
Created August 4, 2022 17:57
minha_lapide.txt
"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;
Ou sendo enganado, não se utilizar de mentiras;
Ou sendo odiado, não se render ao ódio e ainda não parecer bom demais, nem pretensioso;
@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\