Skip to content

Instantly share code, notes, and snippets.

View jotredev's full-sized avatar
🔥

Jorge Luis Trejo Payan jotredev

🔥
View GitHub Profile
@jotredev
jotredev / dateFormat.js
Last active July 7, 2023 02:06
Funciones de JavaScript
export const dateFormat = (date) => {
const newDate = new Date(date.split("T")[0].split("-"));
const options = {
year: "numeric",
month: "long",
day: "numeric",
};
return newDate.toLocaleDateString("es-ES", options);
@jotredev
jotredev / coludinary.config.js
Last active January 18, 2023 02:10
Subir archivos a Cludinary con Node JS, Express
import cloudinary from "cloudinary";
cloudinary.v2.config({
cloud_name: [CLOUDINARY_NAME],
api_key: [CLOUDINARY_API_KEY],
api_secret: [CLOUDINARY_API_SECRET],
});
// Subir archivo a cloudinary
export const uploadAvatar = async (file) => {
@jotredev
jotredev / scrollbar.css
Last active January 18, 2023 02:11
CSS para scrollbar
::-webkit-scrollbar {
width: 3px;
}
::-webkit-scrollbar-thumb {
background: "#000";
border-radius: 10px;
}