Skip to content

Instantly share code, notes, and snippets.

Avatar

Eric Ferraiuolo ericf

View GitHub Profile
View app.js
var YUI = require('yui').YUI,
Y = YUI({useSync: true});
Y.use('parallel');
require('./second');
View gist:1305153
// For Y.Foo
// Class extensions that will be used in the base class
function ExtA() {}
...
Y.FooExtA = ExtA;
// Base Class definition
function FooBase() {}
...
View definition.js
var MyClass = Y.Base.create('my-class', Y.Base, [], {
_mergeProps: function (value, prop) {
var cur = this.get(prop);
if (Y.Lang.isUndefined(cur)) {
this.reset(prop); // will rest to { test: true } for this instance instead of always using the static default values
}
return Y.merge(cur, value);
}
}, {
ATTRS: {
View yql env map values
In the table:
<inputs>
<key id="url" type="xs:string" paramType="variable" required="true" />
<key id="timeout" type="xs:integer" paramType="variable" required="false" default="25000" />
<map id="integrations" type="xs:string" paramType="variable" required="true" />
</inputs>
In the .env file:
View gist:641374
SV.push({id :
new Y.ScrollView({
srcNode: '#' + id,
height: 370
})}
);
View gist:581879
Y.TabSliderParent = Y.Base.create('tabsliderparent', Y.Widget, [Y.WidgetParent], {
_tabNums : null,
initializer : function() {
//code
this._tabNums = [idnum];
//code
});
View gist:564486
<!doctype html>
<html>
<head>
<title>Test Page</title>
</head><body>
<input type="hidden" id="task1" value="Node loaded from YQL">
<ul id="tasks"></ul>
View gist:505126
loadPageContent: function(foo) {
this.useComponent('PageContentInfo', function(PageContentInfo){
// need a variable here...
// how does "foo" get in here?
PageContentInfo.loadPage('info');
});
View gist:505123
this.useComponent('PageContentInfo', function(PageContentInfo){
// need a variable here...
PageContentInfo.loadPage('info');
});
View gist:481658
var a = "hello" +
"how" +
"are" +
"you";
You can’t perform that action at this time.