Example of If Statement in python
Open up a text editor, copy & paste the code below. Save the file as: "commandlinefu.py" and exit the editor.
all: Used for all media type devices aural: Used for speech and sound synthesizers braille: Used for braille tactile feedback devices embossed: Used for paged braille printers handheld: Used for small or handheld devices print: Used for printers projection: Used for projected presentations, like slides screen: Used for computer screens tty: Used...
How to read text file and print its contents to the console line by line.
Shows how to upload a single file to a FTP server.
Delphi Code Example for Print Screen using Quick Reports
I would like to find the position of the last occurrence of a character in a string and print every thing after that.
The pyperl dist provide an interface to the Perl DBI (dbi.py). This allow direct access to all the perl supported databases from python. Full documentation of the API from 'perldoc DBI' or the ORA "Programming the Perl DBI" book, by A. Descartes and T. Bunce.
Sending short text messages with socket datagrams is simple to implement and provides a very lightweight message passing idiom.
PHP & Mysql based code to Print table with client-side sorting function.
The example Python code to Rotate sequences left or right
Fortran programmer should always write new code in Fortran 90 or Fortran 95, but for those of you stuck on a desert island with only a FORTRAN 77 compiler at your disposal, here's a way to write a recursive subroutine. FORTRAN 77 subroutines and functions are not allowed to call themselves directly. Attempting to do such will result in a compile...
C++ example code for showing how to allocate and free memory
This snippet to show how to use the Last-Modified and the ETag header to optimize the caching of a website. If used correctly this will speed up your page loads.
C++ code example shown here how to write to text file.
An example code to Copy data into dotNet array
Source code of C/C++ program, showing how to work with arrays.
Showing how to work with dynamically allocated arrays
Throwtest an application that demonstrates how to define, throw, and handle exceptions. This application doesn't do anything other than print out some text, but if you might want to study it and play around with it to learn more about how exceptions work in Java. See the usage instructions in the source code.
Php code to guessing a number using in html page