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
<html> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Trying out partials in ejs</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |
<body> | |
<%- include('navbar.ejs') %> | |
<main role="main" class="container"> | |
What is Lorem Ipsum? | |
Lorem Ipsum is simply dummy text of the printing and typesetting industry. |
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
import "react-responsive-carousel/lib/styles/carousel.min.css"; | |
import { Carousel }from 'react-responsive-carousel'; | |
import FadeIn from 'react-fade-in'; | |
function Popup() { | |
return( | |
<FadeIn> | |
<Carousel showArrows={true} showThumbs={false} selectedItem={2}> {/* keeping current slide with arrows shown thumbs hidden */} | |
<div> | |
<img src="https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885_960_720.jpg" /> | |
<p className="legend">Legend 1</p> |
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
const timeLapsedSince = (createdOn)=>{ | |
let lapsedTime = new Date().getTime()-new Date(createdOn).getTime() // time in milliseconds | |
// time in days | |
let timeInDays = lapsedTime(86400 * 1000) | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
.line{ | |
animation: line-length 3s ease-in-out infinite; | |
} | |
#hand-boy,#hand-note-boy{ | |
animation: rotate 3s ease-in-out infinite; | |
} | |
@keyframes line-length{ | |
0%{ | |
transform : translate(-90.21711px,-178.25098px); | |
opacity: 0.1; |
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
const mongoose = require('mongoose') | |
var bcrypt= require('bcrypt') | |
const UserSchema=mongoose.Schema({ | |
name : { | |
type : String | |
}, | |
password : : { | |
type : String | |
} | |
}) |
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
const user = new User({ | |
name, | |
password | |
}) | |
await user.generatePassword() | |
/* we can write as many method functions in between as well*/ | |
await user.save() |
OlderNewer