text
stringlengths
2
1.04M
window.__NUXT__=(function(a,b,c,d){return {staticAssetsBase:"\u002Fstatic\u002F1597376630",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"e-AlQur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark",bgColor:"#071e3d",fgColor:"#fff"},se...
export var roleRepairer = { /** @param {Creep} creep **/ run: function(creep) { var prev_target = Game.getObjectById(creep.memory.cur_target); if(creep.store[RESOURCE_ENERGY] === 0 || !prev_target || //当前无能量,无修补目标,修补目标已满时重新寻找修补目标 (prev_target && prev_target.hits === prev_target.hits...
const liveServer = require("live-server"); const params = { port: 8181, host: "0.0.0.0", file: "index.html", open: false, ignore: "node_modules", wait: 100, logLevel: 2, middleware: [function(req, res, next){next();}] } liveServer.start(params);
/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'specialchar', 'zh', { euro: '歐元符號', lsquo: '左單引號', rsquo: '右單引號', ldquo: '左雙引號', rdquo: '右雙引號', ndash: '短破...
'use strict'; import './styles.scss'; import Emitter from 'core/Emitter'; export default Vue.extend({ template: require('./template.html'), data() { return { _hidden: null, menuOpen: false }; }, created() { this.bind(); }, ready() { this.addEventListeners(); }, befor...
/**** Start of imports. If edited, may not auto-convert in the playground. ****/ var results = ee.Image("users/JustinPoehnelt/sgmnts_1465420832413_2015_8_01_2016_06_01_100_256_false_100_1800_200_B2B3B4B5B6B7B8B11B12B_NDVI"); /***** End of imports. If edited, may not auto-convert in the playground. *****/ var objects = ...
function Thermostat(){ this.temperature = 20; this.minimumTemperature = 10; this.maximumTemperature = 32 this.powerSave = true; this.powerSaveMax = 25 } Thermostat.prototype.getTemperature = function(){ return this.temperature } Thermostat.prototype.increaseTemperature = function(){ if (this.powerSave ...
import tokens from '../../wallet/tokens'; import axios from 'axios'; import store from '../store'; import Vue from "vue"; import getMarket from './market'; import {AccountType} from "../../wallet/constants"; export default { async settingConfig () { let obj = await axios.get('https://ultiledger.github.io/hd-wall...
module.exports.SolidColor = require('./solid-color'); module.exports.ShowNormals = require('./show-normals'); module.exports.ShowTexCoords = require('./show-tex-coords'); module.exports.ShowColors = require('./show-colors'); module.exports.Textured = require('./textured'); module.exports.Diffuse ...
// Copyright IBM Corp. 2018,2020. All Rights Reserved. // Node module: strong-globalize // This file is licensed under the Artistic License 2.0. // License text available at https://opensource.org/licenses/Artistic-2.0 'use strict'; var gpb = require('g11n-pipeline'); var helper = require('../lib/helper'); var sltTH ...
import React from 'react'; import Feedback from './Feedback/Feedback'; const App = () => ( <> <Feedback /> </> ); export default App;
import React from 'react'; jest.mock('react-i18next', () => ({ // this mock makes sure any components using the translate HoC receive the t function as a prop translate: () => Component => props => <Component t={(key) => key} {...props} />, }));
//REACT import React, { useEffect, useState } from "react"; //REDUX import { connect } from "react-redux"; import { bindActionCreators } from "redux"; import * as actions from "../../../store/actions"; // import socketIOClient from "socket.io-client"; //CoreUI import { CButton, CContainer, CRow, CCol, CCard, ...
let { MessageType } = require('@adiwajshing/baileys') let handler = async (m, { conn, text }) => { if (!text) return let cm = copy(m) let who if (text.includes('@0')) who = '0@s.whatsapp.net' else if (m.isGroup) who = cm.participant = m.mentionedJid[0] else who = m.chat if (!who) throw 'Etiqueta uno' cm...
import { getAttributes } from '@carbon/icon-helpers'; import PropTypes from 'prop-types'; import React from 'react'; function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { retu...
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.deactivate = exports.activate = exports.SING_MODE = v...
/* * This file is part of the xPack distribution * (http://xpack.github.io). * Copyright (c) 2017 Liviu Ionescu. * * 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 * restrict...
const initialXOBoard = (x, y) => (new Array(x).fill("").map(x => new Array(y).fill(""))); const initialGame = (player) => ({ player: ((player)?'O':'X'), round: 1}); const isEmpty = (board, x, y) => (board[x][y] && board[x][y] != (false || "")); const move = (board, player, x, y) => (board[x][y] = player); const cha...
var request = require('request'); var jsonParser = require('../jsonparser.js'); var parseBaseURL = require('../parse-base-url'); var elasticsearch = function(parent, url, index) { this.base = parseBaseURL(url, index); this.parent = parent; this.lastScrollId = null; this.totalSearchResults = 0; this.hasSkippe...
import browser from 'webextension-polyfill'; import { objectHasKey } from '@/utils/helper'; import { getBlockConnection } from '../helper'; async function checkAccess(blockName) { if (blockName === 'upload-file') { const hasFileAccess = await new Promise((resolve) => chrome.extension.isAllowedFileSchemeAcc...
//>>built define("dojox/uuid/_base",["dojo/_base/kernel","dojo/_base/lang"],function(_1){ _1.getObject("uuid",true,dojox); dojox.uuid.NIL_UUID="00000000-0000-0000-0000-000000000000"; dojox.uuid.version={UNKNOWN:0,TIME_BASED:1,DCE_SECURITY:2,NAME_BASED_MD5:3,RANDOM:4,NAME_BASED_SHA1:5}; dojox.uuid.variant={NCS:"0",DCE:"...
(function() { function config($stateProvider, $locationProvider) { $locationProvider .html5Mode({ enabled: true, requireBase: false }); $stateProvider .state('landing', { url: '/', controll...
/** global: google */ import { IconObject } from "./icon_object.js"; import { getColors } from "./parsers.js"; const generateGroupedCanvas = function(options) { let text_x, canvas = options.canvas || document.createElement("canvas"), context = canvas.getContext("2d"), font = options.font ||...
const path = require('path') module.exports = { rootDir: path.join(__dirname, '..'), transform: { '^.+\\.(js|jsx|ts|tsx)': 'babel-jest', }, moduleDirectories: [ 'node_modules', path.join(__dirname, '../src'), 'shared', __dirname, path.join(__dirname, '..'), ], moduleNameMapper: { ...
/* * MelonJS Game Engine * Copyright (C) 2011 - 2018 Olivier Biot * http://www.melonjs.org * * a simple debug panel plugin * usage : me.utils.function.defer(me.plugin.register, this, me.debug.Panel, "debug"); * * you can then use me.plugins.debug.show() or me.plugins.debug.hide() * to show or hide the panel, p...
/** * @license Angular v10.2.3 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/platform-browser"),require("@angular/common")):"function"==typeof define&&define.amd?define("@angu...
var vel = 78.2 console.log(`A velocidade do seu carro é ${vel} Km/h`) if (vel > 60){ console.log('Você ultrapassou o limite de velocidade. MULTADO!') } console.log('Dirija sempre usando cinto de segurança')
import React from "react" import BlogList from "../components/blog/BlogList" import { graphql } from "gatsby" import Helmet from "react-helmet" const BlogPage = ({ data }) => { const blogs = data.allContentfulBlog.edges return ( <> <Helmet> <title>Blogs</title> </Helmet> <BlogList blo...
/* global require, describe, it */ /* jshint strict:false */ var main = require("../commonblockfuncs.js"); var assert = require('assert'); describe("Common Exported Tests", function() { it("Should import and export blocks nicely", function() { var blockset1 = ["l", "L", "r"]; var outputBlocks = m...
import React from 'react'; import { View,StyleSheet,TouchableOpacity } from 'react-native'; import { EvilIcons } from '@expo/vector-icons'; import { useNavigation } from '@react-navigation/core'; export default function Header() { const navigation = useNavigation(); return ( <View style={styles.container}> ...
import React, {Fragment, useState} from 'react' import PropTypes from 'prop-types' import {Link} from 'gatsby' import { FiChevronRight } from "react-icons/fi"; import Button from '../../shared/button' import {slugify} from '../../../utils/utilFunctions' import BlogMeta, {Category, CommentNumber} from '../../blog/blog-m...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _urls = require("../../../modules/urls.js"); var _urls2 = _interopRequireDefault(_urls); var _server = require("../../../modules/server.js"); var _server2 = _interopRequireDefault(_server); function _interopRequireDefault(obj) { ...
(this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[]).push([[41],{620:function(e,t,c){"use strict";c.d(t,"a",(function(){return j}));var r=c(44),n=c(20),a=c(158),s=c(1),i=c.n(s),o=c(619),u=function(e){var t=e.name,c=e.text,s=Object(a.a)(e,["name"...
import '../styles/globals.css'; export default function MyApp({ Component, pageProps }) { return <Component {...pageProps} />; }
// Generated by CoffeeScript 1.6.2 (function() { "use strict"; window.CategoryTree = (function() { function CategoryTree(dom_elem) { this.dom_elem = dom_elem; this.selected = []; this.notifications = document.notification_handler; this.loading = this.notifications.loading; } Cate...
import React, { useRef } from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Box from '@material-ui/core/Box'; import EnhancedMap...
"use strict"; var mapping = {}; function register(pairs) { var keys = Object.keys(pairs); for (var i = 0; i < keys.length; i++) { mapping[keys[i]] = pairs[keys[i]]; } } function resolve(id) { var resolved = mapping[id]; if (resolved == null) { throw new Error('Could not resolve bundle with id ' +...
/* * Tristan and Cory * 3/3/2020 * Player Entity * */ // Index should be [0,1] function get_player_id(index){ return player_id = "player" + (index + 1); } // Attach new players to state // Return functions for ticking players function new_num_players(state, count){ for(var i = 0; i < count; i ++){ ...
const mongoose = require('mongoose'); const ReviewSchema = new mongoose.Schema({ title: { type: String, trim: true, required: [true, "Please Add A Title for a review"], maxlength: 100 }, text: { type: String, required: [true, "Please Add Some Text"] }, ...
/** * Copyright (c) 2012-2018 Netflix, Inc. All rights reserved. * * 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 require...
import styled from 'styled-components/native'; export const Container = styled.View` align-items: center; padding: 40px 0 30px; `; export const Top = styled.View` flex-direction: row; align-items: center; margin-bottom: 10px; `; export const Logo = styled.Image``; export const Title = styled.Text` font-...
const mongoose = require('mongoose'); const uri = 'mongodb://localhost:27017/mydocapp'; //const uri = 'mongodb+srv://lotsuki:Masteroffate@bookmarks-flslu.mongodb.net/mydocapp'; mongoose.Promise = global.Promise; mongoose.connect(uri, { useNewUrlParser: true, autoIndex: true, useCreateIndex: true }); const db =...
/* eslint-disable no-unused-vars */ function exportJson(el) { const obj = { a: 123, b: "4 5 6", }; const data = `text/json;charset=utf-8,${encodeURIComponent( JSON.stringify(obj) )}`; el.setAttribute("href", `data:${data}`); el.setAttribute("download", "data.json"); }
define( [ "../core", "../var/document", "./var/rsingleTag", "../manipulation/buildFragment", // This is the only module that needs core/support "./support" ], function( jQuery, document, rsingleTag, buildFragment, support ) { "use strict"; // Argument "data" should be string of html // context (optional): If s...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import PostItem from '../posts/PostItem'; import CommentForm from './CommentForm'; import CommentFeed from './CommentFeed'; import Spinner from '../common/Spinner...
// SERVER-16498 d_migrate.cpp should not rely on system.namespaces // // This test creates a sharded collection with wiredtiger options. // When the chunks of this collection get migrated to the other shard, // the other shard should create the collection with the same options. // However, before SERVER-16498, the rece...
describe('Models | BaseModel', () => { let baseModel; beforeEach(() => { angular.mock.module('at.lib.services'); angular.mock.module('at.lib.models'); }); beforeEach(angular.mock.inject(($injector) => { baseModel = new ($injector.get('BaseModel'))('test'); })); describ...
/** * Pimcore * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.pimcore.org/license * * @copyright Copyright (c) 2009-2014 pimcore GmbH (http://www.pimcore...
// http://jsfiddle.net/Bull/4btFx/1/ var data = { "nodes": [{ "name": "Action 4", "type": 5, "slug": "", "value": 265000 }, { "name": "Action 5", "type": 6, "slug": "", "value": 23000 }, { "name": "Action 3", "type": 4, ...
 $(document).ready(function() { // carrega a table no datatable $('#productList').DataTable( { "language": { "sEmptyTable": "Nenhum registro encontrado", "sInfo": "Mostrando de _START_ até _END_ de _TOTAL_ registros", "sInfoEmpty": "Mostrando 0 até 0 de 0 registros", "sInfoFiltered": "(Filtra...
/** * @ngdoc service * @name umbraco.services.tinyMceService * * * @description * A service containing all logic for all of the Umbraco TinyMCE plugins */ function tinyMceService($log, imageHelper, $http, $timeout, macroResource, macroService, $routeParams, umbRequestHelper, angularHelper, userService) { return...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _Emitter = _interopRequireDefault(require("../Emitter")); var _types = require("./types"); class GQLV2ToV3Service { co...
'use strict'; var _ = require('lodash'); var $ = require('./util/preconditions'); var errors = require('./errors'); var Base58Check = require('./encoding/base58check'); var Networks = require('./networks'); var Hash = require('./crypto/hash'); var JSUtil = require('./util/js'); var PublicKey = require('./publickey'); ...
import { register } from '../components/register' register({ 'heart-broken': { width: 512, height: 512, paths: [ { d: 'M473.7 73.8c48.7 49.8 50.8 129.1 7.3 182.1l-212.2 218.7c-7.1 7.3-18.6 7.3-25.7 0l-212.1-218.6c-43.5-53.1-41.4-132.4 7.3-182.2l2.4-2.4c46.3-47.4 119-51.8 170.7-14l28.6 86.5-...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var component_1 = require("./component"); exports.ComponentSource = component_1.ComponentSource; var typescript_1 = require("./typescript"); exports.TypeScriptSource = typescript_1.TypeScriptSource; //# sourceMappingURL=index.js.map
import * as basicScroll from 'basicscroll' export default { init() { $(`.js-nextToggle`).on(`click`, function(e) { e.preventDefault() document .querySelector(`.js-nextTarget`) .scrollIntoView({ behavior: `smooth` }) }) const heroSectionContainers = document.querySelectorAll(...
import React, {Component} from 'react'; import {Button, Card} from 'react-bootstrap'; import "../../../static/css/pages/mentorPg.css" import HourList from "../../pages/hourList"; import {getHoursList} from "../../../functions/services/api/hours_request/getHoursList"; import VProgressBar from "../cards/progressBar"; c...
'use strict'; const alfy = require('alfy'); alfy.fetch('jsonplaceholder.typicode.com/posts').then(data => { const items = alfy .inputMatches(data, 'title') .map(x => ({ title: x.title, subtitle: x.body, arg: x.id })); alfy.output(items); });
import gql from 'graphql-tag' export const settings = gql` query settings { getSettings { limits_trigger water_level_limit water_amount_limit moist_limit scheduled_trigger hour_range irrigation_duration chart_type theme language location lat lon default_water_amount } } ...
const router = require('express')(); const TransactionsFactory = require('../database/transactionFactory'); const { validators, verifyToken } = require('../middleware'); const educationInformationTransactions = TransactionsFactory.creating( 'educationInformationTransactions' ); const tokenControl = verifyToken.tokenC...
import b from "./t1"; import * as c from "./t1"; import { default as d } from "./t1"; import e1, * as e2 from "./t1"; import f1, { default as f2 } from "./t1"; import "./t1"; import b from "./t1"; import * as c from "./t1"; import { default as d } from "./t1"; import e1, * as e2 from "./t1"; import f1, { default as f2 ...
"use strict"; /* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a dif...
export const helpProps = { demoArtifactLink: 'https://dgsbl4vditpls.cloudfront.net/mender-demo-artifact.mender', docsVersion: undefined, isHosted: false, isEnterprise: false, menderVersion: 'master', menderArtifactVersion: 'master' };
import Dompiler from "../../../../library/dompiler.js"; import { getData } from "../../support/data.js"; import { renderCell } from "./cell.js"; /** * Renders a grid containing multiple cells. * @returns {DocumentFragment} The rendered grid as a document fragment. */ export function renderGrid() { // Variables...
import * as inqueueUtils from './inqueueUtils'; export { inqueueUtils };
import {clickable, create, isVisible} from 'ember-cli-page-object'; const SELECTORS = { SCOPE: '[data-test-current-plan]', SNAPSHOTS_INCLUDED: '[data-test-snapshots-included]', USER_LIMIT: '[data-test-user-limit]', MONTHLY_COST: '[data-test-monthly-cost]', OVERAGES: '[data-test-overages]', USAGE_STATS: '[d...
define(['angular', 'angular-couch-potato', 'angular-bootstrap', 'angular-ui-router', 'angular-google-maps', 'angular-simple-logger' ], function (ng, couchPotato) { "use strict"; var module = ng.module('app.shipping', ['ui.router', 'ui.bootstrap', 'uiGmapgoogle-maps', 'nemLogging']); ...
var express = require('express'); var router = express.Router(); var util = require('../utils/util'); var User = require('mongoose').model('User'); const _filter = {'pwd':0,'__v':0} /* GET users listing. */ router.get('/list',function(req, res){ User.find({},function(err,doc){ return res.json(doc); }); }); route...
export default class StringDateConvertor { get type() { return 'string-date'; } get tagName() { return 'string-date'; } import(el, node, importer) { let month = el.find('month'); if (month) { node.month = month.textContent; } let day = el.find('day'); if (day) { node...
import React, {useEffect, useRef} from 'react' import Layout from '../components/layout' import SEO from '../components/seo' import {Box, Container, Grid, Typography} from '@material-ui/core' import {ColorText, IndexBar, IndexDottedLine} from '../components/style' import CaseBGT from '../images/index_case_bg_tn.png' im...
import Flow from '../src/index' import AddComponent from './components/AddComponent' describe('Graph Tests', function() { it('A new graph should have an ID', function(done) { let graph = new Flow.Graph('Name') if (graph.id) { done() } else { done('Graph does not have an ID') } }) it(...
/** * @fileoverview Robot blocks related to distance sensors. * @author austinshalit@gmail.com (Austin Shalit) */ // The following are generated dynamically in HardwareUtil.fetchJavaScriptForHardware(): // createDistanceSensorDropdown // The following are defined in vars.js: // functionColor Blockly.Blocks['distan...
import React, {Component} from 'react' import {connect} from 'react-redux' import {withRouter} from 'react-router-dom' import {Icon, Layout, Avatar, Dropdown, Menu} from "antd"; import {logout} from 'store/user/actions' import './header.less' const {Header} = Layout; @connect(state => ({ authorInfo: state.use...
import {frameworks, url} from "../settings"; import {Selector, ClientFunction} from 'testcafe'; const assert = require('assert'); const getSurveyResult = ClientFunction(() => window.SurveyResult); const title = `radiogroup`; frameworks.forEach( (framework) => { fixture `${framework} ${title}` .pag...
/** * A building property directive * changes form inputs based on property type * and supports multiple property types */ define(['angular', 'highcharts','maalkaflags', './main'], function(angular) { 'use strict'; var mod = angular.module('common.directives'); mod.directive('negative', [function() { retu...
var request = require('request'); var youtubeRegex = /(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/; function getYoutubeInfo(id, callback) { request('https://gdata.youtube.com/feeds/api/videos/'+id+'?v2&prettyprint=true&alt=json', function(err, response, body) { if(err ...
module.exports = { extends: 'motley', env: { browser: true, jest: true, } }
// pages/post/post-foods/post-foods-tpl.js Page({ /** * 页面的初始数据 */ data: { }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { }, /** * 生命周期函数-...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const parseJson = require("json-parse-better-errors"); const { getContext, runLoaders } = require("loader-runner"); const querystring = require("querystring"); const { validate } = require("schema-utils")...
// @flow /** * The interpolation reference is used to indicate * that an interpolation needs to occur when encountered * by a visitor. */ const INTERPOLATION_REFERENCE_ID = '_react_pug_replace_'; /** * Used to check whether a value contains a replace * reference or multiple replace references. */ const INTERPO...
var mongo = require('mongodb'); var Client = require('ssh2').Client; var Server = mongo.Server, Db = mongo.Db, BSON = mongo.BSONPure; var ssh_conn = { host: '127.0.0.1', port: 22, username: 'inuka', password: 'Panda2010' } var server = new Server('localhost', 27017, {auto_reconnect:true}); db = new Db('packa...
console.log("This is js file"); let name = 'ARS'; console.log(name + ' is a good boy !'); console.log(" ") // shortcut for too many names function greet(N, GR="Good Night! "){ let name1 = "Yo" console.log(GR+N) console.log(N+' is a good boy !'); } let name1 = "ARS1"; //See no effect on name1 due to ...
import api from './api' // Получить карточки export function getCard(that, data={}) { const handlerSuccess = (other, res) => { // console.log(res) // ! other.setState({cards: res['events']}) let tinderContainer = document.querySelector('.tinder'); let allCards = document.querySelec...
/** * The AnVIL * https://www.anvilproject.org * * Mapping from entity property to their corresponding dashboard (header cell) display text. */ export const DashboardEntityPropertyNameDisplay = { accessType: "Access", consentCodes: "Consent Code", consentShortName: "Consent Code", consortium: "Consortium"...
var sparkline = function (selector, server_name, data_url) { var margin = { top: 5, right: 5, bottom: 5, left: 5 }, width = 200 - margin.left - margin.right, height = 25 - margin.top - margin.bottom; var parseDate = d3.time.format("%Y%m%d").parse; d3.json(data_url, function (error, data) { // Stop n...
//// [partiallyAmbientClodule.ts] declare module foo { export function x(): any; } class foo { } // Legal, because module is ambient //// [partiallyAmbientClodule.js] var foo = (function () { function foo() { } return foo; }()); // Legal, because module is ambient
// function comb(alfabeto, n, resultados, resultado) { // if(!resultado) { // resultado = []; // } // for(var i=0; i<alfabeto.length; ++i) { // var newResultado = resultado.slice(); // var newAlfabeto = alfabeto.slice(); // newResultado.push(alfabeto[i]); // newAlfabe...
/* * Copyright (c) 2013 DataTorrent, Inc. ALL Rights Reserved. * * 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...
'use strict'; const fs = require('fs'); const crypto = require('crypto'); const contract = require('../models/contract'); const out = require('./out'); const yaml = require('js-yaml'); const interval = 3000; class Watcher { constructor (endpoints, filename) { this.endpoints = endpoints; this.filename = fil...
const jwt = require('jsonwebtoken'); const asyncHandler = require('./async'); const ErrorResponse = require('../utils/errorResponse'); const User = require('../models/User'); // Protect routes exports.protect = asyncHandler(async (req, res, next) => { let token; if ( req.headers.authorization && req.headers.aut...
/* jshint browser: true, esnext: true */ /*eslint-env es6*/ // Enables es6 error checking for that file /*eslint-env jquery*/ // Enables error checking for jquery functions /*eslint-env browser*/ // Lets you use document and other standard browser functions /**/ // Lets you use console (for example to log something) ...
'use strict' // todo: DRY with vbb tests const stations = require('vbb-stations-autocomplete') const a = require('assert') const shorten = require('vbb-short-station-name') const tapePromise = require('tape-promise').default const tape = require('tape') const isRoughlyEqual = require('is-roughly-equal') const co = r...
import { Button, Header, Icon, Modal,Menu,Input,Select } from 'semantic-ui-react' import './modal.css' import React, { Component } from 'react' import Cola from '../estructuras/EstructurasLineales/Cola' import ColaPrioridad from '../estructuras/EstructurasLineales/ColaPrioridad' import ABB from '../estructuras/Estructu...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("babylonjs")); else if(typeof define === 'function' && define.amd) define("babylonjs-loaders", ["babylonjs"], factory); else if(typeof exports === 'object') ...
import DatabaseLoader from './DatabaseLoader.js' import HTTPLoader from './HTTPLoader.js' import ListenerLoader from './ListenerLoader.js' export default { DatabaseLoader, HTTPLoader, ListenerLoader }
import chai, {expect} from "chai"; import {Client} from "faye-websocket"; import sinon from "sinon"; import sinonChai from "sinon-chai"; import {createClass} from "asteroid"; chai.use(sinonChai); describe("subscriptions", () => { const Asteroid = createClass(); const asteroid = new Asteroid({ endpoi...
import possibleBipartition_dfs_1 from "./possibleBipartition_dfs_1"; import possibleBipartition_bfs_1 from "./possibleBipartition_bfs_1"; export default { possibleBipartition_bfs_1 };
const find = require('find'); const os = require('os') const path = require('path') const fs = require('fs-extra') const arch = os.arch() const platform = os.platform() const prebuildType = process.argv[2] || `${platform}-${arch}` function isFileForPlatform(filename) { if (filename.indexOf(path.join('prebuilds', ...
/* insert by clientRect */ import cloneDeep from 'lodash/cloneDeep'; export default (prevArray, newItem) => { const newClientRect = newItem.getRef().current.getBoundingClientRect(); const nextIndex = prevArray.findIndex((p) => { return (p.getRef().current.getBoundingClientRect().left > newClientRect.left); }...
/*! * OpenUI5 * (c) Copyright 2009-2019 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides default renderer for control sap.ui.commons.TabStrip sap.ui.define(["sap/base/Log"], function(Log) { "use strict"; /** * TabStrip renderer. * @name...