-
Head over to firebase. Sign in and create a project.
-
Copy your project settings under Firebase SDK snippet into your local project (ie your project's
api key
,auth domain
,databaseURL
, etc) -
Create a file (firebase.js or config.js Any name that suits you is fine)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FERNANDO LÓPEZ RAMÍREZ - A07144620 | |
;****************** HEADER FILES ****************************** | |
list p=18f4550 ; list directive to define processor | |
#include "p18f4550.inc" | |
;***************** CONFIGURATION BITS ****************************** | |
; PIC18F4550 Configuration Bit Settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; FERNANDO LÓPEZ RAMÍREZ - A07144620 | |
;****************** HEADER FILES ****************************** | |
list p=18f4550 ; list directive to define processor | |
#include "p18f4550.inc" | |
;***************** CONFIGURATION BITS ****************************** | |
; PIC18F4550 Configuration Bit Settings | |
; ASM source line config statements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; FERNANDO LÓPEZ RAMÍREZ - A07144620 | |
;****************** HEADER FILES ****************************** | |
list p=18f4550 ; list directive to define processor | |
#include "p18f4550.inc" | |
;***************** CONFIGURATION BITS ****************************** | |
; PIC18F4550 Configuration Bit Settings | |
; ASM source line config statements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gretting by the moment of the day | |
function getDayMoment() { | |
let hour = new Date().getHours(); | |
if (hour < 12) return ['Good morning', '👋']; | |
if (hour >= 12 && hour < 18) return ['Good afternoon', '👋']; | |
if (hour >= 18 && hour < 20) return ['Good evening', '🌗']; | |
if (hour >= 20) return ['Good night', '🌙']; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get current date | |
function getCurrentDate() { | |
let today = new Date(); | |
let day = String(today.getDate()).padStart(2, '0'); | |
let month = String(today.getMonth() + 1).padStart(2, '0'); //January is 0! | |
let year = today.getFullYear(); | |
return `${day.length == 1 ? '0' + day : day}/${month.length == 1 ? '0' + month : month}/${year}`; | |
} | |
// Get current time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let nums = [54, 26, 93, 17, 77, 31, 44, 55, 20]; | |
let temp = 0, count = 0; | |
while(count != nums.length) { | |
nums.forEach(function(num, i) { | |
if (num > nums[i + 1]) { | |
temp = nums[i + 1]; | |
nums[i + 1] = num; | |
nums[i] = temp; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Sweet Alert 2 | |
INSTALLATION: | |
npm i sweetalert2 | |
ICONS: | |
- success | |
- error | |
- warning |
Creamos un nuevo repositorio en https://github.com. Le damos nombre, descripción, seleccionamos si va a ser un proyecto publico o privado si es el caso, y dejamos el check de crear README sin marcar. Le damos a crear repositorio y con esto ya tenemos el repositorio donde alojaremos nuestro proyecto.
Nos vamos a la carpeta del proyecto y ejecutamos estos comandos.
git init
git add .