Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 456 457 458 459 460 ... 552
1 1639 posted 17 years ago by iTony
This is a sample Google Maps API script that shows a base map with city markers, each with a numbered label. The marker is a default, blank red marker with a number label defined by the overlay array. Clicking on a marker takes you to a page define...
1 2504 posted 17 years ago by bcalloway
Sample script to use Google API to display a map with multiple marker layers that can be toggled on/off using checkboxes. The map data is provided using the .kml files provided from "My Maps" on Google, or Google Earth files.
2 3281 posted 17 years ago by bcalloway
An example of creating non-modal dialog boxes which extend the Dialog class is SWT/Eclipse
0 1720 posted 17 years ago by monkey103
make a query and retrieve the first record, if error occurs show it and the query.
0 1444 posted 17 years ago by ginoplusio
retrieve only one value from the query
0 1583 posted 17 years ago by ginoplusio
Escape all special regex characters (.*+?|()[]{}\) from a string. Useful when dynamically building a Regular Expression object based on input text that could hold regex characters.
2 2652 posted 17 years ago by kouphax
similar to php ereg_replace. You can pass this pattern [^A-Za-z0-9] and "" to remove from string non alphanumerical chars: s = ereg_replace("[^A-Za-z0-9]","",s) I use this function to clean input fields...
0 2159 posted 17 years ago by ginoplusio
US phone with or without parentheses
1 1870 posted 17 years ago by binarynomad
Search for Social Security Numbers
1 1667 posted 17 years ago by binarynomad
Based on templates by luxuryluke and Kevin Hale. Basic XHTML 1.0 layout which includes basic layout structure and is prepared for jQuery. On load a 'js' class is added to the root element in order to nicely handle graceful degradation if JS is dis...
8 2509 posted 17 years ago by nighthawk
0 1660 posted 17 years ago by garretjames
Thanks to Matt Farina This snippet is useful for preloading content with media that has been received via an AJAX request. For simple preloading of known images, see similar snippet.
6 2121 posted 17 years ago by nighthawk
Thanks to Matt Farina Also see similar snippet for preloading arbitrary content, e.g. media in content received via AJAX.
14 2309 posted 17 years ago by nighthawk
0 1596 posted 17 years ago by iTony
0 2013 posted 17 years ago by crishnakh
I copied this from my working example and tweaked some lines to make it generic. Thus there MAY be a typo which I haven't checked for, but probably not. This is what's needed to have something change upon selection of an item in a ComboBox.
0 2008 posted 17 years ago by Winkyboy
0 1780 posted 17 years ago by goo
0 2450 posted 17 years ago by Wardy
This code, when placed at the end of the body tag will set focus on the first visible enabled element on the screen. It considers visibility as well as all forms on-screen
0 1741 posted 17 years ago by kouphax
Secure, Advanced, Better, Faster... function for remove/strip tags(Anti-XSS).
2 2820 posted 17 years ago by YPY
0 1293 posted 17 years ago by haru01
1 ... 456 457 458 459 460 ... 552