Skip to content

Instantly share code, notes, and snippets.

@eezing
eezing / index.mjs
Last active October 13, 2022 06:08
Start a PostgreSQL database in Docker
#!/usr/bin/env node
import { execSync } from 'child_process';
import postgres from 'postgres';
const NAME = process.env.NAME;
const VERSION = process.env.VERSION ?? '14';
const RESET = process.env.RESET === 'true';
const PGHOST = process.env.PGHOST ?? 'localhost';
@eezing
eezing / learning-resources.md
Last active May 26, 2021 20:59
Learning Resources
@eezing
eezing / README.md
Last active May 17, 2020 20:24
hello-world

Hello World

Webhook Integration

After a user submits a screening, PointCare will send the screening data to your webhook receiver via an HTTP POST request.

Implementation Steps

  1. Use the specification and sample data below to construct your webhook receiver.

  2. Once your receiver is live, email PointCare development team the required HTTP parameters:

export default function(msg: string) {
console.log(msg);
}

NodeJS Setup

Setup guide for NodeJS on MacOS.

Get Started

  1. Install NVM - Node Version Manager.

  2. Run nvm install node to install latest NodeJS version.

vscode setup

Extensions

Note: Requires vscode CLI is intalled

Run in command line:

code --install-extension AndrewRazumovsky.vscode-styled-jsx-languageserver
code --install-extension alexkrechik.cucumberautocomplete

Docker for NodeJS

Dockerfile

FROM node:10.11-alpine

# Create app dir
RUN mkdir -p /usr/app
WORKDIR /usr/app

Bash Notes

Notes, code snippets for Bash.

Offical Docs

Snippets

isEmpty function

@eezing
eezing / notes_git.md
Last active November 1, 2018 20:39
Notes, code snippets, how to for Git CLI

Git Notes

Notes, code snippets, how to for Git CLI.

Offical Docs

Snippets

delete all local branches