text
stringlengths
3.07k
16k
$(document).ready(function(){ online(); seleccionar(); }); //cuando se selecciona un registro, de esta manera se llenan los campos del modal function click_registro(registro){ //en la tabla, esta el registro en formato JSON reemplazando las " por @& para poder ponerlo en un //solo parametro, al recibir...
const data = require('./data'); function getSpeciesByIds(...ids) { const species = ids.map((id) => (data.species.find((speciesId) => speciesId.id === id))); return species; } function getAnimalsOlderThan(animal, age) { const animals = data.species.find((species) => species.name === animal); return animals.res...
import { chromium } from "playwright"; import _ from "lodash"; import dayjs from "dayjs"; const BASE_URL = "https://www.humblebundle.com"; const BUNDLES_URL = `${BASE_URL}/bundles`; function toTitleCase(str) { return str.replace(/\w\S*/g, function (txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLow...
const bgfx = require('../../lib/index.js'); const SDL = require('sdl2'); const path = require('path'); const { mat4, vec3 } = require('gl-matrix'); const s_cubePosition = [ [-1.0, 1.0, 1.0], [1.0, 1.0, 1.0], [-1.0, -1.0, 1.0], [1.0, -1.0, 1.0], [-1.0, 1.0, -1.0], [1.0, 1.0, -1.0], [-1.0, -1.0, -1.0], [...
/*! * * Copyright (c) 2016 <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, publish,...
import React, {Fragment, useContext, useEffect, useState} from 'react' import { Link } from 'react-router-dom' import { Row, Col, ListGroup } from 'react-bootstrap'; import CategoryBoxItem from './CategoryBoxItem' import BookmarkContext from '../../context/bookmark/bookmarkContext' import AuthContext from '../../contex...
// This is the java-script file with client logic specific for GP Profiles var gpProfileData = []; function updatePracticeInfo(parent, practiceCode) { var practiceData = gpProfileData[practiceCode]; if (parent != '') { parent = '#' + parent + ' '; } updateAgeDistribution(parent, practiceData)...
const puppeteer = require('puppeteer'); const moment = require('moment'); const admin = require('firebase-admin'); const serviceAccount = require('../checkout-app-uk-firebase-adminsdk-2zjvs-54e313e107.json'); const { send } = require('../utils/email-service'); const db = admin .initializeApp( { credential:...
import { computable } from "./computable"; import { Format } from "../util/Format"; import { Binding } from "./Binding"; import { quoteStr } from "../util/quote"; import { isDigit } from "../util/isDigit"; import { isFunction } from "../util/isFunction"; /* Helper usage example Expression.registerHelper('_', _...
/* eslint-disable max-len,react/prop-types */ import React from 'react'; import PropTypes from 'prop-types'; import {CircularProgress} from '@material-ui/core'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import T...
'use strict'; require('es6-shim'); var zmq = require('zeromq'); var Readable = require('readable-stream').Readable; var debug = require('debug')('pigato:Client'); var uuid = require('node-uuid'); var util = require('util'); var events = require('events'); var _ = require('lodash'); var MDP = require('./mdp'); var put...
// # item-index-test.js 'use strict'; const { expect } = require('chai'); const path = require('path'); const fs = require('fs'); const { DBPF } = require('sc4'); const FileType = require('../lib/file-types.js'); const { hex } = require('../lib/util.js'); const ItemIndex = require('../lib/item-index.js'); describe('An...
import React, { useState, useEffect } from "react"; import { StyleSheet, View, TextInput, TouchableWithoutFeedback, KeyboardAvoidingView, Platform, Keyboard, Image, ImageBackground, TouchableOpacity, Text, Alert } from "react-native"; import * as ImagePicker from "expo-image-picker"; import * as...
class Zcl extends Eventable { constructor(params) { super(); this.timing = { //初始化开始的时间 inittime : this._getTime, //第一帧开始的时间 firstframetime : null, //当前秒数 framesecond: Math.trunc(this._getTime / 1000), //帧开始的毫秒数 framestartmillisecond : 0, //帧结束的毫秒数 ...
/** * @license * [BSD-3-Clause](https://github.com/pryv/pryv-boiler/blob/master/LICENSE) */ const util = require('util'); const winston = require('winston'); require('winston-daily-rotate-file'); const debugModule = require('debug'); let winstonInstance = null; let rootLogger = null; // ------ winston formating /*...
/** @file Email Authentication handler. */ import crypto from "crypto"; import fileSystem from "fs"; import path from "path"; import { fileURLToPath } from "url"; import dotenv from "dotenv"; import mongoose from "mongoose"; import mustache from "mustache"; import mailjet from "node-mailjet"; import retronid from "re...
const dataTable = document.getElementById("dataShowerBody"); const loadingDiv = document.getElementById("loading"); const professorSelect = document.getElementById("professor"); const sortSelect = document.getElementById("sort-select"); const flexCheck = document.getElementById("flexCheck"); const countProfessor = docu...
/** * Oasis bookstore site * * Search page * * @Author <NAME> * GitHub : https://github.com/Syarol */ /** * Imports */ import Cart from './cart.js'; import GoogleMap from './googleMap.js'; import ServerInteract from './ServerInteraction.js'; import RenderElements from './RenderElements.js'; import Pagination...
import React from "react"; import Container from "../../../container"; import TextCenterLayout from "../../../partials/heading-center"; import TopImageBox from "../../../../components/top-image-box"; import {color} from "../../../../components/styles/colors"; import styled from "styled-components"; import GreenOval fro...
require([ "sbt/lang", "sbt/dom", "sbt/json", "sbt/connections/ProfileConstants", "sbt/base/BaseService", "sbt/base/BaseEntity", "sbt/base/XmlDataHandler" ], function(lang,dom,json,consts,BaseService,BaseEntity,XmlDataHandler) { var domNode = dom.byId("ProfileEntry"); var ProfileEntry = d...
const path = require("path"); const { app, BrowserWindow, ipcMain, dialog } = require("electron"); const Store = require("./store"); const Rpc = require("./rpc"); const Igniter = require("./igniter"); const Logger = require("./logger"); const { name: productCode, productName } = require("../../package.json"); const is...
'use strict' var container = document.getElementById('container'); var scene = new THREE.Scene(); var camera = new THREE.PerspectiveCamera(60, window.innerWidth / window.innerHeight, 1, 10000); camera.position.set(0, 0, 500); var renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true }); renderer.setSize(...
//压缩指定目录下的js文件,或指定目录输出,或指定目录不压缩,或指定压缩配置项目(可控) let babel = require('@babel/core'); var fs = require('fs'), path = require('path'), Uglify = require('uglify-es'), colors = require('colors'), async = require('async'); var Compress = function(directory,opts){ this.filesize = { total : 0,//原大小 compress : 0//处理后...
/** * DevExtreme (esm/ui/dialog.js) * Version: 21.2.5 * Build date: Mon Jan 17 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { getHeight, getWidth } from "../core/utils/size";...
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Form, Button, Select, Input, Modal, Radio } from 'antd'; import styles from './RecordedBroadcast.less'; import addIcon from '@/assets/add.png'; import RecourcePanel from '@/components/Teacher/RecourcePanel' const RadioGr...
import {Component} from 'react'; import {InputGroup, FormControl, Pagination, Icon, Message, Col, Modal, Button} from 'tinper-bee'; import LoadingTable from 'components/loading-table'; import {getCaseList} from 'serves/appTile'; import Checkbox from 'rc-checkbox'; import 'rc-checkbox/assets/index.css'; import './index...
#!/usr/bin/env node const fs = require('fs') const _ = require('lodash') const jsonxml = require('jsontoxml') const format = require('xml-formatter') const marked = require('marked') const he = require('he') const Viz = require('viz.js') const { Module, render } = require('viz.js/full.render.js') const fetch = require...
'use babel' const readline = require('readline') const fs = require('fs') const _ = require('lodash') const shell = require('shelljs') const path = require('path') export default { parseDMP(file,config) { const stream = fs.createReadStream(file) const rl = readline.createInterface({ input: stream, ...
/** * @file * @author huangzongzhe zhouminghui * 233333 * TODO: Vote && Resource To migrate out of Application */ import React, { Component } from 'react'; import { message } from 'antd'; import { connect } from 'react-redux'; import AElfBridge from 'aelf-bridge'; import config, { DEFAUTRPCSERVER, } from '@co...
'use strict'; var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = ...
import { getCommonCard, getBreak, getCommonContainer, getCommonHeader, getLabel } from "egov-ui-framework/ui-config/screens/specs/utils"; import { getQueryArg } from "egov-ui-framework/ui-utils/commons"; import { prepareFinalObject, handleScreenConfigurationFieldChange as handleField, toggleSnackbar }...
import _ from 'lodash'; class DbmlExporter { constructor (schema = {}) { this.schema = schema; } static hasWhiteSpace (str) { return /\s/g.test(str); } static isExpression (str) { return /\s*(\*|\+|-|\([A-Za-z0-9_]+\)|\(\))/g.test(str); } exportEnums () { const enumStrs = this.schema.e...
import React, { useEffect, useRef, useState, useCallback } from 'react'; import PropTypes from 'prop-types'; import { createPortal } from 'react-dom'; import { ESCAPE_KEY, TAB_KEY } from '../../libs/constants'; import { disableBodyScroll, enableBodyScroll, clearAllBodyScrollLocks, } from '../../libs/scrollC...
import exercise from "exercise"; import * as messaging from "messaging"; import { logInfo, logError } from "../common/log"; import * as fs from "fs"; const MILLISECONDS_PER_MINUTE = 1000 * 60; const SETTINGS_TYPE = "cbor"; const SETTINGS_FILE = "last_readings_crypto_data.cbor"; // workaround to avoid API query when s...
'use strict'; const path = require('path'); const resolve = require('resolve'); const chalk = require('chalk'); const Minimatch = require('minimatch').Minimatch; const defaultRules = require('./rules'); const defaultConfigurations = require('./config/index'); const DEPRECATED_RULES = require('./helpers/deprecated-rule...
import React, { Component } from 'react'; import { View, Text, StyleSheet, Image, ScrollView, TouchableHighlight } from 'react-native'; import PropTypes from 'prop-types'; import Modal from 'react-native-modal'; import { responsive } from 'react-native-responsive-ui'; import equal from 'deep-equal'; import TextInput ...
import React from 'react'; import './App.scss'; import {RelativeSize, Sigma} from 'react-sigma'; import Dagre from "react-sigma/es/Dagre"; class App extends React.Component { constructor(props) { super(props); } componentDidUpdate(prevProps, prevState, snapshot) { console.log("prevstate vs currentstate", [pre...
import React, { Component } from "react"; import { Button, ButtonGroup, Card, CardBody, CardHeader, Col, Container, Form, FormGroup, Pagination, PaginationItem, PaginationLink, Input, Row, Table, Modal, ModalHeader, ModalBody, ModalFooter } from "reactstrap"; const TableHeader = p...
const path = require('path') require('dotenv').config({ path: path.join(__dirname, '../.env') }) const db = require('./db') const fetch = require('node-fetch') const discordAlerts = require('./discord_alerts') // Beaconchain API Docs: https://beaconcha.in/api/v1/docs/index.html const BEACONCHAIN_VALIDATOR_INFO = '$end...
function hasCoordinates(event) { return ( event.location !== "virtual" && typeof event.location.coordinates === "object" && typeof event.location.coordinates.latitude === "number" && typeof event.location.coordinates.longitude === "number" ); } var clusterStyleCache = {}; var clusterStyle = function...
/* eslint-disable no-prototype-builtins */ /* eslint-disable react/prop-types */ /* eslint-disable react/destructuring-assignment */ import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; import { RpcRequest } from './checkAccountStatus'; const { shell } = require('electron'); const con...
var _a; import { __extends, __makeTemplateObject } from "tslib"; import * as React from 'react'; import styled, { ThemeProvider } from 'styled-components'; import Item, { ItemGroup, itemThemeNamespace } from '@atlaskit/item'; import { colors, borderRadius, themed } from '@atlaskit/theme'; import IconFallback from '../....
const bitcoin = require('bitcoinjs-lib'); const utils = require('./utils'); const printObject = require('print-object'); const config = require('./config'); const sysTxParser = require('./sys-tx-parser'); const confirmedTxPruneHeight = 3; // number of blocks after which we discard confirmed tx data const rpc = utils.ge...
/* eslint-disable jsx-a11y/anchor-has-content */ import React, { useState, useEffect } from 'react'; import { alterarCliente, buscarCliente, cadastrarCliente, excluirCliente} from "../../net/services/cliente-service"; import { isLoger } from "../../net/services/user-service"; import { useNavigate } from "react-router-d...
import Vue from 'vue'; import SuiVue from 'semantic-ui-vue'; Vue.use(SuiVue); //INPUT MASKS // As a plugin v-mask import VueMask from 'v-mask' Vue.use(VueMask); //Gate for each user /* import Gate from './Gate'; Vue.prototype.$gate = new Gate(window.user); */ //Mask Input /* const VueInputMask = require('vue-i...
'use strict' const _ = require('lodash') const utils = require('./utils') const Hoek = require('hoek') const generator = require('./generator') let schema = require('./schema') const Joi = require('joi') const internals = { prepareRequestParameters (definitions, scope, schema) { const swaggerProperties = genera...
var imageLinks = []; var timeStampedImages = []; var URIStampedImages =[]; var timeAndURIStampedImages = []; function getImageArray(){ var loaderImg = `<img src="/styles/ajax-loader.gif">`; $('#gifApp').attr('onclick', ''); $("#gif #gifContent #gifApp").empty(); $("#gif #gifContent #gifApp").append(loader...
//グローバル変数 var msgbox = JSON.parse(localStorage.getItem("msgbox")); if (msgbox == null) { var msgbox = { "text1": ["friend_text", "はじめまして", "2020/1/1 00:00:00"], }; } var replybox = JSON.parse(localStorage.getItem("replybox")); if (replybox == null) { var replybox = { "0": "おはよう", "1": "よろしくね", "2"...
import Phaser from "phaser"; import assets from "../../public/assets"; import HealthBar from "../hud/healthbar"; import { config } from "../main"; import EventEmmiter from "../events/Emitter"; class Tank extends Phaser.Physics.Arcade.Sprite { constructor(scene, x, y) { super(scene, x, y, "player"); scene.add...
const routesUrl = `https://xyz.api.here.com/hub/spaces/Pqh7dfFY/search?access_token=<KEY>`; const neighborhoodsUrl = `https://xyz.api.here.com/hub/spaces/5kwzZmtK/search?access_token=<KEY>` const types = ["BIKE LANE", "BUFFERED BIKE LANE", "SHARED-LANE", "PROTECTED BIKE LANE", "OFF-STREET TRAIL", "ACCESS PATH", "NEIGHB...
// DOM elements const btns = document.querySelectorAll("button"); const form = document.querySelector("form"); const formAct = document.querySelector("form span"); const input = document.querySelector("#cycling"); const error = document.querySelector(".error"); var activity = "cycling"; btns.forEach((btn) => { btn....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FillableDto = exports.FILLABLE_DTO_OPTIONS_DEFAULT = void 0; const class_transformer_1 = require("class-transformer"); const class_validator_1 = require("class-validator"); const strings_1 = require("@corefunc/corefunc/array/sort/strin...
$(document).ready(function(){ // tooltips on hover $('[data-toggle=\'tooltip\']').tooltip({container: 'body'}); /* Begin: Show hide cpanel */ var ua = navigator.userAgent; event = (ua.match(/iPad/i)) ? "touchstart" : "click"; widthC = $('#sp-cpanel').width()+40; $("#sp-cpanel_btn").bind("click", ...
/** * Copyright 2016 PT Inovação e Sistemas SA * Copyright 2016 INESC-ID * Copyright 2016 QUOBIS NETWORKS SL * Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V * Copyright 2016 ORANGE SA * Copyright 2016 Deutsche Telekom AG * Copyright 2016 Apizee * Copyright 2016 TECHNISCHE UNIVERSIT...
import React, { useEffect } from "react"; import { useReducer } from "react"; import UserReducer from "./Reducer"; import UserContext from "./Context"; import axios from "axios"; import Swal from 'sweetalert2' import withReactContent from 'sweetalert2-react-content' //import variables from types import { ADD_TO_ORDE...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s....
const async = require('async'); const Order_info_item_scrape = require('../models/Order_info_item_scrape.js'); const Message = require('../models/Message.js'); const passport = require('passport'); var PythonShell = require('python-shell'); var mongoose = require('mongoose'); var fs = require('fs'); const User = requir...
var esprima = require("esprima-fb"); var tab = " "; var indent = 0; var renderExpression = function(node) { var left, right; if (node.type === "AssignmentExpression") { // TODO handle left Patterns correctly left = renderExpression(node.left); right = renderExpression(node.right); ...
'use strict'; var util = require('util'), Chain = require('./chain'); /** * Resource. * @param key * @param parent instance * @param options additional params */ function Resource(key, parent, options) { this.key = key; this.parent = parent; this.options = options; return this; } /** * Stu...
/* ////////////////////////////////////////////////////////////////////////////////////// // // // // // ...
// const { Message, MessageEmbed, MessageAttachment } = require('discord.js'); // const Client = require('../../struct/Client'); // module.exports = { // name: 'rest', // aliases: [], // description: '', // category: 'music', // utilisation: '{prefix}rest', // cooldown: 5, // nsfw: false, /...
"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 ("va...
/* * Finds actions that improve RI utilization. */ /* Auto call the function to get things going */ getRIimprovingActions_xl() async function getRIimprovingActions_xl() { console.log("") console.log("**** Looking for RI-improving actions ... this may take a few minutes ...") console.log("") current_market...
'use strict'; const visit = require('unist-util-visit'); const is = require('unist-util-is'); const toString = require('mdast-util-to-string'); const u = require('unist-builder'); const { getParameters } = require('codesandbox/lib/api/define'); const fetch = require('isomorphic-fetch'); const getTemplate = require('....
function drawChart() { for (i = 0; i < titles.length; ++i) { var angles = weights[i].map(x => x * 2 * Math.PI); var a = document.createElement('a'); var t = titles[i].split(": &nbsp;"); var title = t[0] + "<br/>" + t[1]; if (title.indexOf('<') > -1) title = title....
// document.getElementById('open-room').onclick = function() { // const queryString = window.location.search; // console.log(queryString) // var roomid = document.getElementById('room-id').value; // if (!roomid.length) return alert('Please enter roomid.'); // connection.open(roomid, onOpenRo...
"use strict"; let React = require("react/addons"); let SearchField = require("./search_field"); let EmptyState = require("./empty_state"); let ListDisplay = require("./list_display"); let ReactCSSTransitionGroup = React.addons.CSSTransitionGroup; let { messageStore } = require("./message_store"); const PAGE_SIZE = 40...
const util = require("util"); const jmespath = require("jmespath"); const isType = (obj, type) => { // handle cross-"frame" objects if (typeof type === "function") type = util.typeName(type); return Object.prototype.toString.call(obj) === "[object " + type + "]"; }; const { Before, Given, Then, When, ...
var ODL_ADDR = (getCookie("odl_addr") == null) ? '127.0.0.1' : getCookie("odl_addr"); var ODL_BASE_URL = "http://" + ODL_ADDR + ":8080/controller/nb/v2/" var ODL_CNAME = "default/" var UNAME = 'admin' var PASSWORD = '<PASSWORD>' var ODL_DEMO = (getCookie("odl_vtn_coordinator_demo") == null) ? true : (getCookie("odl_v...
//////////////////////////////////////////////////////////////////////////////// Progress.prototype = new Model(); Progress.prototype.constructor = Progress; function Progress() { Model.call(this); this.done = 0; this.queued = 0; } Progress.prototype.push = function() { this.queued++; this.trigger...
import React, { Component } from "react"; import withStyles from "@material-ui/core/styles/withStyles"; import { withRouter } from "react-router-dom"; import CssBaseline from "@material-ui/core/CssBaseline"; import Typography from "@material-ui/core/Typography"; import Grid from "@material-ui/core/Grid"; import Paper f...
"use strict"; /** * koa2的一个中间件,用于处理vue-router使用history模式返回index.html * 原程序是bripkens作者的connect-history-api-fallback,这里只是修改兼容Koa2而已 * https://github.com/bripkens/connect-history-api-fallback */ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { retur...
/* * 1. because this is a gulp task. duh. * 2. to convert markdown to html * 3. handlebars is used to convert `{{ }}` placeholders * in markdown, html, to output * 4. we get an un-buffered stream we need 100% loaded in order * to properly process * 5. the map function helps us "inject" our custom processin...
import { figures } from './data/figures.js'; import { colors } from './data/colors.js'; import { Matrix } from './modules/Matrix.js'; // elements const overlapLayout = document.getElementById('overlapLayout'); const overlapInfo = document.getElementById('overlapInfo'); const newGameButton = document.getElementById('ne...
const path = require('path'); const EventEmitter = require('events'); const fileSystem = require('fs'); const spotify = require('./bin/__spotify'); const youtube = require('./bin/__youtube'); const soundcloud = require('./bin/__soundCloud'); const facebook = require('./bin/__facebook'); const reverbnation = require('./...
"use strict"; const _states = { idle : 0, loading : 1, dragging : 2 } let _state = _states.idle; // MT217 : initialize your state always (even with a loading value) let _dP = new window.THREE.Vector3(); let _x0 = -1; let _y0 = -1; let _scenes = null; let _boundFunction = null; function updateMeshPosition(...
/** * Description: * Created by <NAME> on 2017-03-10 10:21:36 * @flow */ import React, {Component} from 'react'; import {StyleSheet, View,Text, Image, TouchableOpacity, ListView} from 'react-native'; // 第三方组件 import {bindActionCreators} from 'redux'; import { connect } from 'react-redux'; import {Actions} from 'react-n...
/** * 1. Some pages should only be visible if the user is logged in, and some * should only be visible when the user it NOT logged in. This middleware * checks whether the user is logged in, and redirects if we are on the * way to a page the user should not access. * * 2. We are only able to determine if the user...
var color = require('./color.js'); function distanceSensor(car, opt) { this.car = car; this.angle = opt.angle / 180 * Math.PI; this.length = opt.length || 10; this.direction = [ Math.sin(this.angle), Math.cos(this.angle) ] this.start = opt.start || [ 0, 0.1 ] this.localNormal = p2.vec2.create() this.glo...
$(document).ready(function(){ if($(".alert").length > 0){ $(".alert").fadeTo(2000, 500).slideUp(500, function(){ $(".alert").slideUp(500); }); } if($(".datatable").length > 0){ $(".datatable").DataTable(); } if($(".datepicker").length > 0){ $(".datepicker").datepicker({ format: 'yy...
var cssauron = require('../index') , test = require('tape') , language language = cssauron({ id: 'id' , class: 'class' , tag: 'tag' , attr: 'attr[attr]' , parent: 'parent' , children: 'children' , contents: 'contents || ""' }) test('select single', test_select_single) test('select multiple', test_...
import React, { Component } from 'react'; import { View, Text, StyleSheet, Platform, Animated, TouchableOpacity, Image, } from 'react-native'; import * as WeChat from 'react-native-wechat-lib'; import { Header, Loading } from '../../components/Index'; import { Colors, Metrics } from '../../theme/Index'; import TDetailC...
function clasePrimera() { let saymaName = prompt(`Ingresá tu nombre`); let numUnon = parseInt(prompt(`Ingresá un 1er número`)); let numDoso = parseInt(prompt(`Ingresá un 2do número`)); let numTress = parseInt(prompt(`Ingresá un 3er número`)); console.log(saymaName); if ((isNaN(numUnon)) ||...
// this class should be used to create all code error documents in the database 'use strict'; const ModelCreator = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/lib/util/restful/model_creator'); const CodeError = require('./code_error'); const CodemarkHelper = require(process.env.CSSVC_BACKEND_ROOT + '/api_se...
/** * Copyright 2020, <NAME> * Licensed under the terms of the MIT license. See LICENSE file in project root for terms. */ const COFI_DOCS_ERROR_CODES = 'https://galhavivi.github.io/cofi/docs/error-codes'; function CofiError(code, message, form, data, reference, subError) { this.code = code; this.message = ...
import * as tf from '@tensorflow/tfjs'; import * as knnClassifier from '@tensorflow-models/knn-classifier'; tf.setBackend('webgl'); import * as cocoSsd from './cocoSsd'; import * as mobilenet from './mobilenet'; export let knn, model; // featureType // mobilenet 图像特征 // cocossd 目标检测 let featureType="mobilenet"; //...
import React from 'react'; import styled from '@emotion/styled'; import { css } from '@emotion/core'; import classnames from 'classnames'; import config from 'src/config'; import { inlineBlockWithVerticalMixin } from 'src/style'; import withProps from 'src/utils/withProps'; const { prefixCls: _prefixCls } = config; c...
import React, { useState } from "react"; import Grid from "@material-ui/core/Grid" import {TextField}from "@material-ui/core" import Button from "@material-ui/core/Button" import FormControl from "@material-ui/core/FormControl" import Select from "@material-ui/core/Select" import InputLabel from "@material-ui/core/Inpu...
/* eslint-env node */ "use strict"; var fluid = require("infusion"); var gpii = fluid.registerNamespace("gpii"); var request = require("request"); // TODO: Replace this with a writable data source. require("gpii-handlebars"); require("./lib/datasource"); require("./lib/withMailHandler"); require("./lib/mailer");...
import React, { Component } from 'react'; import { Loading } from './Load'; import { paperHeader } from './paperHeader'; import { requestPasscode } from './actions/kuwaActions'; import { toggleKuwaPasswordVisibility, togglePasscodeVisibility } from './actions/screenActions'; import classNames from 'classnames'; import ...
import * as symbols from './symbols.js'; import { TYPING_TIMEOUT_DURATION } from './constants.js'; // Symbols for private data members on an element. const typedPrefixKey = Symbol('typedPrefix'); const prefixTimeoutKey = Symbol('prefixTimeout'); /** * Mixin that handles list box-style prefix typing, in which the u...
import paper from '@scratch/paper'; import {stylePath} from '../style-path'; import {endPointHit, touching} from '../snapping'; import {drawHitPoint, removeHitPoint} from '../guides'; /** * Tool to handle freehand drawing of lines. */ class PenTool extends paper.Tool { static get SNAP_TOLERANCE () { retu...
import React from 'react'; import xhr from 'xhr'; import MaterialUIAutocomplete from '../Multi/MaterialUIAutocomplete.js' import Plot from '../Plot/Plot.js' class App extends React.Component { constructor() { super(); this.state = { jsonData:"0.0", changePercent:0, arrowD:"", changePe:0, options:[...
// IDEAS: // Allow users to change the max counter value (so they can increase the difficulty) const difficulties = ["Normal", "Elite", "Nightmare", "Any"]; const characters = ["<NAME>", "<NAME>", "<NAME>", "<NAME>", "Any Character"]; // [challenge, resample weight, chance weight] // Any challenge with a res...
/** @author: <NAME> @Version: 1.0.2 @Date: 19/02/2018 @description: DOIT BlockChain project **/ 'use strict'; const express = require('express'); const chai = require('chai'); const expect = require('chai').expect; chai.use(require('chai-http')); const app = require('../app'); const router = express.Router(); require(...
$.xhrPool = []; $.xhrPool.abortAll = function() { $(this).each(function(idx, jqXHR) { jqXHR.abort(); }); }; $.ajaxSetup({ complete: function(jqXHR) { var index = $.xhrPool.indexOf(jqXHR); if (index > -1) { $.xhrPool.splice(index, 1); } } }); $(document).read...
'use strict'; /* *** Begin Workarounds *** */ /* * sass-loader doesn't appear to play nice with webpack beyond 0.5.0 with node-sass 2.1.1. * * Threading issue in 0.6.0: * * https://github.com/jtangelder/sass-loader/issues/100 - Silently fails/stalls webpack with no error * https://github.com/sass/node-sass/is...
const Discord = require(`discord.js`); const Sequelize = require(`sequelize`); const database = require(`./database-manager`); const replyHelper = require(`./interaction-helper`); // Exports module.exports = {addOne, endOne, registerExisting}; const activeGiveaways = new Map(); const regexTime = new RegExp(`...
import React, {useState, useEffect} from 'react' import {makeStyles} from '@material-ui/core/styles' import {useDispatch, useSelector} from 'react-redux' import Avatar from '@material-ui/core/Avatar' import IconButton from '@material-ui/core/IconButton' import CardComponent from './OVCard' import {Line} from 'react-cha...
function fetch(a) { let h = new XMLHttpRequest(); h.onerror = function(error) { tabClear(); document.getElementById("tab.error").style.display = "block"; }; h.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { let data = JSON.parse(h.responseText); handler(d...