Search
New Code
Database Workbench Pro 5.4.6
Extensibility Studio 3.0
Bytescout Spreadsheet SDK 3.0.0.1699
Magento 2 Admin Mobile App 1.0
Data Compare for MySQL 5.3
ODBC Driver for Zoho CRM 1.3
ODBC Driver for SugarCRM 1.3
Bytescout PDF To HTML SDK 9.0.0.3079
Azizi search engine script PHP 4.1.10
TaxiSoftr - Taxi Booking & Dispatch Software 1.0
VisualNEO for Windows 18.08.31
AnyMap JS Maps 8.4.0
ODBC Driver for MailChimp 1.3
OrgChart JS 3.0.7
AnyStock Stock and Financial JS Charts 8.4.0
Top Code
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
Advanced MLM Software 1.2
Online Food Ordeing System 1.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
PHP Point of sale 10.0
Travel Portal Script 9.29
Excel Add-in for Bigcommerce 1.6
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Code Listing by Denis Barmenkov

Code 1-10 of 19   Pages: Go to  1  2  Next >>  page  






Sometime pprint module is not enough for formatting data for console or log file output.
This module provide function which fill the gap.

Sample function call:

nums = [ '1', '2', '3', '4' ]
speeds = [ '100', '10000', '1500', '12' ]
desc = [ '', 'label 1', 'none', 'very long description' ]
lines = format_table( [(nums, ALIGN_RIGHT|PADDING_ALL, 'NUM'),
(speeds,...



Sometime I want extract part of disk-based log file, created by standard
logging module) into separated file on disk.
This recipe shows simple technique to acquire this.

Sample: processing tasks in loop, so on exit I have few...



For small dirty hacks in Perl has a module File::Slurp.
I wrote two simple functions when I moving from Perl to Python - one for reading files and second for writing files. Valuable data is list of lines or blob (additionally specified...



I've found a bug in import EML file into Thunderbird using ImportExportTools addon:
when I import eml file into TB there are a 'From' line added to mbox followed with EML file contents.
TB maintains right 'From' line for messages fetched...



When you release your program to client, its a good idea to disable all the debug messages.
It is possible via custom configuring debug levels at all modules, but may be implemented using simple wrapper around logging.getLogger() function.



As you can see in Windows Control Panel 'System' applet there are two groups of environment variables: USER and SYSTEM.
Here presents function for retrieve SYSTEM variable value.



Currently XnView image viewer (versions up to 1.97.6) correctly rotate images only when option "[x] make backup" set.

Backup files have added name part '.xnbak' before extension:

original file: IMG0001.jpg



On some task I need to collect file names under specified directory with distance from it. Standard os.walk function do not return depth value.

One solution -- find function which will calculate relative distance from top directory to...



I received UnicodeEncodeError when playing with various codepages in source code/files/standard streams.
Sometime I receive UnicodeEncodeError when script launched via scheduler or in long running batch when parsing unpredictable [alien ;)]...



Python 2.3 module textwrap can justify text in three modes: left/right/center.
Sometimes 'align' mode become more useful.