Skip to content

Instantly share code, notes, and snippets.

@binnyg
binnyg / gist:757924
Created December 28, 2010 23:49
YUI RTE BUG
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Simple Editor &mdash; Advanced Buttons</title>
<style type="text/css">
/*margin and padding on body element
@binnyg
binnyg / gist:768034
Created January 6, 2011 15:44
relevant-toggle-error.xhtml
<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner">
<xhtml:head>
<xforms:model id="main"
xxforms:session-heartbeat="true"
@binnyg
binnyg / rte-validation-error.xhtml
Created January 10, 2011 19:59
Traversing from rte to rte doesn't make the field valid.
<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner">
<xhtml:head>
<xforms:model id="main"
xxforms:session-heartbeat="true"
@binnyg
binnyg / relevant-refresh-error.xhtml
Created January 10, 2011 20:12
Wrong control is initialized on page refresh
<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner">
<xhtml:head>
<xforms:model id="main"
xxforms:session-heartbeat="true"
@binnyg
binnyg / gist:945183
Created April 27, 2011 20:54
RTE inside modal dialog
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:widget="http://orbeon.org/oxf/xml/widget"
xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes"
xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:fr="http://orbeon.org/oxf/xml/form-runner">
<xhtml:head>
<xforms:model id="main"
@binnyg
binnyg / relevant-error.js
Created June 8, 2011 02:31
relevant-without-repeat
var YDOM = YAHOO.util.Dom;
var ODOC = ORBEON.xforms.Document;
YAHOO.namespace("xbl.fr");
YAHOO.xbl.fr.InputCounted = function() {};
ORBEON.xforms.XBL.declareClass(YAHOO.xbl.fr.InputCounted, "xbl-fr-input-counted");
YAHOO.xbl.fr.InputCounted.prototype = {
destroy: function() {
@binnyg
binnyg / gist:2352798
Created April 10, 2012 16:47
popup-calendar
YUI_config = {
filter: "raw",
groups: {
gallery: {
combine: false,
debug: true,
filter: "raw",
base: "/invitation/js/",
patterns: {
"gallery-": {},
@binnyg
binnyg / gist:2413100
Created April 18, 2012 11:54
YUI overlay+scrollview
<html>
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<title>TEst</title>
<script src="http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js"></script>
<STYLE TYPE="text/css" MEDIA=screen>
.yui3-overlay-content {
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.25);
background: none repeat scroll 0 0 rgba(82, 82, 82, 0.7);
border-radius: 7px;
CREATE EXTERNAL TABLE domain_name_export_hdfs (
dn string, td string, h int, r bigint, g string
)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '|'
location 'hdfs://namenode:9001/hadoop/data/201204/';
Models
----------------------------------------
Invitation
has_many :comments
Comment
belongs_to :invitation
Controller