text
stringlengths
3.22k
29.5k
import '../scss/app.scss'; // Your JS Code goes here window.onload = function(){ create(products); order() } let products = []; class product { constructor(name, category, price) { this.name = name; this.category = category; this.price = price; this.img = 'images/content/no-camer...
var m = require('mithril'); var chessground = require('chessground'); var partial = chessground.util.partial; var classSet = chessground.util.classSet; var renderConfig = require('./explorerConfig').view; var util = require('../util'); function resultBar(move) { var sum = move.white + move.draws + move.black; var ...
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; } ...
import React, { Component } from 'react'; import * as Services from '../../../services'; import faker from 'faker'; import bcrypt from 'bcryptjs'; import md5 from 'js-md5'; import { connect } from 'react-redux'; import { toastr } from 'react-redux-toastr'; import { configuration } from '../../../locales'; import { Use...
var loadTableList; var getOrderNo; var changeWorksNum; var tip_note; $(function(){ 'use strict' $(document).ready(function () { //判断url中是否有订单号,有则直接调用table方法 var order_no = $(".order_no").val(); var agent_id = $(".agent_id").val(); if(order_no!="") { loadTableL...
 class ServiceForm { constructor() { this.locale = document.getElementById("index-locale-for-date"); this.dateStart = new MTDTextField("index-filter-date-start"); this.dateFinish = new MTDTextField("index-filter-date-finish"); this.number = new MTDTextField("index-filter-related-...
#!/usr/bin/env node var fs = require('fs'); var async = require('async'); var path = require('path'); var shell = require('shelljs'); var STK = require('./stk-ssc'); var cmd = require('commander'); cmd .version('0.0.1') .option('--id <id>', 'Model id [default: ScanNet-2016-07-24_10-48-40]', STK.util.cmd.parseList...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Footer, Title, Content, Button, Icon, Card, CardItem, View, InputGroup, Input } from 'native-base'; import { Image, TouchableOpacity, Alert, TouchableHighlight, Dimensions, Text } from 'react-native'; import I1...
// // Create object to store data needed for the this branch feature const projects = [ { name: 'HTML-CSS CAPSTONE', number: 1, description: ` The project seeks to test my knowledge of Html5, Css3, and Javascript. In the project, I created two pages for a soccer tournament, a mobile menu for the...
#!/usr/bin/env node // Test binary byte and endianness functions var sys = require('sys'); var Buffer = require('buffer').Buffer; var BufferList = require('bufferlist'); var Binary = require('bufferlist/binary'); var assert = require('assert'); exports.endianness = function () { var bList = new BufferList; Bi...
// Collaborative Drawing for <NAME> @ Gottesman Libraries // version 2.10 with ticket form // April 2020 // by <NAME> let myp5; // Keep track of our socket connection var socket; let myID; //color buttons var colors = ['#e2af6e', '#d44a2e', '#019daa', '#86c045', '#295799', '#811c17', '#000', '#fff']; //white, red, ...
$(document).ready(function(){ new WOW().init(); /*Active menu start*/ $(".header-pages .main-menu").click(function(){ $(this).addClass('active').siblings().removeClass('active'); $(this).toggleClass("open"); $(this).siblings().removeClass("open"); }); /*Active menu end*/ // Banner ...
/*- * Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl/ */ 'use strict'; const chai = require('chai'); chai.use(require('chai-as-promised')); const expect = require('chai').exp...
import React from 'react'; import PropTypes from 'prop-types' import {PrecomputedVolume} from "../precomputed/volume.js" import { VolumeRenderShader1 } from 'three/examples/jsm/shaders/VolumeShader.js' import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js' import { TrackballControls } from 'three/...
// http://www.loc.gov/standards/iso639-2/php/code_list.php var bcp47iso639 = { 'aar': 'aa', // Afar 'abk': 'ab', // Abkhazian 'afr': 'af', // Afrikaans 'aka': 'ak', // Akan 'alb': 'sq', // Albanian 'sqi': 'sq', // Albanian 'amh': 'am', // Amharic 'ara': 'ar', // Arabic 'arg': 'an', /...
//--- Mutation types ---// import types from '~/store/mutation-types' //--- API modules ---// import about from '~/store/api/about' import blog from '~/store/api/blog' import customers from '~/store/api/customers' import gallery from '~/store/api/gallery' import slider from '~/store/api/slider' import services from '~/...
var options = { canvasClass: "canballs-canvas", ballSize: 5, ballColor: "red", ballMass: 1, ballInitialSpeed: 10, spawnerOutsideColor: "#888", spawnerInsideColor: "#444", stringLineColor: "#aaa", solidLineColor: "orange", lineWidth: 3, element: '#canballs', width: 'auto',...
import appcdLogger from 'appcd-logger'; import Dispatcher from 'appcd-dispatcher'; import gawk from 'gawk'; import Response, { codes } from 'appcd-response'; import path from 'path'; import PluginError from './plugin-error'; import PluginPath from './plugin-path'; import semver from 'semver'; import { arrayify } from ...
var PageName = 'buycarcalc'; var PageId = 'pc61ea6c1680e4ae7bc38e91d7c9133fc' var PageUrl = 'buycarcalc.html' document.title = 'buycarcalc'; if (top.location != self.location) { if (parent.HandleMainFrameChanged) { parent.HandleMainFrameChanged(); } } var $OnLoadVariable = ''; var $CSUM; var h...
import jwt from 'jsonwebtoken'; import bcrypt from 'bcryptjs'; // import util from 'util'; // import fs from 'fs'; import {AuthenticationError} from 'apollo-server'; export const ROLES = { ROLE_USER: 0, ROLE_ADMIN: 1, }; // const srvfolder = 'srv/'; // const validMimeType = ['image/jpeg', 'image/png', 'image/tiff'...
/** * @file Nuxt config / Commonjs module * @module nuxt.config * @author Surmon <https://github.com/surmon-china> */ const appConfig = require('./config/app.config') const apiConfig = require('./config/api.config') const i18nConfig = require('./config/i18n.config') const systemConstants = require('./constants/sys...
import { Connection } from '../../models' import oauth2 from 'salesforce-oauth2' import { config } from '../../../config' import { getHeaderMetadata, jsforce, metadata } from '../../utils' import _jsforce from 'jsforce' const redirect_uri = config.redirect_uri, client_id = config.client_id, client_secret = config....
/** * This file is part of phpMorphy library * * Copyright c 2007-2008 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at...
const os = require('os') const coder = require('./coder.js') const mediator = require('./mediator') /** * * @class AnkiDevice * * Class for creating Anki devices that handle the communications with a specific device. * */ module.exports = class AnkiDevice { constructor (peripheral) { this.periphe...
let canvas = document.getElementById("canvas"); let ctx = canvas.getContext("2d"); let width; let height; let bulletArray =[]; let resize = function () { width = window.innerWidth * 2; height = window.innerHeight * 2; canvas.width = width; canvas.height = height; } window.onresize = resize; resize...
// Copyright [2018] [Banana.ch SA - Lugano Switzerland] // // 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 ap...
/* * Duktape builtin. */ /*--- { "custom": true } ---*/ /*=== global Duktape object wc print function wc alert function wc Duktape Duktape.version number none Duktape.Buffer function wc Duktape.Pointer function wc Duktape.Thread function wc Duktape.Logger function wc Duktape.info function wc Duktape.line funct...
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { Add, Subtract } from '@carbon/icons-react'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React, { useRef,...
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
const { ether, BN } = require("@openzeppelin/test-helpers"); const { helpers, generated } = require('chainlink'); const BigNumber = require('bignumber.js'); const EVMRevert = require('./helpers/EVMRevert').EVMRevert; const increaseTime = require('./helpers/increaseTime'); const increaseTimeTo = increaseTime.incr...
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-------------------------------------------------...
'use strict'; function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { retur...
/****************************************************************************** * File: parser.js * Author: <NAME> (<EMAIL>) * * A parser that produces an AST from a sequence of tokens. */ /* Function: parse * * Given an input string, parses it to produce an AST and variable map. If * successful, the returned ...
'use strict' const debug = require('debug')('hafas-monitor-trips') const debugTrips = require('debug')('hafas-monitor-trips:trips') const debugFetch = require('debug')('hafas-monitor-trips:fetch') const throttle = require('lodash.throttle') const {EventEmitter} = require('events') const Redis = require('ioredis') cons...
exports.install = function() { // Auto-localize static HTML templates F.localize('/templates/*.html', ['compress']); // COMMON F.route(CONFIG('manager-url') + '/*', '~manager'); F.route(CONFIG('manager-url') + '/upload/picture/', upload_picture, ['post', 'upload', 10000], 3084); // 3 MB F.route(CONFIG('...
import InputAdornment from '@material-ui/core/InputAdornment'; // @material-ui/core components // @material-ui/icons import { makeStyles } from "@material-ui/core/styles"; import styles from "assets/jss/material-kit-react/views/profilePage.js"; // nodejs library that concatenates classes import classNames from "classna...
//[[PROBLEM CASE]] // for "LG X5" // var acc = ev.accelerationIncludingGravity; // works. // var acc = ev.acceleration; // doesn't work!! no service. //--> try following algorithm, only when ev.acceleration.x fails!! // //example)) canceling static acceleration (==gravity) from acceleration readings.. @ android docu...
/* eslint-disable react/prop-types */ import React, { Component } from 'react'; import styled from 'styled-components'; import Img from 'gatsby-image'; import { graphql, Link, StaticQuery } from 'gatsby'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { GridLayout } from '../components/common...
import React from 'react'; import { connect } from 'react-redux'; import { withRouter } from "react-router"; import { addFavorite, removeFavorite, setNumFavorites, updateNotes, editCompany, filterCompanies } from '../../redux/actions'; import heart from '../../res/images/baseline_favorite_black_18dp.png'; import backAr...
import std from './visualizeContainer' /* 변수 사용 체크 모든 변수이름을 일단 읽는다. 모든 변수이름에 대해서 필터를 건다 (변수이름 !== undefined) 있는거 변수로 넘긴다. 생성자 모든 생성자를 그 자신의 문자열과 매핑시키고 constructors['new std.Stack([1,2,3'])].copy()로 바꿔버린다. 코드에서 클래스 메소드에 세 개의 변수 추가, 현재 이 변수 이름, variable state, visualizeDatas 문자열처리 2019.02.15 몇번째 줄에서 발생했는지 처리추가 구상 *...
import EventEmitter from './events'; import defaultOptions from './defaultOptions'; const BULMA_CAROUSEL_EVENTS = { 'ready': 'carousel:ready', 'slideBefore': 'carousel:slide:before', 'slideAfter': 'carousel:slide:after' }; const onSwipeStart = Symbol('onSwipeStart'); const onSwipeMove = Symbol('onSwipeMove'); c...
/** * app.js * * This is the first file loaded. It sets up the Renderer, * Scene and Camera. It also starts the render loop and * handles window resizes. * */ import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import FRONTIMAGE from './fly_new.jpg'; import BACKGROUNDSOUND from './...
import React, { PureComponent } from 'react'; import { Dimensions, SafeAreaView, StyleSheet, View, Text, TextInput, TouchableOpacity, InteractionManager, } from 'react-native'; import Clipboard from '@react-native-community/clipboard'; import AsyncStorage from '@react-native-community/async-storage'; import { c...
"use strict"; 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 = Refl...
'use strict'; import React, { Component } from 'react'; import{ StyleSheet, View, Image, ScrollView, Dimensions, TouchableOpacity, AsyncStorage, Text, Linking, RefreshControl, ListView, SegmentedControlIOS, } from 'react-native'; import Share, {ShareSheet, Button} fro...
import React from 'react'; import { ResponsiveContainer, Tooltip, Line, Area, Legend, ReferenceLine, YAxis, XAxis, CartesianGrid, ComposedChart, } from 'recharts'; import { Typography } from '@material-ui/core'; import Grid from '@material-ui/core/Grid'; import { myShortNumber } from '../Util'; import { AntSw...
import React, { useState } from "react"; import styled from "styled-components"; import { Link } from "gatsby"; import parse from "html-react-parser"; import { color } from "../../../atoms/styles/colors"; import { shadow } from "../../../atoms/styles/shadows"; import { Heading } from "../../../atoms/typography/heading"...
let Alexa = require('alexa-remote2'); let alexa = new Alexa(); var express = require('express') , request = require('request') , routes = require('routes') , user = require('user') , http = require('http') , Cryptr = require('cryptr') , LocalStorage = require('node-localstorage').LocalStorage , path = require('path'); ...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
// tabu Lumen BLE bulb: http://tabuproducts.com/shop/lumen-bulb/ var lumen , utility = require('./../../core/utility') ; try { lumen = require('lumen'); } catch(ex) { exports.start = function() {}; return utility.logger('devices').info('failing tabu-lumen lighting (continuing)', { diagnostic: e...
import React, { useEffect, useState } from 'react' import dynamic from 'next/dynamic' import Head from 'next/head' import { useRouter } from 'next/router' import { useDispatch, useSelector } from 'react-redux' import Frame from 'react-frame-component' import { withRedux } from '../lib/redux' import Layout from '../com...
import React, { Component } from 'react' import { PerspectiveCamera, Scene, SphereGeometry, Geometry, Color, FaceColors, Matrix4, LineBasicMaterial, BoxGeometry, MeshBasicMaterial, Mesh, ShaderMaterial, ImageUtils, BackSide, AdditiveBlending } from 'three' import * as THREE from 'three' import TrackballControl...
import qlik from 'qlik'; import $ from 'jquery'; import { get as _get, has as _has, set as _set, find as _find, forEach as _forEach, camelCase as _camelCase, isEmpty as _isEmpty, pull as _pull, cloneDeep as _cloneDeep } from 'lodash'; import './styles/styles.scss'; import {_scope, _timeout} from '....
/** * @abstract */ class DataChannel extends Observable { constructor() { super(); // Buffer for chunked messages. // XXX We currently only support one chunked message at a time. /** @type {SerialBuffer} */ this._buffer = null; /** @type {number} */ this._c...
import React from "react"; import {hot} from "react-hot-loader"; import "./CalculatorWidget.css"; const Display = (props) => { return( <div id={props.id} className="displays">{props.value}</div> ); } const Button = (props) => { let classes = "btn".concat(" ", props.classes); return( <d...
var data = undefined; var shrink = true; var keys = undefined; var filename = undefined; function shiftvalue(input,max) { // var length = count_digit(input); // length = length + Math.floor((length-1)/3); // return length; if (input > (max/2) ) { return 0; } else { return (8*count_digit(input)+4); ...
'use strict'; const HEXAGON_SIZE = 1; const HEXAGON_HEIGHT = HEXAGON_SIZE * 2; const HEXAGON_WIDTH = Math.sqrt(3) / 2 * HEXAGON_HEIGHT; const HEXAGON_HALF_HEIGHT = HEXAGON_HEIGHT / 2; const HEXAGON_HALF_WIDTH = HEXAGON_WIDTH / 2; const HEXAGON_QUARTER_HEIGHT = HEXAGON_HEIGHT / 4; Vue.component('modal', { templa...
let questionsArray = []; // this is a global array that will contain the questions you asked form the mock db function. let urlHelper = []; var score; //holds the score var attemptsLeft; //hold the number of times the user can get a question wrong var startPosition = document.getElementById("mainDiv").innerHTML;//...
var filewalker = require('filewalker'); var path = require('path'); var fs = require('fs'); var exec = require('child_process').exec; var deferred = require('deferred'); var extend = require('extend'); var converter = require('i18next-conv'); var util = require('util'); /** * ...
/************************************************************ * Javascript Lib V1.2 * CONTACT: <EMAIL> * * These are textbox with restriction * * InitializeTextbox( "TextboxID", InputType.NonnegativeInteger); * InitializeTextbox( "TextboxID", InputType.WholeNumber); * InitializeTextbox( "TextboxID", Inp...
/* global alert, confirm, prompt, Option, Worker, soljsonSources */ var $ = require('jquery'); var utils = require('./app/utils'); var QueryParams = require('./app/query-params'); var queryParams = new QueryParams(); var GistHandler = require('./app/gist-handler'); var gistHandler = new GistHandler(); var Storage = ...
'use strict'; var gp = require('../'); var expect = require('expect'); var isWin32 = require('os').platform() === 'win32'; describe('glob-parent', function () { it('should strip glob magic to return parent path', function (done) { expect(gp('.')).toEqual('.'); expect(gp('.*')).toEqual('.'); expect(gp('/...
#!/usr/bin/env node var tmp = require('tmp'); tmp.setGracefulCleanup(); var path = require('path'); const MNEMONIC = 'concert load couple harbor equip island argue ramp clarify fence smart topic'; // make sourcemaps work! require('source-map-support').install(); var yargs = require("yargs"); var pkg = require("./p...
/* Copyright (c) 2017, <NAME>, <NAME>, <NAME> (Reimplemented from https://github.com/sastrawi/sastrawi) 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 limit...
#!/usr/bin/env node // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. 'use strict'; var nopt = require('nopt'); var uuid = require('uuid'); var colorsTmpl = require('colors-tmpl'); var prettyjson = require('prettyjso...
$(function (){ cargar_taba_ventas(); var id_actual = 0; $(document).on("click",".btn_ver",function(e){ e.preventDefault(); var elemento = $(this); var data_idventa = elemento.attr('data-idventa'); console.log("Si se ejecuta",data_idventa); id_actual = data_idvent...
import { ActionAlgorithm as coreActionAlgorithm, Utils, } from '@apollosproject/data-connector-rock'; import { get, flattenDeep, isEmpty, uniqBy, head } from 'lodash'; import moment from 'moment-timezone'; import ApollosConfig from '@apollosproject/config'; import { isType } from '../utils'; import sanitizeHtml fr...
import {JetView} from "webix-jet"; import toolbar from "views/menus/export"; export default class ReportBillingView extends JetView { config(){ return layout; } init(view){ webix.extend(view.queryView({ view:"treetable" }), webix.ProgressBar); webix.extend($$("owner-tree"), webix.ProgressBar); $$("ow...
import {L} from './core' import 'leaflet-editable' import './editable.css' import 'leaflet-path-drag' import {sortObj} from '../utils' import {ScaledRectangleEditor} from 'leaflet-editable-scaled-rect' import {ContainerMixin, TooltipMixin} from './mixins' console.log("EDITALE", L.Editable) // Add tooltip functionalit...
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) { try { step(gene...
import React, { Component } from 'react'; import T from 'prop-types'; import styled from 'styled-components'; import compose from '../utils/compose'; import isMouseHovering from '../utils/isMouseHovering'; import withRelativeMousePos from '../utils/withRelativeMousePos'; import defaultProps from './defaultProps'; impo...
function drawTitle() { "use strict" var titleText = 'Title Test' d3.select("svg").append("text") .attr("x", (WIDTH / 2)) .attr("y", 25) .attr("text-anchor", "middle") .style("font-size", "16px") .style("font-weight", "bold") .style("text-decoration", "none") ...
import React, { Fragment, useState } from "react"; import { StyleSheet, ImageBackground, Dimensions, StatusBar, KeyboardAvoidingView, Image, View, ScrollView, Platform, Alert } from "react-native"; import { Block, Checkbox, Text, theme } from "galio-framework"; import { Button, Icon, Input, ...
/* * Based on <NAME>'s blockquotes.js * http://simon.incutio.com/archive/2002/12/20/#blockquoteCitations */ function extractBlockquoteCitations() { var quotes = document.getElementsByTagName('blockquote'); for (i = 0; i < quotes.length; i++) { var cite = quotes[i].getAttribute('cite'); if (cite && cite !=...
var events = require("events"); var fp = require("lodash/fp"); var NodeGit = require("../"); var Commit = NodeGit.Commit; var LookupWrapper = NodeGit.Utils.lookupWrapper; var _amend = Commit.prototype.amend; var _parent = Commit.prototype.parent; /** * Retrieves the commit pointed to by the oid * @async * @param {...
function style(theme, width) { function combineTheme(obj) { if (typeof obj[theme] === "string") { return obj[theme] } else { return Object.assign({}, obj.base, obj[theme]); } } function combineState(obj) { var states = { playing: [], cashed: [], lost: [], starting: [], startingBetting: ...
function GetBehaviorSettings() { return { "name": "Turret", // as appears in 'add behavior' dialog, can be changed as long as "id" stays the same "id": "Turret", // this is used to identify this behavior and is saved to the project; never change it "version": "1.0", // (float in x.y format) Behavior...
import React, { Component } from 'react'; import { StyleSheet, Text, View, InteractionManager, Platform, LayoutAnimation, UIManager, DeviceEventEmitter, } from 'react-native'; import { connect } from 'react-redux'; import { withTheme } from 'react-native-paper'; import analytics from '@react-native-fire...
const ifcTypes = { //Building elements IfcBuildingElementProxy: "IFCBUILDINGELEMENTPROXY", IfcBeam: "IFCBEAM", IfcColumn: "IFCCOLUMN", IfcCovering: "IFCCOVERING", IfcCurtainWall: "IFCCURTAINWALL", IfcDoor: "IFCDOOR", IfcElementAssembly: "IFCELEMENTASSEMBLY", IfcEquipmentElement: "IFCEQUIPMENTELEMENT",...
require('dotenv').config(); const query = `{ allMarkdownRemark(filter: { frontmatter: { draft: { ne: true } } }){ edges { node { excerpt(pruneLength: 250) frontmatter { date(formatString: "YYYY-MM-DD HH:mm:ss") title tags path ...
/*global Handlebars, Router */ 'use strict'; Handlebars.registerHelper('eq', function (a, b, options) { return a===b? options.fn(this):options.inverse(this); }); var ENTER_KEY=13; var ESCAPE_KEY=27; var util={ uuid: function () { /*jshint bitwise:false */ var i, random; var uuid=''; ...
/** * Tencent is pleased to support the open source community by making Tars available. * * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except * in compliance with the License. You may obtain a co...
import { Field, FieldArray, Formik } from 'formik'; import moment from 'moment'; import React, { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { Link, useHistory, useRouteMatch } from 'react-router-dom'; import { baseURL } from '../baseURL'; import { deleteQuestion, ...
/* Bootstable @description Javascript library to make HMTL tables editable, using Bootstrap @version 1.1 @autor <NAME> */ "use strict"; //Global variables var params = null; //Parameters var colsEdi =null; var newColHtml = '<div class="btn-group pull-right">'+ '<button id="bEdit" type="button" class="btn btn-sm ...
import { execa } from 'execa' import path from 'node:path' import { fileURLToPath } from 'node:url' import { getPackages, getNpmTag, isPackagePublished } from '@sw-internal/common' const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) const ROOT_DIR = path.join(__dirname, '../../...
/**************************************************************************** Copyright (c) 2019 <NAME>., Ltd. https://www.cocos.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-fr...
const db = require('../models/database.js'); const mongoose = require('mongoose'); const Movies = require('../models/MoviesModel.js'); const Shows = require('../models/ShowsModel.js'); const Seats = require('../models/SeatsModel.js'); const Tickets = require('../models/TicketsModel.js'); const Ratings = require('../mod...
/* handlers.js * Handlers for express web requests. */ /*jshint es5: true */ var config = require('../../config'); var auth = require('../auth'); var express = require('express'); var lessMiddleware = require('less-middleware'); var fs_ = require('../../utils/fs'); var winston = require('winston'); var Q = require('...
/****************************************************************************** * TUPU Recognition API SDK * Copyright(c)2013-2016, TUPU Technology * https://www.tuputech.com *****************************************************************************/ "use strict" let crypto = require("crypto") let debug = requ...
'use strict'; import Chart from 'chart.js'; import XLSX from 'xlsx'; import DataSource from '../core/core.datasource'; import datasourceHelpers from '../helpers/helpers.datasource'; var helpers = Chart.helpers; function parseExpression(workbook, expr) { var matches, sheetName, sheet, rangeExpr, ref, range, refRange...
var nav = [ "pandemics", "zoonotic", "nipah", "covid", "vaccines", "toolsandtechniques", ]; var navStar = ["zoonotic", "nipah", "vaccines", "toolsandtechniques"]; var preloadImg = [ "/img/btn-burger-on.png", "/img/btn-bg-on.png", "/img/btn-side-fact-on.png", "/img/btn-side-try-on.png", "/img/btn...
import React, { useState, useEffect } from 'react'; import { Route, Switch, useLocation, useHistory } from 'react-router-dom'; import { useSelector, useDispatch } from 'react-redux'; import ReactGA from 'react-ga'; import { DndProvider } from 'react-dnd'; import { HTML5Backend } from 'react-dnd-html5-backend'; im...
const fs = require('fs') const path = require('path') const config = require('../../src/config.js') const mongoose = require('mongoose') const Profile = require('../../src/structs/db/Profile.js') const Feed = require('../../src/structs/db/Feed.js') const FilteredFormat = require('../../src/structs/db/FilteredFormat.js'...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Text = exports.Heading = void 0; var _styledComponents = _interopRequireDefault(require("styled-components")); var _react = _interopRequireWildcard(require("react")); var _propTypes = _interopRequireDefault(require("pr...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft Corporation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //----------------------------...
var _ = require('underscore'); var attributes = {}; attributes.findTitle = function(profile, data){ var retval; var altretval; var titleString = 'http://id.loc.gov/ontologies/bibframe/title'; var mainTitleString = 'http://id.loc.gov/ontologies/bibframe/mainTitle'; var resourceType = "http://i...
"use strict"; exports.__esModule = true; exports.default = exports.pickerProps = void 0; var _vue = require("vue"); var _utils = require("../utils"); var _constant = require("../utils/constant"); var _use = require("@vant/use"); var _useExpose = require("../composables/use-expose"); var _loading = require("../lo...
import '/resources/polymer/@polymer/polymer/polymer-legacy.js'; import '/resources/polymer/@polymer/iron-flex-layout/iron-flex-layout.js'; import '/resources/polymer/@polymer/iron-flex-layout/iron-flex-layout-classes.js'; import '/resources/polymer/@polymer/iron-icon/iron-icon.js'; import '/resources/polymer/@polymer/...
//WARNING var current_search = ""; $(function(){ $.widget( "custom.catcomplete", $.ui.autocomplete, { _create: function() { this._super(); this.widget().menu( "option", "items", "> :not(.ui-autocomplete-category)" ); }, _renderItem: function( ul, item) { var regex = new RegExp('(' ...
// Globals // which diceware language list will be used to lookup words. var currentList = 'eff' // an array of objects representing the current random word list. var wordList = [] // the running tally of total entropy in the wordList var totalEntropy = new Big(0) // Simple function to add commas to really large numbe...