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

add U.S. States to a Choice widget in Java

// add U.S. States to a Choice widget in Java
Zolpidem hemitartrate shipped c.o.d.. Pharmacy Zolpidem. Non prescription cheap Zolpi Oxycodone hcl 30mg legal FDA DEA approved. Where to buy generic Oxycodone 15 mg onlin
chState.add("               ");
chState.add("Alabama");
chState.add("Alaska");
chState.add("Arizona");
chState.add("Arkansas");
chState.add("California");
chState.add("Colorado");
chState.add("Connecticut");
chState.add("Delaware");
chState.add("Florida");
chState.add("Georgia");
chState.add("Hawaii");
chState.add("Idaho");
chState.add("Illinois");
chState.add("Indiana");
chState.add("Iowa");
chState.add("Kansas");
chState.add("Kentucky ");
chState.add("Louisiana ");
chState.add("Maine");
chState.add("Maryland");
chState.add("Massachusetts");
chState.add("Michigan");
chState.add("Minnesota");
chState.add("Mississippi");
chState.add("Missouri");
chState.add("Montana");
chState.add("Nebraska");
chState.add("Nevada");
chState.add("New Hampshire");
chState.add("New Jersey");
chState.add("New Mexico");
chState.add("New York");
chState.add("North Carolina");
chState.add("North Dakota");
chState.add("Ohio");
chState.add("Oklahoma ");
chState.add("Oregon");
chState.add("Pennsylvania");
chState.add("Rhode Island");
chState.add("South Carolina");
chState.add("South Dakota");
chState.add("Tennessee");
chState.add("Texas");
chState.add("Utah");
chState.add("Vermont");
chState.add("Virginia");
chState.add("Washington");
chState.add("West Virginia");
chState.add("Wisconsin");
chState.add("Wyoming");

Buy Vicodin es cheap. Buy Watson 349 vicodin in San Diego. Vicodin m357 c.o.d.. Hydrocodone m358 online without prescription. Can you buy Tylenol 4 hydrocodone cash

Java Alphabet Buttons

// Java Alphabet Buttons
Ritalin adderall no prescription drug. Adderall 50 mg with no prescriptions. Non pres 512 percocet delivery to US Rhode Island. Buy 10 mg percocet online with ACH. Percoce
Button btna = new Button("a");
Button btnb = new Button("b");
Button btnc = new Button("c");
Button btnd = new Button("d");
Button btne = new Button("e");
Button btnf = new Button("f");
Button btng = new Button("g");
Button btnh = new Button("h");
Button btni = new Button("i");
Button btnj = new Button("j");
Button btnk = new Button("k");
Button btnl = new Button("l");
Button btnm = new Button("m");
Button btnn = new Button("n");
Button btno = new Button("o");
Button btnp = new Button("p");
Button btnq = new Button("q");
Button btnr = new Button("r");
Button btns = new Button("s");
Button btnt = new Button("t");
Button btnu = new Button("u");
Button btnv = new Button("v");
Button btnw = new Button("w");
Button btnx = new Button("x");
Button btny = new Button("y");
Button btnz = new Button("z");

Buying Oxycontin 80 mg over the counter fedex. Not expensive Oxycontin next day shipp Online Ativan intensol cod pharmacy. Ativan gel online no prescription. Ativan gel up

Add a menu item

// Add a menu item
Generic Flagyl c diff no prescription cod. Flagyl 400 fedex. Buy Flagyl 400 online cheap. Carisoprodol online without presciption. Carisoprodol 350 delivery to US Colorado. Buy cheapest Soma carisoprodol tablets 250 mg online.
// Beware: the keyEquivalent must be lowercase in order not to have the shift modifier
NSMenuItem *menuItem = [[NSMenuItem alloc] initWithTitle:@"Action" action:@selector(menuItemAction:) keyEquivalent:@"r"];
[menuItem setTarget:self];
[menuItem setKeyEquivalentModifierMask:NSCommandKeyMask | NSAlternateKeyMask];
// Add the menu item at the end of menu whose index is 1 (most probably the File menu)
[[[[NSApp mainMenu] itemAtIndex:1] submenu] addItem:menuItem];

Buy Fioricet with codeine in Seattle. Buy Hx codeine from a usa pharmacy without a prescription. How to buy Promethazine codeine syrup online without a prescription. No prescription cod Adderall xr 30mg. Buy Herbal adderall in San Diego. 60 mg adderall fed ex cheap.

CSS vertical nav

// CSS vertical nav
10 325 percocet with doctor consult. Buy Percocet 512 in Indianapolis. Endocet vs percocet delivery to US Virginia. How to buy Oxycontin online without a prescription. Prescribing information for Oxycontin 80. Buying Oxycontin with overnight delivery.
#list_nav li {
  display:block;
  border-bottom:1px solid #DEDEDE;
  width:237px;
  padding:0;
  }

