text
stringlengths
5.97k
41.2k
var http = require('http'); const VotacaoDao = require('../dao/votacao.dao'); const PautaBo = require('./pauta.bo'); const ParticipanteBo = require('./participante.bo'); const VotoBo = require('./voto.bo'); const MensagemDao = require('../dao/mensagem.dao'); require('../util/funcoes'); const bcrypt = require('bcrypt')...
$.urlParam = function(nurse_id){ var results = new RegExp('[\?&]' + nurse_id + '=([^&#]*)').exec(window.location.href); if (results==null){ return null; } else{ return results[1] || 0; } } var page = /nurse/; var url =window.location.href; if(page.test(url)){ $('#sign_up').hide(); $('#login').hide(); $(...
//GLOBAL VARIABLES AND DATA LOAD var mapData; var countryData={}; //SIZE VARIABLES var mapWidth = 600, mapHeight = 500, barMargin ={top:30, right:60, bottom:20, left:60}, barWidth = 600 - barMargin.left - barMargin.right, barHeight = 300 - barMargin.top - barMargin.bottom; //FORMAT SETTINGS var rat...
import { NotEqualDepth, GreaterDepth, GreaterEqualDepth, EqualDepth, LessEqualDepth, LessDepth, AlwaysDepth, NeverDepth, CullFaceFront, CullFaceBack, CullFaceNone, DoubleSide, BackSide, CustomBlending, MultiplyBlending, SubtractiveBlending, AdditiveBlending, NoBlending, NormalBlend...
$(function () { $("#jqGrid").jqGrid({ url: '../atdmanage/list', datatype: "json", colModel: [ // 隐藏主键 { label: '主键id', name: 'id', width: 50, key: true ,hidden : true }, { label: '职员', name: 'personName', width: 80 , formatter: function(value, options, row){ return $.isPlainO...
'use strict'; const log = require('./log'); const util = require('./util'); const eventHandling = require('./eventhandling'); const Authorize = require('./authorize'); const config = require('./config'); /** * This file exposes a get/put/delete interface on top of fetch() or XMLHttpRequest. * It requires to be conf...
// returns true if provided hyperlink is local function isLinkLocal(link) { if (link === null) return false; let a = document.createElement('a'); a.href = link; return (a.host === window.location.host); } // Return base url for a given link string function getHost(link) { if (link === null) return ""...
// 申请 var maintainApply = [ { "name": "车辆编号", "type": "text", "inputName": "vSn", "must": "*" }, { "name": "停放地点", "type": "text", "inputName": "send_park", "must": "*" }, { "name": "维修项目", "type": "text", "inputName": "item", "must": "*" }, { "name": "备注", "type": "text", "inputName": "applyRemark", "m...
function RISCMachine(romWords) { this.registers = new Int32Array( this.GeneralRegisterCount + this.SpecialRegisterCount ); var magic = (romWords[255] & 0xFFFFFF) if (magic == 0x3D424D || magic == 0x3D4243 || magic == 0x3D423F) { var mb = (romWords[255] >>> 24) & 0xF; if ((romWords[255] >>> 24) == 0x3F) { m...
//组件代理 const com={ //代理方法 handler:{ get: function(target, prop, receiver) { //直接返回 if(prop in target)return target[prop] //访问事件列表 if('methods' in target && prop in target.methods){ return target.methods[prop]; } ret...
/** * 公用js文件 */ /** * ACE jQgrid 加载底部栏图标s */ //jQuery.support.cors = true; $(document).ready(function (){ ishasKpd(); //if(window.top.buttonAuth){ // isBtnAuth(); //} setTimeout(function () { isBtnAuth(); },0) }); function updatePagerIcons(table) { var replacement = { ...
var newRectangleEditor = { rect_draw_init: false, rects_editors: ['whiteout', 'rectangle', 'ellipse', 'links', 'annotate'], drawType: "rectangle", canvas : false, drawEnabled: true, width: 0, height: 0, annotate_type: false, selector: ".whiteout-editable-menu", activeCanvas: false, styles: { 'whiteout': {...
/** * * @type {string[]} */ var dataType = ['yyyy', 'MM-dd', 'yyyy-MM-dd', 'yyyyMMdd', 'yyyy-MM','yyyy-MM-dd HH:mm:ss']; var dateType_format= ['date', 'datetime', 'time', 'year', 'month']; var sfdpPlug = { PlugInit:function (type,data,is_sub= false,Curd='add') { var maste =''; var read =''; ...
/*jslint node: true*/ 'use strict'; /* Copyright (c) 2014 Intel Corporation. All rights reserved. * Use of this source code is governed by an Apache v2 license that can be * found in the LICENSE-APACHE-V2 file. */ var path = require('path'); var Q = require('q'); var glob = require('glob'); var _ = require('lodash...
/* * TouchSlider v1.0.5 * By qiqiboy, http://www.qiqiboy.com, http://weibo.com/qiqiboy, 2012/04/11 */ (function (window, undefined) { var ADSupportsTouches = ("createTouch" in document) || ('ontouchstart' in window) || 0, doc = document.documentElement || document.getElementsByTagName('html')[0], ADSupportsTran...
/*jshint node:true jquery:true*/ "use strict"; var shared = require('../shared'); var refreshSeconds = 60; module.exports = function(client) { client.Login = function() { return this.init.apply(this, arguments); }; client.Login.prototype = { init: function(delegate) { this.delegate = delegate; this.$div = $...
var base_url = window.location.toString(); var tabUrl = base_url.split("public"); //BOITE DE DIALOG POUR LA CONFIRMATION DE SUPPRESSION function confirmation(idfacturation){ $( "#confirmation" ).dialog({ resizable: false, height:170, width:435, autoOpen: false, modal: true, b...
var tree; function pickerTreeRender(data) { tree = new PickleTree({ switchCallback: (node) => { //console.log(node) if (node.title == 'Create') { if (node.checkStatus == true) { //console.log('create') let our_node = tree.getNode(node.value + 4); // console.log('...
import * as THREE from './libs/three/build/three.module.js'; import { RenderPass } from './libs/three/examples/jsm/postprocessing/RenderPass.js'; import { ShaderPass } from './libs/three/examples/jsm/postprocessing/ShaderPass.js'; import { TexturePass } from './libs/three/examples/jsm/postprocessing/TexturePass.js'; i...
$.extend($.ui.dialog.prototype.options, { create: function(event, ui) { $('.ui-dialog-titlebar-close').append('<span class="ui-button-icon-primary ui-icon"></span>'); $('.ui-dialog-titlebar-close').attr("title", "Close"); $('.ui-dialog-titlebar-close').attr("aria-label", "Close"); ...
/** * @param {<a>[]} arr Input <a> array * @return {<a>[]} Randomly shuffled <a> array */ function arrayShuffle(arr) { // Durstenfeld Shuffle let shuffledArr = arr.slice(0); for (let i = shuffledArr.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); const temp = shuffledArr[i]; ...
import {OrbitPerspectiveCamera} from "./common/webgl_camera.js"; import * as webgl_viewer from './common/webgl_viewer.js'; import * as webrays_utils from './common/webrays_utils.js'; import * as webgl_utils from './common/webgl_utils.js'; import * as WebRays from './common/webrays.js'; ...
import React, { Component } from 'react'; import { CloseOutlined, DownOutlined, ExclamationCircleOutlined, LeftOutlined, SearchOutlined, UnorderedListOutlined, UpOutlined, } from '@ant-design/icons'; import { Dropdown, Button, Menu, Input, Checkbox, Modal, Popover, message, Row, // R...
import questionList from '../data/questions.js'; import { drawText } from '../utils/index.js'; import Background from '../runtime/background'; import Sprite from '../base/Sprite'; import DataStore from "../base/DataStore"; import Color from "../base/Color.js" import FillColor from "../utils/fillColor.js" const screen...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); require('@babel/polyfill'); var AWS = require('aws-sdk'); var uuid = require('uuid'); var crypto = require('crypto'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var AW...
////////////////////////////////////////////////////////////////////////////// // <NAME> // <EMAIL> ////////////////////////////////////////////////////////////////////////////// //---------------------------------------------------------------------------- // // Global Variables // var gl = null; // WebGL context v...
// Here, you can define all custom functions, you want to use and initialize some variables // function to handle what value goes into attribute question at what time // add additional attribute allQ to obects vignettes containing all 6 test questions // add additional attribute critical_question, with critical questi...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _is = require('babel-runtime/core-js/object/is'); var _is2 = _interopRequireDefault(_is); var _getOwnPropertyDescriptor = require('babel-runtime/core-js/object/get-own-property-descriptor'); var _getOw...
FoxUI.actionsheet = { show: function(buttons, round, close) { round = round || false; close = close || true; buttons = buttons || []; buttons.push({ 'text': FoxUI.defaults.cancelText, extraClass: 'cancel' }); var buttonsHTML = ''; $.each(buttons, function(i, btn) { buttonsHTML += '<a href="j...
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // var script$1 = { name: "action-button", props: { actionType: { type: String, required: true, }, selectedAction: { type: String, ...
"use strict"; var waiting_timeout = null; var next_color = (function(){ var pointer = 0; var colors = [ '#4572A7', '#AA4643', '#89A54E', '#80699B', '#3D96AE', '#DB843D', '#92A8CD', '#A47D7C', '#B5CA92' ]; return function(){ ...
/** * Make Sprite textes easily * @param message String message * @param parameters 'fontface, fontsize, etc.' * @returns {defs.THREE.Sprite|Raycaster.params.Sprite|SEA3D.Sprite|*} */ function makeTextSprite( message, parameters ) { if ( parameters === undefined ) parameters = {}; var fontface = parameter...
/** * * @typedef {Object} Audience * @property {string[]} [countries] that the survey should be targeted at * @property {number} [minEdits] a minimum number of edits the user must have * if undefined there will be no lower bound * @property {number} [maxEdits] a maximum number of edits the user must have * i...
import $S from "../../interface/stack.js"; import Api from '../../common/Api.js'; import TemplateHelper from "../../common/TemplateHelper"; import AppHandler from "../../common/app/common/AppHandler"; import Config from "../common/Config"; import GATracking from "../common/GATracking"; import Template from "../common...
import assert from 'assert'; import * as tf from '@tensorflow/tfjs-core'; import {kldivergence, quantileSeq} from 'mathjs'; import { NULL_VALS, DATA_TYPE, FEATURE_TYPE, LAT_LNG_PAIRS, HEX_INDICATORS, UUID_NAME, FIELD_ROLE, } from '../constants'; // dotRange(3) ==> [0, 1, 2]; // dotRange(1, 3) ==> [1, 2];...
var doEncryptDomains = [ "mail.google.com" ]; var EMAIL_WINDOW_CLASS = 'I5'; var TEXTAREA_SELECTOR = '.Am[role="textbox"][contenteditable="true"]'; var TOOLBAR_CLASS = "n1tfz"; var FORMAT_BUTTON_CLASS = "az5"; var USERNAME_FIELD_CLASS = 'vR'; var COMPOSE_FROM_EMAIL_CLASS = 'az2'; var PAGE_FROM_EMAIL_CLASS = 'msg';...
'use strict'; const { normalize, dirname, join, relative, resolve } = require('path'); const { readFile, writeFile, ensureDir, remove, readJSON, writeJSON } = require('fs-extra'); const logSymbols = require('log-symbols'); const fg = require('fast-glob'); const postcss = require('postcss'); const { react } = require('...
// ************ Big Feature related ************ function respecBuyables(layer) { if (!layers[layer].buyables) return if (!layers[layer].buyables.respec) return if (!player[layer].noRespecConfirm && !confirm(tmp[layer].buyables.respecMessage || "Are you sure you want to respec? This will force you to do a \"" + (tm...
import $ from '../../core/renderer'; import eventsEngine from '../../events/core/events_engine'; import typeUtils from '../../core/utils/type'; import { getPublicElement } from '../../core/utils/dom'; import registerComponent from '../../core/component_registrator'; import { extend } from '../../core/utils/extend'; imp...
/* sligkgrid-es6は含まれるslickgridのバージョンが古いため、autocolumnsizewidthが使えず。。オリジナルで代替。 import { Data, Grid, Editors, Formatters } from 'slickgrid-es6'; import './slickgrid-src.scss'; import $ from 'jquery'; */ const Data = Slick.Data; const Grid = Slick.Grid; const GridAutosizeColsMode = Slick.GridAutosizeColsMode; const kouMa...
// drum kit objects that hold links to reference to mp3 files const allTheKits = { breakbeat8Drums: [ { name: "kick", src: "https://tonejs.github.io/audio/drum-samples/breakbeat8/kick.mp3" }, { name: "snare", src: "https://tonejs.github.io/audio/drum-samples/breakbeat8/snare.mp3" }, { name:...
/* Copyright (c) Business Objects 2006. All rights reserved. */ var L_bobj_crv_MainReport = "Main Report"; // Viewer Toolbar tooltips var L_bobj_crv_FirstPage = "Go to First Page"; var L_bobj_crv_PrevPage = "Go to Previous Page"; var L_bobj_crv_NextPage = "Go to Next Page"; var L_bobj_crv_LastPage = "Go to Last...
'use strict'; const path = require('path'); const fs = require('fs'); const chai = require('chai'); const expect = chai.expect; const EJSON = require('mongodb-extjson'); const TestRunnerContext = require('./context').TestRunnerContext; const resolveConnectionString = require('./utils').resolveConnectionString; chai.u...
import { useRouter } from 'next/router' import React, { useState, useEffect, useCallback } from 'react' import { Typography } from '@material-ui/core' import Head from 'next/head' import Cookie from 'js-cookie' import { EditorState, convertFromRaw, convertToRaw, RichUtils, getDefaultKeyBinding, Modifier } from 'dra...
console.log("canvas script loading..."); if (window.jQuery) console.log("jQuery loaded."); else error("jQuery has not loaded"); /////////////////////////////////////////////////////////////////////////////////////////////////// ///// Initiation //////////////////////////////////////////////////////////////////////////...
import React, { useEffect, useState, useRef, useCallback } from "react"; import { ReactDOM } from "react"; import Three from "three" import MetaTags from "react-meta-tags"; import PropTypes from "prop-types"; import { Link } from "react-router-dom"; import { isEmpty, map } from "lodash"; import moment from "moment"; im...
/** * @version 0.53 * @author yura */ import React, { PureComponent } from 'react' import { Platform, View, Text, ScrollView, TouchableOpacity } from 'react-native' import { connect } from 'react-redux' import { strings } from '@app/services/i18n' import NavStore from '@app/components/navigation/...
/** * 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...
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } f...
/* eslint-disable array-callback-return */ /* eslint-disable class-methods-use-this */ /* eslint-disable react/react-in-jsx-scope */ /* eslint-disable react/sort-comp */ /* eslint-disable no-nested-ternary */ import { Icon, Layout, notification } from 'antd'; import classNames from 'classnames'; import { connect } from...
import preact from 'preact'; import { IntlProvider, MarkupText } from 'preact-i18n'; import t, { t_r } from '../Utility/i18n'; import Request from '../DataType/Request'; import { defaultFields, trackingFields, REQUEST_ARTICLES, initializeFields, fetchTemplate } from '../Utility/requests'; import RequestLetter from '../...
// ----------------------------------- var fs = require('fs'); var url = require('url'); var STATIC = require('node-static'); // ----------------------------------- var d = function(vari) { console.log(require('util').inspect(vari, {colors: true, depth: 7})); }; var dd = function(vari) { console.log(require('util').i...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /* global window */ const lib_1 = require("./lib"); const Client_1 = require("./Client"); const settings_1 = require("./settings"); exports.KEY = settings_1.SMART_KEY; const debug = lib_1.debug.extend("oauth2"); function isBrowser() { ...
const Path = require('path'); const Context = require('liquid-node/lib/liquid/context'); const Drop = require('liquid-node/lib/liquid/drop'); const Cheerio = require('cheerio'); const { readHTML, writeFile, lookup } = require('./support'); const MapList = require('./map-list'); const HTMLExt = '.html'; const Ma...
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** ...
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 (b.hasOwnProperty(p)) d[p] =...
const isAndroid = Ti.Platform.osname === 'android'; const isIOS = !isAndroid && (Ti.Platform.osname === 'iphone' || Ti.Platform.osname === 'ipad'); const PosixConstants = { UV_UDP_REUSEADDR: 4, dlopen: {}, errno: { E2BIG: 7, EACCES: 13, EADDRINUSE: 48, EADDRNOTAVAIL: 49, EAFNOSUPPORT: 47, EAGAIN: 35, ...
const MSG_NOTIFY = { TYPE: 'notify' }; const MSG_ALERT = { TYPE: 'alert' }; const ALLOW = ['/api/dependencies/', '/api/pages/preview/', '/api/upload/', '/api/nav/', '/api/files/', '/stats/', '/live/', '/api/widgets/']; const SYSUSER = {}; var DDOS = {}; var WS = null; global.ADMIN = {}; global.ADMIN.notify = function...
/* ,o888888o. 8 888888888o. ,8. ,8. `8.`8888. ,8' 8888 `88. 8 8888 `88. ,888. ,888. `8.`8888. ,8' ,8 8888 `8. 8 8888 `88 .`8888. .`8888. `8.`8888. ,8' 88 8888 8 8888 ,88 ,8.`8888. ,8.`8888. ...
const Discord = require("discord.js") const client = new Discord.Client(); const fs = require('fs'); const db = require('quick.db'); const moment = require('moment') require('moment-duration-format') const commands = client.commands = new Discord.Collection(); const aliases = client.aliases = new Discord.Collect...
const log = require("@ui5/logger").getLogger("builder:processors:versionInfoGenerator"); const resourceFactory = require("@ui5/fs").resourceFactory; const posixPath = require("path").posix; function pad(v) { return String(v).padStart(2, "0"); } function getTimestamp() { const date = new Date(); const year = date.ge...
var data = {}; var desc; var country = [], checker = true; var labels = [], ethiopia = [], malawi = [], niger = [], nNigeria = [], sNigeria = [], tanzania = [], uganda = [], originY = [], endY = [], names = [], gapNum = [], countryBools = [], summary = [], gaps = []; lines = []; /*-------...
/* * * Wijmo Library 3.20141.34 * http://wijmo.com/ * * Copyright(c) GrapeCity, Inc. All rights reserved. * * Licensed under the Wijmo Commercial License. Also available under the GNU GPL Version 3 license. * <EMAIL> * http://wijmo.com/widgets/license/ * */ var __extends = this.__extends || fun...
var SaikuTableRenderer = _.extend(SaikuRenderer, { key: "table" }); SaikuTableRenderer.prototype._render = function(data, options) { var self = this; if (data) { this._data = data; } if (options) { this._options = _.extend({}, SaikuRendererOptions, options); } if (typeof ...
const GodjiGamePreSaleStep = artifacts.require("GodjiGamePreSaleStep"); const ERC20 = artifacts.require("GGTToken"); const Oracle = artifacts.require("BinanceOracleImpl"); import { expectRevert, time, ether } from "@openzeppelin/test-helpers"; const BN = web3.utils.BN; require('chai') .use(require('chai-as-promi...
/// <reference path="../types.d.ts"/> // @ts-check 'use strict'; const path = require('path'); const childProc = require('child_process'); const os = require('os'); const fse = require('fs-extra'); /** * Normalizes and forces a filepath to the forward slash variant * Example: \dir\file.txt will become /dir/file.txt *...
"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"; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defi...
function CGame(oData){ var _bUpdate = false; var _bRebetActive; var _iTimeElaps; var _iMaxBet; var _iState; var _iCardIndexToDeal; var _iPlayerValueCard; var _iDealerValueCard; var _iGameCash; var _iAdsCounter; var _aCardsDealing; var _aCardsInCurHandForDealer; v...
var test = require('tap').test var Version = require('core/version') var ECLevel = require('core/error-correction-level') var Mode = require('core/mode') var NumericData = require('core/numeric-data') var AlphanumericData = require('core/alphanumeric-data') var KanjiData = require('core/kanji-data') var ByteData = requ...
import XInput from '../XInput'; import Callout from '../Callout'; import XTextArea from '../XTextArea'; import XButton from '../XButton'; import Loader from 'react-loader-spinner'; import { Label } from '../Common'; import { CopyToClipboard } from 'react-copy-to-clipboard'; import React, { Component, useState, useEffec...
import React, { PureComponent as Component } from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import PropTypes from 'prop-types'; import { fetchInterfaceColList, fetchInterfaceCaseList, setColData, fetchCaseList, fetchCaseData } from '../../../../reduce...
// Class prototype var orangeColor = "#ffa500"; var re = new RegExp("[A-Z]+:[0-9A-F]+:[0-9A-F]+:[0-9A-F]+:[0-9A-F]+"); var lazyRe = new RegExp("[0-9A-F]+:[0-9A-F]+:[0-9A-F]+:[0-9A-F]+"); var uberLazyRe = new RegExp("[0-9A-F]+:[0-9A-F]+:[0-9A-F]+"); var lolExtremeLazyRe = new RegExp("[0-9A-F]+ [0-9A-F]+ [0-9A-F]+...
'use strict'; exports.__esModule = true; var _desc, _value, _obj; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return targ...
/** * This work is based on original code developed and copyrighted by TNO 2020. * Subsequent contributions are licensed to you by the developers of such code and are * made available to the Project under one or several contributor license agreements. * * This work is licensed to you under the Apache License, ...
var mood = { "0": { "icon": "angel", "name": "天使", "score": "100", "message": "是开心的一天", "color":"linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%)" }, "1": { "icon": "angry", "name": "生气", "score": "33", "message": "今天好生气!", "color":"linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%)" }, "2": { ...
// ,:. // (:::) Script // `-' // Generated by GuavaScript (guavac) v0.1 // Last modified: 5/28/2016, 5:01:55 AM var c = $("#main-canvas")[0], cg = c.getContext("2d"); var sidebarWidth = $("#main-sidebar").outerWidth(); var DEBUG = true; var PRIMARY_BUTTON = 0, SCROLL_BUTTON = 1, SCROLL_MODIFIER = "alt", DELETE_MOD...
'use strict'; // --------------------------------------------------------------------------- const ccxt = require ('ccxt'); const { ExchangeError, InvalidNonce } = require ('ccxt/js/base/errors'); const { ArrayCache, ArrayCacheByTimestamp } = require ('./base/Cache'); // -------------------------------------------...
/*Подключаем после инициализации таблицы модуля jqGrid */ // перегружаем родной метод бибилиотеки jqGrid ( setFrozenColumns ). Родной вычисляет неверно высоту замороженных столбцов $.jgrid.extend({ setFrozenColumns : function () { return this.each(function() { if ( !this.grid ) {return;} var $t = this, cm = ...
#!/usr/bin/env node var root_dir = process.env.PWD; var fs = require("fs"); var multiline = require('multiline'); var gitignore = multiline(function(){/* # Logs logs *.log # Runtime data pids *.pid *.seed # Directory for instrumented libs generated by jscoverage/JSCover lib-cov # Coverage directory used by tools l...
import * as React from "react"; import { findDOMNode } from "react-dom"; import * as PropTypes from "prop-types"; import BaseComponent from "../BaseComponent"; import { GlyphButton, OverlayTrigger } from "../components"; import Context from "../../Context"; import { getUiOptions, getInnerUiSchema, formatErrorMessage, f...
/** * @author Jrainlau * @desc 节点处理器,处理AST当中的节点 */ const Signal = require('../signal') const { MemberValue } = require('../value') const NodeHandler = { Program (nodeIterator) { for (const node of nodeIterator.node.body) { nodeIterator.traverse(node) } }, VariableDeclaration (nodeIterator) { ...
const pathModule = require('path'); const Promise = require('bluebird'); const urlTools = require('urltools'); const estraverse = require('estraverse-fb'); const readPkgUp = require('read-pkg-up'); module.exports = (queryObj, { configPath } = {}) => { return async function bundleWebpack(assetGraph) { let webpack...
//@flow import { keyCode, helpers } from 'utils'; import GlobalEventService from '../../services/GlobalEventService'; /* Public interface: This view produce: trigger: positionChanged (sender, { oldPosition, position }) trigger: viewportHeightChanged (sender, { oldViewportHeight, viewportHeight...
// Partie Vue ----------------------------------------------------------------- // On commence par creer des "composants" qu'on va utiliser un peu partout // Là on donne le nom du composant (comme un span, div, h3, etc) Vue.component('boite', { // Les paramètres sont là props: ['couleur', 'valeur', 'icone', ...
/* * 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 applicab...
/*jslint devel:true, browser: true*/ /*global Promise: true*/ 'use strict'; var _; var Parser = { getRGB: function (canvas, url) { var img = new Image(); var context = canvas.getContext('2d'); var result = new Promise(function (resolve) { img.onload = function () { canvas.width = img.width...
"use strict" var test = require('tape'); var mobx = require('..'); var observable = mobx.observable; var iterall = require('iterall'); function buffer() { var b = []; var res = function(newValue) { b.push(newValue); }; res.toArray = function() { return b; } return res; } test('...
/* eslint-disable indent */ const fs = require('fs') const path = require('path') const webpack = require('webpack') const resolve = require('resolve') const PnpWebpackPlugin = require('pnp-webpack-plugin') const HtmlWebpackPlugin = require('html-webpack-plugin') const CaseSensitivePathsPlugin = require('case-sensitive...
'use strict'; let path = require('path'); let fs = require('fs'); /** * Système d'EXP pour Pokémon Showdown */ const DEFAULT_AMOUNT = 0; let DOUBLE_XP = false; const minLevelExp = 15; const multiply = 1.9; function isExp(exp) { let numExp = Number(exp); if (isNaN(exp)) return "Must be ...
/* ==[ Players.js ]=========================================================================================== PLAYERS / LINKS EMBEDDERS youtube, vimeo, mp3, vocaroo embedding players ==============================================================...
//contaminants TEXT, pestsMonthly TEXT, fences TEXT, lamps TEXT, weatherStation TEXT, pipes TEXT, pumps TEXT, checkedBy NUMERIC, receivedBy NUMERIC, timestamp NUMERIC, gps TEXT, averagePoblation NUMERIC, averageAgencies NUMERIC function pestsViewModel(information, record, pests, diseases, bushes) { var self = this; ...
NEWSCHEMA('Product').make(function(schema) { schema.define('id', 'String(20)'); schema.define('pictures', '[String]'); schema.define('reference', 'String(20)'); schema.define('category', 'String(300)', true); schema.define('manufacturer', 'String(50)'); schema.define('name', 'String(50)', true); schema.define('p...
// 大写为常量, 不应修改 const pcr = new Object; window.pcr = pcr; // root pcr.MAX_FIND_DEEP = 4; pcr.MODE_GAME = 'gameMode'; pcr.MODE_MARK = 'markMode'; pcr.MODE_TARGET = 'targetMode'; pcr.clickHistory = new Set(JSON.parse(localStorage.getItem("clickedHistory") || '[]')); // 已点击集合 pcr.mode = pcr.MODE_GAME; pcr.showName = true; ...
/* * Copyright 2017 Palantir Technologies, 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 req...
"use strict"; var fs = require("fs"); var kb = require("keyboardjs"); var lz = require("lz-string"); var $ = require("jquery"); var Renderer = require("./renderer"); var View = require("./view"); var System = require("./system"); var xyz = require("./xyz"); var samples = require("./samples"); var elements = require("...
var cwd = process.cwd(); var userManager = require(cwd + '/app/script/user'); var utils = require(cwd + '/app/script/utils'); var moveStat = require(cwd + '/app/script/statistic').moveStat; var attackStat = require(cwd + '/app/script/statistic').attackStat; var areaStat = require(cwd + '/app/script/statistic').areaStat...
/** * Manage info for each node metadata property * @typedef InfoPropDefault * @property {String} key The identifier of the property. * @property {String} desc The description (label) to display. * @property {Boolean} capitalize Whether to capitialize every word in the desc. */ class InfoPropDefault { constru...
/** * @title Color TOJ Negation 5 * @description Experiment on negation in TVA instructions (dual-colored version, copy of experiment 3 (paper: 1b) with well-defined assertion/negation sequence lengths (formerly only random lengths) and fewer SOAs). * - Includes improvements: * - new declaration of consent, conform...
const getPresetIndex = title => presets.findIndex(preset => preset['title'] === title); const savePreset = (index) => { const invalidAlert = (title, msg) => createDialog({ parentId: 'angularapp', id: 'invalidPresetTitleDialog', title: title, removable: true, alert: { message: msg }, ...