Skip to content

Instantly share code, notes, and snippets.

View jdukleth's full-sized avatar
🌠
Careening through the Universe.

Jason Dukleth jdukleth

🌠
Careening through the Universe.
View GitHub Profile
@harrytallbelt
harrytallbelt / matrix.js
Created October 25, 2017 18:24
A satisfying Matrix effect with Node.JS.
const LINE_WIDTH = 80 // 150
const CONTINUATION_PROBABILITY = 0.9
const FRAMERATE = 100
console.log('\x1b[32m') // green text
console.log('\x1b[40m') // black bg
let line = []
for (let i = 0; i < LINE_WIDTH / 2; ++i) {
line.push(false)
@Edudjr
Edudjr / datasources.json
Last active September 5, 2022 02:02
A script for loopback that automatically creates the folders and models from a database in postgresql. It also exposes the models to the Explorer API.
{
"dbname": {
"host": "localhost",
"port": 5432,
"database": "mydatabase",
"password": "user123",
"name": "dbname",
"user": "user",
"connector": "postgresql"
}