Skip to content

Instantly share code, notes, and snippets.

View dthinkcs's full-sized avatar

w.d.w.f...s.t.w.c.l.2.p.o.u dthinkcs

View GitHub Profile
@dthinkcs
dthinkcs / passport.js
Created October 8, 2019 07:42 — forked from manjeshpv/passport.js
Passport.js using MySQL for Authentication with Express
// config/passport.js
// load all the things we need
var LocalStrategy = require('passport-local').Strategy;
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',
@dthinkcs
dthinkcs / mmds-q1.R
Created March 16, 2020 22:11 — forked from primaryobjects/mmds-q1.R
Mining Massive Datasets Quiz 1
# Q1
#
# Suppose we compute PageRank with a β of 0.7, and we introduce the additional constraint that the sum of the PageRanks of the three pages must be 3, to handle the problem that otherwise any multiple of a solution will also be a solution. Compute the PageRanks a, b, and c of the three pages A, B, and C, respectively. Then, identify from the list below, the true statement.
#
# Matrix
#
# A B C
# A 0 0 0
# B 0.5 0 0
# C 0.5 1 1