Skip to content

Instantly share code, notes, and snippets.

View astynax's full-sized avatar

Aleksei Pirogov astynax

View GitHub Profile
import tkinter as tk
import greenlet
from random import randint, choice
MAX_X, MAX_Y = 800, 600
def scheduler(tasks, max_ticks=None):
tasks = list(tasks)
def scheduler_task(parent_tick=None):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@astynax
astynax / CV.md
Last active November 7, 2016 08:55
CV

Пирогов Алексей Владимирович

О себе

Пирогов
Алексей
Владимирович
Год рождения 1984
Пол Мужской
Место жительства г. Москва, Российская Федерация
@astynax
astynax / landscape.py
Created November 25, 2014 14:10
landscape render for charted.co
# -*- coding: utf-8 -*-
"""
landscape to "charted.co" render :)
"""
from operator import itemgetter
from itertools import groupby
land = """
..............................................................................................
@astynax
astynax / CV_eng.md
Last active August 29, 2015 14:18
CV (en)

Aleksey Pirogov

Inquisitive pythonista, clojurean, haskeller. Like functional programming, DSLs and readable, conscious, declarative code. Dislike quick-and-dirty solutions and technical doubt. Want to work for creation of useful tools for the developers to make they work easier.

I write a Python since the end of 2011 mostly the server-side using a Django. Couple of libraries which I developed, were successfully adopted by my colleagues and were widely used for building the most of our company's python-powered software. I raised a bunch of junior pythonistas, taught them a lot of advanced python-related technologies. I spoke about the Python and its tooling, Functional Programming, Literate Programming, etc at the number of conferences.

Major skills:

  • Python (Django, Tornado, Bottle, uWSGI+WebOb).
  • Development in the Linux environment (mostly Ubuntu).
@astynax
astynax / tree.fs
Last active October 5, 2016 15:40
Pine tree in gforth
( Program which prints a pine tree )
: star ( -- ) ." *" ;
: stars ( n -- ) 0 do star loop ;
: padd ( n1 n2 -- ) - spaces ;
: row ( n1 n2 -- n1 ) 2dup padd dup + 1- stars ;
: tree ( n -- ) dup 1 do I row cr loop ;
@astynax
astynax / README.md
Last active May 25, 2017 02:54
Vzhuhsay

Vzhuh!

  1. Make sure what you have a cowsay installed
  2. Save the vzhuh.cow to /usr/share/cowsay/cows
  3. ...
  4. PROFIT!
$ cowthink -f vzhuh Hello
 _____
< foo >
@astynax
astynax / dots.rkt
Created September 13, 2018 08:23
Generated picture "Dots"
#lang racket
(require 2htdp/image)
(define (dot flag s)
(underlay (square s 'solid (if flag 'white 'black))
(circle (/ s 2) 'solid 'gray)
(circle (/ s 4) 'solid (if flag 'black 'white))))
(define (sq2x2 flag i1 i2)
(if flag (sq2x2 #f i2 i1)
#lang racket
(require 2htdp/image)
(define (dot s)
(lambda (a)
(underlay
(circle (/ s 4) 'solid 'gray)
(square s (truncate a) 'black))))
(define (sq2x2 i)