Пирогов Алексей Владимирович |
|
---|---|
Год рождения | 1984 |
Пол | Мужской |
Место жительства | г. Москва, Российская Федерация |
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 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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# -*- coding: utf-8 -*- | |
""" | |
landscape to "charted.co" render :) | |
""" | |
from operator import itemgetter | |
from itertools import groupby | |
land = """ | |
.............................................................................................. |
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).
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
( 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 ; |
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
#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) |
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
#lang racket | |
(require 2htdp/image) | |
(define (dot s) | |
(lambda (a) | |
(underlay | |
(circle (/ s 4) 'solid 'gray) | |
(square s (truncate a) 'black)))) | |
(define (sq2x2 i) |