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

XML Slideshow

// XML Slideshow
Buy Soma 750mg prescriptions. Buy Soma 30mg online without dr approval. Soma 350 mg Xanax with no rx and free shipping. Buy no online prescription Xanax alprazolam. Fed
import com.mosesSupposes.fuse.*;
ZigoEngine.register(Fuse, PennerEasing, FuseFMP);

function loadXML(loaded) {
	if (loaded) {	
		xmlcontent = this.${1:firstChild};
		loadPics();
	} else {
		trace("file not loaded!");
	}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(${2:"$3"});

function loadPics(){
	if(picsint) clearInterval(picsint);
	if(!nexti) nexti = 0;
	targetpic = xmlcontent.{$4:childNodes[nexti].firstChild.nodeValue};
	thepic_mc = ${5:pic_mc}.createEmptyMovieClip("thepic_mc", $5.getNextHighestDepth());
	thepic_mc._x = 0;
	thepic_mc._y = 0;
	var my_mcl:MovieClipLoader = new MovieClipLoader();
	var mclListener:Object = new Object();
	mclListener.onLoadStart = function(target_mc:MovieClip) {
		trace("loading pic");
	}
	mclListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
		
	}
	mclListener.onLoadComplete = function(target_mc:MovieClip) {
		
	}
	mclListener.onLoadInit = function(target_mc:MovieClip) {
		trace("load init");
		picsint = setInterval(loadPics,${6:5000});
		var f:Fuse = new Fuse();
		f.push({target:target_mc, ${7:brightOffset}:${8:100}, time:0});
		f.push({target:target_mc, $7:${9:0}, time:${10:2}, ease:"easeOutQuad"});
		f.start();
	}
	mclListener.onLoadError = function(target_mc:MovieClip, errorCode:String) {
		trace("error loading movie: " + errorCode);
		loadPics();
	}
	my_mcl.addListener(mclListener);
	my_mcl.loadClip(targetpic, thepic_mc);
	
	nexti++;
	if(nexti >= xmlcontent.childNodes.length) nexti = 0;
}

Lorazepam 2mg delivery to US Indiana. Best buy bestbuy drugs Apo lorazepam. Lorazepa Adipex 37.5 mg tabs cheap. Adipex p online without prescription. Adipex 37.5 mg tabs

101 to using Time in Ruby

// 101 to using Time in Ruby
Buy Iv lasix in Mesa. Lasix online consultation overnight. Buy Lasix for canine onlin Buy Propranolol 20mg online cheap. Buy cheap cod online Propranolol. Propranolol buy
#Find out the Current Time
t = Time.now

#Find out the Month, Day, or Year individually
puts t.mon.to_s + "/" + t.day.to_s + "/" + t.year.to_s

#Find out the UTC
puts t.utc

###########################
#User Formatted Characters
###########################
#the String For Time function allows you to mix text with data
puts t.strftime("The Document print data is %m/%d/%Y")

#Another way to Display the Month Day, Year
puts t.strftime("%b %d, %Y")

Buy cheap cod online Lexapro 20. Cheape Lexapro online. Buy Lexapro prescriptions. Buy Periactin cyproheptadine no visa. Purchasing Periactin for migraines quick delive

Get Taxonomy Terms for a Vocabulary

// Get Taxonomy Terms for a Vocabulary
Lipitor niacin buy in UK. Pfizer lipitor no script overnight. Buy Drug lipitor in Hou Buy Nexium coupons mail order. Buy cheapest Esomeprazole nexium. Buy Nexium cost mast
<?php if (count($taxonomy)): ?>
<?php 
$terms = taxonomy_node_get_terms_by_vocabulary($node->nid, 1);
foreach ($terms as $term) {
  $tags[] = l($term->name, taxonomy_term_path($term));
	}
if ($tags){
 print t("Professional Areas") . ": " . implode(' | ', $tags);
} ?>
<br />
<?php
$terms = taxonomy_node_get_terms_by_vocabulary($node->nid, 2);
foreach ($terms as $term) {
  $tagsTwo[] = l($term->name, taxonomy_term_path($term));
	}
	if ($tagsTwo){
 print t("Focus Areas") . ": " . implode(' | ', $tagsTwo);
}?>
<?php endif; ?>

Next day Orlistat xenical. No script Xenical 120 roche. Xenical 120 roche without pre Collect on delivery Antabuse no rx. Online overnight shipping Antabuse. Side effects