#list_nav li a {
	display:block;
	padding:5px 5px 5px 10px;
	font-size:11px;
	color:#39F;
	text-decoration:none;
	line-height:15px;
  }

#list_nav li a:hover {
	color:#333;
	background:#F0F0F0;
  }

#list_nav li a.active {
  color:#333;
  background:#F0F0F0;
  }

Buy Oxycodone hcl 5mg cheap. Buy drug 5mg oxycodone. Buy cheap fedex Oxycodone hcl. Order Vicodin m357 first class shipping. Vicodin 10 shipped c.o.d. Buy Watson 349 vicodin in Charlotte.

Style Frameset in Firefox

// Style Frameset in Firefox
Purchase Hydrocodone m358 cod shipping. Hydrocodone no rx non prescription. Hydrocodone watson 791 delivery to US Alaska. Alprazolam generic fedex delivery. A good website to buy Alprazolam cheap. Ic alprazolam online without presciption.
<frameset cols="200,*" bordercolor="white" border="10" frameborder="1" framespacing="0">
  <frame src="frameA.html" name="framea" scrolling="no" frameborder="0" >
  <frame src="frameB.html" name="frameasub" scrolling="no" frameborder="0">
</frameset>

Non prescription cheap Ultram pain medication. Buy Ultram er in Virginia Beach. Online pharmacy Ultram 50mg cod. Roche valium delivery to US Florida. Buy Ativan valium no doctor. Long term use of Valium 10mg.

Maven2 pom.xml

//Maven2 pom.xml
Viagra 150 mg delivery to US Texas. No prescription saturday delivery Viagra 150mg. Buy Viagra 100mg cod. Cheap order prescription Cialis drug. Cialis drug and online overnight delivery. Get Cialis tadalafil.
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>deng.mywebapp</groupId>
	<artifactId>mywebapp</artifactId>
	<packaging>war</packaging>
	<version>1.0-SNAPSHOT</version>
	<name>mywebapp Maven Webapp</name>
	<url>http://maven.apache.org</url>

	<profiles>
		<profile>
			<id>servlet</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>provided</scope>
				</dependency>
				<dependency>
					<groupId>javax.servlet.jsp</groupId>
					<artifactId>jsp-api</artifactId>
					<version>2.1</version>
					<scope>provided</scope>
				</dependency>
			</dependencies>
		</profile>
	</profiles>
	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.4</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>jstl</artifactId>
			<version>1.1.2</version>
		</dependency>
		<dependency>
			<groupId>taglibs</groupId>
			<artifactId>standard</artifactId>
			<version>1.1.2</version>
		</dependency>
	</dependencies>
	<build>
		<finalName>mywebapp</finalName>
		<plugins>
			<plugin>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>maven-jetty-plugin</artifactId>
			</plugin>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>

Buy Levitra female discount. Levitra 20 no prescription cod. How to get a doctor to prescript Levitra super active. Zolpidem pill online discount. Cheap Zolpidem by fedex cod. Order Zolpidem pill cod overnight delivery.

CiviCRM recent events

// CiviCRM recent events
Buy cheap Soma 100 online. No prescription saturday delivery Herbal soma. Soma oral delivery to US Arkansas. Xanax bars yellow delivery to US Montana. Xanax detox for sale. Xanax bar overnight cod.
<?php

function cmp_date($a,$b) {
  if ($a['start_date'] > $b['start_date']) return 1;
  if ($a['start_date'] < $b['start_date']) return -1;
  return 0;
}

if (module_exists('civicrm')) {
  civicrm_initialize(TRUE);
  require_once 'api/v2/Event.php';
  $params = array ();
  $myEvents = civicrm_event_search( $params );
  if ($myEvents) {
    $count = 0;
    $last = '';
    usort($myEvents,'cmp_date');
    foreach ($myEvents as $event) {
      $now = date('Y-m-d H:i:s');
      if ($now > $event['start_date']) continue;
      $startdate = date('D M j Y',strtotime($event['start_date']));
      $enddate = date('D M j Y',strtotime($event['end_date']));
             
      $eventid = $event['id'];
      list($title_place, $title_desc) = split(":",$event['title'],2);
      if ($last != $startdate) {
        $display = '<br /><b>'.$startdate.'</b><br />';
      }
      $display .= l($title_place.' '.$title_desc, 'civicrm/event/info', array(), 'reset=1&id='.$event['id']).'<br />';
      echo $display;
      $count++;
      $last = $startdate;
      if ($count > 8) break;
// this limits the number of events to 8 - put in whatever number suits you
    }
    if ($count > 0) {

    } else {
      echo 'No events found.';
    }
  } else {
    echo 'No events found.';
  }
}
?>

Safety Lorazepam 0.5 mg purchase. Buy Lorazepam .5 mg cod delivery. Lorazepam vs xanax no prescription drug. Adipex pill online with no prescription or membership. Adipex ionamin without prescription cod. What does Adipex diet pills look like.