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 lang="en"> | |
<head> | |
<title>Dialog demo</title> | |
<script type="module"> | |
/** | |
* @param url URL | Location | |
* @returns HTMLDialogElement | undefined | |
*/ | |
function currentDialog(url) { |
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
"x64 Native Tools VS 2019": { | |
"path": [ | |
"${env:windir}\\Sysnative\\cmd.exe", | |
"${env:windir}\\System32\\cmd.exe" | |
], | |
"args": [ | |
"/d", | |
"/k", | |
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat", | |
"amd64" |
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
const {BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend} = Recharts; | |
const data = [ | |
{name: 'Page A', uv: 4000, pv: 2400, amt: 2400}, | |
{name: 'Page B', uv: 3000, pv: 1398, amt: 2210}, | |
{name: 'Page C', uv: 2000, pv: 9800, amt: 2290}, | |
{name: 'Page D', uv: 2780, pv: 3908, amt: 2000}, | |
{name: 'Page E', uv: 1890, pv: 4800, amt: 2181}, | |
{name: 'Page F', uv: 2390, pv: 3800, amt: 2500}, | |
{name: 'Page G', uv: 3490, pv: 4300, amt: 2100}, | |
]; |
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
const {BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend} = Recharts; | |
const data = [ | |
{name: 'Page A', uv: 4000, pv: 2400, amt: 2400}, | |
{name: 'Page B', uv: 3000, pv: 1398, amt: 2210}, | |
{name: 'Page C', uv: 2000, pv: 9800, amt: 2290}, | |
{name: 'Page D', uv: 2780, pv: 3908, amt: 2000}, | |
{name: 'Page E', uv: 1890, pv: 4800, amt: 2181}, | |
{name: 'Page F', uv: 2390, pv: 3800, amt: 2500}, | |
{name: 'Page G', uv: 3490, pv: 4300, amt: 2100}, | |
]; |
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 timetest(a timestamp, b timestamp); | |
insert into timetest values(TIMESTAMP WITH TIME ZONE '2017-03-01 01:00:00+00', TIMESTAMP WITH TIME ZONE '2017-03-01 03:00:00+02'); | |
select * from timetest where a = b; | |
a | b | |
---------------------+--------------------- | |
2017-03-01 03:00:00 | 2017-03-01 03:00:00 | |
(1 row) | |
select extract(timezone from a), a, extract(timezone from b), b from timetest where a = b; | |
ERROR: timestamp units "timezone" not supported | |
drop table timetest; |
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 seat_day (activated tstzrange); | |
create index activated_idx on seat_day using gist(activated); | |
insert into seat_day values('[2017-03-03 14:30, 2070-03-03 15:30]'); | |
insert into seat_day values('[2017-03-06 15:30, 2070-03-06 16:30]'); | |
insert into seat_day values('[2017-03-08 16:00, 2070-03-08 17:00]'); | |
insert into seat_day values('[2017-03-10 14:30, 2070-03-10 15:30]'); | |
with activated as |
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
#!/bin/sh | |
docker events --filter 'event=start' --filter 'event=stop' | while read event | |
do | |
container_id=`echo $event | sed 's/.*Z\ \(.*\):\ .*/\1/'` | |
echo $container_id |