text
stringlengths
2
1.04M
// Import built-in Node.js package path. const path = require('path'); /** * Import the ServiceNowConnector class from local Node.js module connector.js * and assign it to constant ServiceNowConnector. * When importing local modules, IAP requires an absolute file reference. * Built-in module path's join method c...
var app = angular.module('monitor', [ 'ngResource', 'ngRoute' ]) .constant('apiConfig', { base_url : window.location.hostname+'/api', base_ws : window.location.hostname, endpointList : { disk : ["all", "fileSystem", "size", "used","use","mounted"], cpu : ["stats", "uptime", "load", "infos"], memory : ["all",...
var config = require('./config') , async = require('async') , should = require('should') , Join = require('../lib').Join , mongodb = require('mongodb') , Db = mongodb.Db , Server = mongodb.Server ; describe('mongo-join', function() { describe('#join()', function() { it('Should join two documents in...
jQuery(function( $ ){ if( $( document ).scrollTop() > 0 ){ $( '.site-header' ).addClass( 'dark' ); } // Add opacity class to site header $( document ).on('scroll', function(){ if ( $( document ).scrollTop() > 0 ){ $( '.site-header' ).addClass( 'dark' ); } else { $( '.site-header' ).removeClass...
'use strict'; require('dotenv').config(); const fs = require('fs'); const join = require('path').join; const express = require('express'); const mongoose = require('mongoose'); const passport = require('passport'); const config = require('./config'); var wialons = require('./app/controllers/wialon'); var zohos = requ...
/*-- Menu Style -- */ function toggleStyle() { wd$("html").class({toggle: "wd"}); return; } /*-- Exibe o código renderizado --*/ function reload() { var value = wd$("#code").item().value; wd$("#view").load(value); return; } /*-- Exibe o resultado javascript --*/ function getValue(x) { wd$("#view").item().innerH...
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark...
/** * Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. * Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with t...
const path = require('path'); const {CleanWebpackPlugin} = require('clean-webpack-plugin'); const Copy_Plugin = require("copy-webpack-plugin"); const Html_Webpack_Plugin = require('html-webpack-plugin'); // const Workbox_Plugin = require('workbox-webpack-plugin'); const webpack = require('webpack'); module.exports = (...
exports.short = (arr) => { let rezult = ''; for(let i = 0; i < arr.length; i++){ for(let j = i; j < arr.length; j++){ if(arr[j] !== arr[j+1]-1){ let comma = j !== arr.length-1 ? ',' : ''; let dash = arr[i] == arr[i+2]-2 ? '-' : ','; rezult += i !== j ? `${arr[i]}${dash}${arr[j...
import styled from "styled-components" /** * App Logo */ export const AppLogo = styled.div` margin: 2rem 0; `
function injectScript(t,e){ var o=document.getElementsByTagName(e)[0]; var n=document.createElement("script"); var u=document.createElement("script"); n.setAttribute("type","text/javascript"); u.setAttribute("type","text/javascript"); n.append(`YTNonstop = ${t}()`); o.appendChild(n); u.append("autotube = YTNons...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
/* eslint react/jsx-filename-extension: "off" */ /* eslint react/jsx-one-expression-per-line: "off" */ /* eslint react/no-multi-comp: "off" */ import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { render } from 'react-dom'; import _times from 'lodash/times'; import { VirtualizedDa...
/*! * Select2 4.0.3 * https://select2.github.io * * Released under the MIT license * https://github.com/select2/select2/blob/master/LICENSE.md */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory); } else if (typ...
var searchData= [ ['hjweno5_5fbias',['HJWENO5_BIAS',['../namespaceopenvdb_1_1v3__2__0_1_1math.html#a9b59f0a0c54e6e3759f1418d40585656aee04498ea626951a41f04db5b967767e',1,'openvdb::v3_2_0::math']]] ];
module.exports = { extends: 'airbnb', rules: { 'no-console': 0, }, };
/*! v:43320 b:default c:adfox_banners */
const organization = input['Organization Name']; const project = input['Project Name']; var pipeline = input['Pipeline Name']; var daysBack = 7; if (input['Days Back']) { daysBack = parseInt(input['Days Back']) || 7; } var releaseDefId = ''; if (pipeline) { releaseDefId = getReleaseDefId(organization, project...
function parse_args() { var params = acre.request.params; var status = params["status"] || "200"; var headers = params["headers"] || { "content-type": "text/plain; charset=utf-8" }; var query = params["q"]; var envelope = params["envelope"]; if (envelope) { envelope = JSON.parse(envelope); } if (...
module.exports={A:{A:{"16":"J D oB","132":"F E A B"},B:{"132":"C P H I R K L","322":"W a M MB S T N V O aB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 hB XB G b J D F E A B C P H I R K L c d e f g h i j k l m n o p q r s t u v w x y z AB vB yB","1025":"CB DB EB FB dB HB SB Q KB LB U NB OB PB QB IB GB Z Y TB UB VB WB RB W a M nB MB S...
const fs = require('fs'); const YZGenerator2 = require('../generators/YZGenerator2'); const { KEEP_CAPITALIZATION_LANGS } = require('../utils/constants'); const { RollParser } = require('../utils/RollParser'); const Util = require('../utils/Util'); const { __ } = require('../lang/locales'); // Loading the available sc...
/** * Created by sashthecash on 08/06/2017. */ class AlexaResponseVO { static getResponse (alexaRequest, sessionData = null) { let {answer, shouldEndSession, card, description, videoURL, pictureURL } = alexaRequest let directives = [] if(videoURL == null && description == null){ directives...
const path = require('path'); module.exports = { context: __dirname, mode: 'production', entry: './src/client/App.jsx', devtool: 'cheap-eval-source-map', performance: { hints: false }, output: { path: path.join(__dirname, 'public'), filename: 'bundle.js', }, resolve: { extensions: ['.js', '...
var utility = require('./utility') module.exports = { mutationFunction: function(phenotype) { // make a random change to phenotype var pheno = JSON.parse(JSON.stringify(phenotype)) var choose = Math.floor((Math.random() * 10) + 1) var randNumber1n = Math.floor((Math.random() * (pheno.nmos))) va...
module.exports = function() { return function(req, res, next) { res.locals.viewsettings = {}; res.locals.userobj = req.user; res.locals.isLoggedIn= req.isAuthenticated(); next(); } }
export function validateCNPJ (cnpj) { const isDigitValid = (rest, digito) => { let val = 0 if (rest > 1) { val = 11 - rest } if (val.toString() === digito) { return val } return false } const getRest = num => num % 11 const weight...
import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) /* Layout */ import Layout from '@/layout' /** * Note: 路由配置项 * * hidden: true // 当设置 true 的时候该路由不会再侧边栏出现 如401,login等页面,或者如一些编辑页面/edit/1 * alwaysShow: true // 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面 * ...
import { createActions, handleActions } from 'redux-actions'; import update from 'immutability-helper'; import { takeEvery, put } from 'redux-saga/effects'; import { CurrentLevel, depthOf, findLevel, flattenAll, getBreadCrumbs, levelKeys, manifestToStructure, mapDepths, matchesRange, matchRangeReduc...
import Util from '../utils/Util'; import Vector2D from '../math/Vector2D'; import Behaviour from './Behaviour'; //can use Collision(emitter,true,function(){}) or Collision(); export default class Collision extends Behaviour { /** * The callback after collision * * @callback Callback * * @param {Proton.Part...
import {useState} from 'react' import './MovieRow.css' import { AiOutlineLeft, AiOutlineRight} from "react-icons/ai"; function MovieRow({title, itens}){ const [scrollX, setScrollX] = useState(-460) const handleLeftArrow = ()=>{ let x = scrollX + 230 if(x > 0){ x = 0 } ...
/*! * jquery-timepicker v1.6.3 - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation. * Copyright (c) 2015 Jon Thornton - http://jonthornton.github.com/jquery-timepicker/ * License: MIT */ (function (factory) { if (typeof exports === "object" && exports && ...
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark...
/* this is the character physics implementation. it sets up and ticks the physics loop for our local character */ import * as THREE from 'three'; // import cameraManager from './camera-manager.js'; // import {getPlayerCrouchFactor} from './character-controller.js'; import physicsManager from './physics-manager.js'; //...
'use strict'; const { resolve } = require('path'); const { run, isWindows } = require('../utils/test-utils'); describe('--context flag', () => { it('should allow to set context', () => { const { stderr, stdout, exitCode } = run(__dirname, ['--context', './']); expect(stderr).toBeFalsy(); ...
//# sourceMappingURL=app.454ee575.js.map
/** * @jsx React.DOM */ 'use strict'; var React = require('react') var Radio = require('./index.jsx'); var formMixin = require('mixins/formMixin'); var MyComponent = React.createClass({displayName: "MyComponent", mixins: [formMixin], getInitialState: function(){ return { "classroom_id": 2...
/** * @license Copyright (c) 2003-2022, CKSource - Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ import View from '../../src/view'; import LabeledInputView from '../../src/labeledinput/labeledinputview'; import InputView from '../../src...
const axios = require('axios') const config = require('../config') /** * Fetch data from torre api accordin to path received * @param {String} _path */ const fetchData = async (_path) => { const response = await axios.get(`${config.apiUrl}/${_path}`) return response.data } module.exports = fetchData
/* Copyright 2019 Contributors to Hyperledger Sawtooth 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...
/* super-search Author: Kushagra Gour (http://kushagragour.in) MIT Licensed */ (function () { var searchFile = '/feed.xml', searchEl, searchInputEl, searchResultsEl, currentInputValue = '', lastSearchResultHash, closeEl, posts = []; // Changes XML to JSON // Modified version from here: http://da...
import React, { Component } from 'react'; import { StackNavigator } from 'react-navigation'; import { StyleSheet, Text, View } from 'react-native'; import { Button } from 'react-native-elements'; export default class WelcomeScreen extends Component { static navigationOptions = { title: 'Welcome', }; render()...
import {bookActionType} from '../../constants'; export default (state = 0, action) => { switch (action.type) { case bookActionType.FETCH_TOTAL_BOOKS: return action.payload; default: return state; } }
export function RegisterTexutres(DVER) { DVER.textureManager.defineDefaultTexturePath("assets/textures"); DVER.textureManager.registerTexture("solid", { name: "Debug Texture", id: "debug", frames: 0, variations: { top: { frames: 0 }, bottom: { frames: 0 },...
import React from 'react'; import ScrollArea from 'react-scrollbar'; class StoreItem extends React.Component { constructor(props) { super(props); }; render() { return ( <ScrollArea speed={0.8} className="StoreItemComponent" contentClassName="content" horizontal={fal...
const path = require("path"); const webpack = require("webpack"); const HtmlWebpackPlugin = require('html-webpack-plugin'); const MinCssWebpackPlugin = require("mini-css-extract-plugin"); module.exports = { entry: "./src/js/index.js", mode: "production", output: { filename: "main.js", path:...
const mongoose = require('mongoose'); const encription = require('../utilities/encription'); const REQUIRE_VALIDATION_MESSAGE = '{PATH} is required'; let userSchema = new mongoose.Schema({ username: { type: mongoose.Schema.Types.String, required: REQUIRE_VALIDATION_MESSAGE, unique: true }, firstName: { type: m...
import { useTranslation } from 'react-i18next'; import Index from '../../components/pages/index'; import Page from '../../layouts/main'; const IndexComponent = () => { const { t, i18n } = useTranslation(); i18n.addResourceBundle('pl', 'translation', { 'menu.link-home': 'Home', 'menu.link-stats...
/*! * smooth-scroll v16.1.0 * Animate scrolling to anchor links * (c) 2019 Chris Ferdinandi * MIT License * http://github.com/cferdinandi/smooth-scroll */ (function (root, factory) { if (typeof define === 'function' && define.amd) { define([], (function () { return factory(root); })); } else if (typeof ...
const express = require('express'); const path = require('path'); const cookieParser = require('cookie-parser'); const bodyParser = require('body-parser'); const routes = require('./routes/index'); const app = express(); // View enginer setup app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'hbs...
"use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import CategoryButton from './Skills/CategoryButton'; import SkillBar from './Skills/SkillBar'; const handleProps = ({ categories, skills }) => ({ buttons: categories.map((cat) => cat.name).reduce((obj, key) => ({ ...obj, [key]: f...
import React from 'react' import {Link} from 'react-router-dom' import {connect} from 'react-redux' import {CartView} from './index' import {clearCart} from '../store/' class CartPresentational extends React.Component { handleClear = async () => { await this.props.clearCart() } render() { const {cart, p...
const fs = require("graceful-fs"); const path = require("path"); const lockfile = require("@yarnpkg/lockfile"); const file = fs.readFileSync(path.resolve(__dirname, "../yarn.lock"), "utf-8"); const result = lockfile.parse(file); describe("Dependencies", () => { it("should parse fine", () => { expect(result.type).t...
(function($){ App.module.controller("groups", function($scope, $rootScope, $http, $timeout){ $scope.acl = angular.copy(ACL_DATA); $scope.groupsettings = angular.copy(ACL_GROUP_SETTINGS); $scope.active = "admin"; Object.keys(ACL_DATA).forEach(function(group){ ...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. $(document).ready(function() {// Javascript object to store all map data //map_canvas properties var map_canvas = $('#canvas'); var ctx = canvas.getContext("2d...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/3.38/esri/copyright.txt for details. //>>built define("esri/dijit/analysis/nls/el/DataStoreSelect",{relationalDS:"\u03a3\u03c7\u03b5\u03c3\u03b9\u03b1\u03ba\u03cc",spatialDS:"\u03a7\u03c9\u03c1\u03bf\u03c7\u03c...
const _ = require('lodash'); const Searcher = require('../Searcher.js'); /** * Chooses a field randomly from all the remaining characters, * then chooses a value randomly and returns a Searcher for * that field and value. * * But if there's only one character left, it just returns * their name. * * This strat...
import jwt from 'jsonwebtoken'; import dotenv from 'dotenv'; dotenv.config(); export default { createToken(userID) { return jwt.sign({ id: userID }, process.env.SECRET, { expiresIn: 86400 }); }, trimValues(values) { const newValues = {}; Object.keys(values).map((key) => { newValues[key] = valu...
/* Image model @property string title @property string image_file_url @property string collection_id @property number avg_score */ var schema = new gDb.Schema({ title: {type: String, required: true}, image_file_url: {type: String, required: true}, collection_id: {type: gDb.Schema.Types.ObjectId, required: true}, ...
"use strict"; import { MELEE_ATTACK_DAMAGE_MAX, MELEE_ATTACK_DAMAGE_MIN, Highlight, RANGED_ATTACK_DAMAGE_MAX, RANGED_ATTACK_DAMAGE_MIN, ClickEnum, } from "./consts.js"; import { getPath, } from "./geometry.js"; import { assert, internalError, } from "./message.js"; import { anim...
const path = require('path') const pug = require('pug') const extractSFCBlocks = require('extract-sfc-blocks') const ID = 'transformer-pug' exports.name = ID exports.apply = api => { api.transformers.add('pug', { extensions: ['pug'], parse(page) { const { body, frontmatter } = api.transformers.parseF...
const { Model, DataTypes } = require('sequelize'); const bcrypt = require('bcrypt'); const sequelize = require('../config/connection'); class User extends Model { checkPassword(loginPw) { return bcrypt.compareSync(loginPw, this.password); } } User.init( { id: { type: DataTypes.INTEGER, allowN...
import React, { useMemo } from "react" import PropTypes from "prop-types" import { Layout as Component } from "../components/Layout" import useMediaQuery from "@material-ui/core/useMediaQuery" import useSiteMetadata from "../hooks/useSiteMetadata.js" import factory from "../themes/factory" import useFeatureToggle from...
import Layout from "../../components/layout/Layout"; import RoomDetails from "../../components/room/RoomDetails"; import { getRoomDetails } from "../../redux/actions/roomActions"; import { wrapper } from "../../redux/store"; export default function RoomDetailsPage() { return ( <Layout> <RoomDetails /> ...
const test_function = (input) => { if (Number.isNaN(Number(input))) { return undefined } if (input === 0) { return 'zero' } else if (input % 2) { return 'odd' } return 'even' } module.exports = test_function
const { isMaster, setAuth, sendPrompt } = require('../../utils/auth'); const { gachaUpdate } = require('../../utils/update'); const parse = msg => { let id = parseInt(msg.match(/[0-9]+/g)[0]); let isOn = msg.includes('on'); return [ id, isOn ]; } const response = async (id, target, auth, type, isOn ) => ...
import { now, nextTick } from '../../../utils/utils'; export default function onTouchEnd(event) { const swiper = this; const data = swiper.touchEventsData; const { params, touches, rtlTranslate: rtl, $wrapperEl, slidesGrid, snapGrid } = swiper; let e = event; if (e.originalEvent) e = e.originalEvent; if (...
/*! * git-user-email <https://github.com/jonschlinkert/git-user-email> * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict"; // var fs = require("fs"); // var path = require("path"); var gitconfig = require("git-config-path"); var parse = require("parse-git-config"); var...
/* Highstock JS v9.2.1 (2021-08-19) Advanced Highcharts Stock tools (c) 2010-2021 Highsoft AS Author: Torstein Honsi License: www.highcharts.com/license */ 'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highchar...
/** * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */ i...
export default { apply: { applier: 'Applier', applyTime: 'Applied time', applyNum: 'Applied Quantity', server: 'CS', finished: 'Completed', application: 'Application' }, questionnaire: { beginTime: 'Start Date', endTime: 'End Date', name: 'Questionnaire Name', total: 'Stati...
// Copyright (c) 2022 Aiden Baker // // This software is released under the MIT License. // https://opensource.org/licenses/MIT //cumcord.modules.webpack.findByProps("has").getChannel(channelId)?.nsfw import{addCommand}from'@cumcord/commands'; import{getNeko}from'./api.js'; let commands=[]; export default()=>{ let ...
/* * * Copyright (c) 2019-present for symbol * * 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 la...
/** * Component: Gift Wrap * ------------------------------------------------------------------------------ * An Gift Wrap file that contains scripts to function. * * @namespace quickView */ import $ from 'jquery'; import AjaxCart from '../sections/ajax-cart'; import FreeShipping from '../sections/free-shipping';...
'use strict'; var App = function (parameters) { var self = this; parameters = parameters || {} this.window = $(window); } App.tagSelectionTemplate = function (tag, container) { var $tag = $( '<span class="label label-tag" style="background: ' + tag.element.style.color + ';"> ' + tag.text + '</span...
import { AntDesign, MaterialCommunityIcons } from '@expo/vector-icons'; import React from 'react'; import Activities from '../../components/Activities'; import Banner from '../../components/Banner'; import Suggestions from '../../components/Suggestions'; import Tips from '../../components/Tips'; import { Balance, Balan...
'use strict' const BB = require('bluebird') const cp = BB.promisifyAll(require('child_process')) const git = require('../../lib/util/git') const mkdirp = BB.promisify(require('mkdirp')) module.exports = mockRepo function mockRepo (opts) { return mkdirp() } module.exports.daemon = daemon function daemon (opts) { ...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
//# sourceMappingURL=main.db459264.chunk.js.map
var url = require('url') var assert = require('assert') module.exports = parse parse.format = format parse.parse = parse function parse (str, parseQueryString) { assert.equal(typeof str, 'string') var p = url.parse(str, parseQueryString) if (!p.slashes) p = url.parse('http://' + str, parseQueryString) els...
'use strict'; const Bone = require('@botsocket/bone'); const Jade = require('../src'); const Utils = require('./utils'); describe('ref()', () => { it('should throw on incorrect parameters', () => { expect(() => Jade.ref(1)).toThrow('Path must be a string'); expect(() => Jade.ref('x', { ancestor...
require('../../../modules/es7.string.pad-start'); module.exports = require('../../../modules/_entry-virtual')('String').padStart;
/** * A mapping of keycodes to output characters that relate to list making * @type {Object} */ const characterMapping = { 106: '*', 110: '.', 189: '-', 190: '.', 'shift': { 56: '*', 221: '*', 190: '.', }, } /** * Track the characters generated from keyboard input * @param {Array} history...
module.exports = ({ success = true, res, statusCode = 200, data = null, message = null, }) => { res.status(statusCode).json({ success, statusCode, data, message, }); };
import './main.css'; import './stylus/custom.styl'; import add from './add.js'; document.getElementById("app").innerHTML = ` <br> <div id="imgTest"></div> <div id="base64Test"></div> <textarea id="base64Info"></textarea> <textarea id="es6Test"></textarea> <h4>如果这行是绿色,则 Stylus 编译成功。</h4> `; add(); // file-loader impor...
import babel from "@rollup/plugin-babel"; const input = './js/index.js'; export default [ { input, plugins: [ babel({ babelHelpers: 'bundled', presets: [ ['@babel/preset-env', { loose: true, ...
function isUrl(url) { var pattern = new RegExp('^(https?:\\/\\/)?' + // protocol '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // domain name and extension '((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address '(\\:\\d+)?' + // port '(\\/[-a-z\\d%@_.~+&:]*)*' + // path ...
const db = require("../db"); const util = require("../util"); const auth = require("../auth"); const challengeUtil = require("./challengeUtil"); async function setup(){ try { util.log("Initializing database"); await db.init(); util.log("Registering local user 'dojouser' with passw...
import { Meteor } from 'meteor/meteor'; import '/common/file.js' FS = Npm.require('fs') FSMonitor = Npm.require('fsmonitor') ExpandTilde = require('expand-tilde'); /* * Collection of images seen so far */ Meteor.publish('seenImages', function() { return SeenImages.find(); }); /* * Collection of images on disk * ...
module.exports = function (hljs) { var IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*'; var FUNCTION = { className: 'function', begin: IDENT_RE + '\\(', end: '\\)', contains: ['self', hljs.NUMBER_MODE, hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE] }; return { case_insensitive: true, illegal: '[=/|\']'...
import $ from '../../core/renderer'; import eventsEngine from '../../events/core/events_engine'; import devices from '../../core/devices'; import { extend } from '../../core/utils/extend'; import inkRipple from '../widget/utils.ink_ripple'; import registerComponent from '../../core/component_registrator'; import Editor...
'use strict'; let path = require('path'); let express = require('express'); let bodyParser = require('body-parser'); let webpack = require('webpack'); let config = require('./webpack.config'); let isValidWord = require('./src/libs/isValidWord'); let app = express(); let compiler = webpack(config); app.set('port', p...
import React, { Component } from 'react'; import Header from 'components/HeaderComponent'; const BaseComponent = Komponent => class extends Component { componentDidUpdate () { componentHandler.upgradeDom(); // eslint-disable-line } render () { return <Komponent {...this.props} />; } }; const RootCom...
/* Copyright 2016 First People's Cultural Council 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 w...
import types from '../../../mutation-types'; import Contacts from '../../contacts'; const { mutations } = Contacts; describe('#mutations', () => { describe('#SET_CONTACTS', () => { it('set contact records', () => { const state = { records: {} }; mutations[types.SET_CONTACTS](state, [ { id: 2,...
/** * A simple logger a facade, makes it easy to switch logger implementation * at a later stage */ import request from '../utils/request'; const LOG_LEVEL = { // https://tools.ietf.org/html/rfc5424 silent: -1, // no logging emergency: 0, // system is unusable alert: 1, // action must be taken immedi...
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const impl = utils.implSymbol; const HTMLElement = require("./HTMLElement.js"); class HTMLDialogElement extends HTMLElement.interface { constructor() { throw new TypeError("Illegal constructor"); } get op...
var classKalman__RBPF__BS = [ [ "Kalman_RBPF_BS", "classKalman__RBPF__BS.html#aafe2ff44ff6a1b12f5843d4596e0fa13", null ], [ "~Kalman_RBPF_BS", "classKalman__RBPF__BS.html#addf3730ab56740f7247835aaa62c018c", null ], [ "filter", "classKalman__RBPF__BS.html#a195efd6d06215aa66defda0bb5a958e4", null ], [ "fS...