Skip to content

Instantly share code, notes, and snippets.

@TimurFayruzov
TimurFayruzov / bootstrap.json
Created June 29, 2016 17:42
Setup for running a Flink application on EMR
[
{
"Name": "Ship Flink runtime to cluster",
"Path": "s3://<your_bucket>/flink/ship_flink_runtime.sh"
},
{
"Name": "Ship application to cluster",
"Path": "s3://<your_bucket>/flink/ship_app.sh"
}
]
@arv
arv / createAttributeNS.js
Created March 13, 2014 14:55
Implementation of createAttributeNS and setAttributeNodeNS
if (!Document.prototype.createAttributeNS) {
Document.prototype.createAttributeNS = function(namespaceURI, qualifiedName) {
var dummy = this.createElement('dummy');
dummy.setAttributeNS(namespaceURI, qualifiedName, '');
var attr = dummy.attributes[0];
dummy.removeAttributeNode(attr);
return attr;
};
}
@ebruchez
ebruchez / gist:2156397
Created March 22, 2012 05:30
Prototype for XBL component with binding to optional element
<xbl:xbl xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
xmlns:oxf="http://www.orbeon.com/oxf/processors"
xmlns:xbl="http://www.w3.org/ns/xbl"
xmlns:xxbl="http://orbeon.org/oxf/xml/xbl">
<xbl:binding id="fr-optional-element" element="fr|optional-element" xxbl:mode="binding handlers" xxbl:container="span">