Skip to content

Instantly share code, notes, and snippets.

View chernyshev-alex's full-sized avatar

chernyshev alexander chernyshev-alex

  • grid dynamics
  • krakow, poland
View GitHub Profile
7. for (int i =0; i < 8; i++) {
println("urodzielem sie dnia " + call_function_from_item_4())
}
8. // I took formula from here
// https://www.cdc.gov/nccdphp/dnpao/growthcharts/training/bmiage/page5_1.html#:~:text=With%20the%20metric%20system%2C%20the,by%2010%2C000%2C%20can%20be%20used.
float calc_bmi(weight_kg, height_cm int)
return (10,000 * weight_kg / (height_cm * height_cm))
}
@chernyshev-alex
chernyshev-alex / botgen.py
Last active September 6, 2018 11:54
generate Ad log entries for GU tasks
import sys
import json
import random
from datetime import datetime, timedelta
#########################
# Ad logs json generator
#
# Help : python botgen.py -h
#
@chernyshev-alex
chernyshev-alex / docker-compose-connect.yml
Created May 25, 2018 12:31
kafka docker-compose with registry and connect
version: '3'
services:
zookeeper:
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
image: confluentinc/cp-zookeeper:4.1.0
@chernyshev-alex
chernyshev-alex / docker-compose-minimal.yml
Created May 25, 2018 12:25
kafka docker-compose minimal
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:4.1.0
container_name: zookeeper
hostname: zookeeper
ports:
- "2181:2181"
environment: