How to use the yui3.YUI function in yui3

To help you get started, we’ve selected a few yui3 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yui / nodejs-yui3 / tests / dom.js View on Github external
var sys = require('sys'),
    fs = require('fs');

var YUI = require("yui3").YUI;

var YUITest = require("yuitest").YUITest;

YUI({
    filter: 'debug',
    logExclude: {
        'attribute': true,
        'base': true,
        //'get': true,
        'loader': true,
        'yui': true,
        'widget': true,
        'event': true
    },
    debug: false
}).useSync('dom-deprecated', 'dom-style', 'node-base', 'selector-css3', 'json-stringify', function(Y) {
    var document = Y.Browser.document;
    var window = Y.Browser.window;

/* {{{ DOM Test Suite */
github zzo / JUTE / backend / nodejute / jute_v8.js View on Github external
function doit(data) {

    YUI({
//        filter: 'DEBUG',
        logExclude: {
            attribute:     true
            ,base:         true
            ,get:          true
            ,loader:       true
            ,selector:     true
            ,yui:          true
            ,widget:       true
            ,event:        true
        }
    }).use('node', 'nodejs-dom', function(Y) {

        var document = Y.Browser.document, window = document.parentWindow,
            orig_eval = eval,
            createElementOrig = document.createElement,
github zzo / JUTE / v8 / bin / jute_v8.js View on Github external
function doit(data, d, w) {
    YUI({
//        filter: 'DEBUG',
        logExclude: {
            attribute:     true
            ,base:         true
            ,get:          true
            ,loader:       true
            ,selector:     true
            ,yui:          true
            ,widget:       true
            ,event:        true
        }
        ,doc: d
        ,win: w
    }).use('node', 'nodejs-dom', function(Y) {

        var document = Y.Browser.document, window = document.parentWindow,
github yui / nodejs-yui3 / examples / overlay-markup.js View on Github external
#!/usr/bin/env node
var sys = require('sys');

var YUI = require("yui3").YUI;

YUI({
    filter: 'debug',
    debug: true
}).use('overlay', function(Y) {
    var document = Y.Browser.document;

    Y.log('JSDom testing..');
    //sys.puts('Inside1: ' + sys.inspect(process.memoryUsage()));

    var div = document.createElement('div');
    div.id = 'demo';
    div.innerHTML = '<div id="myContent"><div class="yui-widget-hd">Overlay Header</div><div class="yui-widget-bd">Overlay Body</div><div class="yui-widget-ft">Overlay Footer</div></div>';
    document.body.appendChild(div);
    
    Y.log('Creating the Overlay from source..');
    var overlay = new Y.Overlay({
        // Specify a reference to a node which already exists 
github spsDrop / handbrake-server / app.js View on Github external
app.use(express.session({ secret: "monkey wrench" }));
    app.use(app.router);
    app.use(express.static(__dirname + '/public'));
});

app.configure('development', function(){
    app.use(express.errorHandler({ dumpExceptions: true, showStack: true })); 
});

app.configure('production', function(){
    app.use(express.errorHandler()); 
});

// Routes

YUI().use("json","substitute",function(Y){
    
    var rootFolder = "/storage/Video",
        outputFolder = "/storage/Video",
        profiles = {
            "high-profile":"-i {inputFile} -o {outputFile}.mp4  -e x264 -q 20.0 -a 1,1 -E copy:ac3,faac -B 160,160 -6 auto,dpl2 -R Auto,Auto -D 0.0,0.0 -f mp4 --detelecine --decomb --loose-anamorphic -m -x b-adapt=2:rc-lookahead=50",
            "android-tablet":"-i {inputFile} -o {outputFile}.m4v  -e x264 -q 20.0 -r 30 --pfr  -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0.0 -f mp4 -4 -X 1280 --loose-anamorphic -m",
            "universal":"-i {inputFile} -o {outputFile}.mp4  -e x264 -q 20.0 -a 1,1 -E faac,copy:ac3 -B 160,160 -6 dpl2,auto -R Auto,Auto -D 0.0,0.0 -f mp4 -X 720 --loose-anamorphic -m -x cabac=0:ref=2:me=umh:bframes=0:weightp=0:8x8dct=0:trellis=0:subme=6",
            "ipod":"-i {inputFile} -o {outputFile}.mp4  -e x264 -b 700 -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0.0 -f mp4 -I -X 320 -m -x level=30:bframes=0:weightp=0:cabac=0:ref=1:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:subme=6:8x8dct=0:trellis=0",
            "iphone+ipod-touch":"-i {inputFile} -o {outputFile}.mp4  -e x264 -q 20.0 -a 1 -E faac -B 128 -6 dpl2 -R Auto -D 0.0 -f mp4 -X 480 -m -x cabac=0:ref=2:me=umh:bframes=0:weightp=0:subme=6:8x8dct=0:trellis=0",
            "iphone-4":"-i {inputFile} -o {outputFile}.mp4  -e x264 -q 20.0 -r 29.97 --pfr  -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0.0 -f mp4 -4 -X 960 --loose-anamorphic -m",
            "ipad":"-i {inputFile} -o {outputFile}.mp4  -e x264 -q 20.0 -r 29.97 --pfr  -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0.0 -f mp4 -4 -X 1024 --loose-anamorphic -m",
            "apple-tv":"-i {inputFile} -o {outputFile}.mp4  -e x264 -q 20.0 -a 1,1 -E faac,copy:ac3 -B 160,160 -6 dpl2,auto -R Auto,Auto -D 0.0,0.0 -f mp4 -4 -X 960 --loose-anamorphic -m -x cabac=0:ref=2:me=umh:b-pyramid=none:b-adapt=2:weightb=0:trellis=0:weightp=0:vbv-maxrate=9500:vbv-bufsize=9500",
            "apple-tv-2":"-i {inputFile} -o {outputFile}.mp4  -e x264 -q 20.0 -a 1,1 -E faac,copy:ac3 -B 160,160 -6 dpl2,auto -R Auto,Auto -D 0.0,0.0 -f mp4 -4 -X 1280 --loose-anamorphic -m",
            "normal":"-i {inputFile} -o {outputFile}.mp4  -e x264 -q 20.0 -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0.0 -f mp4 --strict-anamorphic -m -x ref=2:bframes=2:subme=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0",
            "classic":"-i {inputFile} -o {outputFile}.mp4  -b 1000 -a 1 -E faac -B 160 -6 dpl2 -R Auto -D 0.0 -f mp4"
        },
github yui / nodejs-yui3 / tests / node.js View on Github external
#!/usr/bin/env node

var sys = require('sys'),
    fs = require('fs');

var YUI = require("yui3").YUI;
var YUITest = require("yuitest").YUITest;

YUI({
    filter: 'debug',
    logExclude: {
        'attribute': true,
        'base': true,
        //'get': true,
        'loader': true,
        'yui': true,
        'widget': true,
        'event': true
    },
    debug: false
}).useSync('selector-css3', 'node-deprecated', 'anim', 'console', 'node-event-simulate', 'node-load', function(Y) {

var document = Y.config.doc;
var window = Y.config.win;
github neyric / wireit / sandbox / yui3-server.js View on Github external
#!/usr/bin/env node

var express = require('express'),
    YUI = require('yui3').YUI;

YUI({
		debug: true,
		combine: false,
		filter: 'raw'
	}).use('express', 'node', function(Y) {

    var app = express.createServer();

    app.configure(function(){
        app.use(express.methodOverride());
        app.use(express.bodyDecoder());
        app.use(app.router);
        app.use(express.staticProvider(__dirname + '/public'));
    });

    app.register('.html', YUI);
github yui / nodejs-yui3 / examples / module-groups.js View on Github external
#!/usr/bin/env node

var sys = require('sys');
var YUI = require("yui3").YUI;


YUI.add('foo', function(Y) {
    Y.log('FOO LOADED');
}, '1.0', { requires: ['external-foo'] });

YUI({
    filter: 'debug',
    debug: true,
    groups: {
        dav: {
            modules: {
                'external-foo': {
                    fullpath: __dirname + '/external-module.js',
                    requires: ['dom']
                }
            }
        }
    }
}).use('base', 'foo', function(Y) {

    Y.log('This is a test of loading internal and external custom YUI3 modules');
github yui / nodejs-yui3 / examples / y-server-template.js View on Github external
#!/usr/bin/env node

var sys = require('sys'),
    http = require('http'),
    fs = require('fs'),
    YUI = require("yui3").YUI;

var DEBUG = true;

YUI({ debug: DEBUG }).use('base', 'nodejs-dom', 'node', 'gallery-yql', 'json-stringify', function(Y) {
    Y.log('Loaded first instance..');
    
    var docType = '' + "\n";

    http.createServer(function (req, res) {
        
        YUI({ debug: DEBUG }).use('nodejs-dom', 'node', 'gallery-yql', 'json-stringify', function(Page) {
            //This is an example, normally we would use HTML templates.
            //Some JSON data to work on the template.
            var data = {
                TITLE: 'Test Page: ' + (new Date()),
                PARAS: [
                    'This is some test',
                    'This is some test',
                    'This is some test',
                    'This is some test',
github yui / nodejs-yui3 / examples / parallel.js View on Github external
#!/usr/bin/env node

var fs = require('fs');
var YUI = require("yui3").YUI;

YUI({
    filter: 'debug',
    debug: true
}).use('parallel', function(Y) {
    
    Y.log('Reading this directory and reading the contents of each file..');
    var stack = new Y.Parallel();
    fs.readdir(__dirname, stack.add(function(err, files) {
        files.forEach(function(f) {
            fs.readFile(__dirname + f, stack.add(function(err, data) {
                //Do something here..
            }));
        });
    }));
    stack.done(function() {
        Y.log('All callbacks have fired..');
    });

yui3

YUI 3 Library on NodeJS

Unrecognized
Latest version published 12 years ago

Package Health Score

43 / 100
Full package analysis

Popular yui3 functions

Similar packages