text stringlengths 3.07k 16k |
|---|
'use strict';
// Require various libraries.
var d3 = require('d3');
// Use d3's built-in string-to-date parser.
var parseDate = d3.time.format('%Y-%m-%d').parse;
// Store chart data here.
var data = null;
// Declare scale variables.
var x;
var y;
// Declare axes variables.
var xAxis;
var y... |
"use strict";
// Global modules
const Lang = imports.lang;
const St = imports.gi.St;
const Main = imports.ui.main;
const PanelMenu = imports.ui.panelMenu;
const PopupMenu = imports.ui.popupMenu;
// Internal modules
const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
co... |
Object.defineProperty(exports, '__esModule', {
value: true,
});
let _extends = Object.assign || function (target) { for (let i = 1; i < arguments.length; i++) { let source = arguments[i]; for (let key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return targ... |
import React from 'react';
import Measure from 'react-measure';
import { connect } from 'react-redux';
import compose from 'lodash.flow';
import BubbleDisplay from '../../components/BubbleDisplay/BubbleDisplay';
import SingleBubble from '../../components/SingleBubble/SingleBubble';
import TimelineScrubber from '../../... |
import jsDom from 'jsdom-global';
import fs from 'fs';
import _path from 'path';
export class EnvLoader {
static loadClass(scriptPath, ...classNames) {
return this._wrapWithPromise(resolve => {
this._checkPathExistence(scriptPath);
fs.readFile(scriptPath, (err, data) =>... |
import React from 'react'
import SvgUri from 'react-native-svg-uri'
import { Alert, View } from 'react-native'
import { Spinner } from '../../components/elements/Spinner/Spinner'
import { H2, H3, Paragraph } from '../../components/typography/Typography'
import { PrimaryButton } from '../../components/elements/Button/Bu... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { UncontrolledDropdown, DropdownToggle, DropdownMenu, DropdownItem, ListGroup, ListGroupItem } from 'reactstrap';
import { connect } from 'react-redux';
import { bindActionCreators } from... |
import React, { useEffect } from 'react';
import { t, Trans } from '@lingui/macro';
import { useField } from 'formik';
import { Link } from 'react-router-dom';
import { FormGroup } from '@patternfly/react-core';
import { minMaxValue, regExp } from 'util/validators';
import AnsibleSelect from 'components/AnsibleSelect'... |
/**
* Inspects a module and discovers/categorises import & export declarations
* @param {object} mod - the module object
* @param {string} source - the module's original source code
* @param {object} ast - the result of parsing `source` with acorn
* @returns {array} - [ imports, exports ]
*/
export default functi... |
import './index.scss';
import oa from 'es6-object-assign';
import ActiveFilters from './components/activefilters';
import Autocomplete from './components/autocomplete';
import Facets from './components/facets';
import Filters from './components/filters';
import FilterStateObserver, { createFilterObject } from './compo... |
"use strict";
/**!
* @module search
* @file Search functions.
* @description The search panel is located at the 1st position of the dash
* panel. The user may select a field and specify criteria of search. The
* function will find and select contigs that meet the criteria.
*/
/**
* Initialize search panel con... |
const fs = require("fs");
var Chess = require('./chess').Chess;
var chess = new Chess();
console.log(chess.get('a2'));
console.log(chess.get('a7'));
const readline = require("readline");
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
function player() {
while (!chess... |
import{html,Polymer}from"../../@polymer/polymer/polymer-legacy.js";import"../../@polymer/iron-ajax/iron-ajax.js";import"../../@polymer/paper-button/paper-button.js";import"../../@polymer/paper-spinner/paper-spinner.js";import"../../@polymer/iron-icons/iron-icons.js";import"../../@polymer/iron-icon/iron-icon.js";import"... |
import {assert, log} from '@luma.gl/webgl';
import {Matrix4, Quaternion} from 'math.gl';
// TODO: import from loaders.gl?
export const ATTRIBUTE_TYPE_TO_COMPONENTS = {
SCALAR: 1,
VEC2: 2,
VEC3: 3,
VEC4: 4,
MAT2: 4,
MAT3: 9,
MAT4: 16
};
export const ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY = {
5120: Int8Array... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
$(document).ready(function () {
setTable();
loadawal();
$('#alert_save').hide();
$('#alert_error').hide();
// $("#success-alert").hide();
// $("#myWish").click(function showAlert() {
// $("#success-alert").fadeTo(2000, 500).slideUp(500, function(){
// $("#... |
import Vue from 'vue'
import Router from 'vue-router'
import Main from '../views/Main';
Vue.use(Router);
/**
* 通用路由, 注意此部分路由不会显示在菜单中
* 默认情况下,webapp只注册了这一部分路由,在用户登陆后, 将根据授权服务器与asyncRouterMap之间比较后新增新的路由
* @type {*[]}
*/
export const commonRouterMap = [
{path: '/login', name: 'login', meta: {title: '登陆系统 - Fastj... |
// Test video quadFeature
/* global HTMLVideoElement */
var geo = require('../test-utils').geo;
var createMap = require('../test-utils').createMap;
var waitForIt = require('../test-utils').waitForIt;
describe('geo.util.isReadyVideo', function () {
'use strict';
it('isReadyVideo', function (done) {
var video... |
const configURL = "https://maps.googleapis.com/maps/api/js?key=";
const fruitversion = "v1.0.9";
let portx = process.env.PORT;
if (portx == null || portx == "") {
portx = 8000;
}
const cookieParser = require('cookie-parser')
const request = require("request");
const flatMap = require('array.prototype.flatm... |
import bl from 'bl'
import childProcess from 'child_process'
import fs from 'fs'
import Queue from '../../../common/async/promise-queue'
import { writeFile } from '../file-upload'
import { addMap } from '../models/maps'
const BW_DATA_PATH = process.env.SB_SPRITE_DATA || ''
const MAX_CONCURRENT = Number(process.env.SB_... |
import crypto from 'crypto'
import RIPEMD160 from 'ripemd160'
import Mnemonic from 'bitcore-mnemonic'
import * as DdnCrypto from '@ddn/crypto'
import { nacl } from '@ddn/crypto'
import { constants } from '../config'
import { getBytes } from '../bytes'
import { getFee } from '../fees'
// const Buffer = require('safe-b... |
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const color_1 = require("../../../core/util/color");
const logging_1 = require("../../../core/logging");
class BaseGLGlyph {
constructor(gl, glyph) {
this.gl = gl;
this.glyph = glyph;
this.nvertices = 0;
thi... |
/*
This file is part of vnt.js.
vnt.js 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 3 of the License, or
(at your option) any later version.
vnt.js is distributed i... |
import React from 'react'
import { Link } from 'gatsby'
import styled from 'styled-components';
import Theme from '../components/theme';
import ThemeSelector from '../components/themeSelector';
import Format from '../components/format';
import Solid from '../components/solid';
import Header from '../components/header'... |
import React, {useState} from 'react';
import {useHistory} from 'react-router-dom';
import {makeStyles} from '@material-ui/core/styles';
import {useDispatch, useSelector} from 'react-redux';
import {sessionActions} from './store';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Too... |
import { __extends, __assign } from 'tslib';
import { addTypenameToDocument } from '../../utilities/graphql/transform.js';
import { ApolloCache } from '../core/cache.js';
import './fixPolyfills.js';
import { wrap, dep } from 'optimism';
import { EntityStore, supportsResultCaching } from './entityStore.js';
import { Sto... |
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import { starts_with, is_blank, repeat } from './helpers';
// tabulation utilities
var Tabulator = function () {
function Tabulator(tab) {
_classCallCheck(this, Tabulator);
this.tab ... |
import Vue from 'vue'
const TOKEN_ISSUES = [
'Expired token',
'Syntax error, malformed JSON',
'Signature verification failed',
'Unknown JSON error: 5',
'Unexpected control character found'
]
export const resetters = []
/**
* VueX Store configuration
*
* @module
*
* @type {Store}
*
* @property {Objec... |
const XPView = require( "xmas/xpview/XPView" )
const scrollEmul = require( "xmas/core/scrollEmul" )
const loop = require( "fz/core/loop" )
const stage = require( "fz/core/stage" )
const loader = require( "loader" )
let cookie = require( "xmas/utils/cookie" )
let pixi = null
let Home = null
let About = null
let Ui = nul... |
function RecalculateMozaicToolboxHeight() {
var leftBar = $("#mozaicLeftBar");
var leftBarMinimized = $("#mozaicLeftBarMinimized");
var scrollTop = $(window).scrollTop();
var lowerPanelTop = $("#lowerPanel").offset().top;
var topBarHeight = $("#topBar").height() + $("#appNotificationArea").height()... |
let MongoClient = require('mongodb').MongoClient;
let url = 'mongodb://172.16.58.3:27017/mydb';
let username = '';
let password = '';
/**
* This method is for write a new bot or changing intents inside
* the Mongo Database
* @param {*JSON-Object} request
* @returns boolean if writing to the Database was sucessfu... |
import { Matrix4, Sphere, Ray, Vector3 } from 'three';
const _sphere = new Sphere();
const _mat = new Matrix4();
const _vec = new Vector3();
const _vec2 = new Vector3();
const _ray = new Ray();
const _hitArray = [];
function distanceSort( a, b ) {
return a.distance - b.distance;
}
function intersectTileScene( sce... |
import { set } from 'vue'
import store from '../store'
import emojify from 'emojify.js'
import * as types from '../mutation-types'
import * as token from '../../utils/token'
import * as helpers from '../../utils/helpers'
import * as userSocket from '../../utils/user-socket'
import { setSearching, fetchContactEvents } f... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { PostTweet, LoadTweets } from '../service/ActionService';
import '../assets/Composer.css';
const styles = {
container: {
"marginTop": "10px"
},
banner: {
"cursor": "pointer"
},
removePhoto: {
"height": "10px... |
import classNames from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import styled from 'styled-components';
import Button from '../../shared/Button';
import Dropdown from '../../shared/Dropdown';
import Emojify from '../../shared/Emojify';
import... |
var START_BTN = $("#start_btn");
var RESTART_BTN = $("#restart_btn");
var GAME_OVER_IMG = $(".you_lose");
var INCREASED_SPEED = $(".increased_speed");
/**
* Restart button listener and visual effect.
*/
RESTART_BTN.button();
RESTART_BTN.click(function () {
RESTART_BTN.hide("bounce", 1000);
GAME_OVER_IMG.hide("b... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... |
function createMap(earthquakes, tectonicplates) {
var darkmap = L.tileLayer("https://api.mapbox.com/styles/v1/mapbox/dark-v10/tiles/{z}/{x}/{y}?access_token={accessToken}", {
attribution: "© <a href='https://www.mapbox.com/about/maps/'>Mapbox</a> © <a href='http://www.openstreetmap.org/copyright'>OpenStreet... |
'use strict';
const colors = require('colors');
const fs = require('fs');
const activationFunc = x => x;
const derivActivationFunc = x => 1;
const activationFunc2 = x => 1 / (1 + Math.exp(-x));
const derivActivationFunc2 = x => Math.exp(-x) / Math.pow(1 + Math.exp(-x), 2);
const activationFunc3 = x => 2 / (1 + Math... |
var bucketName = 'team30ws-mediarepofinalresized';
var bucketRegion = 'us-east-1';
var IdentityPoolId = 'us-east-1:80a04569-cb3e-4321-bbd3-2049ac9c23cc';
AWS.config.update({
region: bucketRegion,
credentials: new AWS.CognitoIdentityCredentials({
IdentityPoolId: IdentityPoolId
})
});
var s3 = new A... |
let colors = ["#f4b84d", "#ff449b", "#76317c", "#3baadf", "#f4b84d", "#ff449b"];
let prizes = [
"25% OFF",
"90% OFF",
"50% OFF",
"15% OFF",
"LOSS",
"10% OFF",
];
let startAngle = (0 * Math.PI) / 180;
let arc = (2 * Math.PI) / colors.length;
let spinTimeout = null;
let spinArcStart = 10;
let spinTime = 0;
... |
import axios from 'axios'
let utils = require('../../utils');
const state = {
priorityColor: '',
selectedDate: null,
addEvent: {
EventName: '',
EventTime: null,
DateFrom: null,
DateTo: null,
Description: '',
Priority: 'L',
EventType: '',
TargetGroup: [],
EventPrivacy: 'PBL',
... |
/* eslint-disable max-lines, no-magic-numbers */
"use strict";
const ERROR = "error";
const WARN = "WARN";
const OFF = "off";
const codeStyle = {
"react/boolean-prop-naming": OFF,
"react/button-has-type": OFF,
"react/default-props-match-prop-types": [ERROR, {
allowRequiredDefaults: false,
}],... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.withRemoteOptions = exports.Store = void 0;
var tslib_1 = require("tslib");
/**
* 让选项类的组件支持远程加载选项。
*
* 目前这个逻辑其实在 renderer/form/options 中有
* 但是那个里面耦合较多,没办法简单的在组件之间相互调用,
* 所以先单独弄个 hoc 出来,后续再想个更加合理的方案。
*/
var react_1 = tslib_1.__imp... |
/* Task Description */
/*
* Create an object domElement, that has the following properties and methods:
* use prototypal inheritance, without function constructors
* method init() that gets the domElement type
* i.e. `Object.create(domElement).init('div')`
* property type that is the type of the domElement
* a va... |
import React from 'react';
import Page from '../layout/page.js';
import {Redirect} from 'react-router-dom'
import ReactTable from "react-table";
import 'react-table/react-table.css'
import matchSorter from 'match-sorter'
import checkboxHOC from "react-table/lib/hoc/selectTable";
const CheckboxTable = checkboxHOC(React... |
import React from 'react';
import styled from 'styled-components';
// Importing Icons
import HeartIcon from '../assets/icons/heart.png';
import CloudIcon from '../assets/icons/cloud.png';
import HeadphonesIcon from '../assets/icons/headphones.png';
import PlayIcon from '../assets/icons/play.png';
// Styled compo... |
const Command = require("../../structure/Command.js"),
{ MessageEmbed } = require("discord.js");
class Warnlist extends Command {
constructor (client) {
super(client, {
name: "warnlist",
dirname: __dirname,
aliases: [ "warns", "seewarns", "view-warns", "sanctions" ],
memberPermissions: [ "MANAGE_GUIL... |
$('#search_workflow').select2({placeholderOption: "first", allowClear:true});
var table = $('#ticket_table').DataTable({
ordering: false,
searching : false,
"processing": true,
"serverSide":true,
"bFilter":true,
"lengthMenu": [10, 25, 50, 100 ],
"language": {
"searchPlaceholder": "名称或描述模糊搜索"
},
... |
/**
* Module dependencies.
*/
const fs = require('fs');
const express = require('express');
const compression = require('compression');
const session = require('express-session');
const bodyParser = require('body-parser');
const chalk = require('chalk');
const errorHandler = require('errorhandler');
const l... |
/*
The MIT License (MIT)
Copyright (c) 2014 <NAME>, https://github.com/jotak/mipod
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 us... |
var Event = require('../models/event.model');
var User = require('../models/user.model');
var _ = require('underscore');
var Q = require('q');
var clientConstants = require('../clientConstants');
var moment = require('moment');
var Boom = require('boom');
var mongoose = require('mongoose');
module.exports = {
getEv... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { View, Text, Dimensions } from 'react-native'
import { Actions } from 'react-native-router-flux'
import { Icon, Card } from 'react-native-elements'
import PropTypes from 'prop-types'
import Deck from './Deck'
import {
resetTeams,
... |
import {Animations, Chart} from 'chart.js';
import {clipArea, unclipArea, isObject, isArray} from 'chart.js/helpers';
import {handleEvent, hooks, updateListeners} from './events';
import {adjustScaleRange, verifyScaleOptions} from './scale';
import {annotationTypes} from './types';
import {version} from '../package.jso... |
import {
getOrganization,
getUserExact,
getTeam,
} from '../fixtures';
let data;
const spinny = "//*[contains(@class, 'spinny')]";
const checkbox = '//input[@type="checkbox"]';
const searchBar = "//input[contains(@class, 'SmartSearch-input')]";
const modalSearchBar = '//*[@ui-view="modal"]//*[contains(@cl... |
// import inquirer from 'inquirer';
const inquirer = require('inquirer');
const fs = require('fs');
var array = [];
// generate top section of html page
var header =
`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href... |
import React, { useState } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import {
Container, Button, Icon, Header, Image, Dimmer, Dropdown, Grid, Popup
} from "semantic-ui-react";
import {
Doughnut, Polar, Pie, Radar
} from "react-chartjs-2";
import BarChart from "../../Ch... |
/**
* The /hosted routes allow you to create applications using OTHER LoginWithPayPal applications but AppsForHere
* infrastructure. For example, you could build a mobile point of sale using the PayPal Here mobile SDKs without
* your own custom back end. (Or given that you're reading this source, you can modify this... |
class ZoomMenuButton extends videojs.getComponent('MenuButton') {
constructor(player, options) {
super(player, options);
}
createMenu() {
var menu = new ZoomMenu(this.player(), this.options);
var el = this.el().getElementsByClassName('vjs-icon-placeholder')[0];
var... |
import React from 'react';
import { PropTypes } from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { commitMutation, createFragmentContainer, graphql } from 'react-relay/compat';
import { Store } from 'react-relay/classic';
import IconButton from '@material-ui/core/IconButton';
import ListItem fro... |
const { Bot, Discord } = require('discord.js-wrapper');
const VerificationMessage = require('./verification_message');
const Teams = require('./teams');
class TeamBot extends Bot {
constructor(options) {
super(options);
this.team = Teams.parse(options.team);
this.name = options.name;
this.avatar = op... |
/**
* Copyright (c) 2013 Creative Market
*
* 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 React, { Component } from "react";
import {
StyleSheet,
Image,
} from "react-native";
import { connect } from "react-redux";
import { View } from 'react-native-animatable';
import { homeViewInit } from "../../redux/actions/home";
import { HomeApi } from "../../services/api/home";
import { PublicStyles, wind... |
'use strict';
let atlas;
// See https://github.com/Netflix-Skunkworks/atlas-node-client/issues/25 for
// more details.
try {
atlas = require('bindings')('atlas');
} catch (loadErr) {
if (loadErr.message &&
/undefined symbol: [_\w]+atlas[_\w]+/.test(loadErr.message)) {
console.error('!!! Incompatible atl... |
var express = require('express');
var router = express.Router();
let innerController = require('../controllers/innerController')
let aclMiddleware = require('../acl/aclMiddleware');
router.use(aclMiddleware.isAllowedToAccess('item'))
/* GET users listing. */
/**
* @api {post} api/inner/create Create
* @apiGroup... |
// https://stackoverflow.com/questions/38499211/get-normal-of-bezier-curve-in-2d
// DeCasteljau
//P = (1−t)3P1 + 3(1−t)2tP2 +3(1−t)t2P3 + t3P4
// Outermost scope,
// You can access these variables from *anywhere*, in fxns, or in html
let myP5 = undefined
let debugDraw = true
let mousePositions = []
document.ad... |
/* tslint:disable */
import * as wasm from './hex_server_protocol_bg.wasm';
let cachegetUint32Memory = null;
function getUint32Memory() {
if (cachegetUint32Memory === null || cachegetUint32Memory.buffer !== wasm.memory.buffer) {
cachegetUint32Memory = new Uint32Array(wasm.memory.buffer);
}
return c... |
import { useRouter } from 'next/router';
const dummyWord = (length, volatility) => {
// const dummyChar = '\u2586'; // U+2586 LOWER THREE QUARTERS BLOCK (seems to broken in Firefox since March 2021)
const dummyChar = '\u2580'; // U+2580 UPPER HALF BLOCK
const charWidthFactor = 0.7; // because that block is much ... |
import * as tslib_1 from "tslib";
import * as React from 'react';
import { BaseComponent, classNamesFunction, customizable, divProperties, getInitials, getNativeProps, getRTL, } from '../../../Utilities';
import { mergeStyles } from '../../../Styling';
import { PersonaPresence } from '../PersonaPresence/index';
import ... |
import React, { useState } from 'react';
import { withRouter } from 'react-router';
import Back from "../../views/design/icons/Back";
import Tag from "../../views/profile/Tag";
import Picker from 'emoji-picker-react';
import GetApiClient from "../../helpers/ApiClientFactory";
import {TagsApi, UsersApi} from "sopra-fs21... |
var tampilanData = document.getElementById("tampilanData");
var db;
var datapinjaman = [];
function indexedDBOk() {
return "indexedDB" in window;
}
document.addEventListener("DOMContentLoaded", function () {
//No support? Go in the corner and pout.
if (!indexedDBOk) return;
var openRequ... |
"use strict"
var constant = require('./../constant');
var express = require('express');
var router = express.Router();
var ble = require('noble');
var timeoutVar;
var peripherals = [];
const TIMEOUT = 5 * 1000;
const TIMEOUT_SERV = 1 * 1000;
const TIMEOUT_IDLE = 1 * 1000;
/* GET home page. */
router.post... |
import React, { useState } from "react";
import { connect } from "react-redux";
//Apollo useMutation Hook for API call
import { useQuery, useMutation } from "@apollo/react-hooks";
//Importing GraphQL Query for useMutation API call
import { addLanguageMutation as ADD_LANGUAGE_MUTATION } from "../../queries/queries";
//... |
"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];
})... |
var mung = require('express-mung');
var Gelf = require('gelf');
var _config = {
logRequest : true,
requestLogLevel : "info",
logResponse : true,
responseLogLevel : "info",
environment : "live",
applicationName : "default",
logAccountId : false,
enableUncaughtException : true
};
var _gra... |
/**
* Author: DrowsyFlesh
* Create: 2020/10/21
* Description:
*/
import {Icon} from 'Components/Icon';
import {Image} from 'Components/Image';
import React, {useState, useCallback} from 'react';
import PropTypes from 'prop-types';
import styled, {keyframes} from 'styled-components';
import {av2bv} from 'Utils/funct... |
let L = console.log;
let $ = function(selector, node=document) { let nodes = node.querySelectorAll(selector); return selector.startsWith('#') ? nodes[0] : nodes }
let iframeResolver = [];
let activeWorkspace = 0;
(function() {
let components = [
{
urls: [
'views/modals.html',
'views/te... |
var APPLICATIONKEY = "26cec09426087ef56de1ba79b2291caccf7990b7165dac6910465d5334355ab5";
var CLIENTKEY = "<KEY>";
var ncmb = new NCMB(APPLICATIONKEY, CLIENTKEY);
var kyodenData = ncmb.DataStore('kyoden');
var map;
var marker2 = [];
var infoWindow2 = [];
var currentInfoWindow = null;
var stampclick2 = [];
var stamplat... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import ADSREnvelope from 'adsr-envelope'
import store from '../index'
import {
updateFilterTargetFreqs,
updateFilterResponse,
updatePlayingKeys,
} from '../actions'
import {
calculateFilterResponse,
createFilter,
updateFilter,
getLogScaleFrequencySample,
} from './filter'
import { createGainNodeForNode } ... |
const bitcoin = require('bitcoinjs-lib')
const axios = require('axios')
const production = true
const confirmationsMin = 6
const BITCOIN_DIGITS = 8;
const BITCOIN_SAT_MULT = Math.pow(10, BITCOIN_DIGITS);
const network = bitcoin.networks.bitcoin // production ? bitcoin.networks.bitcoin : bitcoin.networks.testnet
const b... |
import {MediaStreamOscilloscope, getUserMedia} from "../dist/index";
import {fabric} from "fabric";
let stats = document.querySelector(".status");
let cvs = document.querySelector(".cvs");
function smooth(value, prevValue, weight = 0.5){
return weight*value + (1-weight)*(prevValue ?? value);
}
class AutoScale{
... |
const request = require('request-promise');
const helper = require('node-red-viseo-helper');
const extractEntities = (prediction) => {
const entities = [];
const compositeEntities = [];
// Merge additional metadata in the $instance object to entities
if (prediction.entities.$instance) {
... |
import { app, BrowserWindow, globalShortcut, ipcMain, Menu, Tray, nativeImage } from 'electron';
import { autoUpdater } from 'electron-updater';
import path from 'path';
import url from 'url';
let tray = null;
let isLoggedIn = false;
let win = null;
let gallaryWin = null;
let imgArgs = {};
const startUrl = `file://... |
/**
* Created by cmiles on 8/9/2017.
*/
var loader_html = '<div class="preloader"> \
<div class="spinner-layer pl-light-blue"> \
<div class="circle-clipper left"> \
<div class="circle"></div> \
</div> \
<div class="circle-clipper right"> \
<div class="circle"></div> \
</div> \
</div> ... |
import React, { Component, Fragment } from 'react';
import { connect } from 'dva';
import { Form, Spin, Button, Input, Radio } from 'antd';
import EditPage from '@/components/EditPage';
import AntdForm from '@/components/AntdForm';
import router from 'umi/router';
import AdSelect from '@/components/AdSelect';
import An... |
/*jslint node: true, nomen: true*/
"use strict";
var _ = require("underscore");
var Feature = require("./feature");
var allowedFeatures = [
"mouth",
"nose",
"eyeLeft",
"eyeRight"
];
function Face(attributes) {
Feature.prototype.constructor.apply(this, arguments);
_.each(allowedFeatures, func... |
const mysql = require('mysql');
const inquirer = require('inquirer');
const cTable = require('console.table');
const _ = require('lodash');
//CONNECTING TO THE DATABASE
const connection = mysql.createConnection({
host: 'localhost',
port: 3306,
user: 'root',
password: '<PASSWORD>',
database: 'employeecms_db',... |
import { not } from "@ember/object/computed";
import EmberObject from "@ember/object";
import { scheduleOnce } from "@ember/runloop";
import Component from "@ember/component";
import LinkLookup from "discourse/lib/link-lookup";
let _messagesCache = {};
export default Component.extend({
classNameBindings: [":compose... |
// homebridge-lib/lib/JsonFormatter.js
//
// Library for Homebridge plugins.
// Copyright © 2018-2021 <NAME>. All rights reserved.
'use strict'
const homebridgeLib = require('../index')
/** JSON formatter.
*
* Class to format (pretty-print) JavaScript types to formatted JSON strings.
* This class is the engine... |
import * as tslib_1 from "tslib";
import "../../CommonImports";
import "../../Core/core.css";
import "./VssPersona.css";
import * as React from "react";
import { css } from '../../Util';
import { getColorString } from '../../Utilities/Color';
import { getInitialsColorFromName, getInitialsFromName } from "./VssPersona.I... |
// helpers
function html2text(html) {
html = html.replace(/\<(:?(:?script)|(:?style))(:?\>|(:?\s+[^>]*\>))(:?.|\n)*?\<\/(:?(:?script)|(:?style))\>/g,'')
var tmp = document.createElement("DIV");
tmp.innerHTML = html;
return tmp.textContent || tmp.innerText || "";
}
var scanned = { "Philosophy": true }
function s... |
/*jshint multistr: true */
'use strict';
var path = require('path');
var tmp = require('tmp-sync');
var expect = require('chai').expect;
var EOL = require('os').EOL;
var ember = require('../../helpers/ember');
var processHelpString = require('../../helpe... |
/*
Copyright 2019 Adobe. All rights reserved.
This file is licensed to you 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 agree... |
var React = require('react');
var $ = require('jquery');
var SearchDetails = React.createClass({
render: function() {
var omdb = {};
var keys = ["Title", "Year", "imdbID", "Rated", "Released", "Runtime", "Genre", "Director", "Writer", "Actors", "Plot", "Language", "Country", "Awards", "Poster"];
keys.for... |
import { testPluginOptionsSchema } from "gatsby-plugin-utils"
import { pluginOptionsSchema } from "../gatsby-node"
const rewire = require(`rewire`)
const fs = require(`fs`)
const path = require(`path`)
describe(`getPrecachePages`, () => {
const gatsbyNode = rewire(`../gatsby-node`)
const getPrecachePages = gatsbyN... |
import { render } from 'inferno';
import { isArray, isFunction, isInvalid, isNullOrUndef, isObject, isString, throwError } from 'inferno-shared';
import { getTagNameOfVNode as _getTagNameOfVNode, isClassVNode as _isClassVNode, isComponentVNode as _isComponentVNode, isDOMVNode as _isDOMVNode, isFunctionalVNode as _isFun... |
import React, { useState, useEffect } from "react";
import { useSelector, useDispatch } from "react-redux";
import styled from "styled-components";
import { Accordion, Icon } from "semantic-ui-react";
import axios from "axios";
import "./Restaurants.css";
import { setVisit } from "../../store/actions";
import { DeleteP... |
const STATUS_RUNNING = 'running';
const STATUS_EXITED = 'exited';
const STATUS_KILLED = 'killed';
var childProcess = require('child_process'),
fs = require('fs'),
path = require('path'),
console = require('./console');
var __basename = path.basename(__filename, '.js');
function e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.