Skip to content

Instantly share code, notes, and snippets.

@Amantel
Amantel / express_test
Created March 2, 2018 00:00
Express-sessions test for Chrome prediction problem
//DEBUG=express-session,express:* node index.js
var express = require("express");
var session = require("express-session");
var MongoDBStore = require("connect-mongo")(session);
var mongoUrl = "******";
var store = new MongoDBStore({
url: mongoUrl,
@Amantel
Amantel / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
/*** mysql hostname ***/
$hostname = 'localhost';
$dbname = 'dbname';
/*** mysql username ***/
$username = 'username';