This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
use DBI; | |
use HTML::DOM; | |
my $dbh = DBI->connect( | |
'dbi:mysql:dbname=...;host=localhost;sslmode=disable', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var selected_date = e.newSelection[0]; | |
var selected_month = selected_date.getMonth(); | |
this._calendarNavGoToDateMonthSelectNode.set("selectedIndex", selected_month); | |
var selected_day = selected_date.getDate(); | |
this._calendarNavGoToDateDaySelectNode.set("selectedIndex", selected_day - 1); | |
var selected_year = String(selected_date.getFullYear()); | |
this._calendarNavGoToDateYearSelectNode.all("option").each( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_uiSetSuppliers: function (value, src) { | |
Y.log(Clazz.NAME + "::_uiSetSuppliers"); | |
if (this._supplierSelectNode) { | |
this._supplierSelectNode.empty(); | |
this._supplierSelectNode.append('<option value="">' + this.get("strings").choose_one_option_label + '</option>'); | |
if (this.get("suppliers")) { | |
this.get("suppliers").each( | |
function (supplier) { | |
this.append('<option value="' + supplier.get("id") + '">' + supplier.get("display_label") + '</option>'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI().use( | |
"console", | |
"ep-ui-builder", | |
function (Y) { | |
Y.on( | |
"domready", | |
function () { | |
Y.log("index - building UI"); | |
try { | |
Y.EP.UI.Build (); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI().use( | |
"console", | |
"file1", | |
"file2", | |
function (Y) { | |
// I'm a callback that runs as soon as all dependencies are loaded | |
} | |
); | |
YUI.add( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI.add( | |
"custom-manage-m-supplier", | |
function (Y) { | |
var Clazz = Y.namespace("Bikes.Manage.M").Supplier = Y.Base.create( | |
"custom_manage_m_supplier", | |
Y.Bikes.Manage.M.Base, | |
[ Y.ModelRelate, Y.ModelRelateAutoGen ], | |
{}, | |
{ | |
ATTRS: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI.add( | |
"myapp-general", | |
function (Y) { | |
var Clazz = Y.namespace("MyApp").General = Y.Base.create( | |
"myapp-general", | |
Y.Widget, | |
[], | |
{ | |
initializer: function (config) { | |
Y.log("initializer", "debug", Clazz.NAME); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// assumes existence of Y.UserModel | |
YUI.add('user-view', function (Y) { | |
Y.UserView = Y.Base.create('userView', Y.View, [ Y.ModelConsumer ], { | |
template: Y.Handlebars.templates['user'], | |
initializer: function () { | |
var user = this.get('user'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var gear = require('gear'); | |
new gear.Queue( | |
{ | |
registry: new gear.Registry( | |
{ | |
module: 'gear-lib' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Clazz = Y.namespace("OCLC.W.Cart.ML.Lines").Base = Y.Base.create( | |
"oclc-cart-ml-lines-base", | |
Y.ModelList, | |
[], | |
{ | |
model: Y.OCLC.W.Cart.M.Line.Base, | |
initializer: function () { | |
Y.log("initializer", "debug", Clazz.NAME); | |