Skip to content

Instantly share code, notes, and snippets.

View Satyam's full-sized avatar

Daniel Barreiro Satyam

  • Sitges, Barcelona, Spain
View GitHub Profile
@Satyam
Satyam / gist:1547708
Created January 1, 2012 16:28
App plugin
/*
App plugins can be loaded over an instance of App by setting a route with a wildcard path
such as:
{
path:'/:app/*',
callback: 'dispatchApp'
}
where the app param is the module name of the plugin,
which should have its entry in the YUI config file (unless loaded by some other means)
*/
@Satyam
Satyam / gist:1498249
Created December 19, 2011 18:18
Patch for WidgetButtons
YUI.add('widget-buttons-patch', function (Y) {
"use strict";
var WB = Y.WidgetButtons,
WBp = WB.prototype,
BUTTON = 'button',
getCN = Y.ClassNameManager.getClassName,
DISABLED = getCN(BUTTON, 'disabled'),
DEFAULT = getCN(BUTTON, 'default');
@Satyam
Satyam / sample.html
Created September 17, 2011 14:11
Processing data using JSON Schema and DataTypes
<!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>JSON Schema and DataTypes</title>
<style>
td , th , table {
border: thin solid silver;
}
td , th {