Codes from Developers

PHP

Check,characters,,variable,are,alpha,numeric,using,ereg

Check that characters in a variable are alpha numeric using ereg in php


Delphi

builtin,component,streaming,delphi

This example shows how to use the built-in component streaming support to convert any component into a string and to convert that string back into a component.


C#

c#,reflection

These sample codes shows how to use reflections in C#


CSS HTML

hover,select,image,div,control,group,choose

this codes lets you make selection on hover.


C++

Files,and,Folders,using,Data,structure,c+

Files and Folders using Data structure in C++


C#

observer,pattern

Observer Pattern


C++

A,generic,stack,that,holds,two,values,in,c++

A generic stack that holds two values in c++


Delphi

type,character,delphi

The following example demostrates the use of some routines in Character unit that allow to determine the type of a character. When the user types something in the first memo, the second one gets filled with relevant information.


Delphi

region,clipping,rectanglecanvas,ClipRect,,delphi

This example creates a region and selects this region as the clipping rectangle for the Image component's canvas. It then sets the canvas's brush color to red and calls FillRect using the ClipRect as the area to fill. Lastly, the ClipRect is reset to the original value that it contained by calling SelectClipRect with nil as the second parameter and deletes the region. Place a TImage object in the form.


C#

prototype,pattern

Prototype Pattern


C#

c#,binary,reader,binaryreader

This Code Implements BinaryReader


PHP

Function,to,generate,calendars,on,the,fly

Function to generate calendars on the fly


Transact-SQL

sql,get,tables,sizes,of,db,size

this code block returns sizes of tables in your db


Delphi

TBitmap,CreateFromStream,delphi

This example demonstrates how to create a TBitmap using the CreateFromStream constructor.


C# JavaScript

associative,arrays,client-side,caching,ajax,javascript

Using Associative Arrays for Client-side Caching using AJAX & Javascript


Transact-SQL

sql,foreach,loop

this is an sql code for foreach loop


C++

Program,to,implement,Ellipse,Drawing,Algorithm,c++

Program to implement Ellipse Drawing Algorithm in C++


Java

Sending,a,file,from,Applet,to,Servlet,java

Sending a file from Applet to Servlet in Java


C++

Program,to,implement,Circle,Drawing,Algorithm,c++

Program to implement Circle Drawing Algorithm in C++


Delphi

draw,grid,top,row,DrawGrid,delphi

This code uses a draw grid and a button on a form. When the user clicks the button, the last row of the draw grid becomes the top row. This example requires a button, a DrawGrid, and a populated ImageList.