qunit-tap関係のドキュメント
QUnit関係のドキュメント
var data = | |
module.exports = { | |
domain: ('.pixiv.net www.pixiv.net i9.pixiv.net img.pixiv.net .pixiv.org').split(' ') | |
, path: ('/ /pro /profile /prototype /pro/file').split(' ') | |
, key: ('PHPSESSID node_session_id ID _id over18').split(' ') | |
, value: ('red <> blue <> black <> white <> yellow <> yelow hearts <> B&L <> abc=ABC;') | |
.split(' <> ') | |
}; |
qunit-tap関係のドキュメント
QUnit関係のドキュメント
$ git clone git://github.com/ariya/phantomjs.git
$ cd phantomjs
$ git checkout 1.8
/project/ | |
-- test_helper.js | |
/t/ | |
-- test_sample.js | |
/xt/ | |
-- test_async_sample.js |
var counter = new CounterStream; | |
counter.on('error', function (err) { | |
console.error(err); | |
process.exit(1); | |
}); | |
counter.on('data', function (count) { | |
process.stdout.write(count + "\n"); |
/Project/ | |
-- /lib/ | |
-- timer.js | |
-- /t/ | |
-- index.html | |
-- run-qunit.js (https://raw.github.com/ariya/phantomjs/master/examples/run-qunit.js) | |
-- test.js | |
-- /node_modules/ | |
-- /qunit-tap/ | |
-- /qunitjs/ |
function Emitter () {/* this.evs = {}; */} | |
(function (ep) { | |
ep.emit = function () { | |
var args = [].slice.apply(arguments); | |
var eventName = args.shift(); | |
if (! this.evs) this.evs = {}; | |
if (! this.evs[eventName]) return; |
var path = require('path'); | |
var fs = require('fs'); | |
var mongoose = require('mongoose'); | |
var mime = require('mime'); | |
var ImageSchema = new mongoose.Schema({ | |
img: Buffer | |
, mime: String | |
}); |
(function (define) { | |
define([], function () { | |
var mod = {}; | |
mod.Fmap = function () {}; | |
var fp = mod.Fmap.prototype; | |
fp.map = function (type, opt) { | |
if ('function' !== typeof type) { |
#!/usr/bin/env perl -s | |
use strict; | |
use warnings; | |
use File::Spec; | |
use File::Basename qw(dirname basename); | |
use File::Copy qw(move); | |
use LWP::Simple qw(mirror); | |
use Data::Section::Simple qw(get_data_section); | |
@ARGV or die qq(usage: $0 [-phantom] projectname); |