Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Excel Add-in for DB2 1.7
wolfSSL 4.0.0
EntityDAC Express 2.2
SecureBridge 9.1
C# HTML to PDF 2019.6.5
PHP Ecommerce Script 3.6
Devart SSIS Data Flow Components 1.11
dbForge Data Compare for PostgreSQL 3.2.15
OrgChart JS 4.9.7
iScripts CyberMatch 1.3.3
AnyGantt JS Gantt Charts 8.7.0
Database Workbench Pro 5.6.8
SentiMask SDK Trial 2.0.193121
dbForge Studio for SQL Server 5.8
ODBC Driver for ASE 2.1.2
Top Code
SecureBridge 8.0
iScripts CyberMatch 1.3
dbForge Data Compare for PostgreSQL 2.0
dbForge Studio for SQL Server 5.5
Database Workbench Pro 5.6.8
PHP Ecommerce Script 1.0.4
Availability Booking Calendar PHP 1.0
ATN Site Builder 3.0
Excel Add-in for DB2 1.1
tkhtml 1.0
Windows Leaks Detector 1.1.3
TBG Engine Suite 2.0.6
MySpace Glitter Text Generator Module 1.0
myspace-events 0.1
myspace-ruby 0.7.1
Top Rated
VisualNEO Web 2018.12.15
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
printing a banner/title line 
File ID: 66326






printing a banner/title line 
Download printing a banner/title line http://code.activestate.com/recipes/577274-subtract-or-add-a-month-to-a-datetimedate-or-datet/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 32
User Rating:3 Stars  (2 ratings)
Submit Rating:
printing a banner/title line  Description
Description: Sometimes it is nice to print a banner line in the output of a command line script to group a section of output (say, in a log file). This little banner() function will center a given string in a line (using a character and length you can specify).

Update: Just use string.center(...) (docs) as suggested in the comments below.

License: Freeware

Related: Text

O/S:Windows

Downloads: 32



More Similar Code

This plugin will limit a post title to a predefined number of characters. While showing at the right of the post title the current number of characters, it will stop WordPress from publishing the post if the title is over the maximum allowed.

Usefull to limit title characters dues to theme restrictions, or Twitter automatic posting, for examples.

Install :

Install this plugin by going to Plugins >> Add...



Windows has a nice command line program capable of printing out a tree of the the folders, sub-folders, and possibly the files of a directory. The tool below mimics a behavioral subset of TREE, Microsoft's inspiring utility. This version is...



plots a 3-D "line" with c-data as color
Makes a surface object and the colouring is controlled by the colormap.

Example:
v_start = [2 1 8]; % m/s
g = 9.81; % m/(s^2)
t_impact = 2*v_start(3)/g; % s
t =...



The Sub Title Plus - SEO WordPress plugin provides an elegant method for users to assign a sub title to posts and pages. A sub title can be used to assign a mini description to a post or can be used for any other purpose. The Spunky Jones blog...



Here is a lumped parameter model of a hydraulic transmission line.
The line is modeled by one, two, three, four and ten lump models.
The simulation program presents the transient response in addition to experimental results.
The...



MTIT
- creates a major title above all axes in a figure
- preserves the stack order of the axes

several options allow to fine-tune the position of the title and typical text property/value pairs may be used as additional input...



Displays a banner graphic on your site whenever you update a post or page on your blog.



Banner is a banner rotation applet in java, which displays images as banners anywhere on your web page. In the parameter setting it allows you to set the time the banner will stay on the screen, the time for displaying the next image and also to...



This program counts the 'clicks' on a banner ad (or any hyper-link) and logs the user information. Also a script for the user (banner owner) to log in with a user name and password to check the statis of their banner. This script can be used on...



A banner exchange script with free and paid accounts. It provides a 2:1 banner ratio. For paid services, it has credits and banner advertising on the main website. It includes an anti-cheat referral system that promotes the exchange itself. You...

User Review for printing a banner/title line
- required fields
     

Please enter text on the image