Skip to content

Instantly share code, notes, and snippets.

View danthegoodman1's full-sized avatar

Dan Goodman danthegoodman1

View GitHub Profile
/*! * Material Design for Bootstrap 4 * Version: MDB Free 4.4.4 * * * Copyright: Material Design for Bootstrap * https://mdbootstrap.com/ * * Read the license: https://mdbootstrap.com/license/ * * * Documentation: https://mdbootstrap.com/ * * Getting started: https://mdbootstrap.com/getting-started/ * * Tutorials: https://mdbootstrap.com/bootstrap-tutorial/ * * Templates: https://mdbootstrap.com/templates/ * * Support: https://mdbootstrap.com/support/ * * Contact: [email protected] * * Atribution: Animate CSS, Twitter Bootstrap, Materialize CSS, Normalize CSS, Waves JS, WOW JS, Toastr, Chart.js , Hammer.js * */
.mr-0,.mx-0{
margin-right:0!important
}
.ml-0,.mx-0{
margin-left:0!important
}
.mt-0,.my-0{
margin-top:0!important
}
body{
margin: 0;
padding: 0;
}
.section1{
height: 100vh;
width: 100%;
background-image: url(i1.jpg);
background-size: cover;
display: table;
<html>
<!-- modified from: https://github.com/DaftCreation/Paralex -->
<head>
<style>
body{
margin: 0;
padding: 0;
}
.section1{
height: 100vh;
const express = require('express');
const router = express.Router();
const User = require('../models/user.js');
const passport = require('passport');
const jwt = require('jsonwebtoken');
// Register
router.post('/register', function(req, res, next){
let newUser = new User({
name: req.body.name,
const mongoose = require('mongoose');
const bcrypt = require('bcryptjs');
const config = require('../config/database');
// User schema
const UserSchema = mongoose.Schema({
name: {
type: String
},
email: {
const express = require('express');
const path = require('path');
const bodyParser = require('body-parser');
const cors = require('cors');
const passport = require('passport');
const mongoose = require('mongoose');
const config = require('./config/database');
// Connect to database (this is from the comments since the old .connect() is deprecated)
mongoose.createConnection(config.database, {useMongoClient: true});
from flask import Flask
from flask_restful import Resource, Api, reqparse
app = Flask(__name__)
api = Api(app)
testdict = {"test1": "hello1", "test2": "hello2"}

Keybase proof

I hereby claim:

  • I am danthegoodman1 on github.
  • I am danthegoodman (https://keybase.io/danthegoodman) on keybase.
  • I have a public key whose fingerprint is C7EE BA5A 0CB0 E58A B7D7 C40D 54C6 AE50 427C A0CA

To claim this, I am signing this object: