Skip to content

Instantly share code, notes, and snippets.

View notsonoobie's full-sized avatar
🎯
Focusing

Rahul Gupta notsonoobie

🎯
Focusing
View GitHub Profile
<wsdl:definitions xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://www.webserviceX.NET" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://www.webserviceX.NET">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">
<s:element name="GetWeather">
<s:complexType>
// React JSX
<div className='posbtn'>
Password
<a className='text-absolute' href='/'>Reset</a> --------> The text is given position absolute
</div>
<Form.Control className='input-relative' type='text' /> --------> The input is given position relative
/* css
.input-relative{
@notsonoobie
notsonoobie / mongodb-connector.js
Created October 16, 2020 19:58
MongoDB Connection starter template using mongoose.
const mongoose = require('mongoose')
const connectDB = async () => {
try{
await mongoose.connect(process.env.MONGO_URI,{
useNewUrlParser: true,
useUnifiedTopology: true,
useCreateIndex: true,
useFindAndModify: false
})
@notsonoobie
notsonoobie / server.js
Created October 16, 2020 17:36
Starter template for NodeJS - ExpressJS setup.
const path = require('path')
const express = require('express')
const mongoose = require('mongoose')
const helmet = require('helmet') // Express App Security - Headers
const cors = require('cors')
const morgan = require('morgan') // Logging Request
const yup = require('yup') // Schema Validations
const app = express()
const PORT = process.env.PORT || 5000