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
<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>
<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>
<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>
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;
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);
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) {
package basics
import org.scalatest.Spec
import scala.io.Source
class CompilerSpec extends Spec {
describe("basic syntax compiler") {
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
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) {
goog.provide('scalosure');
ScalosureObject = function() {};
scalosure.init = function() {
String.prototype.startsWith = function(prefix) {
return (this.indexOf(prefix) === 0);
};