code
stringlengths
2
1.05M
window.RTCPeerConnection = window.RTCPeerConnection || window.webkitRTCPeerConnection || window.mozRTCPeerConnection; window.RTCIceCandidate = window.RTCIceCandidate || window.mozRTCIceCandidate || window.webkitRTCIceCandidate; window.RTCSessionDescription = window.RTCSessionDescription || window.mozRTCSessionDescripti...
$(function() { $( ".queryResultSet", "#tabs-adhocSql").hide(); $( ".handsontable", "#tabs-adhocSql").handsontable({ startCols: 1, }); }); $(function() { $('#adhocSqlText').resize( function() { adhocSqlTab.setTableHeightWidth(); }); $( ".start").button({ text: false, icons: { primary: "ui-ic...
module.exports = { mysql_dev: { host: 'localhost', port: '3306', user: 'root', password: '123456', database: 'test', connectionLimit: 10, supportBigNumbers: true } };
var nock = require('nock') const mockResponse = { invalidSecret: { response: { result: 'error', reason: 'Invalid application secret.', trace_id: 'Xcm545545198200907134i', code: 21301, description: '认证失败' } }, getInvalidRegIds: { response: { result: 'ok', desc...
"use strict"; var failure_1 = require("../../lib/result/failure"); var identity_1 = require("../../lib/functions/identity"); var chai_1 = require("chai"); describe('Failure', function () { it('should return the result of the first function', function () { chai_1.assert.equal(failure_1.failure("failure").fol...
function solver(input, taskid) { var arr = input.split(','); var bearing = 0; var x = 0; var y = 0; var re = /([L|R])(\d+)/; var bitmap = new Array(1000 * 1000); for (var i=0; i<1000*1000; i++) { bitmap[i] = 0; } var x2 = 0; var y2 = 0; var task2solved = false; for (var i=0; i<arr.length; i++) { ...
const INSTALL_XCODE_BUTTON_DESC = 'Install, Xcode, Free' const OPEN_XCODE_BUTTON_DESC = ' Xcode を開く' function isInvalidIndexError(e) { return e.toString() === 'Error: Invalid index.' } function waitUntilSuccess(f) { var ret do { delay(1) try { ret = f() } catch (e) { if (!isInvalidIndexE...
describe("collections", function () { 'use strict'; beforeEach(function () { requireModuleAndWait(['js/collections/entries', 'js/models/entry']); }) describe("entries", function () { it("store entry model to collection", function () { var Collection = require('js/collections/entries'); var...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
var forge = require("node-forge") var Hashes = require("jshashes") var subtleToForge = { "SHA-1" : "sha1", "SHA-256" : "sha256", "SHA-512" : "sha512" } var digest = function digest(alg, data){ if (!subtleToForge[alg.name]) return Promise.reject("unsupported hashing algorithm") else{ if (alg.name ==...
/** * Created by Diogo on 26/10/2015. */ (function () { 'use strict'; describe('Teste de Directiva: oobjConfirmButton', function () { var $rootScope, $compile, scope, element, isolatedScope; beforeEach(module('oobj-directives')); before...
// flow-typed signature: 72dce3fe18aaac8c20c58e67527d89d0 // flow-typed version: <<STUB>>/kefir.combines_v^4.0.0/flow_v0.39.0 /** * This is an autogenerated libdef stub for: * * 'kefir.combines' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work w...
/** * @fileoverview This option sets a specific tab width for your code * * This rule has been ported and modified from nodeca. * @author Vitaly Puzrin * @author Gyandeep Singh * @deprecated in ESLint v4.0.0 */ "use strict"; //------------------------------------------------------------------------------ // Re...
/* * Copyright (c) 2017. MIT-license for Jari Van Melckebeke * Note that there was a lot of educational work in this project, * this project was (or is) used for an assignment from Realdolmen in Belgium. * Please just don't abuse my work */ Package.describe({ name: 'dangrossman:bootstrap-daterangepicker', ver...
module.exports = function (app) { var auth = require('./auth'); var user = require('./user'); var game = require('./game'); // Open endpoints app.post('/auth', auth.createSession); app.put('/auth', auth.validateSession); app.post('/user', user.createUser); // Authentication required en...
var config = require("./../config.js"); var MongoClient = require('mongodb').MongoClient; var request = require("request"); var async = require("async"); var api = require('./api'); var userTypes = ["moderators","staff","admins","global_mods","viewers"]; var streamStart = {} function isStreaming(channel,callback){ ...
Tower.StoreTransportSockets = {};
var nomnoml = nomnoml || {} nomnoml.render = function (graphics, config, compartment, setFont){ var padding = config.padding var g = graphics var vm = skanaar.vector function renderCompartment(compartment, style, level){ g.save() g.translate(padding, padding) g.fillStyle(config.stroke) _.each(compartment...
module.exports = require('./lib/coll');
 exports.create = function (opts) { return phantom.createWebPage(); };
/** * This Source Code is licensed under the MIT license. If a copy of the * MIT-license was not distributed with this file, You can obtain one at: * http://opensource.org/licenses/mit-license.html. * * @author: Hein Rutjes (IjzerenHein) * @license MIT * @copyright Gloey Apps, 2015 * * @library mooruk * @version 0.0.1 ...
/** * PredictionEndpoint * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 1.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the ...
import ValueModel from './ValueModel' // TODO: do we really need this? export default class AnyModel extends ValueModel { get type () { return 'any' } }
import Ember from 'ember'; export default Ember.Route.extend({ indexedDbPromised: Ember.inject.service('indexed-db'), model () { return this.get('indexedDbPromised').getRoutes({ $dbName: 'transportme-recent', $dbStore: 'recent' }).then((resp) => { return resp; }); } });
$(document).ready(function() { $('form').submit(function(e) { $('.required').each(function(index, el) { el = $(el); field_name = el.find(".question-text").text(); abort = ((el.is(".question_type_TB") && el.children("input")[0].value == "") || (el.is(".question...
import { createActions } from 'redux-actions'; export const QUERY_COMMENTS = 'QUERY_COMMENTS'; export const REQUEST_QUERY_COMMENTS = 'REQUEST_QUERY_COMMENTS'; export const SUCCESS_QUERY_COMMENTS = 'SUCCESS_QUERY_COMMENTS'; export const FAILURE_QUERY_COMMENTS = 'FAILURE_QUERY_COMMENTS'; export const DELETE_COMMENT = '...
'use strict'; describe('tableview module', function() { beforeEach(module('primetables.tableview')); describe('TableView controller', function(){ it('should be defined', inject(function($controller) { var tableViewCtrl = $controller('TableViewCtrl'); expect(tableViewCtrl).toBeDefined(); }));...
(function () { 'use strict'; //Adding translation config angular.module('app').config(englishTranslations).config(spanishTranslations); //Injecting locale messages englishTranslations.$inject = ['$translateProvider', 'EN_MESSAGES', 'EN_ERROR_MESSAGES']; spanishTranslations.$inject = ['$translateProvider'...
// @flow import React from 'react' import useStyles from 'substyle' type ApiPropsT = {| size: 'small' | 'medium' | 'large', color: 'black' | 'red', className?: string, |} function ExampleComponent({ size, color, className }: ApiPropsT) { const styles = useStyles( defaultStyles, { className }, { ...
var express = require('express'); var mustacheExpress = require('mustache-express'); var app = express(); app.engine('html', mustacheExpress()); app.set('view engine', 'html'); app.set('views', __dirname + '/dist/pages'); app.use(express.static(__dirname + '/dist/public')); app.get('/', function (req, res) { res....
//appData should be set from clj (before mainstate is added to game) var appData; var game = new Phaser.Game('100%', '100%', Phaser.CANVAS, "wayfinder"); //Should only be called by clojurescript (once appData is not undefined) function createWayfinder() { game.state.add("main", mainState); game.state.start("ma...
import { createStore, applyMiddleware, compose } from 'redux'; import rootReducer from '../reducers'; import { persistState } from 'redux-devtools'; import thunk from 'redux-thunk'; import createLogger from 'redux-logger'; export default function configureStore(initialState) { let enhancer; const logger = createL...
'use strict'; angular.module('grecaptcha', []) .provider('grecaptcha', function() { var _p = {}, _l, self = this, onloadMethod = 'onRecaptchaScriptLoaded'; this.setParameters = function(parameters) { _p = parameters; }; this.setLangu...
/** * @fileOverview Test produce and consume messages using kafka-avro. */ const chai = require('chai'); const expect = chai.expect; const testLib = require('../lib/test.lib'); describe('Produce', function () { testLib.init(); beforeEach(function () { return this.kafkaAvro.getProducer({ 'dr_cb': true...
/* The MIT License Copyright (c) 2010-2011 Ibon Tolosana [@hyperandroid] 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,...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define({widgetLabel:"\u0642\u064a\u0627\u0633 \u0627\u0644\u0645\u0646\u0637\u0642\u0629",hint:"\u0628\u062f\u0623 \u0641\u064a \u0627\u0644\u0642\u064a\u0627\u063...
import * as React from 'react'; import { expect } from 'chai'; import { createClientRender } from 'test/utils'; import Input from '@material-ui/core/Input'; import { isMuiElement } from '@material-ui/core/utils'; import PropTypes from 'prop-types'; import withTheme from './withTheme'; import ThemeProvider from '../Them...
[keyword let] [def f] [operator =] [variable a] [operator +] [string 'fatarrow'] [operator +] [variable c];
import RN, { StyleSheet, Text, View, Platform, Navigator, Image,   BackAndroid, TouchableNativeFeedback, TouchableOpacity, ListView, } from 'react-native'; import React, {PropTypes,Component} from 'react' import CommonModules,{ RefreshLoadMoreList, LoadingWidget, fetchMovieComment, ThemeStyle...
var hierarchy = [ [ "TerrainEngine2D.AdvancedFluidBlock", "class_terrain_engine2_d_1_1_advanced_fluid_block.html", null ], [ "TerrainEngine2D.BaseData", "class_terrain_engine2_d_1_1_base_data.html", null ], [ "TerrainEngine2D.BlockGridMesh", "class_terrain_engine2_d_1_1_block_grid_mesh.html", null ], [ ...
'use strict'; angular.module('civisanalysisApp') .factory('Auth', function Auth($location, $rootScope, $http, User, $cookieStore, $q) { var currentUser = {}; if($cookieStore.get('token')) { currentUser = User.get(); } return { /** * Authenticate user and save token * ...
/*! * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file. */ import {EventEmitter} from 'events'; import util from 'util'; import {proxyEvents, retry, transferEvents} from '@webex/common'; import {HttpStatusInterceptor, defaults as requestDefaults} from '@webex/http-core'; import {defaultsDeep, get, isFun...
import { DocumentNode, CHILDREN } from 'substance' import MetadataField from './MetadataField' export default class Figure extends DocumentNode { _initialize (...args) { super._initialize(...args) this.state = { currentPanelIndex: 0 } } getCurrentPanelIndex () { let currentPanelIndex = 0 ...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z" }), 'PregnantWomanTwoTone');
var raffle = {pictureUrl: "http://trademe.tmcdn.co.nz/photoserver/tq/381147789.jpg", price: 123, pot: 80}; function onLoad(){ // $.ajax({ // url: "https://stormy-gorge-7198.herokuapp.com/raffles" // }) // .done(function( raffle ) { $(".progress-bar").width((raffle.pot / raffle.price * 100) + '%'); $...
var monorouter = require('monorouter'); var reactRouting = require('monorouter-react'); var pets = [ {name: 'Winston'}, {name: 'Chaplin'}, {name: 'Bennie'} ]; function findPetName (petName, data) { for (var i = 0; i < pets.length; i++) { var pet = data[i]; if (pet.name.toLowerCase() === petName) retur...
import { schema as documentTagSchema } from '../../../entities/document-tag'; export default class SearchIndexAddArticleUsecase { constructor(documentTagProvider) { this.documentTagProvider = documentTagProvider; this.run = this.run.bind(this); } run(articleId) { return this.documentTagProvider.rem...
// Generated by CoffeeScript 1.9.1 (function() { var APPLESCRIPT, CND, LINESETTER, MKTS, alert, app, badge, debug, echo, help, info, log, rpr, urge, warn, whisper, ƒ, slice = [].slice; CND = require('cnd'); rpr = CND.rpr.bind(CND); badge = '眀快排字机/MKTS'; log = CND.get_logger('plain', badge); info = ...
var util = require('util'); var sioCli = require('socket.io-client'); var socket = null; var offsetList = [0, 5, 9, 10, 15, 19, 20, 25]; var start = function(host, port) { socket = sioCli.connect(host + ':' + port, {'force new connection': true, 'reconnect': false}); socket.on('connect', function() { doSen...
(function (global, factory) { if (typeof define === "function" && define.amd) { define(["exports", "module"], factory); } else if (typeof exports !== "undefined" && typeof module !== "undefined") { factory(exports, module); } else { var mod = { exports: {} }; factory(mod.exports, mod); ...
var path = require('path'); function init() { return { "task": "grunt-injector", "name": "injector", "config": { "options": { starttag: "// injector:{{ext}}", endtag: "// endinjector", ignorePath: 'public', transfor...
var gulp = require('gulp'), connect = require('gulp-connect'), stylus = require('gulp-stylus'), nib = require('nib'), inject = require('gulp-inject'), wiredep = require('wiredep').stream, hApiFallBack = require('connect-history-api-fallback'); //SERVIDOR WEB DE DESARROLLO gulp.task('server', function(){...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var parameterDecoratorBase_1 = require('./parame...
/*global define*/ define(function(require, exports, module) { 'use strict'; var Backbone = require("backbone"); var Common = require("modules/Common"); var TodoView = Backbone.Layout.extend({ tagName: 'li', template: require("ldsh!/app/templates/todos"), // The DOM events spe...
declare module 'enzyme' { declare type PredicateFunction = (wrapper: Wrapper) => boolean; declare type NodeOrNodes = React$Element | Array<React$Element>; declare class Wrapper<ReturnClass: Wrapper> { find(selector: string): ReturnClass; findWhere(predicate: PredicateFunction): ReturnClass; filter(sel...
import React from "react" import timeago from 'timeago.js'; import utility from '../../../utility/utility'; import libs from '../../../utility/libs'; import playControllerEvents from "../../../events/playControllerEvents" class SearchListItem extends React.Component{ constructor(props){ super(props); this.s...
{ "REG_EXPR_NO_EXPR": ".*", "REG_EXPR_PASSWORD": "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%_]).{8,20}$", "REG_EXPR_EMAIL": "^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-z]{2,})$", "ADD_USER_SUCCEEDED": "Anlegen von Benutzerdaten erfolgreich durchgef&uuml...
f(); g(a); h(a, b); i(a, b, ...c); j(...a); new A(); new A(a);
"use strict"; let a = [["be", "b"], ["see", "c"], ["okay", "k"], ["and", "n"], ["oh", "o"], ["are", "r"], ["you", "u"], ["why", "y"], ["to", "2"], ["for", "4"], ["ate", "8"]] let tMap = new Map() for (let i = 0; i < a.length; i++) { tMap.set(a[i][1], a[i][0]) } module.exp...
/* Copyright 2013, KISSY UI Library v1.40dev MIT Licensed build time: Jul 3 13:54 */ /* Combined processedModules by KISSY Module Compiler: editor/plugin/separator */ /** * separator for button * @author yiminghe@gmail.com */ KISSY.add("editor/plugin/separator", function (S) { function Separator() { }...
import {inject} from 'aurelia-framework'; import {HttpClient} from 'aurelia-http-client'; @inject(HttpClient) export class NewsWidgetViewModel { newsItems = []; constructor(http){ this.http = http; } activate(model) { this.title = model.title; return this...
/* Faroese initialisation for the jQuery UI month picker plugin */ /* Based on the initialisation for the jQuery UI date picker plugin. */ /* Written by Sverri Mohr Olsen, sverrimo@gmail.com */ (function ($) { $.monthpicker.regional['fo'] = { closeText: 'Lat aftur', prevText: '&#x3C;Fyrra', nextText: 'Næsta&#x3E;',...
import { db } from '../db/prepare_data.js'; const _ = require('lodash'); const Excel = require('exceljs'); const fs = require('fs'); const logoPath = './app/vendor/logo.png'; export const generateReport = (batch, source, outputDirectory) => { return new Promise((resolve, reject) => { generateReportTemplate(bat...
(function () { 'use strict'; angular .module('app') .controller('LoggerController', LoggerController); LoggerController.$inject = ['$location', 'LogSelectionOptionsService']; function LoggerController($location, logSelectionOptionsService) { /* jshint validthis:true */ ...
/** * @fileoverview * @enhanceable * @public */ // GENERATED CODE -- DO NOT EDIT! goog.provide('proto.tensorflow.DeviceProperties'); goog.require('jspb.Message'); goog.require('jspb.BinaryReader'); goog.require('jspb.BinaryWriter'); goog.require('jspb.Map'); /** * Generated by JsPbCodeGenerator. * @param {Arr...
import Manager from './Manager'; class BackupsManager extends Manager { /** * Get backups. * @param {object} params * @return {Promise} */ get(params) { return this.api.get('backups/get', params); } } export default BackupsManager;
/* * https://github.com/yuanqing/yq-js/tree/master/src/modal */ ;(function( $ ) { // Name var pluginName = 'modal'; // Defaults var defaults = { onInit: function(){}, onDestroy: function(){}, onShow: function(){}, onHide: function(){} }; // Classes var activeClass = pluginName + '-ac...
/** * RequireJS configuration file. * * The RequireJS configurations should be declared in this file. Paths to * libraries (custom and vendors) should be specified including their shims. */ require.config({ paths: { 'requirejs': './../vendors/requirejs/require', 'text': './../vendors/requirejs...
/* eslint-disable no-console */ 'use strict' const Libp2p = require('../..') const TCP = require('libp2p-tcp') const { NOISE } = require('libp2p-noise') const SECIO = require('libp2p-secio') const MPLEX = require('libp2p-mplex') const pipe = require('it-pipe') const concat = require('it-concat') const createNode = a...
function Point(x,y){ this.x=x; this.y=y; } var coord=[]; function iniCoordenadas(){ /* for(var i=0;i<3;i++){ coord[i]=[]; } */ /* coord[0]=[new Point(200,450),new Point(100,350),new Point(0,250),new Point(200,150)]; coord[1]=[new Point(700,450),new Point(600,350),new Point(700,2...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var component = exports.component = { "conditional": { "eq": "", "when": null, "show": "" }, "tags": [], "type": "panel", "components": [{ "tags": [], "type": "textfield", "conditional": { "eq": "", ...
// this file left blank until npm init is implemented
(function(){ 'use strict'; var dependencies = [ 'ngRoute', 'prerender-tutorial.home', 'prerender-tutorial.about', 'prerender-tutorial.features', ]; angular.module('prerender-tutorial', dependencies).config(config); function config($routeProvider, $locationProvider){ $routeProvider.otherwise({r...
var _curry2 = require('./internal/_curry2'); var slice = require('./slice'); /** * Returns a new list containing the last `n` elements of a given list, passing * each value to the supplied predicate function, and terminating when the * predicate function returns `false`. Excludes the element that caused the * pre...
var test = require('tape'), shuv = require('../'), _ = shuv._; $ = shuv.$; test('placeholder', function(t){ t.plan(4); function foo(){ t.equal(arguments.length, 3); t.equal(arguments[0], 4); t.equal(arguments[1], 1); t.equal(arguments[2], 2); } var shuvved ...
(function() { angular.module('CSM') .controller('TeamController', function($scope) { $scope.officers = [ { "name": "Fahad Kamran", "img": "fahad.jpg", "position": "President" }, { "name": "Kenneth Zhou", "img": "kenneth.jpg", "position": "Intera...
var app = angular.module("videoService", []); /** * Video Service Provider */ app.factory('$videoService', function($http, config, $authenticationService) { // Query cache var cache = { full_count: 0, pagination: { offset: 0, limit: config.limit }, fil...
!function () { if ("-ms-user-select"in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) { var e = document.createElement("style"); e.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")), document.getElementsByTagName("head")[0].appendChild(e) } }();
const Botkit = require('botkit') let _bots = {} const _trackBot = bot => { _bots[bot.config.token] = bot } module.exports = { configure: (port, clientId, clientSecret, config, onInstallation) => { let controller = Botkit.slackbot(config).configureSlackApp({ clientId: clientId, clientSecret: client...
var linz = require('../'), async = require('async'); module.exports = function () { return function (req, res, next) { req.linz.overview = req.linz.overview || {}; const { parseDisabledProperties } = linz.api.formtools.actions; // get doc req.linz.model.getObject(req.params.id, ...
import React, { Component } from 'react'; import expect from 'expect'; import { mount } from 'enzyme'; import TextInput from '../../app/components/textinput/TextInput'; describe('TextInput', () => { let wrapper; let callback; beforeEach(() => { callback = jest.fn(); wrapper = mount(<TextInput value='va...
/** * Session Configuration * (sails.config.session) * * Sails session integration leans heavily on the great work already done by * Express, but also unifies Socket.io with the Connect session store. It uses * Connect's cookie parser to normalize configuration differences between Express * and Socket.io and hoo...
var ko = ko || {}; var mapManager = mapManager || {}; /** * The module loads methods for sorting the markers. * @param {object} self TheatreMapViewModel object without this module. * @param {object} ko Knockout object to provide framework methods. * @param {object} mapManager Object with map re...
"use strict"; /* global describe,it */ var assert = require("assert"); var nooocl = require("../"); var CLHost = nooocl.CLHost; var CLCommandQueue = nooocl.CLCommandQueue; var ref = require("ref"); var testHelpers = require("./testHelpers"); var path = require("path"); var Bluebird = require("bluebird"); va...
require('./view-landing-title')
import bodyParser from 'body-parser' class RobQL { constructor(errorHandler) { this.methods = {}; this.errorHandler = errorHandler || ((exception) => { console.log('RobQL Error:', exception); return { code: 500, reason: exception.toString() }; }); } define(method, handler) { this.met...
/*global URL */ 'use strict'; var React = require('react'); var ReactDOM = require('react-dom') var request = require('superagent-bluebird-promise'); var isFunction = function (fn) { var getType = {}; return fn && getType.toString.call(fn) === '[object Function]'; }; function formatMaxSize(size){ size=size.toSt...
import { strictEqual } from "node:assert"; import dateFormat from "../lib/dateformat.js"; describe("Mask: 'MM'", function () { it("should format '1876-07-11T13:19:36.341' as '19'", function (done) { var date = new Date("1876-07-11T13:19:36.341"); var d = dateFormat(date, "MM"); strictEqual(d, "19"); ...
(function (root, factory) { if (typeof define === 'function' && define.amd) { define(['me-tools', 'me-lock-view', 'me-show-transition', 'me-trap-focus'], factory); } else if (typeof exports === 'object') { var meTools = require('me-tools'), meLockView = require('me-lock-view'), meShowTrans...
/** * Copyright (C) 2013 KO GmbH <copyright@kogmbh.com> * * @licstart * This file is part of WebODF. * * WebODF is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License (GNU AGPL) * as published by the Free Software Foundation, either version 3 of * ...
var webpackConfig = require('../config/webpack.karma.js'); module.exports = function (config) { config.set({ frameworks: ['mocha', 'webpack', 'detectBrowsers', ], colors: true, logLevel: config.LOG_INFO, files: [ '../node_modules/jquery/dist/jquery.js', { pattern: '../src/js/**/*.js' }, ...
var assert = require('assert'); var dummyjson = require('../index'); dummyjson.seed = 'helloworld'; describe('dummyjson', function() { describe('parse', function() { it('should throw an error if not given a string to parse', function() { assert.throws( function() { dummyjson.parse(); ...
(function($) { $.event.special.destroyed = { remove: function(o) { if (o.handler) { o.handler(); } } }; })(jQuery); (function($) { $.fn.center = function() { this.css("position", "absolute"); this.css("top", Math.max(0, (($(window).height() - $(this).outerHeight()) / 2) + ...
'use strict'; const path = require('path'); const http = require('http'); const ws = require('local-web-server'); const shutdown = require('http-shutdown'); let server, config; // Pull requests not handled as in case of Karma const local = <% if ( cloudBrowsers ) { %>typeof process.env.CI === 'undefined' || process....
/* The MIT License (MIT) Copyright (c) 2013 Julian Xhokaxhiu 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 ...
/** * @coreapi * @module state */ /** */ import { extend, defaults, silentRejection, silenceUncaughtInPromise, removeFrom, noop, createProxyFunctions, inArray } from "../common/common"; import { isDefined, isObject, isString } from "../common/predicates"; import { Queue } from "../common/queue"; import { services } ...
require('./dist/styles');
var equal = require('assert').equal, puts = require('util').puts, Client = require('../lib/client').Client; exports.tests = { 'should override default sendRequest object with one passed in': function(finished, prefix) { var client = new Client({ identifier: 'client_identifier', start: false, sendRequest...
'use strict'; // src/services/message/hooks/restrict-to-sender.js // // Use this hook to manipulate incoming or outgoing data. // For more information on hooks see: http://docs.feathersjs.com/hooks/readme.html const errors = require('feathers-errors'); module.exports = function (options) { return function (hook) {...
(function () { 'use strict'; angular .module('app') .constant('Constants', Constants()) .constant('Endpoints', Endpoints()) .constant('Ranks', Ranks()); function Constants() { let constants = {}; constants.AUTHORITIES = { ROLE_USER: { ...