Skip to content

Instantly share code, notes, and snippets.

View has_many_test.sql
CREATE TABLE employees (
id serial primary key, -- ID
name text, -- 名前
join_year integer, -- 入社年
department_id integer -- 所属部署ID
);
CREATE TABLE departments (
id serial primary key, -- ID
name text -- 部署名
@takaram
takaram / showfile
Last active Oct 13, 2017
show the contents of multiple files with file names
View showfile
#!/bin/bash
set -eu
: ${FILENAME_COLOR:="\e[35m"}
if [ -t 1 ]; then
color=$FILENAME_COLOR
else
color=
fi
for opt in "$@"; do
You can’t perform that action at this time.