Skip to content

Instantly share code, notes, and snippets.

@dbpatel219
dbpatel219 / db_copy.sql
Created July 19, 2021 13:18
Database Copy
SELECT pg_terminate_backend(pg_stat_activity.pid)
FROM pg_stat_activity
WHERE pg_stat_activity.datname = '<DB_NAME>'
AND pid <> pg_backend_pid();
CREATE DATABASE <NEW_DB_NAME>
WITH TEMPLATE <DB_NAME>;
@dbpatel219
dbpatel219 / README.md
Created October 21, 2018 01:22 — forked from brattonc/README.md
D3 Liquid Fill Gauge

Liquid Fill Gauge v1.1 - 7/14/2015

Changes:

  • Added support for updating the gauge value after loading is complete. The loadLiquidFillGauge method now returns an object with an update method which allows the gauge value to be changed. Click any of the gauges above to randomly update their value.

Configurable features include:

  • Changeable min/max values.
  • All colors.