Problem Description
Given a letter, print a diamond starting with ‘A’ with the supplied letter at the widest point.
For example: print-diamond ‘C’ prints
A
| # -*- coding: utf-8 -*- | |
| from django.contrib.sites.models import Site | |
| from django.db import models | |
| class AdChannel(models.Model): | |
| id = models.CharField(max_length=100, primary_key=True) | |
| name = models.CharField(max_length=50) | |
| CHANNEL_TYPE_CHOICES = ( | |
| ('page', 'Page'), ('unit', 'Ad Unit'), ('template', 'Template'), |
| " MyConf | |
| NeoBundle 'wakatime/vim-wakatime' | |
| NeoBundle 'dkprice/vim-easygrep' | |
| "NeoBundle 'scrooloose/nerdtree' | |
| "NeoBundle 'jistr/vim-nerdtree-tabs' | |
| "NeoBundle 'scrooloose/nerdcommenter' | |
| "NeoBundle 'wincent/Command-T' | |
| "NeoBundle 'kien/ctrlp.vim' |
| if has('vim_starting') | |
| set nocompatible " Be iMproved | |
| " Required: | |
| let &runtimepath .= ',' . expand($HOME . '/.vim/bundle/neobundle.vim/') | |
| endif | |
| " Required: | |
| call neobundle#begin(expand($HOME . '/.vim/bundle/')) | |
| if has('vim_starting') | |
| set nocompatible " Be iMproved | |
| " Required: | |
| let &runtimepath .= ',' . expand($HOME . '/.vim/bundle/neobundle.vim/') | |
| endif | |
| " let neobundle_readme=expand($HOME . '/.vim/bundle/neobundle.vim/README.md') | |
| " | |
| " if !filereadable(neobundle_readme) |
| if has('vim_starting') | |
| set nocompatible " Be iMproved | |
| " Required: | |
| set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
| endif | |
| let neobundle_readme=expand('~/.vim/bundle/neobundle.vim/README.md') | |
| if !filereadable(neobundle_readme) |
| ## {{{ http://code.activestate.com/recipes/532908/ (r3) | |
| #! /usr/bin/env python | |
| """ | |
| pyText2Pdf - Python script to convert plain text files into Adobe | |
| Acrobat PDF files with support for arbitrary page breaks etc. | |
| Version 2.0 | |
| Author: Anand B Pillai <abpillai at gmail dot com> | |