Skip to content

Instantly share code, notes, and snippets.

View quintesse's full-sized avatar

Tako Schotanus quintesse

  • RedHat
  • Alicante, Spain
  • 11:15 (UTC +02:00)
View GitHub Profile
@quintesse
quintesse / index.json
Last active September 26, 2015 12:34
A set of examples for the Ceylon Web IDE with an external default item
{
"sets": [
{
"title": "A set with a default 2",
"items": [
{
"title": "Example One",
"gist": "9b4bafe29a28103818c9"
},
{
@quintesse
quintesse / index.json
Last active September 26, 2015 12:33
A set of examples for the Ceylon Web IDE with a default item
{
"sets": [
{
"title": "A set with a default",
"items": [
{
"title": "Example One",
"gist": "9b4bafe29a28103818c9"
},
{
@quintesse
quintesse / index.json
Last active September 26, 2015 12:32
A set of examples for the Ceylon Web IDE
{
"sets": [
{
"title": "A set of examples",
"items": [
{
"title": "Example One",
"gist": "9b4bafe29a28103818c9"
},
{
@quintesse
quintesse / main.ceylon
Created September 22, 2015 12:51
Ceylon Web Runner: window test
//$webrun_wrapped
shared void run() {
dynamic {
openCanvasWindow();
}
}
@quintesse
quintesse / hello_world.ceylon
Last active October 28, 2015 20:56
Ceylon Web Runner: xxx
shared void run(){
// The classic "hello world" in Ceylon
print("Hello world!");
// This prints the same text:
String str = "world";
print("Hello ``str``!");
// Click "Run" above to run the program.
// It is converted to JavaScript and runs directly in your browser!
@quintesse
quintesse / hello_world.ceylon
Last active September 27, 2015 10:46
Ceylon Web Runner: errors
shared void run() {
Integer unused;
String x = nothing;
hello();
}
@quintesse
quintesse / hello_world.ceylon
Last active October 6, 2015 17:01
Ceylon Web Runner: JS Test
//$webrun_wrapped
shared void run() {
// An interop demo
dynamic {
dynamic x = foobar();
dynamic y = \iObject.getOwnPropertyNames(x);
print("{");
for (i in y) {
print(" " + i + ": '" + x[i] + "',");
}
@quintesse
quintesse / main.ceylon
Last active September 24, 2015 17:13
Ceylon Web Runner: Test 5
//$webrun_wrapped
shared void run() {
print(runtime.version);
}
@quintesse
quintesse / script.ceylon
Last active September 17, 2015 00:31
Ceylon Web Runner: Test 4
//$webrun_wrapped
shared void run() {
// The classic "hello world" in Ceylon
print("Hello world!");
// This prints the same text:
String str = "world";
print("Hello ``str``!");
// Click "Run" below to run the program.
@quintesse
quintesse / script.ceylon
Last active September 17, 2015 11:03
Ceylon Web Runner: Test 3
//$webrun_wrapped
shared void run() {
// The classic "hello world" in Ceylon
print("Hello world!");
// This prints the same text:
String str = "world";
print("Hello ``str``!");
// Click "Run" below to run the program.