Skip to content

Instantly share code, notes, and snippets.

View danthegoodman1's full-sized avatar

Dan Goodman danthegoodman1

View GitHub Profile

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:

from flask import Flask
from flask_restful import Resource, Api, reqparse
app = Flask(__name__)
api = Api(app)
testdict = {"test1": "hello1", "test2": "hello2"}
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});
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 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,
<html>
<!-- modified from: https://github.com/DaftCreation/Paralex -->
<head>
<style>
body{
margin: 0;
padding: 0;
}
.section1{
height: 100vh;
body{
margin: 0;
padding: 0;
}
.section1{
height: 100vh;
width: 100%;
background-image: url(i1.jpg);
background-size: cover;
display: table;
/*! * 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: office@mdbootstrap.com * * 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
}
@danthegoodman1
danthegoodman1 / working-mdb.min.css
Last active January 14, 2018 17:22
From the website, this has a working dropdown menu hovering
:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#868e96;--gray-dark:#343a40;--primary:#007bff;--secondary:#868e96;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgr
#export CLICOLOR=1
#export LSCOLORS=ExFxCxDxBxegedabagacad
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[32;1m\]\$(parse_git_branch)\[\033[35m\]$\[\033[m\] "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'