Skip to content

Instantly share code, notes, and snippets.

View wittemann's full-sized avatar

Martin Wittemann wittemann

  • Karlsruhe, Germany
View GitHub Profile
@wittemann
wittemann / github.gist.xml
Created January 14, 2010 08:56
github.gist.content.xml
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Martin Wittemann</author>
<author>Fabian Jakobs</author>
<documentationURL></documentationURL>
<sampleQuery>select * from {table} where repo='276994'</sampleQuery>
</meta>
<bindings>
<select itemPath="content" produces="XML">
@wittemann
wittemann / gitbug.gist.list.xml
Created January 15, 2010 11:41
gitbug.gist.list.xml
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Martin Wittemann</author>
<documentationURL></documentationURL>
<sampleQuery>select * from {table} where user='wittemann'</sampleQuery>
</meta>
<bindings>
<select itemPath="gists" produces="XML">
<urls>
@wittemann
wittemann / label.js
Created January 18, 2010 09:13
label [qx]
var label = new qx.ui.basic.Label("affe");
this.getRoot().add(label);​
@wittemann
wittemann / form.js
Created January 18, 2010 09:13
form [qx]
// create the form
var form = new qx.ui.form.Form();
// configure the required filed message
form.getValidationManager().setRequiredFieldMessage("Fill in!");
// create the first two input fields
var firstname = new qx.ui.form.TextField();
firstname.setRequired(true);
var lastname = new qx.ui.form.TextField();
@wittemann
wittemann / list.js
Created January 18, 2010 09:14
list [qx]
var list = new qx.ui.form.List();
for (var i = 0; i < 10; i++) {
var item = new qx.ui.form.ListItem("Item " + i, "icon/22/actions/media-playback-start.png")
list.add(item);
}
this.getRoot().add(list);​
@wittemann
wittemann / tree.js
Created January 18, 2010 09:14
tree [qx]
var tree = new qx.ui.tree.Tree();
this.getRoot().add(tree);
var root = new qx.ui.tree.TreeFolder("root");
root.setOpen(true);
tree.setRoot(root);
for (var i = 0; i < 10; i++) {
root.add(new qx.ui.tree.TreeFolder(i + ""));
}
@wittemann
wittemann / combobox.js
Created January 18, 2010 09:15
combobox [qx]
var combo = new qx.ui.form.ComboBox();
this.getRoot().add(combo);
var comboTextField = combo.getChildControl("textfield");
comboTextField.setReadOnly(true);​
@wittemann
wittemann / resetter.js
Created January 18, 2010 09:15
resetter [qx]
// create a textfield
var textField = new qx.ui.form.TextField("acb");
this.getRoot().add(textField, {left: 10, top: 10});
// create a checkbox
var checkBox = new qx.ui.form.CheckBox("box");
this.getRoot().add(checkBox, {left: 10, top: 40});
// create a list
var list = new qx.ui.form.List();
@wittemann
wittemann / RadioButtonGroup.js
Created January 18, 2010 10:31
RadioButtonGroup [qx]
rc = new qx.ui.form.RadioButtonGroup();
for (var i = 0; i < 10; i++) {
var rb = new qx.ui.form.RadioButton("r" + i);
rb.setModel("r" + i);
rc.add(rb);
}
this.getRoot().add(rc);
@wittemann
wittemann / generator.json
Created January 18, 2010 12:41
generator.json
// generator json config file
{
"jobs" : {
"source-script" : {
"compile-options" : {
"code" : {
"decode-uris-plug" : "/Users/mw/.qooxdoo/decode.js"
}
}
},