This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET SESSION app.id TO DEFAULT; | |
SET ROLE postgres; | |
SET search_path = 'public'; | |
DROP TABLE IF EXISTS expenses CASCADE; | |
DROP TABLE IF EXISTS projects CASCADE; | |
DROP TABLE IF EXISTS users CASCADE; | |
CREATE TABLE users ( | |
user_name text PRIMARY KEY NOT NULL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import readline from 'readline' | |
const w = process.stdout.columns | |
const h = process.stdout.rows | |
const init = () => Array.from({ length: w * h }).map(() => Math.round(Math.random())) | |
let state = init() | |
const deindex = (i) => [i % w, Math.floor(i / w)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>How to center text</title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<table style="width: 100%; height: 100%; position:absolute;"> | |
<tr> | |
<td valign="middle" align="center"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE _table ( | |
pk SERIAL PRIMARY KEY, | |
field1 TEXT, | |
field2 TEXT, | |
date_deleted TIMESTAMPTZ | |
); |
OlderNewer