Oops, I was too lazy to implement the RGB to HSL conversion myself, hence you need the colormath.
get_color_name((241, 95, 188)) # 'pink'
SELECT | |
*, | |
pg_size_pretty(table_bytes) AS table, | |
pg_size_pretty(index_bytes) AS index, | |
pg_size_pretty(total_bytes) AS total | |
FROM ( | |
SELECT | |
*, total_bytes - index_bytes - COALESCE(toast_bytes, 0) AS table_bytes | |
FROM ( | |
SELECT |
:) CREATE TABLE ranges (id UInt64, date_start Date, date_end Date) ENGINE = TinyLog; | |
:) INSERT INTO ranges SELECT rowNumberInAllBlocks() AS id, least(dates[1], dates[2]) AS date_start, greatest(dates[1], dates[2]) AS date_end FROM (SELECT arrayJoin(arrayMap(d -> [today() - d - rand64(d) % 10, yesterday() - d - rand(d) % 10], range(10))) AS dates); | |
:) CREATE TABLE dates (id UInt64, date Date) ENGINE = TinyLog; | |
:) INSERT INTO dates SELECT rowNumberInAllBlocks() AS id, date FROM (SELECT arrayJoin(arrayMap(d -> today() - rand64(d) % 10, range(10))) AS date); | |
/* моя волна */ | |
.rup__animation { display: none; } /* дебильная анимация моей волны */ | |
.rup { display: none; } /* хотя нет, вся "моя волна" дебильная */ | |
/* делаем поменьше отступы основной части интерфейса */ | |
.centerblock { | |
padding: 10px 30px 60px; | |
} | |
.d-header__title { |
Oops, I was too lazy to implement the RGB to HSL conversion myself, hence you need the colormath.
get_color_name((241, 95, 188)) # 'pink'
создаем таблицу
❯ curl -d "" "http://127.0.0.1:8123/?query=CREATE+TABLE+test+(x+UInt32,+y+String,+z+String)+ENGINE+=+TinyLog;"
смотрим формат входящих данных для VALUES
❯ cat example.values
(1, 'foo', 'bar'),
(2, 'foo', 'baz'),
(3, 'fxx', 'bxx')
{ | |
"title": "Fn improvements (gist.github.com/hatarist)", | |
"rules": [ | |
{ | |
"description": "Change Fn+key to Ctrl+key", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "spacebar", | |
"modifiers": { |
Copy this URL and paste it into the address bar to import it in the Karabiner Elements:
karabiner://karabiner/assets/complex_modifications/import?url=https://gist.githubusercontent.com/hatarist/f2888c1940e7ebccfeea184181c7726b/raw/karabiner-fn-to-ctrl.json)
def ppprint(data, fields=None, precision=2): | |
""" | |
P-P-PRETTY PRINTER! | |
>>> ppprint([{"foo": 1.2, "bar": "beer"}, {"foo": "bazzzzz", "bar": "bad"}]) | |
""" | |
if fields is None: | |
fields = list(data[0].keys()) | |
formatted_fields = [] |