Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A base class for very simple value converters in WPF, Windows Phone 7 and Silverlight.
1
929
posted 14 years ago by jacob4u2
I\'m definitely not the best at Regex. But this function seems to be timing out, and adding like 4o links to the post. Got any ideas?
0
1242
posted 14 years ago by thefrosty
This is the standard code needed when connecting to a media server.
1
957
posted 14 years ago by bshantz
This is a simple bit of code that allows you to do a write once date format in a PHP style date() format and convert it to be used by datepicker jQuery UI widget. It returns the converted string.\r\n\r\nNothing fancy here, but a time saver for the f...
1
1589
posted 14 years ago by roblynch
searching for a date sort function I found: http://slevy1.wordpress.com/2010/06/30/sorting-date-strings-in-php/ and built my codeigniter helper
call : $arrSortedDates = bubbleSort( $unsorted ); (previous->helper autoload)
0
985
posted 14 years ago by lluisr
The following JavaScript will validate an email address using strict rules when a form is submitted.
0
1102
posted 14 years ago by jprochazka
The following function does a very simple check on the supplied string to help ensure it is a valid email address.
0
1175
posted 14 years ago by jprochazka
The following function validates and returns TRUE or FALSE if the supplied string could be a valid domain name format.
2
1157
posted 14 years ago by jprochazka
A simple example of how to send an email using PHP's build in mail() function.
0
949
posted 14 years ago by jprochazka
The following JavaScript will validate if a 10 digit phone number was supplied once the form is submitted.
0
913
posted 14 years ago by jprochazka
This code can be used to create a MVC View User Control (.ascx) that will display a cascade or select all button with a clear button for checkboxes arranged in a hierarchy.
1
1049
posted 14 years ago by mattvbiggs
PHP
Display wordpress posts with custom date meta value, ordered by this date, with a defined taxonomy
0
1367
posted 14 years ago by Mat_
First you have to add a custom value with a correct date format.
The lines:
`AND CAST(wpostmeta.meta_value AS DATE) > '".date("Y-m-d H:i:s")."'
AND CAST(wpostmeta.meta_value AS DATE) < '".date("Y-m-d H:i:s", $date2)."' `
are only used to select d...
0
1637
posted 14 years ago by Mat_
From http://snipplr.com/view/41051/jscrollpane-ipadiphoneipodios-scoll-support/ here the part of code to add in jScrollPane.js for android,iphone,ipod,ipad support. Add this after :if (isScrollable) { (around line 165)
3
1190
posted 14 years ago by Xeldar
pass in 2 json objects returns an array of all differences included those nested in children.
_Q used internally to pass through to self, do not pass in _Q
0
1291
posted 14 years ago by tennison