Q1 and Q2 are a constant current source. You must learn about how transistors work and learn Ohm's Law to understand their simple operation.
You were told how they work on the other website.
The CD4017 operation is described in its datasheet. It is a sequencer that makes one output pin go high in sequence each time a clock pulse goes high on its clock pin 14.