Skip to content

Instantly share code, notes, and snippets.

Eric Ferraiuolo ericf

Block or report user

Report or block ericf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View app.js
var YUI = require('yui').YUI,
Y = YUI({useSync: true});
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);
}, {
View yql env map values
In the table:
<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" />
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() {
this._tabNums = [idnum];
View gist:564486
<!doctype html>
<title>Test Page</title>
<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?
View gist:505123
this.useComponent('PageContentInfo', function(PageContentInfo){
// need a variable here...
View gist:481658
var a = "hello" +
"how" +
"are" +
You can’t perform that action at this time.