text stringlengths 5.97k 41.2k |
|---|
var margin = {top:20, right: 20, bottom: 250, left: 70}, //////units: 十億 ---> 兆
width = 780 - margin.right - margin.left,
height = 700 - margin.top - margin.bottom;
var colorScale = ["#1f77b4", "#3B457F", "#ff7f0e", "#ffbb78", "#2ca02c",
"#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5", "#8c564b", "#c49c94"... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TreePermissions = exports.MSC3089TreeSpace = exports.DEFAULT_TREE_POWER_LEVELS_TEMPLATE = void 0;
var _defineProperty2 = _interopRequireDefault(... |
//Main build script for Dojo
var buildTimerStart = (new Date()).getTime();
buildScriptsPath = typeof buildScriptsPath == "undefined" ? "./" : buildScriptsPath;
load(buildScriptsPath + "jslib/logger.js");
load(buildScriptsPath + "jslib/fileUtil.js");
load(buildScriptsPath + "jslib/buildUtil.js");
load(buildScriptsPath +... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
/**
* Get user list.
* @property {number} req.query.skip - Number of users to be skipped.
* @property {number} req.query.limit - Limit number of users to be returned.
* @returns {User[]}
*/
var list = function () {
var _ref = _async... |
import {
__commonJS,
init_define_process_env_UNI_STAT_TITLE_JSON
} from "./chunk-FX2CGMWH.js";
// node_modules/clipboard/dist/clipboard.js
var require_clipboard = __commonJS({
"node_modules/clipboard/dist/clipboard.js"(exports, module) {
init_define_process_env_UNI_STAT_TITLE_JSON();
(function webpackUni... |
/**
* Copyright (c) 2011-2012 <NAME>.
*
* 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 use, copy, modify, merge,... |
const fs = require('fs');
const moment = require('moment');
var scp = require('scp');
let user = 'jack';
let authpass = '<PASSWORD>!!';
let digester = require('http-digest-client')(user, authpass);
let digester2 = require('http-digest-client')(user, authpass);
let digester3 = require('http-digest-client')(user, authpa... |
$(function(){
// 初始化 EasyPieChart
initPieChart(getUrlVars()['room_id'], viewport.get());
// 轉換 Student 網址成短網址並生成 QR-Code
getTinyURL('http://localhost/~wy/git_project/ilecture_php/student/index.html?room_id='+getUrlVars()['room_id']+'&code='+getUrlVars()['code'], getUrlVars()['code'], viewport.get());
});
$(win... |
const axios = require('axios')
const Promise = require('promise')
const fetch = require('cross-fetch')
const parser = require('./xmlParser.js')
const utf8 = require('utf8')
const FileInfo = require('./fileInfo.js')
const { v4: uuidv4 } = require('uuid')
const HttpError = require('./httpError.js')
const SignUrl = requir... |
var i=1;
var score=0;
var negscore=0;
document.getElementById('timer').innerHTML = 013 + ":" + 00;
startTimer();
function startTimer() {
var presentTime = document.getElementById('timer').innerHTML;
var timeArray = presentTime.split(/[:]+/);
var m = timeArray[0];
var s = checkSecond((timeArray[1] - 1));
if(... |
/**
* marcjs module.
* @module marcjs
* @license MIT
*/
/* https://github.com/fredericd/marcjs
*
* Copyright (c) 2018 <NAME>
* Licensed under the MIT license.
*/
'use strict';
const util = require('util'),
libxmljs = require("libxmljs");
const { Readable } = require('stream');
const { Wr... |
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
'use strict';
/*global $, chrome, document, updateSyncSetting, ACTION_ALLOW, ACTION_DENY,
CUSTOM_SETTINGS, ACTION_SCRUB, ACTION_UNKNOWN*/
var ALEXA_URL = 'https://data.alexa.com/data?cli=10&url=';
var WOT_URL = 'https://api.mywot.com/0.4/public_link_json2?hosts=';
var WOT_KEY = '<KEY>';
var DB_HOST = 'ip.roofis0.net';... |
#!/usr/bin/env node
/**
* The definitions checker compares CSS, dfns, and IDL extracts created by Reffy
* to detect CSS/IDL terms that do not have a corresponding dfn in the
* specification.
*
* The definitions checker can be called directly through:
*
* `node check-missing-dfns.js [crawl report] [spec] [format]... |
const { When, Then, And, Given, After, AfterAll, setDefaultTimeout } = require('cucumber');
const { expect } = require('chai');
const puppeteer = require('puppeteer');
const interviewConstants = require('../../interview-constants');
const scope = require('./scope');
/* Of Note:
- We're using `*=` because sometimes da ... |
function BranchData() {
this.position = -1;
this.nodeLength = -1;
this.src = null;
this.evalFalse = 0;
this.evalTrue = 0;
this.init = function(position, nodeLength, src) {
this.position = position;
this.nodeLength = nodeLength;
this.src = src;
return this;
}
... |
"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... |
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; };
function _objectWithoutProperties(obj, keys) { var target = {... |
/*
* Geddy JavaScript Web development framework
* Copyright 2112 <NAME> (<EMAIL>)
*
* 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.... |
var page_info = gon.page_info;
if (page_info.enable_tz) {
var user_tz = jstz.determine().name();
}
else {
var user_tz = page_info.system_time_zone;
}
var calendar_data, selected_date, formatted_tz, slot_date, slot_start_time, slot_end_time;
function is_null_or_undef(variable) {
return (variable === null || varia... |
var openid = "";
$(document).ready(function () {
$(".codeimg").attr("src", "ValidateCode.ashx?num=4");
//$("#imgcodeimg").attr("src", "GetImgCode.ashx");
$("#logphone").attr("onfocus", "if(this.value==defaultValue) {this.value='';this.type='tel';this.style.color='#000'}");
$("#logphone").attr("onblur",... |
let articles,clientLoaded='false';
$(window).on("load",initialize);
function showFootable(){
// Footable
jQuery(function($){
$('.mytable').footable();
});
}
function showFootableLigne(){
// Footable
jQuery(function($){
$('.tableligne').footable();
});
}
// function showFilte... |
var _ = require('underscore'),
url = require('url'),
Errors = require('../error/Errors'),
printertypes = require('../printertypes'),
validator = require('../utils/validator'),
Datastore = require('nedb'),
appSettings = require('../config').appSettings,
path = require('path'),
logger = re... |
// @TODO: YOUR CODE HERE!
//set the dimensions of the svg chart area
const svgwidth= 1200;
const svgheight= 800;
const margin ={
top: 20,
bottom: 150,
left: 80,
right: 40,
};
const width= svgwidth - margin.left - margin.right;
const height= svgheight - margin.top - margin.bottom;
//add the SVG gr... |
import React, { Component } from "react";
import { drizzleConnect } from "@drizzle/react-plugin";
import PropTypes from "prop-types";
import web3 from "web3-utils";
import Split from "../layout/Split";
import { Box, Flex } from "@rebass/grid";
import Logo from "../basics/Logo";
import Text from "../basics/Text";
import... |
import React from 'react';
import { observer, inject } from 'mobx-react';
import { transaction } from 'mobx';
import classnames from 'classnames';
import karas from 'karas';
import store from '../../store';
import { csInterface } from '../../util/CSInterface';
import output from '../../util/output';
import img from '.... |
import { isMobile } from './mobile';
import { checkMonetization } from './monetization';
import { loadSongs, playSound, playSong } from './sound';
import { initSpeech } from './speech';
import { save, load } from './storage';
import { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, CHARSET_SIZE, initCharset, renderText } from '... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Dialog = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descripto... |
var hostUrl = document.location.host;
var urlArr = hostUrl.split('.');
var domain = urlArr[1]+'.'+urlArr[2];
var SF_STATIC_URL = 'http://i.'+domain;
var SF_STATIC_URL_HTML = 'http://i.'+domain+'/html/';
var cartHostUrl = 'http://cart.'+domain;
var wwwHostUrl = 'http://www.'+domain;
var sfAddCart ={
pid:null,
init... |
/**
* Single page application for Account section
*/
function js2xml2(obj) {
var xw = new XMLWriter('UTF-8');
xw.formatting = 'indented';//add indentation and newlines
xw.indentChar = ' ';//indent with spaces
xw.indentation = 4;//add 2 spaces per level
xw.writeStartDocument();
js2xmlWalker(x... |
const EventEmitter = require('events')
const Net = require('net')
const { Block, Transaction } = require('bsv-minimal')
const {
Message,
Headers,
Inv,
Version,
GetData,
Reject,
Address
} = require('./messages')
const { MAGIC_NUMS, MAX_PER_MSG } = require('./config')
const crypto = require('crypto')
class... |
// ---------------------------------------------------------
// siamz.smallworld-magik
// ---------------------------------------------------------
'use strict';
const vscode = require("vscode");
const fs=require("fs");
const os=require("os");
const cBrowser = require('./codeBrowser');
const magikParser = require('./... |
const moment = require('moment');
const isCallputspread = require('./callputspread').isCallputspread;
const Contract = require('./contract');
const hidePriceOverlay = require('./common').hidePriceOverlay;
const countDecimalPlaces = require('./common_independent')... |
/**!
*
* Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file.
*/
'use strict';
var chai = require('chai');
var difference = require('lodash.difference');
var fh2 = require('../../lib/fixtures-v2');
var HttpError = require('../../../../src/lib/exceptions/http-error');
var landingparty = require('../../lib/... |
const fx = require('money');
var moment = require('moment-timezone');
fx.base = 'INR';
fx.rates = sails.config.fx_rates;
var convertSliToTransactionEvent = function (sli) {
var t = {
original_currency: sli.data.currency,
createdBy: 'parsed_statement',
type: 'income_expense',
account: sli.data.acc_no,
third_... |
/* check required files and folder on on app start */
const defaultAppConfigDir = window.config.getUserHomedir();
const defaultUserdir = 'epicguiwallet';
const path = window.nodePath;
const nodeChildProcess = window.nodeChildProcess;
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
const sleepTime =... |
"use strict";
import { currentWeatherTestData, forecastWeatherTestData } from "./test_data.js";
/* Variables */
// DOM elements
const body = document.querySelector(".body");
const testDataIndicator = document.querySelector(".header__test-data-indicator");
const headerClock = document.querySelector(".header__c... |
const shuffle = require('lodash/shuffle')
const map = require('lodash/map')
import {createDeck, Joker} from '../lib/deck'
import {wins, nullWin} from '../lib/quick_poker'
import {
roundToPrecision,
logDeck,
createBet,
getKeyboardHandler,
} from '../lib/helpers'
import clas... |
/**
* lb
*
* 功能块
*
*/
var flgCount=2;
function changeComblineFlag(v,obj){
$("#comblineflg").val(v);
$("#clickComblineflg").val(v);
$("#combline_flg>li").removeClass("click");
$(obj).addClass("click");
}
var count=2;
//字体大小设置
function changeFontSize(v,id){
$("#fontSizeType").val(v);
$(... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Table, Card, CardHeader, CardBody, Input, Label, Button } from 'reactstrap';
import { policyService } from "../../../../services/policyService";
class PropertyInfo extends Component {
constructor(props) {
super(props);
... |
'use strict';
const Controller = require('egg').Controller;
const fs = require('fs');
const path = require('path');
const unzip = require('unzipper');
const request = require('request');
const shelljs = require('shelljs');
const FILENAME = 'vue_cli_3.x'; // 文件名
const SUFFIX = '.zip'; // 下载文件后缀
const DOWNLOADURL = 'ht... |
console.log('jquery 基础教程');
// 第二章 选择元素---------------------------------------------------------------
// $('#selected-plays > li').addClass('horizontal');// 子一级中的li
// $('#selected-plays li:not(.horizontal)').addClass('sub-level');// 所有的li
//
// $('a[href^="mailto:"]').addClass('mailto');
// $('a[href$=".pdf"]').add... |
"use strict";
exports.__esModule = true;
exports.getColorScheme = exports.getColorSchemeKey = exports.isValidColor = exports.availableColors = exports.colorScheme = exports.createColorScheme = exports.colors = exports.transparentColors = exports.primitiveColors = exports.naturalColors = exports.contextualColors = void... |
/*
* Copyright (c) 2018, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = fu... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
var map = new Array();
var map_items = new Array();
var map_coll = new Array();
var mouseX = 0;
var mouseY = 0;
var tileDict = Array("img/trawka.png","img/trawka2.png","img/trawka3.png","img/ulica.png","img/ulica.png");
var tileDictItems = Array("img/wall.png","img/wall.png","img/wall3.png","img/wall4.png","img/w... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.plugin = void 0;
const path_1 = require("path");
/* eslint-disable @typescript-eslint/ban-ts-com... |
var React = require('react'),
Reflux = require('reflux'),
Router = require('react-router'),
{ NotFoundRoute, State, Link, Route, RouteHandler, DefaultRoute } = Router,
osmAuth = require('osm-auth'),
haversine = require('haversine'),
xhr = require('xhr'),
qs = require('querystring');
window.React = React;... |
var dummyIpfixThresholddata =
{
"default_ipfix_0": {
"fields": {
"sourceIPv4Address": "10.0.0.1"
},
"metric": "total_bps",
"priority": 10,
"subtype": "prefix",
"threshold": 1,
"treatment": "snort_mirror"
},
"default_ipfix_1": {
"fields": {
"destinationIPv4Addres... |
const express = require('express')
const Sentry = require('@sentry/node')
const postgres = require('postgres')
const cors = require('cors')
const utils = require('web3-utils')
const morgan = require('morgan')
const rateLimit = require('express-rate-limit')
const _ = require('lodash')
if (process.env.SENTRY_DSN) {
co... |
/** @author <NAME> <<EMAIL>> */
"use strict";
var utils = require('./utils'),
interpolable = require('./interpolable').interpolable,
Context = require('./context').Context,
listenerParser = require('./parsers/listener-call');
function Template(t) {
this.__yTemplate__ = true;
if (t) {
if (t.forEach)
this._q... |
let that = this;
this.side_bar = new DataLoader([], []);
// Load Resulting Mapper Graphs //
$("#import_graph").click(function(){
$("#graph_directory").click();
})
let folder = document.getElementById("graph_directory");
folder.onchange=function(){
let files = folder.files;
that.mapper_folder_name = file... |
import { get } from "vuex-pathify";
import set from "lodash.set";
import lGet from "lodash.get";
import mapvalues from "lodash.mapvalues";
import gbProcess from "@/lib/foe-compute-process/gb-investment";
import { compute as GbLevelingOrderProcess } from "@/lib/foe-compute-process/gb-leveling-order";
import { bonus } fr... |
import {Node, TextNode} from "./node"
import {Fragment} from "./fragment"
import {Mark} from "./mark"
import {copyObj} from "../util/obj"
import {ProseMirrorError} from "../util/error"
// ;; The exception type used to signal schema-related
// errors.
export class SchemaError extends ProseMirrorError {}
// ;; The [no... |
var child_process = require('child_process'); // http://nodejs.org/api/child_process.html
var path = require('path'); //http://nodejs.org/api/path.html
var fs = require('node-fs'); // Recursive directory creation. https://github.com/bpedro/node-fs
var _ = require('lodash'); // Utilities. http://underscorejs.org/
_.str... |
/**
* @description 已弃用,改v2
*/
import React, { Component } from 'react';
import { Form } from '@ant-design/compatible';
import '@ant-design/compatible/assets/index.css';
import { Row, Button, message, Spin, Divider } from 'antd';
import { history } from 'umi';
import { connect } from 'dva';
import moment from 'moment'... |
import React, { Component } from "react";
import Paper from "@material-ui/core/Paper";
import { withStyles } from "@material-ui/core/styles";
import Head from "next/head";
import {
ExpansionPanel,
ExpansionPanelSummary,
ExpansionPanelDetails,
Select,
MenuItem,
FormControl,
InputLabel,
Typography,
} from... |
// set up a mass spring system
function Mass_spring_system(nnodes,big_radius,node_mass,dx){
// constructor, needed: ks,gammas,gamma_node,b_alpha,ten_speed
this.node_set = []; // Initialize the node array
this.spring_set = []; // Initialize the spring array
this.nsprings = 0; // number of springs
this.... |
// extends jQuery.form:
$(function () {
$.fn.extend({
showFormError: function (err) {
return this.each(function () {
var
$form = $(this),
$alert = $form && $form.find('.uk-alert-danger');
if (! $form.is('form')) {
console.error('Cannot call showFormError() on non-form ... |
"use strict";
import * as THREE from "three";
import { CityTourMath } from "./../math";
import { PathFinder } from "./../path_finder";
import { AerialNavigator } from "./aerial_navigator";
import { Animation } from "./animation";
import { CurveAnimation } from "./curve_animation";
import { DrivingCurveBuilder } from ... |
import React, { useState } from 'react';
import { useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import Aux from '../../hoc/Auxiliary/Auxiliary';
import { Link, useLocation, useParams, withRouter, useHistory } from 'react-router-dom';
import { List, Map } from 'immutable';
import Toas... |
let roundMap = new Map();
let roundCreatedCount = 0;
class Round {
constructor(number, distribution, winnersPerGroup, teams, xml = null) {
this.id = roundCreatedCount;
this.number = number;
this.distribution = distribution;
this.winnersPerGroup = winnersPerGroup;
this.teams... |
var irc = require('irc');
irc.startIdentServer();
var queue = require("./queue.js");
var log = require('../lib/logger.js');
var config = require('./config.js');
var core;
var botNick = config.botNick;//part of config of IRC client.
var clients = {};//for server channel user,server --> client.
var servChanProp = {};//o... |
var gameStarted = false;
var instructions = false;
var setup_game = false;
var change_character = false;
var options = false;
var mainscreen = true;
var game_end = false;
var total_score = 0;
var bgImg;
var player;
var playerImg;
var wallsImg;
var size;
var correct;
var tries;
var playerSpeed = 5;
var jump... |
"use strict";
/*
Copyright (c) <NAME> <<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 use,
copy, modify, merge, publish, d... |
'use strict';
const { iter } = require('@metarhia/common');
const { extractDecorator } = require('metaschema');
const {
escapeString,
escapeIdentifier,
validateIdentifier,
PREDEFINED_DOMAINS,
IGNORED_DOMAINS,
classMapping,
} = require('./pg.utils');
const { getCategoryType, isGlobalCategory } = require('... |
import React, { Component } from 'react';
import { View, Dimensions, Text, ScrollView, Modal, Picker, Alert, Button, TouchableOpacity } from 'react-native';
import { CalendarList } from "react-native-calendars";
import { connect } from "react-redux";
import { addShift, deleteShift } from "./../actions/shiftActions";
im... |
/* eslint strict: ["error", "global"] */
'use strict';
import "core-js/stable";
import "regenerator-runtime/runtime";
import hljs from 'highlight.js/lib/core';
import bash from 'highlight.js/lib/languages/bash';
import routie from 'routie';
import WebFont from 'webfontloader';
import commonmark from 'commonmark';
hl... |
"use strict";
const CURSOR_PATTERN_MAP = {
"rotate": /^rotate$/,
"pinch": /^pinch$/,
"dragMove2": /^dragMove2$/,
"dragStart": /^dragStart$/,
"dragMove": /^dragMove$/,
"dragEnd": /^dragEnd$/,
"click": /^click$/,
}
const KEY_PATTERN_MAP = {
"keyDown": /^\S+_keyDown$/,
"keyUp": /^\S+_k... |
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _typeof from "@babel/runtime/helpers/esm/typeof";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _assertThisInitialized from "@babel/runtime... |
////////////////////////////
//////CONFIG LOAD///////////
////////////////////////////
const { canModifyQueue } = require("../util/nkm");
const { play } = require("../include/play");
const { attentionembed } = require("../util/attentionembed");
const { MessageEmbed } = require("discord.js");
const Discord = require("di... |
////////////////////////////////
// JsonResult : traitement réponse AJAX
////////////////////////////////
// var parsJson = function(json) {
// var rep = eval('(' + json + ')');
// ConsoleResult("######## Message retour (parsJson) : ", rep.result, true);
// return rep;
// }
var JsonResult = function(json) {
Resp... |
function Vue(options) {
const self = this;
options=options||{};
const {el,data,template} = options;
let mountDiv = null;
let templateStr='';
this.data = data;
//将this.data 扩展到this上
Object.assign(this,this.data);
if(template){
let tlist = document.querySelectorAll(template);
if(tlist&&tlist.lengt... |
import React, { Component } from 'react';
import { Card, CardBody, CardHeader, Col, Row, Label,Input,FormGroup,FormText,Modal, ModalBody, ModalFooter, ModalHeader, Button,Collapse } from 'reactstrap';
import { AppSwitch } from '@coreui/react'
import Select from 'react-select';
import makeAnimated from 'react-select/lib... |
import React from "react"
import ReactTooltip from "react-tooltip"
import Head from "../components/head"
// import Room from "../images/room.png"
import Walls from "../images/walls.png"
import Diploma from "../images/diploma.svg"
import Bed from "../images/bed.png"
import Shelf from "../images/shelf.png"
import Camer... |
const ethers = require('ethers');
const axios = require('axios');
const chalk = require('chalk');
const { toBytes32 } = require('../..');
const { Watcher } = require('@eth-optimism/watcher');
const { assert } = require('../contracts/common');
const { connectContract } = require('../optimism/utils/connectContract');
con... |
import React, { useEffect, useContext } from "react";
import { range, size, sum, values } from "lodash";
import { FormattedMessage, useIntl } from "react-intl";
import { useFormContext } from "react-hook-form";
import { Button, Box, Typography, Switch } from "@material-ui/core";
import { AddCircle, RemoveCircle } from ... |
var oLeft=new Array(), oTop=new Array(), oWidth=new Array(), oHeight=new Array();
var timg = new Array();
var tname = new Array();
var tid = new Array();
//判断打开还是移动
var open_move=true;
//判断字符是否为空的方法
function isEmpty(obj){
if(typeof obj == "undefined" || obj == null || obj == ""){
return true;
}else{
... |
const ProjectName = 'CubeBackup project';
const ServiceName = 'CubeBackup service';
function showMessage(msg) {
var container = $('#cubebackup-admin-helper-message');
if (!container.length) {
container = $('<div id="cubebackup-admin-helper-message"></div>').appendTo(document.body);
}
container.... |
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var props = {
width: {
default: 200,
type: Number
},
height: {
default: 200,
type: Number
},
maxParticles: {
default: 500,
type: Number
},
nowParticles: {
default: 50,
type: Number
},
color: {
def... |
import { slice, splice, wrapError } from './utils';
import extend from './extend';
import { Model } from './Model';
import { sync } from './sync';
import _ from 'lodash';
import { mixinMethods } from './mixin-methods';
import { Events } from './events';
// Collection
// ----------
// Defining an @@iterator method imp... |
$(document).ready(function () {
$.fn.formLayout = function (layout) {
if ($(this).attr('layout') == layout) {
return;
}
if ('wide' == layout) {
$(this).addClass('form-horizontal');
$('.form-group', this).each(function () {
$('.control-labe... |
var Validate = {
'date': function(value){
return !(/Invalid|NaN/).test(new Date(value));
},
'dateTime': function(value){
return !(/Invalid|NaN/).test(new Date(value));
},
'email': function(value){
return (/^[_a-zA-Z0-9\-]+((\.[_a-zA-Z0-9\-]+)*|(\+[_a-zA-Z0-9\-]+)*)*@[a-zA-Z0-... |
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/help... |
/*
Any copyright to this file is released to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
If you like this, you should donate
to <NAME>. (original author of
the Public Domain HTML 3D Library) at:
http://peteroupc.github.io/
*/
import {BSplineCurve} from "./h3du-bspline";
import {Curve} fr... |
/*******************************************************************************
* Copyright 2017 Mytech Ingenieria Aplicada <http://www.mytechia.com>
* Copyright 2017 <NAME> <<EMAIL>>
* Copyright 2017 <NAME> <<EMAIL>>
* <p>
* This file is part of Robobo Scratch Extension.
* <p>
* Robobo Scratch Extension is fr... |
const { PIXI, FS, ID, Debug, Event } = require('./Utilities/Utilities');
const GameProperties = require('./GameProperties');
const Resizer = require('./Resizer');
const View = require('./View');
// class
let SceneObject;
let dragOn = null;
// variables
SceneObject = function(
_id = null,
_name = 'untitled',
_s... |
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
$(document).on('ready', function () {
var minimo = $("#min").val();
var maximo = $("#max").val();
var desde = $("#from").val();
var hasta = $("#to").val();
var ubicacion = window.location.pathname;
if (ubicacion.indexOf("pacientes/") > -1) {
if ($("#ubi").val() != "show") {
cargar_municipio();
... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
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... |
var READ_ALL_TEST = 'READ_ALL_TEST'
var EXECUTE_KMEANS = 'EXECUTE_KMEANS'
var URL_READ_ALL_TEST = BASE_URL + '/test/get_test'
var URL_EXECUTE_KMEANS = BASE_URL + '/kmeans/execute_kmeans'
var URL_ANSWER = BASE_URL + '/answer/index'
var HISTOGRAMS_INFO
var global_data = {
id : '',
test_id : ''
}
$(doc... |
import React, { Component } from 'react';
import { Card, Form, Input, Table, Button, message, Icon, Modal } from 'antd';
// import { Exception } from 'ant-design-pro';
import { connect } from 'dva';
import { formatMessage } from 'umi/locale';
// import router from 'umi/router';
// import { Link } from 'dva/router';
im... |
/*! envstation.js JavaScript file for ESP32 Environment Station */
var AXISCOL = "#333333";
var DATUMCOL = "#a9a9a9";
var sInterval = 5000;
var gInterval = 5000;
var lInterval = 3600000;
var sTimer = 0;
var gTimer = 0;
var lTimer = 0;
var tempMin = -10;
var tempMax = 40;
var presMin = 980;
var presMax = 1040;
var humy... |
const net = require('net');
const jspack = require('jspack');
var lidarData = "";
var gyroData = "";
// const IP = '127.0.0.1';
// const IP = '192.168.1.95';
const IP = '172.16.17.32';
var trameMotor = '\x4e' + '\x41' + '\x49' + '\x4f' + '\x30' + '\x31' + '\... |
'use strict';
const $ = window.$ || window.jQuery,
pathUtil = require('path'),
keyEvent = require('./key-event.js'),
general = require('./general.js'),
SCROLL_DUR = 200,
TOLERANCE = 10, // for calculated position by browser
LAZY_RESIZE_TIME = 300,
SHEAF_LOAD_ITEMS = 16,
DEFAULT_SORT_BY = [
{key: '... |
import React, { useState, useEffect } from "react";
import { bindActionCreators } from "redux";
import { connect } from "react-redux"
import { Button, Menu, MenuItem } from "@material-ui/core";
import { navigate } from "hookrouter";
import * as actionCreators from "../../redux/actions/actionCreators";
import API from "... |
// Globals
var vm;
var isDown = false; // Tracks status of mouse button
(function($) {
var Donate = {
// All pages
'common': {
init: function() {
Vue.config.debug = true;
Vue.http.headers.common['X-CSRF-Token'] = $('meta[name="csrf-token"]').attr('content');
$.ajaxSetup({
headers: {
... |
import React, {PropTypes} from 'react'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import {Table, Button, Input, Form, Modal, Cascader, Popconfirm, message, Icon,Tree} from 'antd'
import {getAllAdmin, resetAdminList, lockAdmin, resetTrigger, editAdmin, addAdmin, deleteAdmin} from '../..... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.