Skip to content

Instantly share code, notes, and snippets.

View ygdkn's full-sized avatar
Having "damn fine cup of coffee"

Sergey Yagodkin ygdkn

Having "damn fine cup of coffee"
View GitHub Profile
@ygdkn
ygdkn / build-push-clickhouse.sh
Created February 24, 2018 11:37 — forked from VladRassokhin/build-push-clickhouse.sh
Build and publish ClickHouse docker images
#!/usr/bin/env bash
# Init variables
version="1.1.54343"
server_tag="yandex/clickhouse-server:$version"
client_tag="yandex/clickhouse-client:$version"
# Build image
# TODO: Uncomment and fix if needed
#docker build --pull --tag "$server_tag" server
@ygdkn
ygdkn / beautiful_idiomatic_python.md
Created January 7, 2017 18:15 — forked from JeffPaine/beautiful_idiomatic_python.md
Transforming Code into Beautiful, Idiomatic Python: notes from Raymond Hettinger's talk at pycon US 2013. The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]:

How Do I Into Git?

a helpful primer for users sick of git's poorly-named commands

I've used Git since 2011, and this is the stuff that I've always had to Google to remember. I hope it helps you not hate Git so much.

Learning About the Repo

Learning About History