Skip to content

Instantly share code, notes, and snippets.

View allenrabinovich's full-sized avatar

Allen Rabinovich allenrabinovich

View GitHub Profile
{
"date": {
"use": [
"date-parse",
"date-format",
"date-math"
],
"submodules": {
"date-parse": {
},
/**
* The `datatype` module is an alias for three utilities, Y.Date,
* Y.Number and Y.XML, that provide type-conversion and string-formatting
* convenience methods for various JavaScript object types.
*
* @module datatype
* @main datatype
*/
/**
{
"name": "date",
"builds": {
"date": {
},
"date-parse": {
"jsfiles": [
"date-parse.js"
]
},
{
"date": {
"use": [
"date-parse",
"date-format",
"date-math"
],
"submodules": {
"date-parse": {
},
module.exports = function () {
console.log("Ruff! Ruff! Rrrrr!");
};
{
"name" : "gallery-yui-treeview",
"displayName": "TreeView",
"description": "Provides a visual representation and helper methods for hierarchical structures",
"author" : "allenrabinovich",
"tags": ["beta", "widget", "treeview", "escape"],
"use" : ["treeview", "escape"],
"examples": [
error: --------------------------------------------------------------------------
error: An uncaught YUIDoc error has occurred, stack trace given below
error: --------------------------------------------------------------------------
error:
Error: listen EADDRINUSE
at errnoException (net.js:670:11)
at Array.0 (net.js:771:26)
at EventEmitter._tickCallback (node.js:192:40)
error: --------------------------------------------------------------------------
error: Node.js version: v0.6.15
var mydate = new Date(); // Today's date
var myday = mydate.getDate() + ''; // String corresponding to today's day-of-the-month
var mymonth = mydate.getMonth() + ''; // String corresponding to today's date's month
var myyear = mydate.getFullYear() + ''; // String corresponding to today's date's year
var rules = {};
rules[myyear] = {};
rules[myyear][mymonth] = {};
@allenrabinovich
allenrabinovich / gist:2172868
Created March 23, 2012 17:13
Fix for Calendar Custom Header Renderer
Y.CalendarBase.prototype._afterHeaderRendererChange = function () {
var headerCell = this.get("contentBox").one(".yui3-calendar-header-label");
headerCell.setContent(this._updateCalendarHeader(this.get('date')));
};
@allenrabinovich
allenrabinovich / gist:1996736
Created March 7, 2012 22:30
Uploader Select Button Markup
<div id="fileselection" style="position:relative;width:200px;height:30px" class="yui3-uploader-content">
<button type="button" class="yui3-button" tabindex="-1" style="width: 100%; height: 100%;">Select Files</button>
<div id="uploaderyui_3_3_0_1_1331159194568_61" style="position:absolute; top:0px; left: 0px; margin:0px; width:100%; height:100%">
<object id="yuiswfyui_3_3_0_1_1331159194568_76" type="application/x-shockwave-flash" data="assets/flashuploader.swf" width="100%" height="100%"><param name="wmode" value="transparent"><param name="allowScriptAccess" value="always"><param name="allowNetworking" value="all"><param name="scale" value="noscale"><param name="flashVars" value="yId=yui_3_3_0_1_1331159194568_1&amp;YUISwfId=yuiswfyui_3_3_0_1_1331159194568_76&amp;YUIBridgeCallback=SWF.eventHandler&amp;allowedDomain=localhost"></object>
</div>
</div>