This file contains 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
var x = 5; | |
var y = 6; | |
var entries = [1, 2, 3, 4]; | |
var message = 'Testing'; | |
entries[4] = 5; | |
if (x == y) { | |
alert('Hello World!'); | |
} | |
else if (x <= y) { | |
alert(message); |
This file contains 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> | |
<html> | |
<head> | |
<title>Webframework - TodoMVC</title> | |
<link rel="stylesheet" href="css/base.css"/> | |
<link rel="stylesheet" href="css/app.css"/> | |
</head> | |
<body> | |
<section id="todoapp"> | |
<header id="header"> |
This file contains 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 f = () => { | |
val x = 5 | |
val y = 6 | |
val z = 7 | |
} |
This file contains 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
trait Lazy[T <: Persistable] extends Function0[T] | |
case class LazyValue[T <: Persistable](id: util.UUID, collection: DatastoreCollection[T]) extends Lazy[T] { | |
private lazy val value = collection.byId(id).getOrElse(null) | |
def apply() = value | |
} |
This file contains 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.hyperscala._ | |
import org.hyperscala.js.JavaScript | |
import org.hyperscala.style._ | |
import org.hyperscala.tags._ | |
import org.hyperscala.tags.attributes._ | |
import org.sgine.Color | |
object TelefloraImport extends WebPage("TelefloraImport") { | |
head.title := "Flowers, Florist Flower Delivery - Send Flowers Online - Teleflora" | |
head.contents += new Meta(httpEquiv = "content-type", content = "text/html; charset=ISO-8859-1") |
This file contains 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> | |
<html> | |
<head> | |
<title>Ajax POST Example</title> | |
<script src="/js/jquery-1.7.2.js"></script> | |
</head> | |
<body> | |
<form id="postForm" action="/"> | |
<label>Name</label> | |
<input name="name" type="text"/> |
This file contains 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.hyperscala._ | |
import org.hyperscala.js.JavaScript | |
import org.hyperscala.style._ | |
import org.hyperscala.tags._ | |
import org.hyperscala.tags.attributes._ | |
import org.powerscala.Color | |
object ExampleExport extends WebPage("ExampleExport") { | |
head.title := "Adopcje króliczków, Stowarzyszenie Pomocy Królikom" | |
head.contents += new Link(rel = "stylesheet", media = "screen", mimeType = "text/css", href = "example_files/style.css") |
This file contains 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
{ | |
"error": null, | |
"message": null, | |
"fieldId": null, | |
"redirect": null, | |
"response": { | |
"topics": [ | |
{ | |
"name": "Branding", | |
"id": "ea94e7c8-c2ee-4150-88f0-e63af2bfab1d" |
This file contains 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
United States dollar | |
Canadian dollar | |
Euro | |
British pound | |
Afghan afghani | |
Albanian lek | |
Algerian dinar | |
Angolan kwanza | |
Argentine peso | |
Armenian dram |
This file contains 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
English | |
Spanish | |
German | |
French | |
Italian | |
Acehnese | |
Afrikaans | |
Akan | |
Albanian | |
Amharic |
OlderNewer