Skip to content

Instantly share code, notes, and snippets.

View nicolasmontielf's full-sized avatar
💭
https://www.linkedin.com/in/nicolasmontielf/?locale=en_US

Nicolás Montiel nicolasmontielf

💭
https://www.linkedin.com/in/nicolasmontielf/?locale=en_US
View GitHub Profile
@nicolasmontielf
nicolasmontielf / pr_template.md
Created February 18, 2024 03:14
This is a template for your PR's

Context

Gives the reviewer some context about the work and why this change is being made, the WHY you are doing this. This field goes more into the product perspective.

Description

Provide a detailed description of how exactly this task will be accomplished. This can be something technical. What specific steps will be taken to achieve the goal? This should include details on service integration, job logic, implementation, etc.

Changes in the codebase

This is where becomes technical. Here is where you can be more focused on the engineering side of your solution. Include information about the functionality they are adding or modifying, as well as any refactoring or improvement of existing code.

Changes outside the codebase

@nicolasmontielf
nicolasmontielf / CartCompositionApi.vue
Created February 18, 2023 19:09
Example of a shopping cart component written using the Vue Composition API
<template>
<h3>Cart component</h3>
<OtherComponent />
</template>
<script setup>
import OtherComponent from './OtherComponent.vue'
import { computed, ref, watch, onMounted } from 'vue'
const props = defineProps({
@nicolasmontielf
nicolasmontielf / CartOptionApi.vue
Last active February 18, 2023 19:08
Example of a shopping cart component written using the Vue Option API
<template>
<h2>This is the Cart component</h2>
</template>
<script>
import OtherComponent from './OtherComponent.vue'
export default {
components: {
OtherComponent
@nicolasmontielf
nicolasmontielf / Login.tsx
Last active February 8, 2023 23:21
Login page for a React project, implementing FirebaseUI for authentication
// FirebaseUI
import firebase from 'firebase/compat/app';
import * as firebaseui from 'firebaseui'
import 'firebaseui/dist/firebaseui.css'
// React stuff
import { useEffect } from 'react';
import { useNavigate } from "react-router-dom";
// Auth service
// Import the functions you need from the SDKs
import { initializeApp } from "firebase/app";
import type { FirebaseOptions } from "firebase/app";
const firebaseConfig: FirebaseOptions = {
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,
databaseURL: import.meta.env.VITE_FIREBASE_DATABASE_URL,
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,
storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET,