давай попробуем составить небольшой обзор на игру гранд отель Австрия из списка эмоциональных заметок. далее заметки. играл с женой друзьями вчетвером, хотя вообще рекомендуют двух и я потом понял почему. когда выпадают гости, то если ты ходишь первым вообще бесполезно что то планировать, они все поменяются, об этом кстати говорили, что игра в базовом варианте когда ты ходишь змейкой с жёстким даунтаймом. даунтайм тоже был. я после своего хода шёл ставить чай. мы играли суммарно часов 6 и у меня после этого дикое желание продать игру. или сжечь. а надежды были очень большие. прям ждал игру долго, надеялся что жене понравится. потому что она нравится многим девочкам. Но в нашей партии она никому не понравилась. ещё кубики отвратительные. тебе обычно надо сгенерировать какие нибудь штрудели для покупки постояльцев, Но этот кубик обязательно заберут потому что он один будет. вообще было ощущение какого то дикого рандома. в итоге мы все получили к концу игры в районе 25-50 очков. а шкала до 250 очков. к
This file contains hidden or 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
from pathlib import Path | |
start = 3 | |
gap = 1 | |
for p in sorted(Path().glob("*.sql"), key=lambda p: p.name, reverse=True): | |
s = p.name.split("_", maxsplit=1) | |
num = int(s[0]) | |
name = s[1] |
This file contains hidden or 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
{ | |
"basics": { | |
"name": "Kirill Sulim", | |
"label": "Senior Java Developer", | |
"phone": "+7-912-66-123-16", | |
"url": "https://kirillsulim.github.io/", | |
"summary": "I am senior java developer with 10+ years of experience. I've successfully created and developed projects in many companies, including Yandex an VK. My main goal in development is to create long-term project with good code quality and infrastructure.\n In my free time I'm developing several small open-source development tools written in Python.\n", | |
"profiles": [ | |
{ | |
"network": "Telegram", |
На основе PGConf India 2020 - Top 10 Mistakes When Migrating From Oracle to PostgreSQL - Jim Mlodgenski - AWS
Настройки Oracle не транслируются 1 к 1 в настройки Postgres. Пример: (SGA == 16Gb) != (shared_buffer == 16Gb).
Нужен в Oracle, не нужен в Postgres.
This file contains hidden or 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
trap "exit 1" TERM | |
export TOP_PID=$$ | |
function error() { | |
echo "Error: $1" | |
kill -s TERM $TOP_PID | |
} >&2 | |
HDIR='${HOME}' | |
HHDIR='${HDIR}' |
This file contains hidden or 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 subprocess | |
import os | |
class VirtualenvAdapter(): | |
def __init__(self, dir, venv_dir_name='.venv'): | |
self.dir = dir | |
self.venv_dir = os.path.join(dir, venv_dir_name) | |
def enabled(self): |
This file contains hidden or 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
from typing import List | |
import subprocess | |
import sys | |
def call_and_get_out(command: List[str]): | |
with subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) as p: | |
try: | |
out, err = p.communicate() | |
code = p.poll() |
This file contains hidden or 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
package some; | |
import java.time.Clock; | |
import java.util.Objects; | |
import java.util.concurrent.ConcurrentLinkedQueue; | |
import java.util.concurrent.atomic.AtomicReference; | |
import java.util.function.BinaryOperator; | |
/** | |
* SlidingWindowCounter |
This file contains hidden or 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
l = (N) => { | |
sum = 0, iter = 1000000; | |
for (let i = 1; i < iter; i++) { | |
var s = 0, | |
j = 0; | |
while (s < N) { | |
s += Math.random(); | |
j++; | |
} | |
sum += j; |
NewerOlder