Popular Code Snippets

C++ source code for Output console text with type-writer effect

17 February, 2019   

Missing images will either just display nothing, or display a [ ? ] style box when their source cannot be found. Instead, you may want to replace that with a "missing image" graphic that you are sure exists so there is better visual feedback that something is wrong. Or, you might want to hide it entirely. This is possible because...

28 January, 2019   

Usually, when one event loads, it writes over any previous ones. Using this snippet, you can add several events to one page without any problems.

Apache Code example for blocking based on User-Agent Header

PHP code example to get All-Time Number of MySQL Queries

Asp code example to show the date a file was created

04 December, 2018   

PHP Code to create Unique AlphaNumeric

26 November, 2018   

Cross-browser method for testing for pop-up blockers.

13 November, 2018   

Types for use with the AdjustImage overloaded functions. The types define valid ranges of values for various function parameters.

13 November, 2018   

Checks if the given string contains only valid ASCII characters. Returns True if so or False otherwise.

11 October, 2018   

C++Code Snippets to Write a character using cout

Whenever a row is inserted in the Customers Table, the following trigger will be executed.

C source code example for using struct tm, time_t, and time to create a simple clock

17 July, 2018   

This function takes a string and an output buffer and a desired width.

Example htaccess snippets to remove File Extention from URLs

This program checks whether an year (integer) entered by the user is a leap year or not.

CSS code snippet for Style Links Depending on Destination

23 May, 2018   

Add to bookmarks bar, select text, click it to get the word count.

Simple singly linked lists example usage; it is only one of many possible implementations

C++ Code Snippets for Octal - Hexadecimal - Decimal conversion