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
private int sum (int a , int b){ | |
return a + b; | |
} |
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
package SelfPractice; | |
public class SLLNode{ | |
int data; | |
SLLNode next; | |
SLLNode(int data){ | |
this.data = data; | |
this.next = null; | |
} |
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 expModel = require("./dbsetup"); | |
const routes = [ | |
{ | |
method: "GET", | |
path: "/api/", | |
handler: (req, res) => { | |
return `Hello There !`; | |
} | |
}, |
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"); | |
mongoose.connect( | |
`mongodb://localhost/experiences`, | |
{ useNewUrlParser: true } | |
); | |
const expSchema = mongoose.Schema({ | |
title: String, | |
description: String, |