Welcome To Snipplr


Everyone's Recent Snippets Tagged extension



0 81 posted 9 years ago by stz184
0 84 posted 9 years ago by lolindirfaelivrin
Given a string of a file name, return the extension
1 108 posted 10 years ago by r4b87
I love creating simple little extension methods like these to improve code readability.
1 88 posted 10 years ago by mattcasto
I love creating simple little extension methods like this to make my code read more better.
0 71 posted 10 years ago by mattcasto
If you just use a `<script>` element in the overlay, the browser toolbars are reset to their default configuration (at least with jQ 1.3.2).
0 86 posted 10 years ago by eternicode
Lowercase .JPG extension
0 79 posted 10 years ago by vigoncas
For .net 2.0+ The one limitation to enumerations is revealed when you try to reverse lookup an enumeration value using Enum.Parse(). The parse function will return an inconsistent enum object if ever there are two or more enumerations with the same...
0 154 posted 10 years ago by bryanlyman
I whipped this up after finding that my worst fears were true, pathinfo is slow. Top that with in_array and you've got your self some heavy code. Nothing like regex to speed things up. This little code checks the extension of a path to see if it i...
0 67 posted 10 years ago by Oldarney
This will build and install a Dreamweaver CS4 extension automatically and silently. The version number will be taken from the *.mxi file and appended to the packed *.mxp. Set the extensionfile variable to the name of the *.mxi file without the extens...
0 96 posted 10 years ago by s3xym4n
This function works correct with files with no extension.
0 91 posted 10 years ago by kirik
0 62 posted 10 years ago by dorseye
Works great for parsing links in XML documents and arrays.
0 72 posted 11 years ago by stanosmith
Say that you have a collection of objects empty but for IDs. You want to do a foreach loop through those objects and lookup detail one at a time. Unfortunately, in the foreach, you can't replace the references, you can only copy the new detail...
1 143 posted 11 years ago by rengber
This method is a bit faster and more reliable then using the "explode" method. Works with PHP 4.0.3 and up.
4 119 posted 11 years ago by gdvickery
0 135 posted 11 years ago by tkf