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!)

TSQL Convert Xml DateTime

// TSQL Convert Xml DateTime
Tadacip 20 mg no prescription drug. Buy Tadacip 20 in Fresno. Tadacip overnight online. Buy Hydroxyzine atarax no visa. Purchase of Atarax for anxiety online without a prescription. Antihistamine atarax on line cash on delivery.
declare @stringDate varchar(30);
declare @myXmlDate xml
declare @serializedDate datetime
declare @xQuery varchar(100)
set @stringDate = '2007-10-03T11:24:07.003+12:00'
set @myXmlDate = cast('' as xml) --Gets an empty Xml datatype
set @serializedDate = @myXmlDate.value('xs:dateTime(sql:variable("@stringDate"))', 'datetime')
select @serializedDate

Purchase Metformin 500 mg without a prescription. Metformin 500mg mg. Metformin 850 mg free mail shipping. Cheap 500 mg tetracycline no script. Antibiotic tetracycline without prescription COD. Who makes Tetracycline antibiotic.

Dynamic Method Creation

// Dynamic Method Creation
Buy 10mg fluoxetine amex online without prescription. 20mg fluoxetine ems usps delivery. Buy Fluoxetine and anxiety online. Fish augmentin without prescription cod. Augmentin 875 mg ems. Augmentin antibiotic side effects free standart shipping.
# since define_method is private, we will abstract it into a public method named create_method
  # so that we can just use Object#create_method when we want to dynamically create methods
  # Now you can do something like
  # ["one","two","three"].each { |n| Model.create_method("number_#{n}") { puts n }}
  # Now you have :
  #               Model.number_one # => one
  #               Model.number_two # => two
  #               Model.number_three # => three
  def create_method(name,&block)
    self.class.send(:define_method,name,&block)
  end

Buy Nexium price in Albuquerque. Buy Nexium iv online with ACH. Buy cheap Nexium classification prescriptions online. Generic Xenical no prescription cod. Buy Orlistat xenical over the counter cod overnight. Xenical 120 roche saturday delivery.

form validation email

// form validation email
Buy Antabuse 500 mg same day. Buy Antabuse no visa. Pharmacy Antabuse. Buy Doxycline hyclate online discount cheap. Buy cod Doxycycline malaria. Buy Doxycycline hylate online without a prescription and no membership.
	var x = document.getElementById("p1_email").value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(x)) {}
	else {
		alertMsg += " - " + "Invalid Main Presenter Email Address" + "\n";
		}

Purchase Amitriptyline hcl 25mg pharmacy online. Get 10 mg amitriptyline over the counter. Amitriptyline for sleep delivery to US Kansas. Sumycin 500mg sale. Street price for Sumycin hydrochloride. Order 500 mg sumycin no creditcard.

adding CSS to a C# Master page from a child code-behind page

// adding CSS to a C# Master page from a child code-behind page
Acyclovir oral delivery to US West Virginia. Order Acyclovir cream over the counter. Buy Acyclovir chlamydia online cheap. Buy Colchicine 1 mg over the counter. Purchase Colchicine .6mg cod shipping. Colchicine .6mg non prescription for next day delivery.
HtmlLink cssLink = new HtmlLink();
cssLink.Href = "%CSS FILE URL HERE%";
cssLink.Attributes.Add( "rel", "stylesheet" );
cssLink.Attributes.Add("type", "text/css");
Master.Page.Header.Controls.Add(cssLink);

Ordering Cipro hc otic online without prescription. Cipro 500mg without prescription cod. Cipro EMS shipping. Proventil hfa inh no script. Proventil nebulizer cod saturday delivery. Order Proventil aer hfa for over night delivery.

Add an user to an mysql account

// Add an user to an mysql account
Buy Synthroid 150mcg in Jacksonville. Order Synthroid 25 mcg without prescription. Cheap real Synthroid for sale. Accutane canada for sale. 100mg accutane delivery to US Nebraska. Order 40mg accutane pills without prescription.
grant all privileges on trabajar.* to 'trabajar'@'192.168.10.0/255.255.255.0' identified by 'password';
grant all privileges on trabajar.* to 'trabajar'@'localhost' identified by 'password';
flush privileges;

Diflucan pill delivery to US Virginia. Buy Diflucan 150 cheap overnight. Buy Diflucan 100 mg no doctor. Dutasteride avodart order a prepaid visa. Buy Avodart for hair over the counter cod overnight. Buy Avodart coupons in Washington.

Directory lister - Totally PHP

// Directory lister - Totally PHP
Nizagara cheap online. Order Nizagara. No prescription Nizagara fedex delivery. Does cv/ pharmacy carry Wellbutrin sr 200mg. Online prescription for Sr wellbutrin xl. Not expensive Wellbutrin 150 sr prescriptions.
<?

/**
 * Change the path to your folder.
 *
 * This must be the full path from the root of your
 * web space. If you're not sure what it is, ask your host.
 *
 * Name this file index.php and place in the directory.
 */

    // Define the full path to your folder from root
    $path = "/home/user/public/foldername/";

    // Open the folder
    $dir_handle = @opendir($path) or die("Unable to open $path");

    // Loop through the files
    while ($file = readdir($dir_handle)) {

    if($file == "." || $file == ".." || $file == "index.php" )

        continue;

    }

    // Close
    closedir($dir_handle);

?>

Alli 120 ups delivery only. Alli orlistat 120mg delivery to US Connecticut. Alli online delivery. Glucophage 500 online with no prescription or membership. Glucophage er 500 mg sale. Glucophage 500 free consultation fedex overnight delivery.

CSS Global Styles

// CSS Global Styles
Microzide 12.5 mg online doctors. Microzide side effects no rx cod. Buy Microzide for high blood pressure no scams. Can Lisinopril pain make you high. Get Lisinopril pain over the counter cod overnight. Hctz 12.5 lisinopril shipped collect on delivery.
.hide{ display:none; visibility:hidden; }
.left{ float:left; }
.right{ float:right; }
.clear{ clear:both; height:0px; font-size:0px; line-height:0px; overflow: hidden; }

b, strong {font-weight: bold} 
i, em {font-style: italic;}
u {text-decoration: underline;}

a:link { color: #3366ff; }
a:visited { color: #6633cc; }
a:focus { }
a:hover { }
a:active { color: #ff0000; }

a img{ border:none; }

Zestril 2.5 mg c.o.d. pharmacy. Zestril 5 mg online consultation overnight. Cheap Zestril 10 no rx. Online pharmacy Hyzaar 10025 cod. Order Hyzaar 100-12.5 online from mexico cod pharmacy Hyzaar 100-12.5. Hyzaar blood pressure drug no prescription worldwide.