text stringlengths 5.97k 41.2k |
|---|
'use strict';
var assert = require('assert');
var braces = require('..');
function equal(pattern, expected) {
var actual = braces.expand(pattern);
assert.deepEqual(actual.sort(), expected.sort());
}
describe('expanded sets', function() {
describe('invalid sets', function() {
it('should handle invalid sets:... |
import _ from "underscore";
import moment from "moment";
import React, { Component } from "react";
import PropTypes from "prop-types";
import classNames from "classnames";
import Pagination from "react-bootstrap/lib/Pagination";
import AutoSizer from "react-virtualized/dist/commonjs/AutoSizer";
import MultiGrid from "r... |
const db = require("./database")
const edist = require("levenshtein-edit-distance")
const cmds = require("./qb_cmds")
function addPoints(room, player, n) {
room.players.get(player.id).points += n;
}
function stopQuestion(room) {
clearInterval(room.showInterval);
clearTimeout(room.deadlineTimeout);
cle... |
'use strict';
import * as MathEval from "../pkg/math/math-eval.js"
import {ArgumentParser} from "../pkg/flag/argument-parser.js"
import {Autocomplete} from "../pkg/com/autocomplete.js"
import * as Bookmarks from "../pkg/chrome/bookmarks/bookmarks.js"
import * as Rec from "../pkg/chrome/rec/media-recorder.js"
functio... |
mainApp.controller("AppController", ['$scope', 'chatFactory', 'Upload', '$cookies' ,'groupeChatFactory', 'profilFactory','mainFactory',
'$rootScope', '$state','growl', 'ngAudio',
function($scope, chatFactory, Upload, $cookies ,groupeChatFactory, profilFactory, mainFactory, $rootScope,$state,growl, ngAudio) {
$scop... |
/*
A Sprite is our handle to a DOM element that we want to animate.
It manages locking and unlocking the element (which means taking it
in and out of static document flow so it's readily animatable).
It tracks the sprite's current transform.
It tracks the sprite's initial and/or final bounds, as measu... |
// const ideaNodeHeight = 204;
// const ideaNodeWidth = 304;
const ideaNodeMarginRight = 80;
const ideaNodeMarginTop = 80;
const navHeight = 61;
var rootNode;
var firstLayer;
var user;
function Layer(level) {
this.level = level;
var parentLayer = getLayer(level - 1);
this.parentLayer = parentLayer;
par... |
import React, { Component } from 'react';
import { array, bool, func, number, object, oneOf, shape, string } from 'prop-types';
import { compose } from 'redux';
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
import classNames from 'classnames';
import config from '../../config';
import ... |
var RenderingEngine = {}
RenderingEngine.programs = null;
RenderingEngine.textures = null;
RenderingEngine.skybox = null;
RenderingEngine.terrain = null;
RenderingEngine.mirror = null;
RenderingEngine.tree = null;
RenderingEngine.deer = null;
RenderingEngine.shadowmap = null;
RenderingEngine.reflection = null;
Renderi... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
let setting_tinymce = {
language:'zh_CN',
selector:'#content',
editor_encoding:'raw',
entity_encoding:'raw',
plugins: [
"advlist autolink autosave link image imagetools lists charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks... |
var five = require("johnny-five"),
Barcli = require("barcli"),
StateMachine = require("javascript-state-machine"),
Leap = require("leapjs"),
Tharp = require("tharp");
var phoenix, lastGesture, centered = true, locked = false;
var fmap = function(value, fromLow, fromHigh, toLow, toHigh) {
return constrain((v... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var v1,
v2,
v3,
v4,
v5,
v6,
v7,
v8,
v9,
v10,
v11,
v12,
v13,
v14,
v15,
v16,
v17,
v18,
v19,
v20,
v21,
v22,
v23,
v24,
v25,
v26,
v27,
v28,
v29,
v30,
v31,
v32,
v33,
v34,
v35,
v36,
v37,
v38,
v39,
v40,
v41,
... |
Object.prototype.hide = function() {
this.classList.add('hide');
}
Object.prototype.show = function() {
this.classList.remove('hide');
}
Array.prototype.getClone = function() {
return Object.assign([], this);
}
const
pageBody = document.getElementsByTagName('body')[0],
part = document.getElements... |
import React from "react";
// Functions from lodash 4.0.0-pre
/**
* The base implementation of `_.pick` without support for individual
* property names.
*
* @private
* @param {Object} object The source object.
* @param {string[]} props The property names to pick.
* @returns {Object} Returns the new object.
*/... |
'use strict';
import { REQUEST_TIMEOUT } from '../lib/constants';
import { default as baseRequest } from 'request';
import { default as moment } from 'moment-timezone';
import { convertUnits, safeParse, acceptableParameters } from '../lib/utils';
const request = baseRequest.defaults({timeout: REQUEST_TIMEOUT});
expor... |
/*
* Copyright 2012 eBay Software Foundation
*
* 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 o... |
// var baseurl = "http://web9.vtdns.net";
var baseurl = "http://localhost:8001";
var boxes;
var allData;
var widthAdjusted = true;
var make = $('.make').val();
var year = $('.year').val();
var model = $('.model').val();
var submodel = $('.submodel').val();
var changeBy = '';
var vehicle='';
var vehicleid='';
var off... |
// $('#edit').click(function () {
// content_html = ' <div class="king-block-content">\n' +
// ' <form class="form-horizontal" method="POST">\n' +
// ' <div class="form-group">\n' +
// ' <label for="inputCount3" class="col-sm-3 control-label">帐号:</label>\n... |
/*'The function and subfunctions defined herein come with no warranty or certification of fitness for any purpose
'Do not use these functions for conditions outside boundaries defined by their original sources.
'Subfunctions use equations from the following sources:
'ASHRAE Fundamentals, 2005, SI Edition Chapter 6... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.AggConfig = void 0;
var _lodash = _interopRequireDefault(require("lodash"));
var _i18n = require("@kbn/i18n");
var _new_platform = require("ui/new_platform");
var _agg_groups = require("../vis/editors/default/agg_groups");
var ... |
var grid = {};
var rolesMap={};
var parentIndex = null;
var editPage ;
function operate(cellValue,options,rowObject){
var template = "<a onclick=\"editPage("+rowObject.userId+")\" title='编辑'><i class=\"fa fa-edit\"></i> 编辑</a> ";
if(rowObject.isAdmin != 1 && rowObject.isManager != 1){
tem... |
import Vue from 'vue';
import Vuex from 'vuex';
import VuexHistory from 'vuex-history';
Vue.use(Vuex);
Vue.use(VuexHistory);
let vm;
const registerVm = function(_vm) {
vm = _vm;
};
const getElementDefinition = function(state, pageId, elementKey) {
if (!elementKey) return null;
const accessors = elementK... |
import React, { Component } from "react";
import {
View,
Text,
StyleSheet,
Image,
FlatList,
TouchableOpacity,
ImageBackground,
ScrollView,
} from "react-native";
import {
Button,
FAB,
Dialog,
Portal,
Provider as PaperProvider,
TextInput,
ActivityIndicator,
Colors,
Chip,
Searchbar,
... |
var addEvent = function(elem, type, eventHandle) {
if (elem == null || elem == undefined) return;
if (elem.addEventListener) {
elem.addEventListener(type, eventHandle, false);
} else if ( elem.attachEvent ) {
elem.attachEvent("on" + type, eventHandle);
} else {
elem["on"+type]=eventHandle;
... |
// Imports
const { St, GLib, Gio, Clutter } = imports.gi;
const Main = imports.ui.main;
const Mainloop = imports.mainloop;
const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
const { getMetadata, getPlayers, getPlaybackStatus, playbackAction } =
Me.imports.dbus;
//... |
// ### Libraries and globals
// This bot works by inspecting the front page of BoingBoing.
// So we need to use `request` to make HTTP requests,
//`cheerio` to parse the page using a jQuery-like API,
// `underscore.deferred` for [promises](http://otaqui.com/blog/1637/introducing-javascript-promises-aka-futures-in-goog... |
// Code for generating the cell value<->action pairs.
// A cell represents a contour cell with a value equal to the surrounding cells.
Cell = function(val) {
if (typeof val == "string") {
this.array = this._getCellArray(val);
} else {
this.array = val;
}
}
// Given a length-4 array specifying the values... |
function formAjaxSubmit(form, ajax, cb) {
if (form.hasClass("loading"))
return false;
var obj = {
method: "POST",
errorHandle: true
};
if (typeof(FormData) != "undefined") {
obj.post = new FormData(form);
// Safari empty file bug workaround
try {
if (typeof(obj.post.entries) != "u... |
import React, { Component } from "react";
import gql from "graphql-tag";
import { graphql, compose } from "react-apollo";
import { message } from "antd";
import Sidebar from "../../components/Sidebar/Sidebar";
import ChatMessages from "../../components/Chat/ChatMessages";
import EventMembers from "../../components/Even... |
// Declaración de constantes que permiten la comunicación de JS Con el DOM
// Tabla donde se registra la información
const Tregistro = document.getElementById("Tabla-registro");
// Paneles de formularios (registrar y editar)
const Pregistro = document.getElementById("reg-form");
const Peditar = document.getElemen... |
/*
// html for popover buttons
var popover_html = '<i class="fa fa-tag fa-fw-lg" id="web-view-assign-label"></i>' +
'<i class="fa fa-object-group fa-fw-lg" id="web-view-select-similar"></i>' +
'<i class="fa fa-link fa-fw-lg" id="web-view-merge"></i>' +
'<i class="fa fa-trash-o fa-fw-lg" id="web-view-remove"><... |
"use strict";
/**
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Mol2Encoder = void 0;
var tslib_1 = require("tslib");
var ligand_encoder_1 = require("../ligan... |
/*
* Copyright 2013 Apereo Foundation (AF) Licensed under the
* Educational Community 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://opensource.org/licenses/ECL-2.0
*
* Unless required by applicabl... |
const Discord = require('discord.js')
let beingApplied = new Set()
const client = new Discord.Client({
partials: ['MESSAGE', 'CHANNEL'],
fetchAllMembers:true,
disableEveryone: true,
})
const fs = require('fs')
let cooldown = new Set()
const Enmap = require('enmap')
client.commands = new Discord.Collection()
clien... |
import { renderAlert, numberFormatterToCurrency, postData } from '../module.js';
const tableElement = document.querySelector('#table');
const searchElement = document.querySelector('a#search');
// show hide product details
tableElement.querySelector('tbody').addEventListener('click', async (e) => {
let targetElemen... |
import { filter } from 'lodash';
import { Icon } from '@iconify/react';
import { sentenceCase } from 'change-case';
import { useEffect, useState } from 'react';
import plusFill from '@iconify/icons-eva/plus-fill';
import roundFilterList from '@iconify/icons-ic/round-filter-list';
import { Link as RouterLink } from 're... |
var cus = $('[name="cus_fee"]').prop('checked');
var own = $('[name="own_fee"]').prop('checked');
if(cus) {
$('.cus').find('.form-group > label').not(':first').append(' <span class="required">*</span>');
}
if(own) {
$('.own').find('.form-group > label').not(':first').append(' <span class="required">*</span>');
... |
/**
* Created by msalvi on 09/09/2016.
*/
// models
var models = require('../../models');
var Company = models.Company;
var BusinessUnit = models.BusinessUnit;
var Person = models.Person;
var Profil = models.Profil;
var MoveLine = models.MoveLine;
var Desk = models.Desk;
var MoveSet = models.MoveSet;
var MoveStatus ... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2018-2020 Toha <<EMAIL>>
*
* 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... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import * as olProj from 'ol/proj';
import { debounce as lodashDebounce, get as lodashGet } from 'lodash';
import googleTagManager from 'googleTagManager';
import moment from 'moment';
import { FontAwesom... |
//CALL BUTTON
var SkypeActiveCallButtonPart = 0;
var skype_aFreeCallIds = new Array();
//var skype_sPathPrefix = "skype_ff_toolbar_win/"; //chrome://skype_ff_toolbar_win/content/
var skype_sPathPrefix = "chrome://skype_ff_toolbar_win/content/";
function SkypeSetCallButtonPart(obj)
{
if (obj.getAttribute('id') == '__s... |
/*!------------------------------------------------------------------------------------------------------------------ *
* *
* [General Template Script] ... |
var ImgBanner = (function(){
// 幻灯片
var _imgWall = function(){
var html = '<div class="imgwall_shadow"></div><div class="img_wall"><img src="" class="current-img" /><button class="img_wall_close"></button><div class="pre-img"><input type="button" class="pre-img-btn" /></div><div class="next-img"><input type="button... |
// This program generates .wast code that contains all the spec tests for
// table.init and elem.drop. See `Makefile`.
print_origin("generate_table_init.js");
// This module "a" exports 5 functions ...
function emit_a() {
print(
`
(module
(func (export "ef0") (result i32) (i32.const 0))
(func (export "ef1")... |
import { Typography } from '@mui/material';
import Button from '@mui/material/Button';
import { green, grey, red } from '@mui/material/colors';
import FormControl from '@mui/material/FormControl';
import FormControlLabel from '@mui/material/FormControlLabel';
import FormLabel from '@mui/material/FormLabel';
import Menu... |
"use strict";
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
... |
/* eslint-disable no-nested-ternary */
/* eslint-disable react/jsx-filename-extension */
import React, { useState, useEffect, useRef } from 'react';
import { connect } from 'react-redux';
import { Box, Flex, Text, Heading, Button } from 'rebass/styled-components';
import { Label, Input, Select, Slider } from '@rebass/... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
'use strict';
exports.__esModule = true;
exports.start = exports.run = exports.TOKENS = exports.State = undefined;
var _state = require('./state');
var _multi = require('./tokens/multi');
var MULTI_TOKENS = _interopRequireWildcard(_multi);
var _text = require('./tokens/text');
function _interopRequireWildcard(obj... |
'use strict'
let workHours = 14;
function getRandomInt(min, max) { // function to generate random number of customers
min = Math.ceil(min);
max = Math.floor(max); // Global function
return Math.floor(Math.random() * (max - min) + min); //The maximum is exclusive and the minimum is inclusive
}
// ----... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import classnames from "classnames";
import { withStyles } from "@material-ui/core/styles";
import MenuItem from "@material-ui/core/MenuItem";
import TextField from "@material-ui/core/TextField";
import Button from "@material-ui/core/Button";... |
/**
* @file Bitcoin Cash adapter for blockchain interactions via the bitcoin.com API
*
* @version 0.5.0
* @author <NAME>
* @copyright MIT License
*/
const BitcoinCashNative = require("./BitcoinCashNative");
const BTCClient = require('bitcoin-core');
const bitcoreCash = require('bitcore-lib-cash');
const pat... |
var Emitter = require('./emitter'),
Observer = require('./observer'),
config = require('./config'),
utils = require('./utils'),
Binding = require('./binding'),
Directive = require('./directive'),
TextParser = require('./text-parser'),
DepsParser = require('./deps-pa... |
import React, { Component } from "react";
import { Redirect } from "react-router-dom";
import ContainerHeader from "../../../../../../../components/ContainerHeader/index";
import axios from "axios";
import { connect } from "react-redux";
import classNames from "classnames";
import PropTypes from "prop-types";
import ke... |
import React, { Component } from 'react';
import { toastr } from 'react-redux-toastr';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Row, Col } from 'react-bootstrap';
import DropdownList from 'react-widgets/lib/DropdownList';
import { reduxForm, getFormValues, change, Field, field... |
import BigNumber from 'bignumber.js';
import cx from "classnames";
import extensionizer from "extensionizer";
import React from "react";
import { Trans } from 'react-i18next';
import { connect } from "react-redux";
import { cointypes } from '../../../../config';
import dappConnectIcon from "../../../assets/images/dapp_... |
"use strict";
var prime = require('prime'),
$ = require('../utils/elements.utils'),
bind = require('mout/function/bind'),
zen = require('elements/zen'),
Emitter = require('prime/emitter'),
Bound = require('prime-util/prime/bound'),
Options = require('prime-u... |
// Elements - HTML
const host = "portfolio-project-lap-1.herokuapp.com";
const timeline = document.getElementById("timeline");
const newEntryBtn = document.getElementById("addNewEntryBtn");
const newEntryForm = document.getElementById("newEntry");
// Elements - GIPHY
const addGiphyBtn = document.getElementById(... |
// Create Gauge Chart
function createGaugechart(names_selected, names_selected_position,participants) {
$('#gauge_chart').highcharts({
chart: {
type: 'gauge',
backgroundColor: "rgba(0,0,0,0)",
plotBackgroundColor: "rgba(... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const v2_1 = require("../../../../v2");
const common_1 = require("../../../common");
const table_1 = req... |
/*********************************************************************
University of Maribor ************************************************
Faculty of Organizational Sciences ***********************************
Cybernetics & Decision Support Systems Laboratory ********************
@author <NAME> *************... |
var debug = false;
var advanced = false;
var messageFadeOutTime = 3000;
var preview = true;
var displayLog = true;
var interruptProcessing = false;
$( document ).ready(function() {
// reset();
initLogDialog(displayLog);
toggleAfterProcessButtons(false);
$('#applyXSL').attr("disabled", "disab... |
/*******************************************************************************
HELPER FUNCTIONS
*******************************************************************************/
// Shuffle an array randomly
function shuffle(array) {
var currentIndex = array.length, temporaryValue, rando... |
import React, { useEffect, useState } from "react";
import { LogBox } from "react-native";
import {
Dimensions,
Image,
ScrollView,
StyleSheet,
Text,
View,
Modal,
Alert,
TouchableOpacity
} from "react-native";
import { Button, Icon, Divider, Rating } from "react-native-elements";
import { color } from ... |
import store from "../../store/index"
//import { Route } from 'react-router-dom'
//var _ = require('lodash');
export function UXDrawer(value){
store.dispatch({ type:"MobileDrawerState", payload:value});
}
export function ISMOBILE(value){
store.dispatch({ type:"ISMOBILE", payload:value});
}
export function F... |
import Page from 'components/Page';
import React from 'react';
import {
Badge,
Button,
Card,
CardBody,
CardText,
CardDeck,
CardGroup,
CardHeader,
CardTitle,
CardColumns,
Col,
ListGroup,
ListGroupItem,
Row,
Table
} from 'reactstrap';
import { faTwitter, faLinkedin, faGithub } from "@fortaw... |
// ==UserScript==
// @namespace net.mizle
// @name LAOPLUS (Alpha)
// @version 0.0.2.4
// @match https://pc-play.games.dmm.co.jp/play/lastorigin_r/*
// @match https://pc-play.games.dmm.com/play/lastorigin/*
// @match https://osapi.dmm.com/gadgets/ifr?synd=dmm&container=dmm&owner=*&viewer=... |
//pull in traverse object for this guy
var traverse = require('optimuslime-traverse');
var schemaSpec = require('./schemaSpec');
module.exports = extendAddSchema;
function extendAddSchema(self)
{
var pathDelim = self.pathDelimiter;
var defaultWINAdd = {
wid : "string",
dbType : "string",
parents : ... |
import * as RC from '../../src/RenderCore.js'
import {Float32Attribute} from "../../src/RenderCore.js";
import {Vector3} from "../../src/RenderCore.js";
const ANIAMTION_TYPE = {CATMULL_ROM: "cr", BEZIER: "b"};
export default class MeshCore{
constructor(shaderPath = "./src/shaders", onFinish){
window.ap... |
// $(window).load(function() {
// $(".pageloader").fadeOut("slow");
// });
$(document).ready(function() {
$("#mrp").blur(function() {
var cost = document.getElementById("cost").value;
var mrp = document.getElementById("mrp").value;
if (mrp != '') {
if (Number(cost) > Number(mrp... |
function graph_class(args){
var self = this;
self.args = args;
self.element_id = self.args.element_id;
self.elements = self.args.elements;
self.positions = false;
self.annotations = {};
self.default_color = "#80a2ff";
self.default_color_c = "#00e63d";//"#80ffa2";
self.name_color = "#bbbbff";
self.na... |
import React from 'react';
import { translate, setLanguage, getLanguage } from 'react-multi-lang';
let selectedSource='Process heat';
const CustomTable = {
padding: "0px"
};
class HeatingProfileModal extends React.Component {
constructor(props){
super(props);
this.state = {HeatingProfile: '',sel... |
/* global $ */
/* global GOVUK */
// Warn about using the kit in production
if (window.console && window.console.info) {
window.console.info('GOV.UK Prototype Kit - do not use for production')
}
$(document).ready(function () {
// Use GOV.UK shim-links-with-button-role.js to trigger a link styled to look like a bu... |
let scr_body = document.querySelector('body');
let scr_blocks = document.querySelectorAll('._scr-sector');
let scr_items = document.querySelectorAll('._scr-item');
let scr_fix_block = document.querySelectorAll('._side-wrapper');
let scr_min_height = 750;
let scrolling = true;
let scrolling_full = true;
let scrollDire... |
// Copyright (c) 2018 <NAME>
//
// 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 wri... |
var back;
var restart;
var legend;
var memorial;
var travel;
var settle;
var translation;
var day;
var month;
var year;
var timer_day = 1000;
var start_day = 0;
var nations = [];
var nations_number = 10;
var territory_max;
var walls = [];
var refugees = [];
var refugee_index = 0;
var refugee_add_interval = 3000;
... |
import React from "react";
import cssStyles from "./Chart.css";
import { withStyles } from 'material-ui/styles';
import { scaleLinear, scaleTime } from "d3-scale";
import { max, min, bisector } from 'd3-array';
import { select } from 'd3-selection';
import { fitDimensions } from "react-stockcharts/lib/helper";
import {... |
var cells;
function setup(){
createCanvas(windowWidth, windowHeight-45);
cells = []
cells.push(new Cell(width/2, height/2));
}
function draw(){
background(50);
for(var i = 0; i < cells.length; i++){
cells[i].draw();
if (cells.length < 32) {
cells[i].tick();
}
}
displayPhase(cells[0... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SecretStorage = exports.SECRET_STORAGE_ALGORITHM_V1_AES = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/... |
/**
* @module ol/renderer/canvas/VectorLayer
*/
import CanvasBuilderGroup from '../../render/canvas/BuilderGroup.js';
import CanvasLayerRenderer from './Layer.js';
import ExecutorGroup from '../../render/canvas/ExecutorGroup.js';
import ViewHint from '../../ViewHint.js';
import {
HIT_DETECT_RESOLUTION,
createHitD... |
// Copyright 2014 Globo.com Player authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import HTML5VideoPlayback from '../../playbacks/html5_video'
import HLSJS from '../../../node_modules/hls.js/dist/hls.light.min.js'
import Events from... |
// AJAX Utilities
// Don't complain about line break before '||' etc:
/* jshint -W014 */
var debug = false;
var req;
function nullProcessReqChange()
{
if (debug && this.readyState === 4)
alert("req.responseText: " + req.responseText);
}
// The ajaxWaitCount code is currently NOT used, but we are ke... |
function init(){
lista_select2('/dashboard/listas/giro_negocio', 'giro_negocio', null);
lista_select2('/dashboard/listas/modulos', 'software', null);
lista_select2('/dashboard/listas/actividad', 'actividad', null);
lista_select2('/dashboard/listas/etiquetas', 'etiquetas', null);
lista_select2('/das... |
import Request from './utils/request.js'
// 请求地址
export const ajaxUrl = 'http://yuyiyujiaapi.juzhentech.com/'
export const imgUrl = 'http://yuyiyujiaapi.juzhentech.com/'
// export const ajaxUrl = 'http://localhost:54774/'
// export const imgUrl = 'http://localhost:54774/'
export const qiniu = {
open: false,
regi... |
// Copyright 2016 <NAME>. 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 applicable la... |
import * as clipboard from 'clipboard-polyfill/text'
import FileSaver from 'file-saver'
import JSZip from 'jszip'
import _ from 'lodash/fp'
import * as qs from 'qs'
import { Fragment, useState } from 'react'
import { div, h } from 'react-hyperscript-helpers'
import { requesterPaysWrapper, withRequesterPaysHandler } fro... |
/*
* Copyright 2018 DoubleDutch, Inc.
*
* 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 agre... |
// /**
// * Copyright (c) 2018 Kinvey Inc.
// *
// * 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... |
var PlayerTracker = require('../PlayerTracker');
function BotPlayer() {
PlayerTracker.apply(this, Array.prototype.slice.call(arguments));
//this.color = gameServer.getRandomColor();
// AI only
this.gameState = 0;
this.path = [];
this.predators = []; // List of cells that can eat this bot
... |
var Observer = new Class({
Implements: [Options, Events],
options: {
periodical: false,
delay: 1000
},
initialize: function (el, onFired, options) {
this.element = document.id(el) || $document.id(el);
this.addEvent('onFired', onFired);
this.setOptions(options);
this.bound = this.changed.bind(this);
th... |
temp_index_number = 1;
lenth = 0;
$(function() {
// 查询条件展示
// paramList
var label_group = $("#label_group_id");
$.each(paramList,function(index,value){
var userDesc = value.userDesc;
if(userDesc==null||userDesc ==""){
$.each(userindexList,function(ind,val){
if(value.userIndex == val.userIn... |
export var Result;
(function (Result) {
Result[Result["Ok"] = 0] = "Ok";
Result[Result["Yes"] = 1] = "Yes";
Result[Result["No"] = 2] = "No";
Result[Result["Cancel"] = 3] = "Cancel";
})(Result || (Result = {}));
export class DialogBox extends HTMLElement {
constructor() {
super();
thi... |
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.main = void 0;
const path_1 = require("path");
const util_1 = require("util");
const Module = require("module");
const arg = require("arg");
const util_2 = require("./util");
const repl_1 = require("./repl");
const ... |
var version = "V1.16";
var isDebug = false;
//image
var noApImage;
var stageFullImage;
var stageFullImage2;
var selectFriendImage;
var selectFriendImage2;
var selectTeamImage;
var finishStageImage = [];
var whiteImage;
var currentStageImage = [];
var cardListImage = [];
var cardDisableImage = [];
var cardWeakImage = []... |
"use strict";
exports.__esModule = true;
// COMMAND: node main.js ../assets/News_Categorization_MNB.ipynb
const BULK_RUN_PATH = "../tests/notebooks/"; //const BULK_RUN_PATH = "../assets/"
const SCHEMAS_PATH = "/../lib/lale/sklearn/";
const MODEL_CARDS_PATH = "../assets/model_cards/";
var graphing = require(".... |
function open_instr() {
$('#open_instr').colorbox({iframe:true,width:1100,height:700,transition:"none",closeButton:true});
}
////////////////////////////////////////////////////////////////////////////////////////////////
// TESTER RELATED CODE
var pass_status = false;
var pass_status1;
var pass_status2;
var PAS... |
// chip-specific support functions
//
// may override function definitions made previously
chipname='6800';
grChipSize=6600;
grChipOffsetX=25
grChipOffsetY=-200;
ngnd = nodenames['gnd'];
npwr = nodenames['vcc'];
nodenamereset = 'reset';
presetLogLists=[
['cycle',],
['ab','db','rw','... |
// Version: 1.20
// Date: 2007-01-25
// Author: CrazyDave
// Website: http://www.clanccc.co.uk/moo/nested.html
var noblockcookie = false;
var Nested = new Class({
getOptions: function() {
return {
childTag: 'LI',
ghost: false,
childStep: 20, // attempts to become a child if the mouse is moved this... |
// See LICENSE, author: @protolambda
var StatsJS = require("stats.js");
var fs = require("fs");
var Vec2 = require("victor");
var $ = require("jquery");
function getShader(gl, src, type) {
var shader;
if (type === gl.FRAGMENT_SHADER) shader = gl.createShader(gl.FRAGMENT_SHADER);
else if (type === gl.VERTEX_SH... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.