text stringlengths 5.97k 41.2k |
|---|
/*
* Kuzzle, a backend software, self-hostable and ready to use
* to power modern apps
*
* Copyright 2015-2018 Kuzzle
* mailto: support AT kuzzle.io
* website: http://kuzzle.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... |
import {app} from 'electron'
import crypto from 'crypto'
import emitStream from 'emit-stream'
import EventEmitter from 'events'
import datEncoding from 'dat-encoding'
import pify from 'pify'
import pda from 'pauls-dat-api'
import signatures from 'sodium-signatures'
import slugify from 'slugify'
var debug = require('deb... |
'use strict';
/**
* Comet module.
* @module comet
* @author HaoKai
*/
var EventEmitter = require('events').EventEmitter;
var uuid = require('uuid');
var aes = require('../crypto/aes');
/**
* Create a comet
* @constructor
* @param {string} id - Comet id, if it is null then Comet will generate one randomly.
* @... |
// 注册黑暗主题
import { registerTheme } from './core';
import { antvDark } from './theme/style-sheet/dark';
import { createThemeByStylesheet } from './util/theme';
registerTheme('dark', createThemeByStylesheet(antvDark));
// 注册 G 渲染引擎
import * as CanvasEngine from '@antv/g-canvas';
import * as SVGEngine from '@antv/g-svg';
... |
/* global suite, test */
var error = require('../lib/utils/error');
var should = require('should');
var text = require('../lib/text');
describe('Text', function() {
it('ASC', function() {
text.ASC.should.throw('ASC is not implemented');
});
it('BAHTTEXT', function() {
text.BAHTTEXT.should.throw('BAHTTEX... |
#!/usr/bin/env node
'use strict';
var COOKIE_KEY = 'atrocities';
var MIN_PLAYER_COUNT = 3;
var http = require('http')
, connect = require('connect')
, cookie = require('cookie')
, socketio = require('socket.io')
, fs = require('fs')
, cards = require('./lib/creative-atrocities/cards')
, optim... |
"use strict";
const ModelBase = require('./ModelBase');
const NAME = 'ocelot';
class ModelOcelot extends ModelBase {
constructor(p, s) {
p = p || [];
s = s || [];
const s1 = typeof s[0] !== 'undefined'? s[0] : Math.PI * 3 / 4;
const s2 = typeof s[1] !== 'undefined'? s[1] : 1;
const s3 = typeof ... |
// All these function render piece of HTML to plug into the DOM tree.
// The HTML can be plugged using $('#id').html(new_html);
// WARNING: the following pieces of cluttered and unreadable (or hardly readable) code may cause
// headache, eye burn or bleeding! READ AT YOUR OWN RISK!
function render_devices(devices) {
... |
import * as THREE from 'https://cdn.skypack.dev/three@v0.130.1';
import { OrbitControls } from 'https://cdn.skypack.dev/three@0.130.0/examples/jsm/controls/OrbitControls.js';
import { OutlineEffect } from 'https://cdn.skypack.dev/three@0.130.0/examples/jsm/effects/OutlineEffect.js';
import { GUI } from 'https://cdn.sky... |
/* Various stuff yanked from Wakaba/Kareha. */
function get_cookie(name)
{
with(document.cookie)
{
var regexp=new RegExp("(^|;\\s+)"+name+"=([^;]*)(;|$)");
var hit=regexp.exec(document.cookie);
if(hit&&hit.length>2) return unescape(hit[2]);
else return '';
}
}
function set_... |
/**
* Copyright 2021
* @license MIT, see License.md for full text.
*/
import { LitElement, html, css } from "lit";
import "@lrnwebcomponents/simple-icon/lib/simple-icon-lite";
import "@lrnwebcomponents/simple-icon/lib/simple-icons.js";
import { IntersectionObserverMixin } from "@lrnwebcomponents/intersection-element... |
import React, { Component } from "react";
import loadable from "@loadable/component";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { Link } from "gatsby";
import { ImgPlaceholder } from "components/GlobalComponents";
import { config } from "components/GlobalConstants";
import userAc... |
const cheerio = require('cheerio'); require('../patches/htmlparser2');
const fs = require('fs-extra');
const htmlBeautify = require('js-beautify').html;
const path = require('path');
const { pageVueServerRenderer } = require('./PageVueServerRenderer');
const _ = {};
_.cloneDeep = require('lodash/cloneDeep');
_.isStri... |
require('dotenv').config();
const prefix = process.env.PREFIX;
const divider = '======================================================\n'
exports.merchant = {
bio: `The old merchant: "*Hello, I'm back here! Oh, I haven't had a visitor in a while! Welcome! Please, tell me, honey, what would you like?*"\n`,
bio_help... |
import React, { PureComponent, Children } from 'react'
import { PropTypes } from 'prop-types'
import classNames from 'classnames'
import { Overlay, Tooltip } from 'react-bootstrap'
import PanelSection from './PanelSection'
import PanelGroup from './PanelGroup'
import history from '../../util/history'
import { getPan... |
/* #Masonry
================================================== */
// jQuery(document).ready(function($) {
// !- Calculate columns size
$.fn.calculateColumns = function(minWidth, colNum, padding, switchD, switchTH, switchTV, switchP, mode) {
return this.each(function() {
var $container = $(this),
containerWi... |
import * as nouislider from 'nouislider';
let $slider;
let boolSwitchOn;
let soundBigButton2;
let soundButton1;
let soundSwitch1;
let soundDial1;
let lightCool = false
let lightBoost = false
let lightTest = false
let lightState = false
let lightLamp = false
let lightPower = false
let lightChargePlus = false
let l... |
/**
@license
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://... |
import React, { useEffect, useState } from "react";
import { CardLabel, LabelFieldPair, Dropdown, TextInput, LinkButton, CardLabelError, Loader } from "@egovernments/digit-ui-react-components";
import { stringReplaceAll } from "../utils";
import { useForm, Controller } from "react-hook-form";
import _ from "lodash";
im... |
// Dependencies
const animationModule = require("tns-core-modules/ui/animation");
const appSettings = require("tns-core-modules/application-settings");
const audio = require("nativescript-audio");
const dataEntries = require("~/components/sendData.json");
const dom = require("nativescript-dom");
const enums = require("... |
/**
* @author <NAME> <<EMAIL>>
* Pure DOM engine (modern browser first).
*
* Applies everything (binds, loads, events, ...) directly on DOM node.
* No virtual DOM. Here it's simply replaced with arrays of (nested) functions that keep binds.
* Ultra Fast.
*/
var utils = require('../../utils'),
Context = requir... |
_stack_disableAllButtonsInContentArea = [];
_stack_open_functions = [];
_stack_function_opened_on_tab = [];
function RefreshVCRControls() {
var ts = TabSystem.list['TabSystem1'];
_vcr_beginObj = _$('_vcrControl_Begin');
_vcr_prevObj = _$('_vcrControl_Prev');
_vcr_nextObj = _$('_vcrControl_Next');
_vcr... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CollapseMenu = CollapseMenu;
var _react = _interopRequireWildcard(require("react"));
var _ui = require("@sanity/ui");
var _reactIntersectionObserver = require("react-intersection-observer");
var _icons = require("@sanity/icons")... |
import coreUtils from '@opentripplanner/core-utils'
import isEqual from 'lodash.isequal'
import memoize from 'lodash.memoize'
import moment from 'moment'
import hash from 'object-hash'
import { createSelector } from 'reselect'
import { MainPanelContent } from '../actions/ui'
const { calculateFares } = coreUtils.itine... |
const SHP = require('simple-hypercore-protocol')
const crypto = require('hypercore-crypto')
const timeout = require('timeout-refresh')
const inspect = require('inspect-custom-symbol')
const Nanoguard = require('nanoguard')
const pretty = require('pretty-hash')
const Message = require('abstract-extension')
const { Duple... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.run = exports.getBinFolder = undefined;
var _asyncToGenerator2;
function _load_asyncToGenerator() {
return _asyncToGenerator2 = _interopRequireDefault(require('babel-runtime/helpers/asyncToGenerator'));
}
let updateCwd = (() =>... |
function uc_first_char(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function submit_form() {
var game_choice = document.getElementById("game_dropdown").value;
var opp_choice = document.getElementById("opp_dropdown").value;
var player_team_choice = document.getElementById("player... |
/**
* @author <NAME> (<EMAIL>)
* @date 2019-04-05
* @description nzBankAccountValidator
*
* CHANGE LOG
* 2019-04-01 - Initial Setup of nzBankAccountValidator
**/
// Lighting Web Component Imports
import { LightningElement, api, wire, track } from 'lwc';
import { getRecord, getFieldValue, updateRec... |
$(document).ready(function () {
var baseUrl = "${baseUrl}";
var solrUrl = "${solrUrl}";
var exampleSearch =
'<h3 id="samplesrch">Example Searches</h3>'
+ '<p>Sample queries for several fields are shown. Click the desired query to execute any of the samples.'
+ ' <b>Note that queries are focuse... |
/***********Resources.js***********
**********************************/
/* Resources.js
* This is simply an image loading utility. It eases the process of loading
* image files so that they can be used within your game. It also includes
* a simple "caching" layer so it will reuse cached images if you attempt
... |
"use strict";
var d = document, w = window;
window.onload = function () {
if(getId('ingredientList'))
if(getId('ingredientList').children.length <= 0)
getId('recipe_ingredient').previousElementSibling.style.display = 'none';
// Change view recipes list if exist ul#recipes_list
task.c... |
/*
* $(document).ready...: Acá se instancia la tabla en la página.
* Difiere del método común en que el "lengthMenu" está configurado para que no pagine la
* tabla ya que de hacerlo, al momento de registrar el pedido/venta, dataTable solo tomará los renglones
* que sean visibles al momento de registrar, excluyendo ... |
const fs = require("fs");
const path = require("path");
const archiver = require("archiver");
const { log } = require("./renderer");
const { TimingPoint } = require("./timingpoint");
const { HitObject, HitCircle, Slider, Spinner, HoldNote } = require("./hitobject");
class OsuFile {
/**
* Reads an .osu file asynchr... |
'use strict';
const {connect, createLocalVideoTrack, Logger, LocalVideoTrack} = require('twilio-video');
const {isMobile} = require('./browser');
const $leave = $('#leave-room');
const $room = $('#room');
const $activeParticipant = $('div#active-participant > div.participant.main', $room);
const $activeVideo = $('vi... |
import store from './store'
import { lightTheme, darkTheme } from '../components/ThemeChanger'
import { monthsFull, celciusToFerinheight } from '../constants.js'
export const GEOLOCATE_USER = "GEOLOCATE_USER";
export const TYPE_IN_CITYNAME_FIELD = "TYPE_IN_CITYNAME_FIELD"
export const TYPE_IN_ZIP_FIELD = "TYPE_IN_ZI... |
import _extends from '@babel/runtime/helpers/extends';
import * as primitives from '@react-pdf/primitives';
export * from '@react-pdf/primitives';
import queue from 'queue';
import React, { useRef, useState, useEffect } from 'react';
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
import _regen... |
'use strict';
var gTargetCoords = [
{ cellRow: 2, cellCol: 1 },
{ cellRow: 3, cellCol: 5 },
{ cellRow: 4, cellCol: 1 },
{ cellRow: 5, cellCol: 4 },
{ cellRow: 6, cellCol: 3 },
{ cellRow: 6, cellCol: 6 },
{ cellRow: 7, cellCol: 4 },
];
var gWallCoords = [
{ cellRow: 1, cellCol: 1 },
... |
import React, { Component } from "react";
import FindArtist from "./FindArtist";
import SearchOverlay from "./SearchOverlay";
import SearchResults from "./SearchResults";
class App extends Component {
constructor(props) {
super(props);
this.state = {
findArtist: true,
search... |
import d3 from 'd3';
import _ from 'underscore';
import circosJs from 'nicgirault/circosJs';
import Grapher from './grapher';
import * as Helpers from './visualisation_helpers';
class Graph {
static name() {
return 'Circos';
}
static className() {
return 'circos-distribution collapse in';
}
static... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.protot... |
// elemento canvas do HTML
let canvas;
// contexto 2d extraido do canvas
let ctx;
//Variavel que salva a imagem
let savedImageData;
// Para verificar se o mouse está arrastando
let dragging = false;
// Cor do que será desenhado (Não é constante)
let strokeColor = 'blue';
// FillColor utilizado nos circulos
let ... |
/*global System*/
import { pt, Color } from "lively.graphics";
import { connect, once, disconnect } from "lively.bindings"
import { Path } from "lively.lang";
import { morph } from '../helpers.js';
import { GridLayout } from '../layout.js';
import config from "../config.js";
import { Morph } from '../morph.js';
import ... |
import React, { Component, Fragment } from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import { connect } from 'redaction'
import actions from 'redux/actions'
import cssModules from 'react-css-modules'
import styles from './Wallet.scss'
import { isMobile } from 'react-device-detect'
import ... |
var fs = require('fs')
var connect = require('connect')
var http = require('http')
var path = require('path')
var bodyParser = require('body-parser')
var serveStatic = require('serve-static')
var errorHandler = require('errorhandler')
var cookieParser = require('cookie-parser')
var url = require('url')
var qs = require... |
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" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
export { default as Uim500px } from './icons/uim-500px'
export { default as UimAdobe } from './icons/uim-adobe'
export { default as UimAdobeAlt } from './icons/uim-adobe-alt'
export { default as UimAirplay } from './icons/uim-airplay'
export { default as UimAlign } from './icons/uim-align'
export { default as UimAlignA... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
/*
UIGifPicker.js
Copyright (c) 2014-2021 <NAME>, et al
Released under the MIT License
*/
import {spinnerLarge} from "./DataMustaches.js";
import {make} from "./Utils.js";
import { I18n } from "./I18n.js";
const giphyKey = "<KEY>";
const tenorKey = "<KEY>";
let lastTenorPos = "";
let lastGfycatPos = "";
let las... |
// Generated by BUCKLESCRIPT VERSION 2.1.0, PLEASE EDIT WITH CARE
'use strict';
var List = require("bs-platform/lib/js/list.js");
var Block = require("bs-platform/lib/js/block.js");
var Curry = require("bs-platform/lib/js/curry.js");
var Js_json ... |
const app = Application.currentApplication();
app.includeStandardAdditions = true;
const version = Number(app.doShellScript("sw_vers -productVersion| cut -d '.' -f 1-2"));
const itunes = version < 10.15 ? Application("iTunes") : Application("Music");
const TRUE = "true";
const FALSE = "false";
const map = (array, cal... |
/**
* TEAM: backend_infra
* WATCHERS: osuushi
*/
// @noflow (this is injected through selenium, and does not go through the build pipeline)
/* eslint-disable flowtype/require-parameter-type */
/* global _SpecView, document, Element, NodeFilter */
/*
This contains the querying architecture which allows lazy fetchi... |
/**
* Package that contains the search views and utilities used throughout the app.
* @module @tutorbook/search
* @see {@link https://npmjs.com/package/@tutorbook/search}
*
* @license
* Copyright (C) 2020 Tutorbook
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of... |
/*
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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 right... |
// =========================================================================
//
// XML for SCRIPT - an XML parser in JavaScript.
//
// =========================================================================
//
// Copyright (C) 2000 <NAME> (<EMAIL>)
//
// This library is free software; you can redistribute it and/or
... |
const start = Date.now();
const now = new Date();
const from = new Date(
now.getFullYear(),
now.getMonth(),
now.getDate(),
now.getHours() - 24
);
const to = new Date(
now.getFullYear(),
now.getMonth(),
now.getDate(),
now.getHours()
);
const targetColName = 'Post';
const outColName = 'PendingGamePost';... |
#!/usr/bin/env node
// command line interface to the cds api resp. cds compiler
// Usage: cdsc [options] <file> ...
// Call cdsc --help for a detailed description
// Exit codes are:
// 0 for success
// 1 compilation error
// 2 command line usage error
// For recursive *.cds expansion, use
// cdsc $(find... |
module.exports = Brain;
const ROOT_DIR = process.cwd() || "";
const bodyparser = require("body-parser");
const express = require("express");
const compression = require("compression");
const session = require("express-session");
const exphandlebars = require("express-handlebars");
const http = require("http");
const... |
/**
*
* USER: chenlingguang
* TIME: 15/3/4 上午10:10
*/
'use strict';
var Common = require('../Common/common');
var isString = Common.isString;
var isNumberString = Common.isNumberString;
var isArray = Common.isArray;
var isObject = Common.isObject;
var isBoolean =Common.isBoolean;
var isScalar = Common.isScalar;
va... |
import React from 'react';
import { PropTypes } from 'prop-types';
import { Alert, Button, Card, Col, Form } from 'react-bootstrap';
import ReactTooltip from 'react-tooltip';
import * as yup from 'yup';
import moment from 'moment';
import _ from 'lodash';
import PublicHealthManagement from './PublicHealthManagement';
... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
//TODO: more than one value for the backtrace functionality?
// continuation (deleting part of the field to continue moving)?
// obligatory animation but eh
// to store the client names/keep track of current number of clients
var clients = [],
// to store the current clients processing a request
in_req_clients = []... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogFile = exports.logFile = void 0;
const vscode = require("vscode");
const path = require("path");
const fs = require("fs");
const visualText_1 = require("./visualText");
const textFile_1 = require("./textFile");
const nlp_1 = require... |
/* eslint-disable camelcase */
import React from 'react';
import HEARING_DISPOSITION_TYPES from '../../constants/HEARING_DISPOSITION_TYPES';
import moment from 'moment-timezone';
import _ from 'lodash';
import ExponentialPolling from '../components/ExponentialPolling';
import REGIONAL_OFFICE_INFORMATION from '../../co... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _typeof(obj) { if (typeof Symbol === "function... |
import { _ } from 'meteor/underscore';
import { Meteor } from 'meteor/meteor';
import { UserStatus } from 'meteor/mizzao:user-status';
import { resourceManager } from '/server/imports/threading/resourceManager';
import { debug } from '/server/imports/utils/debug';
import { backupMongo } from '/server/imports/utils/bac... |
var layervisible;
var doGl;
require([
"esri/Map",
"src/TiandiImageLayer",
"src/TiandiImageAnnoLayer",
"esri/views/SceneView",
"esri/layers/MapImageLayer",
"esri/layers/FeatureLayer",
"esri/layers/IntegratedMeshLayer",
"esri/layers/GraphicsLayer",
"esri/tasks/QueryTask",
"esri/tasks/support/Query",
"esri/tas... |
/**
* @file This is the main file where hyperbolic and euclidean visualization is done with the class d3Hyperbolic.
*/
import * as d3 from "d3";
import {complex, add, multiply, divide} from 'mathjs'
import * as utils from "./utils.js";
import { strict as assert } from "assert";
import {to_poincare, poincare_geo... |
var params = [];
//显示隐藏列
var menu_text = "";
var table = $("#dataTable tr th:gt(1)");
var selectGroupId = '';
var selectAssignmentId = '';
var alasendflag = true;
var checkedId = "";
var subCheckedId = "";
//单选
var subChk = $("input[name='subChk']:checkbox");
var dtext = "";
// var dn = new Array("交通部JT/T808","移为GV320"... |
import fs from "fs";
import path from "path";
import os from "os";
import v8 from "v8";
import cluster from "cluster";
import { createRequire } from "module";
import { fileURLToPath, pathToFileURL } from "url";
import { WASI } from "wasi";
import glob from "glob";
import { stderrColors, stdoutColors } from "../util/ter... |
var data = {
SETUP: {}
},
modeCAD = 'cab',
objectName = '',
pagesLists = ['index'],
dataSites = {
color: 'main: #2e3192,extra: #ec8b00,front: #659f13,back: #f1c40f,cyan-1: #1abc9c,cyan-2: #16a085,la-1: #2ecc71,la-2: #27ae60,duong-1: #3498db,duong-2: #2980b9,tim-1: #9b59b6,tim-2: #8e44ad,vang-1: #f1c40f,vang-2: #... |
'use strict';
const Iconv = require('iconv-lite');
const Utils = require('../misc/utils');
const QUOTE = 0x27;
const DBL_QUOTE = 0x22;
const ZERO_BYTE = 0x00;
const SLASH = 0x5c;
//increase by level to avoid buffer copy.
const SMALL_BUFFER_SIZE = 1024;
const MEDIUM_BUFFER_SIZE = 16384; //16k
const LARGE_BUFFER_SIZE ... |
// ----------------- INITIALIZATION -----------------
const bc = new BroadcastChannel('videomatrix_bc'); // multi-window support
search_list = (() => {
let req = new XMLHttpRequest();
req.open('GET', 'static/search_terms.txt', false);
req.send(null);
return [...req.responseText.split('\n')];
})();
direct_urls... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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 ("... |
/* global */
'use strict'
var $ = require('jquery')
var ethJSUtil = require('ethereumjs-util')
var BN = ethJSUtil.BN
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var crypto = require('crypto')
var TxRunner = require('./app/execution/txRunner')
var yo = require('yo-yo')
var txFormat = re... |
const CPF = 'CPF';
const CNPJ = 'CNPJ';
const placeHolders = {
mask_cpf: '___.___.___-__',
mask_cnpj: '__.___.___/____-__',
}
// EndPoint do IBGE para consulta de municípios por UF
const ENDPOINT_MUNICIPIOS_IBGE = 'https://servicodados.ibge.gov.br/api/v1/localidades/estados/{UF}/municipios';
// Input com o m... |
function Square(name, pricetext, color, price, groupNumber, baserent, rent1, rent2, rent3, rent4, rent5) {
this.name = name;
this.pricetext = pricetext;
this.color = color;
this.owner = 0;
this.mortgage = false;
this.house = 0;
this.hotel = 0;
this.groupNumber = groupNumber || 0;
this.price = (price || 0);
th... |
/* NeuQuant Neural-Net Quantization Algorithm
* ------------------------------------------
*
* Copyright (c) 1994 <NAME>
*
* NEUQUANT Neural-Net quantization algorithm by <NAME>, 1994.
* See "Kohonen neural networks for optimal colour quantization"
* in "Network: Computation in Neural Systems" Vol. 5 (1994) pp 3... |
/*Este metodo solo valida que si el tipo elegido dentro del form de nuevo articulo no es 'Ropa' que deshabilite el campo "Talle"
*Si el campo escigdo de tipo de articulo es "Libteria" se habilitan los campos 'ancho' y 'alto' (para tarjetas, carpetas, calendarios, etc)
*/
$(document).ready(function () {
$('#tblLi... |
var args = arguments[0] || {};
var offset = 0;
var buttonsExpanded = false;
var post_index = 1;
var refreshName = args.refreshName||null;
var i_model = Alloy.createCollection("images_table");
var countdown = require("countdown_between_2date.js");
var control = Ti.UI.createRefreshControl({
tintColor:"#00CB85"... |
'use strict';
var uuid = require('uuid');
var xLink = require('chix-flow').Link;
var Renderer = function(options) {
options = options || {};
if (!(this instanceof Renderer)) {
return new Renderer(options);
}
// do not set uuids
this.skipIDs = options.skipIDs || false;
this.mask = undefined;
if ... |
import React from 'react'
import { bindActionCreators } from 'redux'
import PropTypes from 'prop-types'
import Head from 'next/head'
import { connect } from 'react-redux'
import Router, { withRouter } from 'next/router'
import { hide, show } from 'redux-modal'
import { Container, Row, Col, Button } from 'reactstrap'
im... |
const express = require('express');
const router = require('express').Router();
const { URL } = require('url');
const _ = require('lodash');
const request = require('request');
const csvParse = require( 'csv-parse' );
const through2 = require('through2');
const oboe = require('oboe');
const morgan = require('morgan');
... |
const path = require('path');
//const readline = require('readline')
//
//const rl = readline.createInterface({
// input: process.stdin,
// output: process.stdout
//})
//const question = prompt => {
// return new Promise((resolve, reject) => {
// rl.question(prompt, resolve)
// })
//}
//( async () => {
// c... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var packet = require("./sftp-packet");
var misc = require("./sftp-misc");
var plus = require... |
/**
* 虚拟dom
*/
import * as _ from './util'
import {
VELEMENT,
VSTATELESS,
VCOMPONENT,
HTML_KEY,
} from './constant'
let refs = null
// 创建vnode
export function createVnode(vtype, type, props, key, ref) {
// 创建vnode
let vnode = {
vtype: vtype,
type: type,
props: props,
... |
// Official roles GET controllers
'use strict';
var aFrom = require('es5-ext/array/from')
, and = require('es5-ext/array/#/intersection')
, flatten = require('es5-ext/array/#/flatten')
, remove = require('es5-ext/... |
const inquirer = require("inquirer");
const fs = require("fs");
const util = require("util");
const writeFileAsync = util.promisify(fs.writeFile);
// Prompt questions
function promptUser() {
return inquirer.prompt([
{
type: "input",
name: "name",
message: "Enter your na... |
/**
* Copyright (c) 2015-present, The Regents of the University of California,
* through Lawrence Berkeley National Laboratory (subject to receipt
* of any required approvals from the U.S. Dept. of Energy).
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* L... |
// Copyright 2019 The Chromium 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 {assert, assertNotReached} from 'chrome://resources/js/assert.m.js';
import {sendWithPromise} from 'chrome://resources/js/cr.m.js';
import {$} from... |
'use strict';
console.log('hola');
//DESIGN COLOR
const designTop = document.querySelector('.design--top');
const designBottom = document.querySelector('.design--bottom');
const inputColorPalette1 = document.querySelector('#color-option1');
const inputColorPalette2 = document.querySelector('#color-option2... |
/* eslint-disable */
/**
* @Description: 专题表格组件
*
* @author: liuxiuqian
*
* @date: 2019/4/28
*/
import React,{ PureComponent } from 'react';
import {Table, Icon, Tooltip } from 'antd';
import {connect} from 'dva';
import isEqual from 'lodash/isEqual';
import router from 'umi/router';
import classNames from 'clas... |
import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import { toast } from 'react-toastify'
import { find } from 'lodash'
import BattleReady from './BattleReady'
import ChooseEnemy from './ChooseEnemy'
import ChoosePick from './ChoosePick'
import Choose... |
/* eslint-disable */
import React from 'react';
import THREE from './index'
import threeJsStore from '@/common/store/threeJS'
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer'
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass'
import { ShaderPass } from 'three/exam... |
window.a2a_config = window.a2a_config || {};
a2a_config.callbacks = [];
a2a_config.overlays = [];
a2a_config.templates = {};
a2a_localize = {
Share: "Отправить",
Save: "Сохранить",
Subscribe: "Подписаться",
Email: "E-mail",
Bookmark: "В закладки!",
ShowAll: "Показать все",
ShowLess: "Показат... |
import * as THREE from 'three';
// import { DXFLoader } from 'three-dxf-loader';
import {GLTFLoader} from "three/examples/jsm/loaders/GLTFLoader";
import {ColladaLoader} from "three/examples/jsm/loaders/ColladaLoader";
import {DRACOLoader} from "three/examples/jsm/loaders/DRACOLoader";
import {OBJLoader} from "three/ex... |
/**
* Created by MASTE on 9/18/2017.
*/
var theScene;
var showLayout = true;
var enablePop = true;
var singleClick = true;
var init = function() {
// prepare all important html elements
// 1. popup includes both the popup window and its background
// 2. span is the close button on the popup window
... |
"use strict";
function foreach (array, fn) {
var deletion = [], i, broke = false;
for (i = 0; i < array.length; ++ i) {
if (fn(array[i], i, deletion)) {
broke = true;
break;
}
}
if (deletion.length) {
deletion = deletion.removeDuplicates();
deletion.sort(function (a, b) { return a - b; });
for (i =... |
import React from 'react';
import './Board.css';
import red_piece from './red_piece.png';
import white_piece from './white_piece.png';
import { Button } from '@chakra-ui/react';
export default class Board extends React.Component {
constructor(props) {
super(props);
const initialBoard = [1, ... |
var _rawData = null;
var _popData = null;
var dateColumns = [];
var _client_width = -1;
$(window).resize(function () {
if (_rawData != null) {
console.log("Window size changed -- resizing graphs.");
var new_width = $("#sizer").width();
if (_client_width != new_width) {
render( charts['states'] );... |
/**
* Ext 构建菜单管理页面
*/
var addTitle = "新增菜单" ,addCls = "icon-add-user",
editTitle= "修改菜单" ,editCls= "icon-edit-user";
subSystem = [
['营业子系统','1'],
['管理子系统','2'],
['工单子系统','3'],
['报表子系统','7']
];
//菜单资源列表面板
var ResourceGrid= Ext.extend(Ext.grid.GridPanel,{
resourceStore: null... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.