Resize Array Snippets


09 July, 2011   

How to sort array in smarty template? Create sort modifier file and save it in smarty / plugins with modifier.sortby.php name use this modifier in smarty template like... {foreach item=item key=key from=$users|@sortby:"firstname"} {$item.id}-{$item.firstname} {/foreach}

06 August, 2012   

Showing how to sort array of numbers using built-in qsort

24 April, 2014   

[UNIT] Im Spreading. I posted it as learning to defend yourself.

13 October, 2015   

This function removes all duplicated lines of the given text file.

28 April, 2011   

Over the years I have made quite a few software programs in Delphi, and inevitably I have also come up with many useful functions. Most of them I have never published on the Internet before, now I would like to list on blog. Part 1 are functions for managing integer or real numbers, they were written very early in 1997.

10 November, 2014   

Easy way to parses RSS into an array

28 October, 2014   

Quick and simple example to parses RSS into an array

06 March, 2012   

An example code for JavaScript Random Quotes

31 May, 2015   

Enhanced for loop is useful when scanning the array instead of using for loop.

12 January, 2012   

Example for Dumping a database to HTML tables

Several hundred user notes on the str_replace page later, and we have a function that provides a variety of text highlighting options for plaintext or HTML strings.

Makes it extremely easy to integrate code igniter and smarty as well as provide layout capabilites.

C code example for useful macros, functions and tricks

This code snippet populates a datagridview control using array objects.

Procedural Programming technique shows creation of Pascal's Triangl

13 November, 2012   

Creating and maintaining an effective JavaScript toolbox can greatly reduce development time. This script will show you how to include specific snippet modules on individual pages.

his snippet was created under the inspiration of using the django-multilingual package. Also an additional code is used to solve the problem of saving the many-to-many relations in embedded forms (http://trac.symfony-project.org/ticket/5867#comment:21). The idea is that in all embedded I18n forms appears checkbox "delete" for each...

C++ code example to calculate 1 variable statistics

04 August, 2012   

The GetIEFavourites function called from the OnClick event of a button returns a list of all the favorites from your Internet Explorer in a ListBox.

30 September, 2012   

Mysql function to Fetch entire result set