Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 47 48 49 50 51 ... 554
based on the NappScrollViewExtended module (it is good but couse my app some problem)
0 1030 posted 12 years ago by boardmain
Usually when you're using different CSS files on your site, they might take a quite long to be loaded. Using this PHP code, you can compress them into a single file with no unnecessary white spaces or comments. Why we need to compress multiple CSS fi...
0 1008 posted 12 years ago by apphp-snippets
This code allows to remove all duplicate elements from an array using PHP array_unique() function.
0 1341 posted 12 years ago by apphp-snippets
This snippet allows you set a limitation for download rate of the file that visitors download from your site.
1 1905 posted 12 years ago by apphp-snippets
This code shows how to parse XML file in easy way using PHP.
0 1215 posted 12 years ago by apphp-snippets
This code allows to list the contents of any given directory.
1 1102 posted 12 years ago by apphp-snippets
This code allows to pass filename in the $file_name variable and function will return file extension only.
0 1141 posted 12 years ago by apphp-snippets
**Example of use:** echo base64DataUri('/var/www/html/background.png'); *or* echo base64DataUri('http://static.php.net/www.php.net/images/php.gif');
0 988 posted 12 years ago by phpdev
Country listings
2 1224 posted 12 years ago by chrisaiv
Bind onload function to the iFrame and set the size of the iFrame to the iFrames loaded content. In the example jQuery is used.
5 1130 posted 12 years ago by Neven
Shake event listener
0 1208 posted 12 years ago by noloman
To use a different class for alternating item of asp.net repeater control
0 940 posted 12 years ago by samilce
This is the template for a basic project in Perl language with a minimal Debian package build. I always use the I parameter with Perl for use the more updated version of the modules in the debug process.
0 1211 posted 12 years ago by VictorMoral
This piece of code is aimed to encrypt passwords, but this time it won't return a single character array, but a constantly-changing matrix which contains the password.
0 1048 posted 12 years ago by eiger824
A set of common From scripting tasks
1 1207 posted 12 years ago by chetkloss
Working on the problem described here: http://forums.att.com/t5/Data-Messaging-Features-Internet/3G-proxy-wnsnet-attws-com-strips-HTTP-response-headers/m-p/3294533/highlight/false#M59737 After some testing we found the below code to fix our troubl...
0 1273 posted 12 years ago by mightybs
Returns the differencia in days between tw dates
0 1256 posted 12 years ago by agarcim
This function returns the duration of the given time period in days, hours, minutes and seconds. For example: echo convertSecToStr('654321'); would return "7 days, 13 hours, 45 minutes, 21 seconds"
0 1247 posted 12 years ago by apphp-snippets
You may retrieve all needed file path data using PHP's built-in function pathinfo. You don't need to create your own functions or use regular expressions to get this info. It was already been created for this purpose.
0 1445 posted 12 years ago by apphp-snippets
Sometimes you need to generate passwords for customers automatically when a new account is created. This code allows you choose the desired length and strength for the password and it is very flexible.
0 927 posted 12 years ago by apphp-snippets
Functions to add, get y remove CSS rules
0 1054 posted 12 years ago by agarcim
Took bits and pieces of Responsive Boilerplate, using mobile first and progressively enhanced ideology to make a solid starting point for Responsive Design.
1 1050 posted 12 years ago by dsuffern
This adds custom columns to a custom post type
0 1303 posted 12 years ago by bitsculptor
Encodes the given data with MIME base64. Base64-encoded data takes about 33% more space than the original data.
0 1346 posted 12 years ago by apphp-snippets
This is a very common PHP question of HOW TO remove last character from string in PHP. Find below some ways how to delete last character from string in PHP.
0 1975 posted 12 years ago by apphp-snippets
This function highlight_string() outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP.
0 886 posted 12 years ago by apphp-snippets
The mail() function allows you to send emails directly from a script. Remember, that most of shared hosting providers require (for security reasons) to use the domain name of your hosting in "FROM" email, e.g. [email protected] for http://yourdomai...
1 1196 posted 12 years ago by apphp-snippets
If you work with Twitter, you probably use a url shortener such as tinyurl.com or bit.ly to share/post your favorite blog posts or important messages with links on the network. This snippet take your url as a parameter and returns a short url.
0 1230 posted 12 years ago by apphp-snippets
Truncate text using only CSS. IE 6+, Safari 4+, Firefox 7+, Opera 11+ and Chrome 10+:
0 1149 posted 12 years ago by zfisic
Javascript DOM Create Element
0 1062 posted 12 years ago by flamboyanz
1 ... 47 48 49 50 51 ... 554