Codes from Developers

PHP

Image,Resizer,php

Image Resizer in PHP


C#

c#,get,random,value,each,time

This code blocks returns random number each call


Delphi

FindKey,delphi,FindNearest,

This code exemplifies the uses of the FindKey and FindNearest functions. This example requires a ClientDataset, a DataSource, a DBGrid, and a DBNavigator. Connect the DataSource to the DataSet and then connect the DBGrid to the DataSource. Also, the DBNavigator needs to be connected to the DataSource. Now you need to create two fields in the DataSet. Right-click the TClientDataset component, select Fields Editor, create two fields named field1 and field2. Then specify the IndexDefs property for ClientDataSet in the Object Inspector. Add two indexdefs. The first one should have the Fields property set to field1 and the Name property set to field1index while the second one should have field2 and field2index. Run the example, press the Create "DataSource" button, then add some records to the DBGrid with the aid of DBNavigator. After that, enter one of the values in any record in "field1" in the "Search for:" edit box. Press the "FindKey" button and observe the message that appears on the screen. Do the same with the "FindNearest" button.


C#

c#,text,operations,file

This Code Performs Text Operations in a File


C#

Builder,Pattern

Builder Pattern


JavaScript

Character,Counter,Javascript

Character Counter with Javascript


C#

c#,bitwise,operations

This Code Shows How to Illustrate Bitwise Operations


JavaScript

Searchable,Images,Jquery,Javascript

Searchable Images with Javascript


Delphi

FindText,delphi,TRichEdit,TButton,TFindDialog

This example requires a TRichEdit, a TButton, and a TFindDialog. Clicking the button Click displays a Find Dialog to the right of the edit control. Filling in the "Find what" text and clicking the Find Next button selects the first matching string in the Rich Edit control that follows the previous selection.


Java

Clock,Applet,java

Clock Applet in Java


PHP

Directory,browser,in,php

Directory browser in PHP


C#

c#,nullable,data,reader

C# 2.0 Nullable Data Readers This code shows nullable data readers for .NET 2.0 nullable types.


C#

singleton,pattern

Singleton Pattern


C#

auto,reset,event,c#,thread

this is the usage of autoresetevent in c#


C++

,Implementation,for,stack,c++

Implementation for stack in C++


C#

c#,binary,integer,recursion

This Code Prints Binary Equivalent of an Integer using Recursion


C#

c#,merge,sort

This Code Shows How to Perform Merge Sort. A merge sort is a sorting algorithm with complexity of O(nlogn). It is used for sorting numbers, structure, files.


Java

Grid,Layout,Demo,java

Grid Layout Demo in Java


PHP

Credit,Card,Identification,Validation,Class

Credit Card Identification and Validation Class - The credit_card class in PHP provides methods for cleaning, validating and identifying the type of credit card numbers


Java

Bean,util,java

Bean util in Java