Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is a slightly hard core email check. I work for clients that want real email addresses. They pay quite a bit of money so yes, I am going to give what they want...
3
2306
posted 17 years ago by brownrl
Face it!
Whenever you make a website/app you always need to make XLS export for the simple people. I mean heaven to betsy if they have to take a csv file, or use phpMyAdmin.
So
Here are 3 little functions and a sample skeleton that I use fro...
6
2773
posted 17 years ago by brownrl
How to customize a Maven Calm settings.xml in order to allow multiple environment builds; for more info look here http://code.google.com/p/maven-calm/
0
1455
posted 17 years ago by mpillitu
How to customize a Maven Calm profiles.xml in order to allow multiple environment builds; for more info look here http://code.google.com/p/maven-calm/
0
1381
posted 17 years ago by mpillitu
http://www.trentmueller.com/blog/search-and-replace-wildcard-characters-in-dreamweaver.html
-and-
http://www.webmasterworld.com/forum46/1288.htm
0
1718
posted 17 years ago by rwczippy
Used this on a project to determine whether images were loaded or not. In an image carousel, for example, you could test the next/clicked image before advancing the slide, and if 'loaded' wasn't 'true', you could add a "loading" class and attach a ne...
3
2101
posted 17 years ago by dougunderscorenelson
Memory leakage in IE6/7 if the event handlers are not purged before deleting an element.
0
1834
posted 17 years ago by iTony
basic structure of the actionscript function to listen for cuepoints embedded in a piece of FLV [flash video]. note: cuepoints need to have been embedded when the video was converted from its original format to FLV - prior to importing it into flash
1
2596
posted 17 years ago by stiobhart
this is a handy snippet to trace the info about any cuepoints actionscript encounters, embedded in a FLV [flash video]. these traces will display the name, type and time of the cuepoint - in a nicely formatted list
1
2336
posted 17 years ago by stiobhart
Handy when web hosts limit database upload size. Create folder in home directory call "mysql_dump", upload and extract mysql file into this directory. Ask web host to enable SSH.
0
2279
posted 17 years ago by hotdiggity
Creating a vibration is simple as pie - simpler in fact. It just requires one line of code; two if you add the import line. But as simple as a one-liner is it is better to make it into a function. So here is the one liner, followed by the function...
5
3461
posted 17 years ago by KevinBomberry
This is a long over due update to my db insert building function. Please not that the function is the important part the code below is just prove that it works... l:-)
1
1635
posted 17 years ago by brownrl
Refer to http://msdn.microsoft.com/en-us/library/aa394512(VS.85).aspx
0
1999
posted 17 years ago by vinocui
# useful links:
# (WMI space definition) http://msdn.microsoft.com/en-us/library/aa394084(VS.85).aspx
# (OLE usage on CPAN) http://cpan.uwinnipeg.ca/htdocs/Win32-OLE/Win32/OLE.html#Object_methods_and_properties
1
2285
posted 17 years ago by vinocui
Groovy script that creates an XML file using an XML template containing ${params} and a standard Java Properties file
0
2157
posted 17 years ago by gripnrip
Some PHP code that can be used to get formatted HTML containing N number of tweets for a given twitter user.
5
2748
posted 17 years ago by gripnrip
This script shows the top 10 worst indexes (in terms of selectivity %) on the whole MySQL server instance. Selectivity is the percentage of distinct values in an indexed field compared to the number of records in the table.
Note that this query can...
1
1787
posted 17 years ago by Eloi
In this Thesis WP tutorial for multiple custom page templates, we find code for making a custom homepage template as well.
2
1812
posted 17 years ago by mlangfeld
Clearfix with 2 different classes: page, section
Section: takes up a whole row (much like TR);
Page: is the container for each section
0
1980
posted 17 years ago by chrisjlee
This code to be added to custom_functions.php May also need to add to custom.css to style your custom widget. (This code found towards the end of the article).
2
1844
posted 17 years ago by mlangfeld
this script splits the csv file two times (1. on "new line", 2. on ";") and returns a two dem array in the last for loop.
2
2013
posted 17 years ago by antpaw