- Make sure what you have a
cowsay
installed - Save the
vzhuh.cow
to/usr/share/cowsay/cows
- ...
- PROFIT!
$ cowthink -f vzhuh Hello
_____
< foo >
#lang racket | |
(require 2htdp/image) | |
(define (dot s) | |
(lambda (a) | |
(underlay | |
(circle (/ s 4) 'solid 'gray) | |
(square s (truncate a) 'black)))) | |
(define (sq2x2 i) |
#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) |
( 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 ; |
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:
# -*- coding: utf-8 -*- | |
""" | |
landscape to "charted.co" render :) | |
""" | |
from operator import itemgetter | |
from itertools import groupby | |
land = """ | |
.............................................................................................. |
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): |