text
stringlengths
3.22k
29.5k
'use strict'; var _getIterator2 = require('babel-runtime/core-js/get-iterator'); var _getIterator3 = _interopRequireDefault(_getIterator2); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenerator2 = require('babel-runtime/helpers/asyn...
import React, { Component } from 'react'; import { // G2, Chart, Geom, Axis, Tooltip, // Coord, // Label, Legend, // View, // Guide, // Shape, // Facet, // Util } from "bizcharts"; import Debounce from 'lodash-decorators/debounce'; import Bind from 'lodash-decorators/...
import React, { useState } from "react" import { motion } from "framer-motion" import { useIntl } from "gatsby-plugin-intl" import { Link } from "gatsby" import styled from "styled-components" import Button from "./Button" import Icon from "./Icon" import Translation from "./Translation" import { dropdownIconContainer...
import React, { useReducer, createRef } from "react"; import styles from "./FileUploadModal.module.css"; import { Modal, Button, Icon, List, Progress, Checkbox, } from "semantic-ui-react"; import { toast } from "react-toastify"; import { formatBytes } from "../../util/fileutil"; // import getDroppedOrSelect...
'use strict'; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _server = require('react-dom/server'); var _server2 = _interopRequireDefault(_server); var _ = require('../../'); var _connect = require('../connect'); var _connect2 = _interopRequireDefault(_connect); var _enzyme = r...
import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Link } from 'react-router-dom'; import unified from 'unified'; import parse from 'remark-parse'; import remark2react from 'remark-react'; import React, { Component, Fragment } from 'react'; im...
import './SystemsTable.scss'; import { PERMS, SYSTEM_FILTER_CATEGORIES as SFC, SYSTEMS_FETCH_URL, } from '../../AppConstants'; import React, { useEffect, useState } from 'react'; import { TableVariant } from '@patternfly/react-table'; import { filterFetchBuilder, paramParser, pruneFilters, urlBuilder, ...
import { myFirebase } from "./config/Fire"; import Login from "./Login"; import React, { Component } from "react"; import ReactDOM from "react-dom"; import { createBrowserHistory } from "history"; import { BrowserRouter, Route, Switch, Redirect } from "react-router-dom"; import "bootstrap/dist/css/bootstrap.css"; impo...
const schedule = require('node-schedule'); const fs = require('fs'); const ROOT_DIR = `./photosTemp`; const FINISH_DIR = `./photosFinish`; const XLSX = require('xlsx'); const Jimp = require('jimp'); const axios = require('axios'); const DEBUG = true; const jobFn = async function () { console.log('ocr job running!')...
// for deep-lining urls to pages, use linking in NavigationContainer function initaializePortfolioPromise(data) { return new Promise(function (resolve, reject) { let fundIds = []; let fundHist = {}; Object.keys(data).forEach(function (fundId) { fundIds.push(fundId); }); ...
/* Copyright 2015 <NAME>. This file is part of Robot Rampage. The Robot Rampage source code is distributed under the terms of the MIT license. See LICENSE.txt for details. */ 'use strict'; var load = require('./load'); var param = require('./param'); var util = require('./util'); function ParticleSystem() ...
var tnm = function() { this.resLogData=""; this.curId = 'default'; this.tnmLogPath;//= "savelog.php"; this.tnmLogArray = {"value":true, "error":false, "links":false}; this.tnmLogFields={}; /*= { "myform":[ "email", "sex" ], "form2":[ "mno", "Number", "city", "education" ] };*/ ...
/** * Copyright 2020 Google LLC * * 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 applicable law or agreed to...
import _ from 'lodash'; import log from '../logger'; import B from 'bluebird'; import { errors, BASEDRIVER_HANDLED_SETTINGS } from 'appium-base-driver'; import { fs, tempDir } from 'appium-support'; import { APK_EXTENSION } from '../extensions'; let extensions = {}, commands = {}, helpers = {}; commands.getPa...
// set dimensions of the person graph var pMargin = { top: 20, right: 30, bottom: 70, left: 90 }, pWidth = 1300 - pMargin.left - pMargin.right, pHeight = 400 - pMargin.top - pMargin.bottom; // This function creates the person chart based on the national data // it is to be used for overviewing. // When linked to t...
//////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// /** * @author Kai * @version 1.0.0 * * @exports MusicLibPage * */ //////////////////////////////////////////////////////////////////////////////// /////...
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use ...
document.querySelector("#header").style.marginBottom = 0 let mainTable = document.querySelector(".data-table") let hederRow = document.querySelector(".th-row") let mainBody = document.querySelector("body") let fetchAllMeetups = () => { fetch("https://questioner--api.herokuapp.com/api/v2/meetups/all", { headers:...
/** * The plugin component is supposed to inject the extracted media CSS (from store) into the file(s). */ const pluginName = 'MediaQueryPlugin'; const { OriginalSource, ConcatSource } = require('webpack-sources'); const { interpolateName } = require('loader-utils'); const Chunk = require('webpack/lib/Chunk'); cons...
PST$multiplyList = function(l, n) { var o = []; var s = l.length; var i; while (n-- > 0) { for (i = 0; i < s; ++i) { o.push(l[i]); } } return o; }; PST$intBuffer16 = PST$multiplyList([0], 16); PST$createNewArray = function(s) { var o = []; while (s-- > 0) o.push(null); return o; }; var lib_graphics2...
import {assert} from "../webix/debug"; import {debug_size_box} from "../webix/debug"; import {callEvent} from "../webix/customevents"; import {create, createCss, remove, addCss, removeCss, triggerEvent, preventEvent} from "../webix/html"; import {toNode, extend} from "../webix/helpers"; import env from "../webix/env";...
const {remote} = require('electron') const {h, Component} = require('preact') const classNames = require('classnames') const ContentDisplay = require('./ContentDisplay') const boardmatcher = require('../modules/boardmatcher') const gametree = require('../modules/gametree') const helper = require('../modules/helper') c...
'use strict'; let tv4 = require('tv4'); let fs = require('fs'); const ejs = require('ejs'); let through = require('through2'); let PluginError = require('plugin-error'); let PLUGIN_NAME = 'wsDocGenerator'; module.exports = function (docfilePath, moduleName) { /** * @this {Transform} */ let transform = functi...
import React, { Component } from 'react' import { View,Text ,StyleSheet,WebView ,Button,ActivityIndicator, Dimensions , Alert} from 'react-native' import AsyncStorage from '@react-native-community/async-storage'; import { getStatusBarHeight } from 'react-native-status-bar-height'; import { CreditCardInput } from "reac...
import React, { Component } from 'react'; import Lista from '../../../../../components/Lista/Lista'; import { withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Creators as autenticacaoActions } from '../../../../../store/ducks/autenti...
var _data; function _defineProperty(e, t, a) { return t in e ? Object.defineProperty(e, t, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = a, e; } var util = require("../../utils/helper.js"), utils = getApp().helper; Page(_defineProperty({ data: (_da...
'use strict'; var gulp = require('gulp'), watch = require('gulp-watch'), /*=============================== = PostCSS = ===============================*/ postcss = require('gulp-postcss'), autoprefixer = require('autoprefixer'), precss = require('precss'), postcssCenter = require('postcss-ce...
import parseUnit from 'parse-unit' import clonedeep from 'lodash.clonedeep' import eases from 'eases' const instances = [] let customScroll = { enabled: false, } /** * Debounces a function that will be triggered many times. * @param {Function} fn * @param {Integer} duration * @returns {Function} */ const debounc...
import React from "react"; /* ManuscriptForm - The top-level component of the manuscript/letters * selection form (aka the scriptchart options form). * Changes made to any of the form options eventually make their way * back to this component's state. * Its state is sent back to the App as the form data, to be * ...
const path = require('path'); const fs = require('fs'); const express = require('express'); const router = express.Router(); const date = require('date-and-time'); const redis = require("redis"); const momentTZ = require('moment-timezone'); const sha3 = require("crypto-js/sha3"); var redis_host = "127.0.0.1"; if( pr...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import _ from 'lodash'; import classNames from 'classnames'; // import uiConfig from '../../../constants/uiConfig'; import Avatar from '../../../Avatar'; import r...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
import FilesAPI from '../files.js' // import UploadJob from './upload-job.js' import settingsSvs from '@/services/settingsSvs' // import TokenStore from '@/services/TokenStore' const STS_UPLOAD_SIZE = 4 * 1024 * 1024; // 4MB var gUploadList_ref = null; var concurrency=0 var userInfo = null; export default { startA...
import THREE from '../third_party/three.js'; import {renderer, getCamera} from '../modules/three.js'; import {Curves} from '../third_party/THREE.CurveExtras.js'; import Maf from '../modules/maf.js'; import easings from '../modules/easings.js'; const canvas = renderer.domElement; const camera = getCamera(); camera.fov ...
import { Card } from "components"; import commonConfig from "config/common.js"; import Label from "egov-ui-kit/utils/translationNode"; import { businessServiceInfo, getDuesForPTMutation, searchConsumer, fetchConsumerBill } from "egov-ui-kit/utils/commons"; import get from "lodash/get"; import React from "react"; import...
/* eslint-disable import/no-cycle */ import DOMElems from './DOMElems.js'; import { setProp, selectAll, setStyle, classAction, insertHtml, select, event, } from './DOMFuncs.js'; import { getCurrentLangChoices, getUsername, resetLevel, setCurrentLangChoices, setUsername, }...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { compose, graphql } from 'react-apollo' import gql from 'graphql-tag' import Loader from '../../Loader' import RawHtmlElements from '../../RawHtmlElements' import ErrorMessage from '../../ErrorMessage' import { gotoMerci } from '../../...
/* jshint -W083 */ /* jshint strict:true */ /* jslint node: true */ /* jslint esversion: 9 */ 'use strict'; const Interval = require(__dirname + '/Interval.js'); /* * structure containing all Info of this machine */ const machine = { // aix,darwin,freebsd,linux,openbsd,sunos,win32 platform: '', // packageManage...
let serverControl = require('./db_controller.js'); var supportedImageFormats = ["png", "jpg", "jpeg", "gif"]; var supportedVideoFormats = ["webm", "mp4", "mov"]; var prefixes = ["www", "http://", "https://"]; module.exports = { ParseImageParameters: function(message, args){ ParseParameters(message, "image", ar...
import { getCommonHeader, getCommonCard, getCommonContainer, getLabel, getCommonTitle, getDateField, getPattern, getSelectField, getTextField, getBreak, getCommonApplyFooter } from "egov-ui-framework/ui-config/screens/specs/utils"; import { getSearchPensionerForPensionRevision ,getPMSPattern} fr...
const childProcess = require('child_process'); const path = require('path'); const BaseSocketClient = require('./baseSocketClient'); const ExSetupCmd1 = require('./parser/exSetupCommands'); const ExGetInstrumentCount = require('./parser/exGetInstrumentCount'); const ExGetMarkets = require('./parser/exGetMarkets'); cons...
import searchParamsReducer from './../../src/reducers/search-params-reducer'; import itinerariesByIdReducer from './../../src/reducers/itineraries-by-id-reducer'; import geojsonByIdReducer from './../../src/reducers/geojson-by-id-reducer'; import rootReducer from './../../src/reducers/index'; import { createStore } fro...
function textarea_content_height(textarea) { // This trick only works if display is not 'none'. let old_display = textarea.style.display; textarea.style.display = 'block'; // The trick is to measure the height of the text in the text area. let old_height = textarea.style.height; textarea.style.height = '0px...
import React from "react"; import { Container, Row, Col, Card, CardBody, Button, FormInput, FormGroup } from "shards-react"; import firebase from "../../../util/firebase"; import NotificationUser from "../../../components/modals/NotificationUser"; import { BsTrash } from "react-icons/bs"; import { ImCheckmark } from "r...
/* * Copyright 2018 DoubleDutch, Inc. * * 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 applicable law or agre...
import React, { useState, useEffect, useCallback } from "react"; import useFetch from "use-http"; import useWebSocket from "react-use-websocket"; import Spinner from "./components/Spinner"; import ReactPaginate from "react-paginate"; import Check from "./components/Check"; import ExclamationTriangle from "./components/...
import {Seq, Map, List} from "immutable"; import { LOAD_PROJECT, NEW_PROJECT, OPEN_CATALOG, MODE_VIEWING_CATALOG, MODE_CONFIGURING_PROJECT, SELECT_TOOL_EDIT, MODE_IDLE, UNSELECT_ALL, SET_PROPERTIES, SET_ITEMS_ATTRIBUTES, SET_LINES_ATTRIBUTES, SET_HOLES_ATTRIBUTES, REMOVE, UNDO, ROLLBACK, ...
import Head from "next/head"; import { Fragment } from "react"; import client from "@Utils/apollo"; import { gql } from "@apollo/client"; import { useRouter } from "next/router"; import H1 from "@Components/UI/H1"; import H2 from "@Components/UI/H2"; import H3 from "@Components/UI/H3"; import P from "@Components/UI/P";...
$(document).ready(function () { console.log("-------------"); console.log("00000080 01 04 45 54 68 65 20 54 69 6D 65 73 20 30 33 2F ..EThe Times 03/"); console.log("00000090 4A 61 6E 2F 32 30 30 39 20 43 68 61 6E 63 65 6C Jan/2009 Chancel"); console.log("000000A0 6C 6F 72 20 6F 6E 20 62 72...
// Copyright 2019 Esri // 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 applicable law or agreed to in writing, software //...
import { useEnvironment } from '@chakra-ui/react-env'; import { noop, isBrowser, __DEV__ } from '@chakra-ui/utils'; import * as React from 'react'; function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var k...
import {DraftBotEmbed} from "../../core/messages/DraftBotEmbed"; module.exports.commandInfo = { name: "petsell", aliases: ["psell", "ps"], allowEffects: EFFECT.SMILEY }; /** * Allow to sell pet * @param {module:"discord.js".Message} message - Message from the discord server * @param {("fr"|"en")} language - Lan...
import _extends from '@babel/runtime/helpers/extends'; import _regeneratorRuntime from '@babel/runtime/regenerator'; import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator'; import _slicedToArray from '@babel/runtime/helpers/slicedToArray'; import { createElement, useEffect as useEffect$1, useRef as use...
function gs(x, y) { if (document.fs.nsns[13].checked) window.open(x + encodeURI(document.fs.key.value, y)); else window.open(x + document.fs.key.value, y) } function ggl(y) { var f = document.gform; f.q.value = document.fs.key.value; f.channel.value = "footer"; f.target = y; f.submit(); f.reset(); } ...
import React from "react"; import Dialog from "@material-ui/core/Dialog"; // import DialogTitle from "@material-ui/core/DialogTitle"; import "litegraph.js/css/litegraph.css"; import { makeStyles } from "@material-ui/core/styles"; import Grid from "@material-ui/core/Grid"; import Stepper from "@material-ui/core/Stepper"...
import { createSelector } from 'reselect'; import { Map } from 'immutable'; import { selectEntities, selectSortByQuery, selectSortOrderQuery, selectFWTaxonomiesSorted, selectFWRecommendations, selectFWMeasures, selectActiveFrameworks, } from 'containers/App/selectors'; import { attributesEqual } from 'u...
import { Link } from 'gatsby'; import React, { useState } from 'react'; import { Collapse, Header as HeaderReactKit, Headers, HeaderContent, Icon, Nav, NavItem, HeaderBrand, HeaderLinkZone, } from 'design-react-kit'; import { createUseStyles } from 'react-jss'; import links from '../../contents/links....
// curl -d "grant_type=client_credentials&client_id=8CkHxCo6UyK3VArr3OYiNyjbgxIDxNnnTBtkeBlQUDukRHWL3M&client_secret=<KEY>" https://api.petfinder.com/v2/oauth2/token 'use strict' require('dotenv').config(); const express = require('express'); const cors = require('cors'); const superagent = require('superagent');...
var ZIP_FILE = require('is-zip-file'); var FS = require('fs'); var UNZIPPER = require('unzipper'); var sanitize = require('sanitize-filename'); var PATH = require('path') var tempPath = require('temp-dir'); const tempDirectory = require('temp-dir'); var STREAM_CHAIN = require('stream-chain'); const Pick = require('stre...
'use strict'; const HISTORY_LENGTH = 30; const ONE_SECOND_IN_MILLISECONDS = 1000; const ONE_MINUTE_IN_MILLISECONDS = 60 * ONE_SECOND_IN_MILLISECONDS; const ONE_HOUR_IN_MILLISECONDS = 60 * ONE_MINUTE_IN_MILLISECONDS; const STATISTIC_INTERVALL = HISTORY_LENGTH * 60 * 1000; // max time unit is hours const {inspect} = req...
#!/usr/bin/gjs // Copyright (c) 2014 <NAME>. // Use of this software is governed by the MIT license. See the LICENSE file // for details. const Lang = imports.lang; const GLib = imports.gi.GLib; const Gtk = imports.gi.Gtk; const Gst = imports.gi.Gst; imports.searchPath.unshift('.'); const P = imports.player; const ...
const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"]; const DAYS = ["Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat"]; // const orgs = ["uiccs"]; const orgs = ["acm", "lug", "wics", "uiccs"]; const orgData = []; orgData["acm"] = { name: "Association for Computing M...
// // Copyright IBM Corp. 2021, 2021 // // 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 React, { useState, useRef, useEffect, forwardRef } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import...
let state = {}; const initialState = { isPowerOn: false, isGameRunning: false, isStrictModeOn: false, turn: null, stepCounter: 0, computerSteps: [], playerSteps: [], playerTimeLimit: 5 }; const steps = ["green", "red", "yellow", "blue"]; const stepsToWin = 20; let timeoutForPlayerTime...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @module node-opcua-factory */ const node_opcua_assert_1 = require("node-opcua-assert"); const node_opcua_basic_types_1 = require("node-opcua-basic-types"); const node_opcua_guid_1 = require("node-opcua-guid"); const node_opcua_...
"use strict"; import Zabbix from "./lib/zabbix-promise.js"; import "./lib/crypt.io.js"; import png_sev_1 from "./images/sev_-1.svg"; import png_sev0 from "./images/sev_0.svg"; import png_sev1 from "./images/sev_1.svg"; import png_sev2 from "./images/sev_2.svg"; import png_sev3 from "./images/sev_3.svg"; import png_sev...
"use strict"; /* * Copyright (c) 2006-2009 <NAME> http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for ...
"use strict"; var canvi = new Canvi({ navbar: ".canvi-navbar", content: ".canvi-content", pushContent: false, width: "80%", }); mapkit.init({ authorizationCallback: function (done) { fetch("/mapkit/token") .then(response => response.json()) .then(result => { ...
import React from 'react'; import PropTypes from 'prop-types'; import { compose } from 'recompose'; import { graphql } from 'react-apollo'; import { connect } from 'react-redux'; import { NavLink } from 'react-router-dom'; import { withStyles } from 'material-ui/styles'; import ArrowBackIcon from 'material-ui-icons/A...
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: MIT-0 * * 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...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const turbine = require("turbine"); var TeventDispatcher = turbine.events.TeventDispatcher; var Ttimer = turbine.tools.Ttimer; const Promise = require("bluebird"); class Tscheduler extends TeventDispatcher { constructor(config) { ...
/*! * env.js - environment for bcoin * Copyright (c) 2014-2015, <NAME> (MIT License). * Copyright (c) 2014-2017, <NAME> (MIT License). * https://github.com/bcoin-org/bcoin */ 'use strict'; var lazy = require('./utils/lazy'); /** * A bcoin "environment" which exposes all * constructors for primitives, the bloc...
var showObj = { "public_service": "筹爱心", "entity": "筹好货", "stock": "筹好业", "house": "筹好房" }; var type = getQueryString("type"); $(function(){ $("#breadWord").text(showObj[type]);//标题根据Url类型展示 $("#breadTitle").text(showObj[type]);//标题根据Url类型展示 index2ScrollLoan(); getIndexLoanList("", "hot", "indexH...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { ImgBox, Card, Radio, Status, Modal, Alert, DateTimeInput, Input, Submit, Textarea, Select, Popover,Pagination } from '../../tools'; import { showModal, hideModal } from '../../../actions/modal';...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
const CookieJar = require("cookiejar"); const http = require("http"); const proxyquire = require("proxyquire"); const qs = require("qs"); const util = require("util"); function createTimeoutError() { const error = new Error(); error.name = "TimeoutError"; return error; } function decodeResError(res, metadata, e...
/*jshint quotmark: false*/ 'use strict'; var fs = require('fs'); var path = require('path'); var chalk = require('chalk'); var Promise = require('ember-cli/lib/ext/promise'); var Task = require('ember-cli/lib/models/task'); var stringUtils = require('ember-cli-string-utils'); va...
const defaultTheme = require('tailwindcss/defaultTheme') const colors = require('tailwindcss/colors') const { default: flattenColorPalette } = require('tailwindcss/lib/util/flattenColorPalette') const { toRgba } = require('tailwindcss/lib/util/withAlphaVariable') module.exports = { mode: 'jit', purge: ['./src/**/*...
'use strict'; import React, { Component } from 'react'; import { Link, browserHistory } from 'react-router'; import { FormattedMessage } from 'react-intl'; import translate from 'app/global/helper/translate'; import { graphql } from 'react-apollo'; import UpdateBoardMutation from 'app/graphql/mutations/boards/Update'...
function isObject(o) { return (o instanceof Object && !(o instanceof Array) && typeof(o) !== 'function' && Object.keys(o).length > 0) } function normalize(row) { var res = {}, item; var keys = Object.keys(row); for (var kk = 0; kk < keys.length; ++kk) { var...
// <NAME> // CSCI 130 Project // Prof. <NAME> // California State University, Fresno var gomoku = document.getElementById('game'); var timer = document.getElementById('timer'); var totalPieces = document.getElementById('totalPieces'); var p1Pieces = document.getElementById('p1Pieces'); var p2Pieces = document.getEleme...
/* * This file is part of Adblock Plus <https://adblockplus.org/>, * Copyright (C) 2006-present eyeo GmbH * * Adblock Plus is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * Adblock Plus is ...
/* * Copyright 2018 Google Inc. * * 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 applicable law or agreed to ...
"use strict"; exports.TopPocket = exports.TopPocketPropsType = exports.TopPocketProps = exports.viewFunction = void 0; var _inferno = require("inferno"); var _vdom = require("@devextreme/vdom"); var _load_indicator = require("../load_indicator"); var _type = require("../../../core/utils/type"); var _message = _in...
function createTimelineBox({RL, offSet, entity}) { let box = document.createElement('div'); box.className = `box ${RL}`; box.style.top = `${offSet}px`; box.id = entity.tableID + entity.id + (entity.SF === 'finish' ? 'f' : ''); Object.entries(entity).forEach(([ key, value ]) => { if (key.match(/(id)|(rowSpan)|(S...
/** * Request handlers */ //Dependecies const _data = require('./data'); const helpers = require('./helpers'); //Define the handlers const handlers = {} //user handler handlers.users = (data, callback) => { const acceptableMethods = ['post','get','put','delete']; if(acceptableMethods.indexOf(data.metho...
import React from 'react'; import PropTypes from 'prop-types'; import hoistNonReactStatics from 'hoist-non-react-statics'; import { days, months } from './utils'; import { format, getYear, getMonth, addMonths, subMonths, isSameMonth, isSameDay, eachDayOfInterval, addYears, subYears, isWeekend, s...
const sql = require('mssql'); const jwt = require('jsonwebtoken'); const moment = require('moment'); const config = require('../../lib/configDB'); require('dotenv').config(); require('date-utils'); exports.details = async (req, res) => { const path = req.path.split('/')[1]; const { ct } = req.query; try { ...
import dependencyInjector from '../core/utils/dependency_injector'; import { inArray, find } from '../core/utils/array'; import { escapeRegExp } from '../core/utils/common'; import { each } from '../core/utils/iterator'; import { isPlainObject } from '../core/utils/type'; import { getFormatter } from './ldml/number'; i...
/* eslint-disable prefer-const */ /* eslint-disable no-undefined */ /* eslint-disable no-else-return */ /* eslint-disable no-eval */ import { Line } from '@ant-design/plots'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { isUndefined, omitBy, intersection, cloneDeep } from 'lodas...
var stripe = Stripe("<KEY>"); var elements = stripe.elements(); var card = elements.create('card', { 'style': { 'base': { 'fontFamily': 'Cursive , Helvetica, Arial, sans-serif', 'fontSize': '20px', 'color': 'black' }, 'invalid': { 'color': 'red', } } }); // Add an instance o...
/* global Phaser*/ var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update }); var platforms; var player; var cursors; var stars; var diamonds; var diamond; var score = 0; var scoreText; var gh; var hg; var pie; function purplecow(diamond, platforms) { va...
"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...
// const log4js = require('log4js'); const _ = require('lodash'); // const logger = log4js.getLogger(global.loggerName); function tab(len) { let d = ''; while (len > 0) { d += ' '; len--; } return d; } /** * * @param {any} dataJson */ function generateCode(dataJson) { const inputStage = dataJson.input...
const BSON = require('bson'); const { Long } = BSON; const { snappy } = require('./snappy_importer'); const zlib = require('zlib'); const { opcodes } = require('./utils'); const { compressorIDs } = require('./utils'); /* * Request class */ const Request = function (server, connection, response) { this.server = se...
'use strict'; const hid = require('node-hid'); const perfmon = require('perfmon'); const request = require('request'); // Keyboard info const KEYBOARD_NAME = "SPLIT_PERSONALITY"; const KEYBOARD_USAGE_ID = 0x61; const KEYBOARD_USAGE_PAGE = 0xFF60; const KEYBOARD_UPDATE_TIME = 1000; // Info screen types const SCREEN_P...
import React from 'react'; import Typography from '@material-ui/core/Typography'; import Paper from '@material-ui/core/Paper'; import TextField from '@material-ui/core/TextField'; import Autocomplete from '@material-ui/lab/Autocomplete'; import Button from '@material-ui/core/Button'; import Box from '@material-ui/core...
import { THREE } from '../utils' import { getFileById } from '../assets/types' import { Rand } from '../assets/Rand' import { recoverModel, getRecoverModel } from '../assets/pool' import AABBShape from './AABBShape' // import AABBShape from './AABBShape' // const testMaterial = new THREE.MeshBasicMaterial({ color: 0x00...
import React, { useContext, useState, useEffect } from "react"; import styled from "styled-components"; import { Link } from "gatsby"; import { window } from "browser-monads"; import Img from "gatsby-image"; import { TransitionMixin, media } from "../helpers"; import { StoreContext } from "../../context/StoreContext";...
import React, { useRef, useState, useEffect, useContext } from 'react' import styled, { keyframes } from 'styled-components' import { Icon } from '@iconify/react' import bxsSearchAlt2 from '@iconify/icons-bx/bxs-search-alt-2' import roundClose from '@iconify/icons-ic/round-close' import Button from './Button' import {...