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
<div id="main"> | |
<form id="frm1" action="#main/1" method="post"> | |
<label>Value 1:</label> | |
<input type="text" name="value1" class="required" value="" /> | |
<label>Value 2:</label> | |
<input type="text" name="value2" class="" value="" /> | |
<button type="submit">Go</button> | |
</form> |
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
<div id="main"> | |
<form id="frm" action="#main" method="post"> | |
<label>Value 1:</label> | |
<input type="text" name="value1" class="required" value="" /> | |
<label>Value 2:</label> | |
<input type="text" name="value2" class="" value="" /> | |
<button type="submit">Go</button> | |
</form> |
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
<body> | |
<ul id="navigation"> | |
<li><a href="#sample1">Sample 1</a></li> | |
<li><a href="#sample2">Sample 2</a></li> | |
</ul> | |
<div id="main"></div> | |
<script type="text/javascript" src="js/jquery-1.4.2.js"></script> |
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
goog.provide("samples.traits"); | |
goog.provide("samples.traits.HasValue"); | |
goog.provide("samples.traits.HasValueImpl"); | |
goog.provide("samples.traits.MyClass"); | |
goog.require("goog.debug.Logger"); | |
goog.scope(function() { | |
var ns = samples.traits; |
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
protected void Button4_Click(object sender, EventArgs e) { | |
string strImageName = txtName.Text.ToString(); | |
if (FileUpload1.PostedFile != null && FileUpload1.PostedFile.FileName != "") { | |
byte[] imageBytes = new byte[FileToUpload.PostedFile.InputStream.Length + 1]; | |
FileToUpload.PostedFile.InputStream.Read(imageBytes, 0, imageBytes.Length); |
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 sbt._ | |
class S2JSProject(info: ProjectInfo) extends ParentProject(info) { | |
override def repositories = Set(ScalaToolsSnapshots) | |
lazy val s2js = project("s2js-plugin", "s2js-plugin", new S2JS(_)) | |
lazy val test = project("s2js-test", "s2js-test", new Test(_), s2js) | |
class S2JS(info:ProjectInfo) extends DefaultProject(info) { |
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 basics | |
import org.scalatest.Spec | |
import scala.io.Source | |
class CompilerSpec extends Spec { | |
describe("basic syntax compiler") { |
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 s2js | |
import org.scalatest.fixture.{ | |
FixtureSpec, ConfigMapFixture | |
} | |
class CompilerSpec extends FixtureSpec with ConfigMapFixture { | |
def getResource(name:String):String = { | |
return Thread.currentThread.getContextClassLoader.getResource(name).getPath.toString |
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 sbt._ | |
class S2JSProject(info: ProjectInfo) extends ParentProject(info) { | |
override def repositories = Set(ScalaToolsSnapshots) | |
lazy val s2js = project("s2js-plugin", "s2js-plugin", new S2JS(_)) | |
lazy val test = project("s2js-test", "s2js-test", new Test(_), s2js) | |
class S2JS(info:ProjectInfo) extends DefaultProject(info) { |
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
goog.provide('scalosure'); | |
ScalosureObject = function() {}; | |
scalosure.init = function() { | |
String.prototype.startsWith = function(prefix) { | |
return (this.indexOf(prefix) === 0); | |
}; |