Skip to content

Instantly share code, notes, and snippets.

View ezesundayeze's full-sized avatar
🏠
Working from home

Eze Sunday ezesundayeze

🏠
Working from home
View GitHub Profile
AUTH_USER_MODEL = 'yourapp.User'
.single-post-wrap{
width:80% !important;
margin:0 auto !important;
}
.single-post-container{
width: 100% !important;
}
.blog-sidebar{
alert("Say Hello")
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
@font-face {
font-family: 'Open Sans';
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",
<!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">
<!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">
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 },
# 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
@ezesundayeze
ezesundayeze / chat.html
Last active February 10, 2020 20:38
A basic chat application ui
<!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>