This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val uri = "/contacts:1" | |
val re = """^.*\:(.*)$""".r | |
val ma = re.findAllIn(uri) | |
println(ma.groupCount) | |
ma.subgroups.foreach(println(_)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
dojo.addOnLoad(function(){ | |
var mb = dijit.byId("mainBorder"); | |
mb.addChild(new dijit.layout.ContentPane({ | |
content: new widgets.Entries({}), | |
region:"center" | |
})); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 { |
OlderNewer