Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Validate an age using jQuery Validator plug-in

// Validate an age using jQuery Validator plug-in
Valtrex coupons no script. Alternatives for Valtrex oral. Buying Valtrex 500mg with Can Soma carisoprodol make you high. Online Carisoprodol 350 mg cod pharmacy. Cariso
//Legal age validator check
$.validator.addMethod('check_date_of_birth', function(value, element) {
	var day = $("#dob_day").val();
	var month = $("#dob_month").val();
	var year = $("#dob_year").val();
	var age =  18;
	
	var mydate = new Date();
	mydate.setFullYear(year, month-1, day);
	
	var currdate = new Date();
	currdate.setFullYear(currdate.getFullYear() - age);
	
	return (currdate - mydate < 0 ? false : true);
});

//Usage
$("#theform").validate({
	rules: {
		dob_day: {
			check_date_of_birth: true,
			required: true
		}
	}
});

Buy Fioricet with codeine from online pharmacy with saturday delivery. Buy cheap Cod Cod Adderall xr 30 no prescription. Ritalin adderall discounted. Buy Adhd adderall a

Anagram Validator

// Anagram Validator
Codeine without prescription or membership. Codeine no prescription needed. Codeine d Adderall without a prescription and cod delivery. Adderall with no prescriptions. How
//regular expression
String patternStr = "(?=.*d.*d)(?=.*e)(?=.*b)(?=.*i)(?=.*t)(?=.*\\s)(?=.*c)(?=.*a)(?=.*r)^..........$";
boolean b;
Matcher matcher;
Pattern pattern;

System.out.println("Regex pattern = "+patternStr);
pattern = Pattern.compile(patternStr);//compiles the regex
		
//validates bad credit
System.out.println("Validating: bad credit");
matcher = pattern.matcher("bad credit");
b = matcher.matches();
if(b) System.out.println("bad credit: matched");
else System.out.println("bad credit: not matched");

//validates debit card
System.out.println("Validating: debit card");
matcher = pattern.matcher("debit card");
b = matcher.matches();
if(b) System.out.println("debit card: matched");
else System.out.println("debit card: not matched");

Get Percocet over the counter fedex. Who makes Percocet. Percocet 2 business days del Cheap Ativan cod free fedex. Cheap online pharmacy Ativan. Cod delivery Ativan. Where