text
stringlengths
2
1.04M
import loop from '../../lib/infinite-loop.js'; it('should handle an infinite loop as a timeout', () => { while (true); }); it('should be able to recover and test others', () => {}); it('should be able to break out of an infinite loop with a hit counter', () => { let total = 0; loop(5, (n) => { expect(n).no...
const mysql = require('mysql'); /** * Get all phrases and return a random message */ class GenericPhrases { /** * Constructor * @arg {string} mysqlConnection Connection json * @return instance */ constructor(mysqlConnection) { this._mysqlConnection = mysqlConnection; this...
var searchData= [ ['rapidstring',['rapidstring',['../index.html',1,'']]], ['rapidstring',['rapidstring',['../unionrapidstring.html',1,'']]], ['rapidstring_2eh',['rapidstring.h',['../rapidstring_8h.html',1,'']]], ['rs_5fcapacity',['rs_capacity',['../rapidstring_8h.html#a835921e3cd41522852fcf80a4d4e349b',1,'rapid...
"use strict"; require("core-js/modules/es.symbol.js"); require("core-js/modules/es.symbol.description.js"); require("core-js/modules/es.symbol.iterator.js"); require("core-js/modules/es.array.slice.js"); require("core-js/modules/es.function.name.js"); require("core-js/modules/es.array.from.js"); exports.__esModu...
const koajwt = require('koa-jwt2'); const jsonwebtoken = require('jsonwebtoken'); const utility = require('utility'); function __checkIfJWT(ctx) { return !ctx.ctxCaller && (!!ctx.get('authorization') || ctx.query.hasOwnProperty('eb-jwt')); } function __getToken(ctx) { // only valid for the top ctx if (ctx.ctxCa...
/// Copyright (c) 2012 Ecma International. All rights reserved. /** * @path ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-17.js * @description Object.defineProperty - argument 'P' is a number that converts to a string (value is 1e+20) */ function testcase() { var obj = {}; Object.defineProperty(obj, 1e+20...
const test = require('ava') const {primitives} = require('@jscad/modeling') const ensureManifoldness = require('./ensureManifoldness.js') // NOTE : this test is BAD WAY, and too dependent on the current implementation , we need actual checks // such as https://gamedev.stackexchange.com/questions/61878/how-check-if-a...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
// Karma configuration // Generated on Thu Mar 06 2014 17:16:01 GMT+0100 (Mitteleuropäische Zeit) process.env.CHROME_BIN = require('puppeteer').executablePath(); module.exports = function (config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', // frameworks to...
import AMBA from './AMBA.js'; export { AMBA, };
function addRow() { var itemId = guid(); var newRow = $('<tr id="' + itemId + '" class="item">'); newRow.append('<th scope="row">' + itemId + '</th>'); newRow.append('<td><i class="fa fa-spinner status"></i></td>'); newRow.append('<td><button type="button" class="btn btn-sm btn-outline-danger" onclick="delete...
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{931:function(t,e,r){"use strict";r.r(e);var n=r(9);function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)...
'use strict'; import { webpackHelper } from 'macaca-wd'; const { driver, BASE_URL } = webpackHelper; describe('test/todo.test.js', () => { before(() => { return driver .initWindow({ width: 800, height: 600, deviceScaleFactor: 2 }); }); beforeEach(() => { retur...
(function () { 'use strict'; angular.module('KingAdmin.pages.dict.dict') .controller('DictListCtrl', DictListCtrl); /** @ngInject */ function DictListCtrl($scope,$filter, toastr, DictService,DictClassService) { var kt = this; kt.dictlist = []; kt.dictClassList = []; ...
import { AsyncStorage } from "react-native"; import { getNewGame, getMovables, postSelectCube, postMoveCube, getMyTeam, getExistingGame, getNewGameVsAi } from "../apiRequests"; import { CREATE_GAME, UPDATE_GAME, FETCH_MOVABLES, SELECT_CUBE_REPLY, FETCH_TEAM_REPLY } from "../game/constants"; co...
'use strict'; /* global describe before after it */ /* eslint-disable */ const assert = require('assert'); const { expect, should } = require('chai'); /* eslint-enable */ const path = require('path'); const chai = require('chai'); const chaiAsPromised = require('chai-as-promised'); const environment = require('dot...
/** * This service load and store open tabs from cookies * */ miniumDeveloper.service('openTab', function() { this.store = function(editors) { var reltivepaths = []; editors.forEach(function(editor) { var relativeUri = editor.file.fileProps.relativeUri; if (relativeUri !=...
const Router = require("koa-router"); const { DOCUMENTS } = require("@cdt/data/indexing/esIndexName"); const API_BASE_URL = require("../v1.prefix"); const elasticsearchClient = require("../../conf/elasticsearch.js"); const getIdccBody = require("./idcc.elastic"); const ES_INDEX_PREFIX = process.env.ES_INDEX_PREFIX |...
'use strict'; app.factory('shoppingListData', function ($http, notifier) { var shoppingListApi = 'api/shopping-list'; return{ getShoppingList: function (id, success) { $http.get(shoppingListApi + '/' + id) .success(function (data) { ...
// This is a karma config file. For more details see // http://karma-runner.github.io/0.13/config/configuration-file.html // we are also using it with karma-webpack // https://github.com/webpack/karma-webpack var webpackConfig = require('../../build/webpack.test.conf') module.exports = function (config) { confi...
import {game, images, card} from "./common/game.js"; import {mapInit} from "./init/map_init.js"; import {startPlantSelect} from "./init/start_plant_select.js"; import {startMenu} from "./init/start_menu.js" import {collision} from "./common/tools.js"; import {createSun} from "./sun/sun.js"; function init() { game....
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE // A rough approximation of Sublime Text's keybindings // Depends on addon/search/searchcursor.js and optionally addon/dialog/dialogs.js (function(mod) { if (typeof exports == "object" && t...
import React from "react"; import { Button, Input, Image, GeistProvider, CssBaseline, Code } from '@geist-ui/react' // import { RefreshCcw } from '@geist-ui/react-icons' export default class StrImage extends React.Component { state = { model: this.props.data.model, img_url: this.props.data.sample_...
// We import this module // We add const add = (a, b) => a + b // We sub const sub = (a, b) => a - b // We export both functions module.exports = { add: add, sub: sub }
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2016, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
const util = require('./util'); const http = require('http'); const Koa = require('koa'); const serve = require('koa-static'); const Router = require('koa-router'); const koaBody = require('koa-body'); const webpush = require('web-push'); const cors = require('koa2-cors'); const bodyPars...
export const addUser = (user) => { return { type: 'ADD_USER', payload: user } }, deleteUser = (userId) => { return { type: 'DELETE_USER', payload: userId } }, updateUser = (user) => { return { type: 'UPDATE_USER', ...
import React from 'react'; import {render} from 'react-dom'; import CommentBox from "./comment-box"; const app = document.getElementById('app'); render(<CommentBox url="/api/comments" pollInterval={50000} />, app);
import React from 'react'; import { Link, graphql } from 'gatsby'; import { capitalize } from 'lodash'; import styled from 'styled-components'; import * as colors from '../components/styles/colors'; import { fontDisplay } from '../components/styles/fonts'; import media from '../components/styles/media'; import PageLay...
import React from 'react' import { compose } from 'react-apollo' import { enforceMembership } from '../components/Auth/withMembership' import { CDN_FRONTEND_BASE_URL } from '../lib/constants' import { t } from '../lib/withT' import { Link } from '../lib/routes' import { A } from '@project-r/styleguide' import { withRo...
/** ! * @license Zune Theme v//? write(JSON.parse(require('fs').readFileSync('./package.json')).version); * FusionCharts JavaScript Library * * Copyright FusionCharts, Inc. * License Information at <http://www.fusioncharts.com/license> */ var themeObject = { name: 'zune', theme: { base: { chart: { ...
export default { vxe: { error: { groupFixed: 'If grouping headers are used, fixed columns must be on the left and right sides.', // scrollXNotResizable: 'Horizontal virtual scrolling does not support "resizable".', cellEditRender: 'The renderer "cell-render" and "edit-render" cannot be used toge...
const fs = require('fs') const {promisify} = require('util') const path = require('path') const _ = require('lodash') const {expect} = require('chai') const mainjs = require('../app/main.js') const readdir = promisify(fs.readdir) let myPause = function(ms) { let pausePromise = new Promise((res, rej) => { let ...
import React from 'react'; import classes from './Burger.css'; import BurgerIngredient from './BurgerIngredient/BurgerIngredient'; const burger =(props) => { let x = props; let transformedIngredients = Object.keys(props.ingredients) .map(igKey => { return [...Array(props.ingredients[igKey]...
/* Name: Maps / Map Builder - Examples Written by: Okler Themes - (http://www.okler.net) Theme Version: 1.5.4 */ (function($) { 'use strict'; var $window = $(window); /* Fix Map size on Mobile */ function fixMapListener() { fixMapSize(); $(window).on('load resize orientationchange', function() { f...
g_db.quests[10173]={id:10173,name:"Christmas Gift",type:0,trigger_policy:0,on_give_up_parent_fail:1,on_success_parent_success:0,can_give_up:0,can_retake:1,can_retake_after_failure:1,on_fail_parent_fail:0,fail_on_death:0,simultaneous_player_limit:0,ai_trigger:0,ai_trigger_enable:0,auto_trigger:0,trigger_on_death:0,remov...
const router = require('express').Router(); const sequelize = require('../config/connection'); const { Post, User, Comment } = require('../models'); const withAuth = require('../utils/auth'); router.get('/', withAuth, (req, res) => { Post.findAll({ where: { user_id: req.session.user_id, }, attribute...
import React from 'react'; import ReactDOM from 'react-dom'; import { Button } from './Button/src/index'; import './index.css'; import reportWebVitals from './reportWebVitals'; ReactDOM.render( <React.StrictMode> <Button /> </React.StrictMode>, document.getElementById('root'), ); // If you want to start mea...
module.exports = { dependencies: {}, }
let makeSanMovesScala,parsePgn,makeUciMovesScala; (function(){ 'use strict';var aa=Object.freeze({assumingES6:!0,productionMode:!0,linkerVersion:"1.3.0",fileLevelThis:this}),l=Math.imul,ba=Math.fround,ca=Math.clz32,da;function ea(a){for(var b in a)return b}class ia{constructor(a){this.aC=a}toString(){return String.from...
//cwd current working directory 当前工作目录 console.log(process.cwd()); console.log(__dirname); //change directory 改变当前目录 process.chdir('..'); process.chdir('4.global'); console.log(process.cwd()); console.log(__dirname);
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Requiring probot allows us to mock out a robot instance const {Application} = require('probot') // Requiring our app const plugin = require('..') const config = ` reviewsUntilReady: 2 changesThreshold: 100 readyMessage: 'No pending reviews' notReadyMessage: 'Pending review approvals' notReadyState: 'pending' ` fun...
var express = require('express') , app = express() var db = require('./db') app.engine('jade', require('jade').__express) app.set('view engine', 'jade') db.connect() app.listen(3000, function() { console.log('Listening on port 3000...') })
"use strict"; var PhantomInstance = require('./lib/phantom-instance.js'); var debug = require('debug')('phantom-manager'); var async = require('async'); var extend = require('extend-fn'); function PhantomManager(options, callback) { if (callback && Object.prototype.toString.call(options) === '[object Function]')...
// Copyright (C) 2017 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: | Collection of assertion functions used throughout test262 defines: [assert] ---*/ function assert(mustBeTrue, message) { if (mustBeTrue === true) { ...
const _ = require("underscore"); const cardsLib = require("./cards.js"); const STATE_ANNOUNCE = 1; // Le premier tour de table pour les annonces const STATE_ANNOUNCE_AFTER_HOLE = 2; // Le premier tour de table pour les annonces sans celles qui sont plus fables que le trou const STATE_BIDS = 3; // Les enchères const ST...
//# sourceMappingURL=ConnectedStandaloneRouting~IHEInvokeImageDisplay~ViewerRouting.bundle.cc409164badbbe067e41.js.map
NEWSBLUR.Views.SocialPageComments = Backbone.View.extend({ events: { "click .NB-story-comment-reply-button" : "check_reply_or_login", "click .NB-story-comment-input" : "check_comment_or_login", "click .NB-story-comment-save" : "check_comment_or_login", "click ....
const Koa = require('koa') const routes = require('./routes') const app = new Koa() app.use(routes) app.on('error', (err, ctx) => { console.log(err) }) app.listen(3000)
/*global describe, before, it */ 'use strict'; var path = require('path'); var assert = require('yeoman-generator').assert; var helpers = require('yeoman-generator').test; var os = require('os'); describe('slamp:app', function () { before(function (done) { helpers.run(path.join(__dirname, '../generators/...
import React from 'react' function SearchResults(props) { return ( <div className="table-div"> <table className="table"> <thead> <tr> <th scope="col" className="hide">Cover</th> ...
requireSupport('fake_page.js'); requireSupport('mock_view.js'); requireLib('provider/abstract.js'); requireLib('worker/manager.js'); requireLib('controllers/service.js'); requireLib('router.js'); requireLib('app.js'); suite('app', function() { // don't need a real db for this; var subject; var router; var pa...
'use strict'; var assert = require('assert'); module.exports = function(App, options, runner) { var app; describe('app.render', function() { beforeEach(function() { app = new App(); app.engine('hbs', require('engine-handlebars')); app.engine('tmpl', require('engine-base')); app.create...
var data = { "body": "<path opacity=\".3\" d=\"M11 7h2v6h-2V7zm0 8h2v2h-2v-2z\" fill=\"currentColor\"/><path d=\"M11 15h2v2h-2zm0-8h2v6h-2z\" fill=\"currentColor\"/><path d=\"M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 21H7v-1h10v1zm0-3H7V6h10v12zm0-14H7V3h10v1z\" fill=\"...
var fs = require('fs'); var path = require('path'); var _ = require('underscore'); var fsext = require('../fsext'); var CompileProcess = require('./compile-process'); module.exports = Compiler; /** * `Compiler` is the class for compiling awfco (AWF Compiled Object). * * An instance of this class is responsible to...
// Should not compile. // Error: :4:19: Unexpected token in for (var {k} = {} in {}) { }
const { readdirSync } = require('fs') const { createNamingConventionConfig, createNamingConventionOptions, addReactComponentNamingConvention, } = require('./rules/typescript/naming-convention') function createConfig({ type, allowedNames = [], project, tsconfigRootDir, enableTypeCheck, hasBabel = che...
/* 2013-2018 (c) Sahana Software Foundation @license MIT requires jQuery 1.9.1+ requires jQuery UI 1.10 widget factory requires D3.js 3.4.9+ requires NVD3.js */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,k,g){b instanceof String&&(b=String(b));for(var a=b.length,c=0;c<a;c++){var d=...
const flashdata = $('.flash-data').data('flashdata'); if(flashdata){ Swal.fire({ title: 'Data', text: flashdata, type: 'success' }); } $('.tombol-hapus').on('click', function(e){ // untuk mematikan aksi default browser e.preventDefault(); const href = $(this).attr('href'); Swal.fire({ title: 'Apakah...
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux' import 'pixi.js'; import 'pixi-sound'; import 'bootstrap/dist/js/bootstrap.bundle.js'; import 'bootstrap/dist/css/bootstrap.css'; import 'jquery/dist/jquery.js'; //core files import Game from './core/Game'; import State fr...
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.reduceright es5id: 15.4.4.22-5-10 description: > Array.prototype.reduceRight - side-effects produced by step 2 when an exception occurs ---*/ v...
$(document).ready(function() { $('[data-toggle="tooltip"]').tooltip(); feather.replace() $('#modalEliminarUsuario').on('show.bs.modal', function(e) { var idUsuario = $(e.relatedTarget).data('id'); var rut = $(e.relatedTarget).data('rut'); var nombreUsuario = ($(e.relatedTarget).data('nombre') + " " ...
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 4.21.0 * @date 2019-03-15 * * @license * Copyright (C) 2011-2017 Almende B.V, http://almende.com * * Vis.js is dual licensed under both * * * The Apache 2.0 License * http://www.apache.org/...
/** * @module ol/source/Cluster */ import EventType from '../events/EventType.js'; import Feature from '../Feature.js'; import GeometryType from '../geom/GeometryType.js'; import Point from '../geom/Point.js'; import VectorSource from './Vector.js'; import {add as addCoordinate, scale as scaleCoordinate} from '../co...
import Vue from 'vue' import VueRouter from 'vue-router' import Home from '../views/Home.vue' import AllUsers from '../views/AllUsers.vue' import UserProfile from '../views/UserProfile.vue' import NewUser from '../views/NewUser.vue' Vue.use(VueRouter) const routes = [ { path: '/', name: 'Home', componen...
"use strict"; // Code var wall = undefined; //Calculate cell height var w_width = 0; var w_height = 0; var w_bestCellH = 42; var sz_tolerance = 40; var cellHForBrowserSize = [ {sizew: 1903 , sizeh: 979, cellH: 42}, {sizew: 1903 , sizeh: 1080, cellH: 42}, {sizew: 1869 , sizeh: 899, cellH: 20}, {sizew: 1...
"use strict"; /* * SPDX-License-Identifier: Apache-2.0 */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && ty...
function notFound(req, res, next) { res.status(404); const error = new Error(`🔍 - Not Found - ${req.originalUrl}`); next(error); } /* eslint-disable no-unused-vars */ function errorHandler(err, req, res, next) { /* eslint-enable no-unused-vars */ const statusCode = res.statusCode !== 200 ? res.statusCode : ...
export default trafficPoints;
const state = { config: { mobile: false, sidebar: true }, authed: true, menus: [{ name: '页面', icon: 'edge', children: [{ name: '测试页面1', url: '/demo1' }, { name: '测试页面2', url: '/demo2' }] }], tabs: [{ name: '首页', closable: false, route: 'home' ...
{"frequencies":[261.6255653006,274.70684356563,294.32876096318,305.22982618403,327.03195662575,343.38355445704,366.27579142084,392.4383479509,412.06026534844,436.04260883433,457.84473927605,490.54793493862,523.2511306012],"description":"Petr Parizek, 12-tone septimal tuning, 2002."}
export default { menu: ["Introduction", "Recipes", "Components"], codeSandbox: false, themeConfig: { showPlaygroundEditor: true, }, }
// Download the Node helper library from twilio.com/docs/node/install // These consts are your accountSid and authToken from https://www.twilio.com/console // To set up environmental variables, see http://twil.io/secure const accountSid = process.env.TWILIO_ACCOUNT_SID; const authToken = process.env.TWILIO_AUTH_TOKEN; ...
var Gpio = require('onoff').Gpio; var ip = require('ip'); var LED1 = new Gpio(23, 'out'); var LED2 = new Gpio(24, 'out'); var LED3 = new Gpio(25, 'out'); var stepPin = new Gpio(16, 'out'); var stepPin1 = new Gpio(3, 'out'); var stepPin2 = new Gpio(2, 'out'); var dirPin = new Gpio(20, 'out'); var EnPin = new Gpio(21, ...
const callSpy = require('./lib/callSpy'); describe('any.lessThanOrEqualTo', () => { const shared = {}; beforeEach(() => { shared.spy = callSpy(8); shared.spy2 = callSpy(9); }); it('should confirm', () => { expect(shared.spy).toHaveBeenCalledWith(any.lessThanOrEqualTo(9)); expect(shared.spy2).to...
(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{433:function(t,n,e){"use strict";e.r(n);var o=e(44),s=Object(o.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("p",[this._v("Documentation coming soon.")])])}),[],!1,n...
'use strict'; module.exports = (req, res) => { res.status(404).json({ status: 404, message: 'Page Not Found', }); };
const createError = require('http-errors'); const express = require('express'); const mongoose = require('mongoose'); const bobyParser = require('body-parser'); const cookieParser = require('cookie-parser') const qrcode = require('qrcode'); const path = require('path'); let UserContoller = require('./User/UserControlle...
var utils = require("@/common/utils"); var _const = require("@/common/const"); var uikit = require("./uikit"); var apiHelper = require("./apis"); var channel = require("./channel"); var profile = require("@/app/tools/profile"); var eventListener = require("@/app/tools/eventListener"); var loading = require("./uikit/loa...
import {createStore} from 'redux'; import reducer from './reducer' const store = createStore(reducer); export default store;
$(document).ready(function () { // Getting jQuery references to the post body, title, form, and author select // var bodyInput = $("#body"); var saveButton = $('#saveButton'); // Adding an event listener for when the form is submitted $(saveButton).on('click', function(event){ event.preventDefault(); ...
import install from '../install'; import component from './ScopedNotifications.vue'; export default install(component);
import React from 'react'; import { Link } from 'react-router-dom'; import { ChevronRight } from './ChevronRight'; export const StyledLinkRight = (props) => { return ( <Link className="btn btn-block btn-primary mb-0 right-align-cell" to={props.to} > {props.children} &nbsp;<ChevronRight/> ...
/* * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters * * OpenAPI spec version: 1.0.0 * * NOTE: This class is auto generated by OpenAPI Generator. * https://github.com/OpenAPITools/openapi-generator * * OpenA...
const express = require('express'); const Romcal = require('romcal'); const { France_Fr } = require('@romcal/calendar.france'); /** * Initialize the Express.js server. * @type {*|Express} */ const app = express(); /** * Wire an index HTML page to the URL root of this server. */ app.get('/', (req, res) => { res...
AmCharts.translations[ "export" ][ "pl" ] = { "fallback.save.text": "Naciśnij CTRL + C by skopiować dane do schowka.", "fallback.save.image": "Prawy przycisk myszy -> Zapisz obrazek jako... by zapisać obrazek.", "capturing.delayed.menu.label": "{{duration}}", "capturing.delayed.menu.title": "Klikn...
const { BotkitConversation } = require( 'botkit' ); module.exports = function( controller ) { const convo = new BotkitConversation( 'color_chat', controller ); convo.say( 'This is a Botkit conversation sample.' ); convo.ask( 'What is your favorite Color?', async( a...
define([ 'config/namespaces' ], function ( namespaces ) { 'use strict'; return function ( descriptor, parentNode ) { // if the element has an xmlns attribute, use that if ( descriptor.a && descriptor.a.xmlns ) { return descriptor.a.xmlns; } // otherwise, use the svg namespace if this is an svg element, ...
var net = require('net'); var servers = {}; var defaultPort = 3002; exports.start = function (port) { port = port || defaultPort; key = 'port' + port; servers[key] = net.createServer(function (conn) { console.log("Server: connected"); conn.on("data", function (data) { if (data.l...
// https://github.com/uxitten/polyfill/blob/master/string.polyfill.js // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart if (!String.prototype.padStart) { String.prototype.padStart = function padStart(targetLength,padString) { targetLength = targetLength>>0; ...
/* SVN FILE: $Id: jamal.js 18 2007-06-13 09:07:32Z teemow $ */ /** * To quote Dave Cardwell: * Built on the shoulders of giants: * * John Resig - http://jquery.com/ * * Jamal : Javascript MVC Assembly Layout <http://jamal-mvc.com/> * Copyright (c) 2007, Timo Derstappen <http://teemow.com/> * * Licen...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'image2', 'tr', { alt: 'Alternatif Yazı', btnUpload: 'Sunucuya Yolla', captioned: 'Başlıklı resim', captionPlaceholder: 'Başlık...
import { createState } from "stateUtils" import { selectSubject, selectProperty, selectValue, selectFullSubject, resourceHasChangesSinceLastSave, selectResourceUriMap, selectResourceGroup, } from "selectors/resources" describe("selectSubject()", () => { it("returns null when no match", () => { cons...
var rsvp = require('rsvp'); var fs = require('fs-extra'); var path = require('path'); var cheerio = require('cheerio'); var markdown = require('markdown-it')('commonmark').enable('table');; var moment = require('moment'); var childProcess = require("child_process"); var schemaValidator = require("z-schema"); var chalk ...
let { HoribaPentra60Parser } = require('./../horiba-pentra-60-parser'); let parser = new HoribaPentra60Parser(); let results = parser.parse(` 1H|\^&|||ABX|||||||P|E1394-97|20060210061533 2P|1 3O|1|17033680|761|^^^DIF|||||||||||||||||||||F 4R|1|^^^WBC^804-5|10.1|10)/mm)||H||W 5C|1|I|Alarm_WBC^LMNE+|I 6C|2|I|EOSINOPHIL...
initSidebarItems({"attr":[["wasmtime",""]]});
var check = require('../util/regex-check') module.exports = check(/[#-'*+\--9=?A-Z^-~]/)