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
AUTH_USER_MODEL = 'yourapp.User' |
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
.single-post-wrap{ | |
width:80% !important; | |
margin:0 auto !important; | |
} | |
.single-post-container{ | |
width: 100% !important; | |
} | |
.blog-sidebar{ |
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
alert("Say Hello") |
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 { | |
box-sizing: border-box; | |
} | |
*, | |
*:before, | |
*:after { | |
box-sizing: inherit; | |
} | |
@font-face { | |
font-family: 'Open Sans'; |
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 messsageText = document.getElementById("messageText") | |
const apiKey = "" | |
const client = new StreamChat(apiKey); | |
const init = (url, username)=>{ | |
fetch(url,{ | |
headers: { | |
'Content-Type': 'application/json' | |
}, | |
method: "post", |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=\, initial-scale=1.0"> | |
<title>Stream Live Chat</title> | |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> | |
<link href="style.css" rel="stylesheet" id="bootstrap-css"> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=\, initial-scale=1.0"> | |
<title>Stream Chat</title> | |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> | |
<link href="style.css" rel="stylesheet" id="bootstrap-css"> |
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') | |
const Schema = mongoose.Schema | |
const userSchema = new Schema({ | |
firstname: { type: String, required: false }, | |
middlename: { type: String, required: false }, | |
surname: { type: String, required: false }, | |
dob: { type: Date, required: false }, | |
address: { type: String, required: false }, |
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
# https://regex.sketchengine.co.uk/cgi/ex1.cgi | |
# Enter a regexp that matches all the items in the first column (positive examples) but none of those in the second (negative examples). | |
# When you press "submit", you will see what matched. | |
# Answer: | |
# Negative | |
^[pP][^i]+ | |
# Positive |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link src='https://use.fontawesome.com/releases/v5.0.13/js/all.js'></link> | |
<link rel="stylesheet" href="./static/style.css"> | |
<title>Stream Chat App </title> | |
</head> |