Skip to content

Instantly share code, notes, and snippets.

View danthegoodman1's full-sized avatar

Dan Goodman danthegoodman1

View GitHub Profile
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: