code
stringlengths
2
1.05M
exports.name = "CDATA"; exports.options = {handler: {}, parser: {}}; exports.html = "<tag><![CDATA[ asdf ><asdf></adsf><> fo]]></tag>"; exports.expected = [ { "event": "opentagname", "data": [ "tag" ] }, { "event": "opentag", "data": [ "tag", {}, "tag" ] }, { ...
version https://git-lfs.github.com/spec/v1 oid sha256:ce9f06c150b8b7868bc0405cf8f3183f907322ff6c04f9dcce844c8219b3d078 size 1294
#!/usr/bin/env node 'use strict'; const meow = require('meow'); const john = require('./'); const platform = process.platform.toLowerCase(); const supportedPlatforms = require('./package').os; (function () { if (supportedPlatforms.indexOf(platform) === -1) { return console.error(new Error(`${platform} unsupport...
'use strict'; angular .module( 'app.controller.devices', [ 'ngMaterial', 'ngMessages', 'ngCookies' ] ) // constants .constant('MODULE_VERSION', '0.0.1') // // // // //...
jsonRPC = { version: '2.0', endPoint: null, namespace: null, setup: function(params) { this.endPoint = params.endPoint; this.namespace = params.namespace; this.cache = params.cache !== undefined ? params.cache : true; return this; }, request: function(method, opti...
var express = require('express') var http = require('http') var bodyParser = require('body-parser') var path = require('path') var port = process.env.PORT || 8080 var app = express() var server = http.createServer(app) app.use(bodyParser.json()) app.use(bodyParser.urlencoded({ extended: false })) app.use(express.stat...
var target = { name: 'obj' } var logHandler = { get: function (target, key) { console.log(`${key} 被读取`) return target[key] }, set: function (target, key, value) { console.log(`${key} 被设置为 ${value}`) target[key] = value return value } } var targetWithLog = new Proxy(target, logHandler) targ...
var N = 1 << 0, S = 1 << 1, W = 1 << 2, E = 1 << 3; self.addEventListener("message", function(event) { postMessage(generateMaze(event.data.width, event.data.height)); }); function generateMaze(width, height) { var cells = new Array(width * height), // each cell’s edge bits remaining = range(widt...
/* global Paginate, Utils */ const _ = require('underscore'); module.exports = { // Array of elements items: [], // Current cursor or records cursor: 1, // Page number page: 1, // Items per page perPage: 20, // Next page next: false, // Prev page prev: false, // Total pages total_pa...
//Globalize.culture('en-US').calendar.patterns.d = "MM/dd/yyyy"; //Globalize.culture('en-US').calendar.patterns.T = "hh:mm:ss"; $.knockoutExtend.defaults.culture.changePhoneMaskFunction = null;
$( "#nav-toggle" ).on('click', function() { $( "#nav-menu" ).slideToggle( "slow" ); $(this).toggleClass( 'is-active' ); }); // -- --//
/** * FoundationDB SQL Layer Adapter * Copyright © 2013 Cody Stoltman * Copyright (c) 2014 FoundationDB, LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, incl...
/** @license Copyright (c) 2018 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://...
(function() { //监听DOMContentLoaded chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) { //request就相当于一个事件,当触发的时候就执行下面代码 var bgStatus = request.bgStatus; switch (bgStatus) { case "rmAd": { console.log("content监听到bg的...
define(['jquery', 'pageView', 'views/home/flight.airport', 'views/home/flight.date','widget/m/calendar'], function($, PageView, airport, date,calendar) { var FlightView = PageView.extend({ el: "#flightsDiv", ui: { flightRoundTrip: '#flightRoundTrip', flightOneWay: "#flightOneWay", flightAddr...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import PageForDesk from './components/PageForDesk'; let page = ""; const render = () => { ReactDOM.render( <PageForDesk ref={(c)=>{page = c}}/>, document.getElementById('content') ); window.setElementTree = function(name,props){ page._...
var express = require('express'); var bcrypt = require('bcrypt-nodejs'); var User = require('../models/User'); var router = express.Router(); /* * POST: /auth/login * Authenticates an User */ router.post('/login', function (req, res) { if (!req.body) return res.sendStatus(400); User.where("username", req...
var utilities = (function () { function addToCart(item) { var promise = new Promise(function (resolve, reject) { var currentStorage, storageID, currentItemIds, storageToBeUpdated, currentItemId = item.id, currentUser...
const mongoose = require( 'mongoose' ); module.exports = function( Model ) { // if ( !( Model instanceof mongoose.model ) ) throw new Error( 'Invalid mongoose model ' ); function get( query = {} ) { return Model.findOne( query ); } function query( query = {} ) { return Model.find( query ); } fun...
//grunt-start /// <reference path="AdvancedMapOperation.ts" /> /// <reference path="spreadsheet.ts" /> //grunt-end
import { compile, getCodeFromBundle, getCodeFromLess, getCompiler, getErrors, getWarnings, } from "./helpers"; describe('"implementation" option', () => { it("should work", async () => { const testId = "./basic.less"; const compiler = getCompiler(testId, { // eslint-disable-next-line global...
const odata = require('odata'); const oHandler = odata.o('https://services.odata.org/V4/%28S%28wptr35qf3bz4kb5oatn432ul%29%29/TripPinServiceRW/', { headers: { 'If-Match': '*' } }); oHandler.get('People').query().then((data) => { console.log(data); });
export { default } from 'ember-flexberry-designer/controllers/fd-enum-edit-form';
/* * localhost rocks mysql example * * To run this example try npm install mysql * from within the examples directory. * You also need a mysql instance running on the * same machine. * */ var localhost = require('../localhost.rocks.js').localhost; console.log(localhost); var mysql = require('mysql'); va...
import Vue from 'vue'; import { formatDate } from '~/lib/utils/datetime_utility'; import { mount, createLocalVue } from '@vue/test-utils'; import RelatedIssuableItem from '~/vue_shared/components/issue/related_issuable_item.vue'; import { defaultAssignees, defaultMilestone, } from '../../../../javascripts/vue_share...
Polymer({ is: 'jam-play-song', properties: { song_id : { type: Number, value: 0 }, song_api : { type: String, value: "http://localhost:3033/songs/" }, song_body : {}, song_all : [] }, play_song : function() { console.log("play", this.song_body.title); }, listeners: { 'tap': 'toggle',...
var gulp = require('gulp'); var concat = require('gulp-concat'); var config = require('../../gulp-config'); gulp.task('vendors', function() { return gulp.src('app/vendors/**/*.js') .pipe(concat('vendors.js')) .pipe(gulp.dest( config.path + '/scripts/')); });
/* eslint-disable */ /* * Luhn algorithm implementation in JavaScript * Copyright (c) 2009 Nicholas C. Zakas * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, inclu...
"use strict"; var util = require("../../util"); var audioParamUtil = require("../../util/audioParamUtil"); var SET_VALUE_AT_TIME = 1; var LINEAR_RAMP_TO_VALUE_AT_TIME = 2; var EXPONENTIAL_RAMP_TO_VALUE_AT_TIME = 3; var SET_TARGET_AT_TIME = 4; var SET_VALUE_CURVE_AT_TIME = 5; var CONTROL = 1; var AUDIO = 2; var Audio...
/*jshint node:true */ 'use strict'; exports = module.exports = function(router) { router.get('/domain-events', function *() { this.body = []; }); };
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
// --------- This code has been automatically generated !!! 2017-01-16T16:52:10.549Z "use strict"; require("requirish")._(module); /** * @module opcua.address_space.types */ var assert = require("better-assert"); var util = require("util"); var _ = require("underscore"); var makeNodeId = require("lib/datamodel/nodei...
export default function applyMethod (k, a, o) { return o[k](a) }
// All symbols in the Miscellaneous Mathematical Symbols-B block as per Unicode v5.1.0: [ '\u2980', '\u2981', '\u2982', '\u2983', '\u2984', '\u2985', '\u2986', '\u2987', '\u2988', '\u2989', '\u298A', '\u298B', '\u298C', '\u298D', '\u298E', '\u298F', '\u2990', '\u2991', '\u2992', '\u2993', '\u2994',...
while (true) { try { throw new Error('oops'); } catch (ex) { } }
(function () { var mountains = document.getElementsByClassName( "mountain" ), mountainsLight = document.getElementsByClassName( "mountain-sunlit" ), sun = document.getElementById( "sun" ), sunLight = document.getElementsByClassName( "sunlight" ), hillsContainer = document.getElement...
module.exports = { disabled: false, //Global vars - use variables defined in globalsModule.js file by client.global.VARIABLE_NAME 'Access URL': function(client) { client .url(client.launchUrl) .waitForElementVisible('body', 1000); }, 'Enter Search': function(client) {...
import { SET_SIGNUP_FIELD, SIGNUP_ERROR } from './constants'; const reducer = (state = { missingField: false }, action) => { switch (action.type) { case SET_SIGNUP_FIELD: return { ...state, [action.field]: action.value, }; case SIGNUP_ERROR: return { ...state, ...
//var SegfaultHandler = require('segfault-handler'); //SegfaultHandler.registerHandler(); var index = require('./package.json'); function isFunction(functionToCheck) { return typeof functionToCheck === 'function'; } if(global[index.name] && global[index.name].version === index.version) { module.exports = global[in...
describe("Simple renderer", function() { beforeEach(function(done) { this.runBuild("render", function() { done(); }); }); it("should render simple Markdown", function() { expect(this.outfile("simple", "index.html")).toEqual(this.realfile("render", "simple.html")); }); it("should render int...
'use strict'; var express = require('express'); var controller = require('./light.controller'); var router = express.Router(); router.get('/', controller.warn); router.get('/bridge/:id', controller.indexByBridgeID); router.get('/bridge/:bridgeID/light/:lightID', controller.show); router.post('/:id', controller.updat...
/** * SEA3D Legacy for Three.JS * @author Sunag / http://www.sunag.com.br/ */ 'use strict'; // // Header // Object.assign( THREE.SEA3D.prototype, { _onHead: THREE.SEA3D.prototype.onHead, _updateTransform: THREE.SEA3D.prototype.updateTransform, _readVertexAnimation: THREE.SEA3D.prototype.readVertexAnimat...
// flow-typed signature: 128a485b60a6040a56fe25133ec6bd60 // flow-typed version: <<STUB>>/babel-core_v6.25.0/flow_v0.51.1 /** * This is an autogenerated libdef stub for: * * 'babel-core' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the ...
// load shit var template = require( 'html-template' ); var fs = require( 'fs' ); var crypto = require('crypto'); var rimraf = require('rimraf'); var json2html = require('node-json2html'); // config shit var dir = '../../static/drawing'; // cleanup rimraf( dir, function(){ // create drawing directory if ...
(function(RemoteMonitoring, $, document) { 'use strict'; function projectSelectHandler(e, project) { var $el = e.data.$el; $el.html(JST['templates/projects/details'](project)); Elemental.load($el.children()); } RemoteMonitoring.showDetailedInfo = function showDetailedInfo($el) { $(document).o...
'use strict'; var ready = require('domready'); var router = require('./router'); ready(function(){ router.history.start({ pushState: true }); });
(function($) { "use strict"; // Start of use strict // jQuery for page scrolling feature - requires jQuery Easing plugin $('a.page-scroll').bind('click', function(event) { var $anchor = $(this); $('html, body').stop().animate({ scrollTop: ($($anchor.attr('href')).offset().top - ...
var answer4 = "It's alright"; var answer5 = "He is called 'Johnny'";
/* current function of individual stage files: * store body descriptions for required roles * determine when to upstage/downstage (what buildings are required, if economy is collapsing) * store desired number and type of creeps * determine desired wall / rampart hitpoints the method to achieve the above is static so ...
'use strict'; var expect = require('chai').expect; var Anonymizer = require('../src/anonymizer.js'); describe('anonymizer', function () { describe('#encode(data, schema)', function(){ it('can encode primitive values', function () { var anonymizer = new Anonymizer(); expect(anonymizer.encode('a', '...
const _ = require('underscore'); const DrawCard = require('../../drawcard.js'); class TywinsStratagem extends DrawCard { setupCardAbilities(ability) { this.action({ title: 'Return characters to hand', phase: 'challenge', target: { cardCondition: card => ...
import getOffsetParent from '../utils/getOffsetParent'; import getBoundaries from '../utils/getBoundaries'; /** * @function * @memberof Modifiers * @argument {Object} data - The data object generated by `update` method * @argument {Object} options - Modifiers configuration and options * @returns {Object} ...
version https://git-lfs.github.com/spec/v1 oid sha256:b3795f3c39d185ffb4df43b28c510ecec2de5dbb10347f13cf71f4b5bb89285a size 325
var express = require("express"); var app = express(); var bodyParser = require("body-parser"); var cors = require("cors"); var fs = require("fs"); var Promise = require("promise"); var fullBookList; //Promisification var readFile = Promise.denodeify(fs.readFile); readFile("full_book_list.json", "utf8") .then(func...
export { default } from 'ff-radio/components/ff-radio-base';
import * as actionTypes from '../actions/actionTypes'; import { updateObject } from '../utility'; import store from '../store'; const initialState = { current: null, levels: [] }; const reducer = (state = initialState, action) => { switch (action.type) { case actionTypes.LOAD_LEVEL: console.log('Loadi...
'use strict'; var fs = require('fs'), pathlib = require('path'), fileUtils = require('../utils/file'), connect = require('connect'), router = new (require('./router').Router), app = connect(), // Create new Connect app instance which can be accessed from your app.js...
function Pendulum(init_theta1, init_theta2) { paper.project.clear(); //------ canvas constant var PIVOT = new Point(window.innerWidth/2, window.innerHeight*2/7); var PIVOT_RADIUS = 3; var STATUS_REFRESH_INTERVAL = 3; //------ canvas objects var c_pivot = new Path.Circle(PIVOT, PIVOT_RADIUS...
'use strict'; var app=angular.module('lodeditApp', [ 'ngCookies', 'ngResource', 'ngSanitize', 'ngRoute', 'wu.masonry', 'file-model', 'ngResource', 'pascalprecht.translate', 'ngStorage', 'ui.bootstrap', 'leaflet-directive', 'ui.select', 'angular-capitalize-filter', 'angularSpinkit', 'ngAni...
export { default } from "./../../_gen/openfl/sensors/Accelerometer";
/* Copyright (c) 2012-2013 Andreas Siebert, ask@touchableheroes.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,...
(function(){ 'use strict'; angular.module('partnerApp') .controller('FooterCtrl', [function(){ //var ctrl = this; //ctrl.name="frank"; }]); })();
/* @flow */ import React, { Component } from 'react' import { StyleSheet, Text, View, } from 'react-native' import SegmentedControlTab from 'react-native-segmented-control-tab' class SegmentedView extends Component<*, *> { constructor() { super() this.state = { selectedIndex: 0, selectedInd...
(function() { var Lexer, RESERVED, compile, fs, lexer, parser, path, _ref; fs = require('fs'); path = require('path'); _ref = require('./lexer'), Lexer = _ref.Lexer, RESERVED = _ref.RESERVED; parser = require('./parser').parser; if (require.extensions) { require.extensions['.coffee'] = function(module, ...
import { SAVE_RICH_TEST, UPDATE_RICH_TEST_PROPS, ADD_NEW_ADDRESS_SUCCESS, GENERATE_BTC_ADDRESS_SUCCESS, SAGA_GENERATE_BTC_ACCOUNT_SUCCESS, SAGA_GENERATE_BTC_ADDRESS_SUCCESS } from '../actions/actionTypes'; import objectAssign from 'object-assign'; import initialState from './initialState'; function getAddressesDescrip...
describe("About Arrays", function() { //We shall contemplate truth by testing reality, via spec expectations. it("should create arrays", function() { var emptyArray = []; expect(typeof(emptyArray)).toBe("object"); //A mistake? - http:javascript.crockford.com/remedial.html expect(emptyArray.length).to...
var fs = require('fs'); var modules = require('../parse/modules'); var parse = require('../parse/parse'); var db_connect = require('../db'); var log_dir = '../quad_logs'; db_connect(function(db) { var queue = []; fs.readdirSync(log_dir).forEach(function(subdir) { fs.readdirSync(log_dir + '/' + subdir)...
var express = require('express'); var superagent = require('superagent'); var cheerio = require('cheerio'); var app = express(); app.get('/', (req, res) => { // 用 superagent 去抓取 https://cnodejs.org/ 的内容 superagent.get('https://cnodejs.org/') .end((err, sres) => { //常规错误 ...
var wru = require('wru'), nock = require('nock'), DiscogsClient = require('../lib/client.js'); var tests = module.exports = [ { name: 'Database: Test search without query but with params', test: function(){ nock('https://api.discogs.com').get('/database/search?artist=X&title=Y')...
/* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information. */ var fs = require("fs"); var path = require("path"); var exec = require("child_process").exec; var Q; module.exports = function(context) { // Only bother if we're o...
'use strict'; var Lib = require('../../lib'); var Color = require('../../components/color'); var Template = require('../../plot_api/plot_template'); var handleSubplotDefaults = require('../subplot_defaults'); var getSubplotData = require('../get_data').getSubplotData; var handleTickValueDefaults = require('../cartes...
define( ["./safe-string","exports"], function(__dependency1__, __exports__) { "use strict"; /*jshint -W004 */ var SafeString = __dependency1__["default"]; var escape = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#x27;", "`": "&#x6...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js (function(global) { glo...
module.exports = { prefix: 'far', iconName: 'gamepad', icon: [640, 512, [], "f11b", "M256 240v32c0 4.4-3.6 8-8 8h-48v48c0 4.4-3.6 8-8 8h-32c-4.4 0-8-3.6-8-8v-48h-48c-4.4 0-8-3.6-8-8v-32c0-4.4 3.6-8 8-8h48v-48c0-4.4 3.6-8 8-8h32c4.4 0 8 3.6 8 8v48h48c4.4 0 8 3.6 8 8zm240-64c-22.1 0-40 17.9-40 40s17.9 40 40 40 40-17.9 40...
'use strict'; var data = function () { if (!$("#housetempimage").find('#img_house').length) { $("#housetempimage").append("<img id='img_house' src ='/images/house_garage.png'>"); } $.getJSON('/homeautomation/temperature', function (data) { try { $("#floor").html(data[0].floor +...
export default [ { id: 'foot', name: '足部专题', icon: 'icon-zuji', }, { id: 'joint', name: '关节专题', icon: 'icon-guanjie', }, { id: 'other', name: '其它病症专题', icon: 'icon-collect', }, ]
var Meteor = {} Meteor.isServer = false Meteor.isClient = true Meteor.settings = {} module.exports = Meteor
(function powTest(console, args) { let verbose = args.indexOf("verbose") >= 0; let debug = args.indexOf("debug") >= 0; let halt = args.indexOf("halt") >= 0; let one = args.indexOf("one") >= 0; let FUNC = require("./functions")({ verbose, halt }); let assert = FUNC.assert; let pow = require("../ide/js/p...
'use strict'; angular.module('blogaggrApp') .config(function ($stateProvider) { $stateProvider .state('requestReset', { parent: 'account', url: '/reset/request', data: { authorities: [] }, views:...
// @flow import sinon from 'sinon' const logout = sinon.spy() export default logout
'use strict' angular.module('endo') .directive('calendar', function () { return { templateUrl: '../html/calendar.html', controller: function ($scope, Calendar, DateService) { $scope.calendars = [] $scope.events = [] var calendarCount = 0 var calendarsLoaded = 0 ...
'use strict'; angular.module('myApp.view1', ['ngRoute']) .config(['$routeProvider', function ($routeProvider) { $routeProvider.when('/view1', { templateUrl: 'view1/view1.html', controller: 'View1Ctrl' }); }]) .controller('View1Ctrl', function ($http, $scope) { ...
import axios from 'axios' import { getAccessToken } from '../helpers/auth-helper' const configureHeaders = () => { let headers = {} const accessToken = getAccessToken() if (typeof accessToken !== 'undefined') { headers.Authorization = `token ${accessToken}` } return headers } export default () => axios....
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {DOMEventName} from '../events/DOMEventNames'; import type {Fiber, FiberRoot} from 'react-reconciler/src/R...
angular.module('materialscommons').component('mcExperimentDetailsField', { template: require('./mc-experiment-details-field.html'), controller: MCExperimentDetailsFieldComponentController, bindings: { experiment: '=', heading: '@', label: '@', field: '@' } }); /*@ngInjec...
/** * @jsx React.DOM * @copyright Prometheus Research, LLC 2014 */ "use strict"; var React = require('react/addons'); var PropTypes = React.PropTypes; var shallowEqual = require('./shallowEqual'); var HeaderCell = require('./HeaderCell'); var getScrollbarSize = require('./getScrollb...
var CalcUtil = require('./calc-util'); var Calculator = function(taxPercent, tipPercent) { this.taxPercent = taxPercent; this.tipPercent = tipPercent; this.diners = []; }; Calculator.prototype.addDiner = function(diner) { this.diners.push(diner); }; Calculator.prototype.getSubtotal = function() { var subto...
angular.module('hg.desktop.mac', []);
(function() { "use strict"; function searchPageController($scope, typeRestService) { this.types = []; this.includeType = function(type) { $scope.$broadcast('searchFestivalsIncludeType', type); }.bind(this); this.types = typeRestService.getTypes(); ...
var gulp = require('gulp'), inquirer = require('inquirer'), template = require('gulp-template'), conflict = require('gulp-conflict'), install = require('gulp-install'), _ = require('underscore.string'); gulp.task('default', function(done) { inquirer.prompt([ {type: 'input', name: 'name', mess...
/// <reference path="../typings/tsd.d.ts" /> var app; (function (app) { app.main = angular.module("main", ["value-not-in-objects"]); })(app || (app = {}));
ioradWebWidget.templates.deskTemplates = { // main layout for iorad web widget control for desk mainLayout: function () { var template = JST['templates/desk/mainLayout.hbs']; if (ioradWebWidget.config.ENV === 'test') { return template({ ioradRootUrl: ioradWebWidget.config.TEST_ROOT_URL }); } ...
'use strict'; const Bookshelf = require('../bookshelf'); const Promise = require('bluebird'); const Bcrypt = Promise.promisifyAll(require('bcrypt')); const BaseModel = require('../helpers/base-model'); const SecurityConfig = require('../config/security-config'); const CustomErrors = require('../helpers/custom-errors')...
function solve(args) { 'use strict'; var cipherLen = '', cipher, message, decoded, i; function decrypt(encrypted) { var decrypted = ''; for (i = 0; i < encrypted.length; i++) { decrypted += String.fromCharCode(((encrypted.charCodeAt(i % encrypte...
import React, { Component } from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; // This is how you include a variable inside of a string const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="col-md-8 vid...
require("./main.css!$css"); var btn = document.querySelector(".btn"); var s = getComputedStyle(btn); if(typeof window !== "undefined" && window.assert) { assert.equal(s.backgroundColor, 'rgb(0, 128, 0)'); done(); } else { console.log(s.backgroundColor); }
/** * # ChannelList widget for nodeGame * Copyright(c) 2014 Stefano Balietti * MIT Licensed * * Shows list of channels on the server. * * www.nodegame.org * --- */ (function(node) { "use strict"; node.widgets.register('ChannelList', ChannelList); var JSUS = node.JSUS, Table = node.window...
var cheerio = require('cheerio'); var should = require('chai').should(); describe('vimeo', function(){ var vimeo = require('../../../lib/plugins/tag/vimeo'); it('id', function(){ var $ = cheerio.load(vimeo(['foo'])); $('.video-container').html().should.be.ok; $('iframe').attr('src').should.eql('//pla...
'use strict'; // eslint-disable-line import { Hf } from 'hyperflow'; export default Hf.Event.create({ onEvents: [ `switch-theme`, `switch-theme-shade`, `pause-moving-wave`, `play-moving-wave` ], doEvents: [ `update-theme`, `pause-moving-wave`, `play-...
/* jshint node:true */ var RSVP = require('rsvp'); var simpleGit = require('simple-git')(); // For details on each option run `ember help release` module.exports = { // local: true, // remote: 'some_remote', // annotation: "Release %@", // message: "Bumped version to %@", // manifest: [ 'package.json', 'bowe...