Skip to content

Instantly share code, notes, and snippets.

View efleming969's full-sized avatar

Erick Fleming efleming969

  • Fleming Services, LLC
  • Frankfort, KY
View GitHub Profile
$.fn.namespace.Bar = {
messageBar: 'bar message'
};
$.fn.namespace.Foo = {
messageFoo: 'foo message'
};
// take the first object and mix it into the second object
$.mixed = $.extend( $.fn.namespace.Foo, $.fn.namespace.Bar);
$.fn.contacts.base = {
message: 'hello world'
};
var newObject = {
foo: 'foo'
};
// take the first object and mix it into the second object
$.customObject = $.extend( newObject, $.fn.contacts.base);
package org.rockcoder.gae;
import java.io._
import javax.servlet.http._
import javax.servlet._
import com.google.appengine.api.datastore._
import com.google.appengine.tools.development.ApiProxyLocalImpl;
import com.google.apphosting.api.ApiProxy;
val uri = "/contacts:1"
val re = """^.*\:(.*)$""".r
val ma = re.findAllIn(uri)
println(ma.groupCount)
ma.subgroups.foreach(println(_))
import org.junit.runner.RunWith
import org.scalatest.FunSuite
import org.scalatest.junit.JUnitSuite
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class GreetingTest extends FunSuite{
test("sayHello"){
val g = new Greeting
import org.scalatest.WordSpec
import org.scalatest.matchers.MustMatchers
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class GreetingSpec extends WordSpec with MustMatchers {
"A Greeting" should {
<script type="text/javascript">
dojo.addOnLoad(function(){
var mb = dijit.byId("mainBorder");
mb.addChild(new dijit.layout.ContentPane({
content: new widgets.Entries({}),
region:"center"
}));
<script type="text/javascript">
dojo.addOnLoad(function() {
dojo.query(".aButton").instantiate("dijit.form.Button", {label:"This is a button"});
});
</script>
<div class="aButton"></div>
<div class="aButton"></div>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html>
<head>
<title>Testing</title>
<link rel="stylesheet" type="text/css"
href="http://ajax.googleapis.com/ajax/libs/dojo/1.4.0/dijit/themes/tundra/tundra.css" />
<style type="text/css">
<head>
<title>Testing</title>
<link rel="stylesheet" type="text/css"
href="http://ajax.googleapis.com/ajax/libs/dojo/1.4.0/dijit/themes/tundra/tundra.css" />
<style type="text/css">
body, html {