Skip to content

Instantly share code, notes, and snippets.

@sharp0111
sharp0111 / express_postgress_knex.md
Created March 20, 2020 05:13 — forked from laurenfazah/express_postgress_knex.md
Cheat Sheet: Setting up Express with Postgres via Knex

Express & Postgres via Knex

Note: <example> is meant to denote text replaced by you (including brackets).

Setup

// global dependencies
npm install -g knex
@sharp0111
sharp0111 / hashTableLinkedList.js
Created January 22, 2018 06:10 — forked from hamannjames/hashTableLinkedList.js
Javascript hash table with linked lists in buckets
// code pen url: https://codepen.io/jaspercreel/pen/RgXjEp
// Declaring a node and list class outside of the hash class avoids binding issues with this
// The node class should only be created with a key value pair
class Node {
constructor(key, value) {
this[key] = value;
this.next = null;
}