Definition
db.collection.update(query, update, options)
syntax
db.collection.update(
package rmi; | |
/** | |
* This file contains class which have implemention of AddI interface | |
*/ | |
import java.rmi.RemoteException; | |
import java.rmi.server.UnicastRemoteObject; | |
/** | |
* This class defines add method, which is called by the client. | |
* @version 1.0 |
package number; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |
The example has been picked from
operationsdashboard/src/Demo/Flight/Preflightdata.js
In order to write better code, we should always think about readiblity of code and nameing conventions. Readibility of code make it easy for new developer to adopt the code and make new changes. For example you can see t5, t4, convertTime2, etc in the code. Any new developer can not understant the code directly, he/she must have to read the entire code and understand it's uses.
useEffect(() => {
// get item from local storage | |
export const getLocalStorage = (str)=>{ | |
try { | |
return localStorage.getItem(str); | |
} catch (error) { | |
// cookie is blocked | |
return false; | |
} | |
} |
require("dotenv").config(); | |
const express = require("express"); | |
const bodyParser = require("body-parser"); | |
const cookieParser = require("cookie-parser"); | |
const cors = require("cors"); | |
const morgan = require("morgan"); | |
// middleware |
Good Subarrays
Given an array of integers A. A subarray of an array is said to be good if it fulfills any one of the criteria: 1. Length of the subarray must be even and the sum of all the elements of the subarray must be less than B. 2. Length of the subarray must be odd and the sum of all the elements of the subarray must be greater than B. Your task is to find the count of good subarrays in A. If the count of good subarrays exceeds 10^9 then return 10^9. Input Format
When publishing posts, you might often need to embed any content from some other website. You can just use the native iframe
tag to embed any post.
code
<iframe src="https://www.linkedin.com/embed/feed/update/urn:li:share:6857907035879698432" frameborder="0" allowfullscreen="" title="Embedded post"></iframe>
Output
<iframe src="https://www.linkedin.com/embed/feed/update/urn:li:share:6857907035879698432" height="250" width="100%" frameborder="0" allowfullscreen="" title="Embedded post"></iframe>