text stringlengths 3.22k 29.5k |
|---|
import _regeneratorRuntime from 'babel-runtime/regenerator';
import _asyncToGenerator from 'babel-runtime/helpers/asyncToGenerator';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import * as RxCollection from './RxCollection';
import * ... |
import { S as SvelteComponentDev, i as init, s as safe_not_equal, d as dispatch_dev, v as validate_slots, f as featherSprite, a as space, e as element, t as text, q as query_selector_all, c as detach_dev, g as claim_space, h as claim_element, j as children, k as claim_text, l as add_location, m as attr_dev, n as insert... |
import { memo, useCallback, useEffect, useMemo, useRef } from 'react';
import { useHistory } from 'react-router-dom';
import axios from 'axios';
import get from 'lodash/get';
import {
useTracking,
useNotification,
useQueryParams,
formatContentTypeData,
contentManagementUtilRemoveFieldsFromData,
useGuidedTou... |
const apis = require('../../lib/apis');
const util = require('../../lib/util');
const storage = require('../../lib/storage');
const app = getApp();
Page({
data: {
navTitle: '话题详情',
detail: null,
publishBtnStatus: false, // 是否展示回帖
authDeny: false,
userInfo: null,
hasAuthorization: false
},... |
/**
* Recebe como parâmetro o nome da tag e classe
* para criar um novo elemento, retornando o mesmo com
* determinada tag e classe
*
* @param {String} tagName
* @param {String} className
*
* @returns {HTMLElement} elemento HTML criado
*
*/
function novoElemento(tagName, className) {
const elem = doc... |
// Copyright 2006 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 in writ... |
/**
* @module Utils
*
*/
import { isNone } from '@ember/utils';
import { assert } from '@ember/debug';
import { get, set } from '@ember/object';
import Base from './clock/base';
import { HOUR_FLAG } from './constant';
import dataArray, { /*getHourMinute,*/ getAttrs, createPoints } from './clock/data';
import render ... |
/**
* SimpleEdit Plugin.
*
* @param {string|function|object} methods
*/
$.fn.simpleedit = function (...methods) {
const settings = $.extend({}, $.fn.simpleedit.defaults, ...methods)
this.each(function () {
// Remove previous assignments
$(this).trigger('simpleedit.remove')
// Assig... |
import "./style.css"; // For webpack support
import {
Clock,
Matrix4,
Scene,
Color,
PerspectiveCamera,
LineSegments,
LineBasicMaterial,
HemisphereLight,
DirectionalLight,
BoxGeometry,
Mesh,
MeshLambertMaterial,
Vector3,
Raycaster,
WebGLRenderer,
sRGBEncoding,
BufferGeometry,
Float32... |
import React, { useEffect, useState, useRef } from 'react';
import { enums } from '../util';
const debugCss = false;
export const TabUi = ({ title, date, tab }) => {
const [tickIndex, setTickIndex] = useState(0);
const [tickAdvancer, setTickAdvancer] = useState(null);
const [isShowingBeats, setIsShowingBeats] =... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
var messages = {
send: function(message) {
/* send with socket */
socket.emit('usermessage',{
from: server.me,
to: server.conversationwith,
message: message
}) ;
/**/
new this.create(message,'own') ;
/* register to bd */
this.addmsgtobd(server.me,server.conversationwith,message,'own') ;
},
re... |
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// Modules to control application life and create native browser window
const {app, BrowserWindow, Tray, Menu, dialog, ipcMain} = req... |
/**
* Created by Harry on 13/12/2016.
*/
const mysql = require('mysql');
const archiver = require('archiver');
const unzip = require('unzip');
const fs = require('fs');
module.exports = {
retrieveData: function (req, res) {
let serverInfo = sails.config.constant.serverInfo.config;
let userId = req.session... |
import React, { Component } from 'react'
import { Divider, Input, Button, Icon, Form, Segment } from 'semantic-ui-react'
import { Rnd } from "react-rnd"
import { Scrollbars, scrollToBottom } from 'react-custom-scrollbars';
import ChatBox from './ChatBox'
import '../../css/chatModule.css'
import { Link } from 'react-rou... |
/**
* Copyright (c) 2014-present, 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.
*
*/
'use stri... |
var Widgets = {
name: 'widgets',
el: '#widgets',
mixins: [window.Widgets, Theme.Mixins.Helper],
data() {
return _.merge({
position: this.$session.get('widget.position'),
selected: [],
config: { positions: [], filter: this.$session.get('widget.filter', {}) ... |
'use strict'
const PDF_NAME = 'crypto-api-python'
const PUBLIC_SOURCES = 'public-sources'
const PRIVATE_SOURCES = 'private-sources'
const ENCRYPT_CLASSIFIED = 'encrypt-classified.js'
const CLASSIFIED_SOLUTION = 'aes-classified.py'
const BRUTEFORCE = 'bruteforce.py'
const GEN_PK = 'gen-pk.py'
const ENCRYPT_CTR = 'enc... |
// Copyright 2008 The Closure Library Authors. All Rights Reserved.
//
// 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 requ... |
// Copyright (c) 2019, <NAME> and contributors
// For license information, please see license.txt
frappe.ui.form.on('Ordem de Reparacao', {
onload: function(frm) {
// cur_frm.toggle_enable("or_date",false)
cur_frm.toggle_enable("or_operador",false)
cur_frm.toggle_enable("or_marca_veiculo",false)
cur_frm.tog... |
import React from 'react';
import TinyUserProfile from '../../molecules/TinyUserProfile';
import KuceVs from '../../atoms/KuceVs/KuceVs';
import TinyCards from '../../atoms/TinyCards/TinyCards';
import theme from '../../../../utils/theme';
import xClose from '../../../../../assets/icons/x-close.svg';
import battl... |
var app = require('ampersand-app');
var Spot = require('spot-framework');
var BaseWidget = require('./base-widget');
var Chart = require('chart.js');
var colors = require('../../colors');
var misval = Spot.util.misval;
var util = require('./util');
var BUBBLE_ALPHA = 0.5;
var MAX_BUBBLE_SIZE = 50; // in pixels
var MIN... |
import axios from 'axios'
import Vue from 'vue/dist/vue.esm'
import waifuTips from '../config/waifu-tip.json'
function setScrollZero() {
let $sct = document.querySelectorAll('.tools-section')
Array.prototype.forEach.call($sct, (em) => {
em.scrollTop = 0
})
}
var waifuTipTimer = null, fullTextSearchTimer = nu... |
const express = require('express');
const path = require('path');
const fs = require('fs');
const marked = require('marked');
const os = require('os');
const app = express();
//MIDDLEWARE
// app.use('/', (req, res, next) => {
// console.log(`The URL: ${req.originalUrl}`);
// // console.error(err.stack);
// ... |
/**
* Convert a single file-input element into a 'multiple' input list
*
* Usage:
*
* 1. Create a file input element (no name)
* eg. <input type="file" id="first_file_element">
*
* 2. Create a DIV for the output to be written to
* eg. <div id="files_list"></div>
*
* 3. Instantiate ... |
'use strict';
class TileMaskLayer extends PlaceablesLayer {
constructor() {
super();
this._controlled = {};
this.visible =true;
}
static get layerOptions() {
return mergeObject(super.layerOptions, {
canDragCreate: false,
objectClass: Note,
sheetClass: NoteCo... |
'use strict';
import React, {
Component,
PropTypes,
} from 'react';
import ReactNative, {
StyleSheet,
Text,
View,
ScrollView,
ViewPagerAndroid,
Platform,
Dimensions,
} from 'react-native';
import TimerMixin from 'react-timer-mixin';
const screenWidth = Dimensions.get('window').width;
export defau... |
/*
* Copyright 2014 Mirantis, 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 ... |
import React, { Component,useCallback,useMemo } from 'react';
import { HashRouter, Route, Switch,Redirect } from 'react-router-dom';
import {
CButton,
CModal,
CModalHeader,
CModalTitle,
CModalBody,
CModalFooter,
CAlert,
CCol,
} from '@coreui/react';
import fire from '../../firebase';
im... |
/**************************************************************************
* (C) Copyright ModusBox Inc. 2019 - All rights reserved. *
* *
* This file is made available under the terms of the license agreement *
* specified in... |
var symbol_library = require("./symbols.js");
var base = Module.getBaseAddress("bluetoothd");
// TODO: select iOS version from symbols file (symbols.js)
var symbols = symbol_library.symbols.symbols_ios_13_2_3_iphoneX;
// Allocate global buffers used during fuzzing
var bd_addr_native = Memory.alloc(8);
var recv_buf =... |
// Replace your Configuration here..
// var config = {
// apiKey: "<KEY>",
// authDomain: "realtime-on-map-example.firebaseapp.com",
// databaseURL: "https://realtime-on-map-example.firebaseio.com",
// projectId: "realtime-on-map-example",
// storageBucket: "",
// messagingSenderId: "8518376229... |
'use strict';
const process = require('node:process');
const { ChannelType, MessageType } = require('discord-api-types/v9');
const Package = (exports.Package = require('../../package.json'));
exports.UserAgent = `DiscordBot (${Package.homepage}, ${Package.version}) Node.js/${process.version}`;
exports.WSCodes = {
... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Web3 from 'web3';
import { withStyles } from '@material-ui/core/styles';
import { Grid, Typography, Box } from '@material-ui/core';
import { Warning } from '@utils/error';
import { store, dispatcher, Actions, Events } from '@store';
im... |
/**
* Created by anna on 05/09/2016.
*/
//modale per avanzamento step
var modalstep="<div class=\"modal-dialog\" id=\"modal-dialog_step\" {width:55%;}><div class=\"modal-content\"><div class=\"modal-header\"><img src=\"../img/logo.png\"><h1><img src=\"../img/booking/lettering_4.png\" width=\"50% height=50%\"><... |
/***
* ██╗ █████╗ ██╗██╗ ██████╗ ██████╗ ███████╗ █████╗ ██╗ ██╗ ███╗ ███╗███████╗
* ██║██╔══██╗██║██║ ██╔══██╗██╔══██╗██╔════╝██╔══██╗██║ ██╔╝ ████╗ ████║██╔════╝
* ██║███████║██║██║ ██████╔╝██████╔╝█████╗ ███████║█████╔╝ ██╔████╔██║█████╗
* ██ ██║██╔══██║██║█... |
// use Mobius's cdn
// https://cdn.jsdelivr.net/gh/MobiusBeta/assets/images/BG_A_Default_1.jpg
const bgBaseUrl = 'https://cdn.jsdelivr.net/gh/MobiusBeta/assets/images/BG_A_Default_'
// https://cdn.jsdelivr.net/gh/MobiusBeta/assets/videos/Live_Wallpaper_1.mp4
const bgLiveBaseUrl = 'https://cdn.jsdelivr.net/gh/MobiusBeta... |
const {
oneIn,
maybeUpper,
capitalize,
random,
checkSing,
checkPlur,
getSing,
getPlur,
threeQuarter,
twoThird
} = require("../utils");
const banks = `./word-banks`;
const warnings = require(`${banks}/warnings`);
const bounties = require(`${banks}/bounties`);
const jobPreN = require(`${banks}/job-p... |
/*
* (MIT License)
* Copyright 2017,2018 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, ... |
/**
* This file contains all methods for input and output handling of the web
* interface.
*/
function ViewIO() {
/**
* number of the actually chosen API and string that
* contains the actually chosen API
*/
this.api = [ 0, "default" ];
//TODO: insert valid API String which is used as default
/**
* ... |
/*!
* devextreme-react
* Version: 20.2.6
* Build date: Tue Mar 16 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://githu... |
/**
* @file Surface Utils
* @author <NAME> <<EMAIL>>
* @private
*/
import { degToRad } from '../math/math-utils.js'
import {
m4new, m4multiply, m4makeTranslation, m4makeScale, m4makeRotationY
} from '../math/matrix-utils.js'
import {
v3addScalar, v3subScalar, v3divideScalar, v3multiplyScalar,
v3floor, ... |
const loadShader = (gl, shader, type) => {
const id = gl.createShader(type);
gl.shaderSource(id, shader);
gl.compileShader(id);
if (!gl.getShaderParameter(id, gl.COMPILE_STATUS)) {
console.warn('An error occurred compiling the shaders: ' + gl.getShaderInfoLog(id));
gl.deleteShader(id);
return... |
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
require('../../../src/stylus/components/_input-groups.styl');... |
import _ from 'lodash';
import React, { Component, Fragment } from 'react';
import { div, form, h, hh, input, label } from 'react-hyperscript-helpers';
import { User } from '../../libs/ajax';
import { USER_ROLES } from '../../libs/utils';
import { Alert } from '../Alert';
import { BaseModal } from '../BaseModal';
impor... |
import React from "react";
import TodaySun from "./TodaySun";
import TodayPlans from "./TodayPlans";
class CalendarDay extends React.Component {
constructor(props) {
super(props);
var _datezero = this.props._date;
_datezero.setHours(0, 0, 0, 0);
let filtered = [];
var assignments = this.props.ass... |
// @ts-ignore
import SaaSData from '../src/saasdata.json'; // scalable enterprise-grade JSON document storage
import express from 'express'; // framework, yo
import morgan from 'morgan'; // request logger
import axios from "axios";
if (process.platform === "darwin") { require("dotenv").config() } // enterprise-grade Ma... |
//create variable of different icon
var schoolIcon = L.icon({
iconUrl: 'schoolmarker.png',
iconSize: [30, 40],
iconAnchor: [12, 41],
popupAnchor: [1, -34],
});
var greyIcon = L.icon({
iconUrl: 'marker-icon-grey.png',
iconSize: [25, 41],
iconAnchor: [12, 41],
popupAnchor: [1, -34],
});
var ... |
/**
* Wrapper to manage services via PM2
*/
const childProcess = require('child_process');
const _ = require('lodash');
const path = require('path');
const Promise = require('bluebird');
const pm2 = require('pm2');
require('colors');
function Runner() {
}
Runner.prototype.init = function init(bosco, next) {
this... |
// let location = {
// name: 'Izgrev',
// longitude: '95.243',
// latitude: '94.231',
// pokemons: {
// 0: {
// name: 'Pikachu',
// power: 2000,
// evolvedFrom: 'none',
// evolvesTo: 'Raichu'
// },
// 1: {
// name: 'Wa... |
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
var _a, _b, _c;
/**
* The main LitElement module, which defines the [[`LitElement`]] base class and
* related APIs.
*
* LitElement components can define a template and a set of observed
* properties. Changing an observed pro... |
/**
* -----------------------------------------------------------------------------
* Imports
* -----------------------------------------------------------------------------
*/
const _ = require('underscore');
const fs = require('fs-extra');
const path = require('path');
const chalk = require('chalk');
const op = ... |
// to start with
// 1. ZrxAllowlist and SaverExchangeRegistry always returns true
// 2. change ZrxAllowlist, ZrxErc20Proxy and SaverExchangeRegistry to kovan in SaverExchangeHelper
// 3. change DefisaverLogger to kovan in SaverExchange
// 4. change WETH_ADDRESS to kovan in SaverExchangeHelper
// 5. helper.js change loa... |
// @ts-check
import { E, Far } from '@endo/far';
import { makeStore } from '@agoric/store';
import { AmountMath } from '@agoric/ertp';
import { handleParamGovernance, ParamTypes } from '@agoric/governance';
import { offerTo } from '@agoric/zoe/src/contractSupport/index.js';
import { makeSubscriptionKit } from '@agoric... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 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.or... |
var levelPos = []; //level pos is a 0-index array
fetch("JS/levellist.json")
.then(function (response) {
return response.json();
})
.then(function (dataThree) {
let list = dataThree;
for(let i = 0; i < list.levels.length; i++){
let myObj = {
name:list.levels[i],
pos:i+1,
... |
const { ArrowNarrowRightIcon } = require('@heroicons/react/solid')
const { html } = require('htm/preact')
const Base = require('../components/Base')
const BlogList = require('../components/BlogList')
const Markdown = require('../components/Markdown')
const site = require('../data/site')
const { isDraft } = require('..... |
/*
默认颜色参数
*/
//默认背景颜色
let DEFAULT_BACKGROUND_COLOR = ''
//选中的背景颜色
let SELECT_BACKGROUND_COLOR = "#409FFF"
/*
内部数据声明
*/
let stem = null
//所有的行
let lines = []
//标记名颜色绑定
let mark_color_map = {}
//所有的标记名
let mark_list = []
/*
根据行号获得那一行的标记集合
虽然是个map但是我用array实现也不为过把
因为行数是固定的
[行号][开始位] = label
*/
let line_label_set_ma... |
'use strict'
/* eslint-disable no-unused-vars */
const React = require('react')
const ReactBootstrap = require('react-bootstrap')
const PageHeader = ReactBootstrap.PageHeader
const Nav = ReactBootstrap.Nav
const NavItem = ReactBootstrap.NavItem
const Row = ReactBootstrap.Row
const Col = ReactBootstrap.Col
const Pager... |
const { default: PQueue } = require("p-queue");
const retry = require("p-retry");
const { DateTime } = require("luxon");
const _ = require("lodash");
const got = require("got");
const parseAddress = require("parse-address");
const logger = require("../../logger");
const Auth = require("./Auth");
const { Store } = requi... |
// todos:
// - do not assume same webcam proportions
var nEmojisToUse = 1000; // max: 900 (ignores values larger)
var saveEveryKFrames = 3; // number of frames to skip in gifs
var stepSize; // size of rendered emoji
var widthMult = 0.7; // proportion of screen to use
var backgroundColor = '#444';//50;
var emojiSize; ... |
'use strict';
/**
* Returns the bank account number parsed from specified string.
*
* You work for a bank, which has recently purchased an ingenious machine to assist in reading letters and faxes sent in by branch offices.
* The machine scans the paper documents, and produces a string with a bank account that look... |
import React, { Component } from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import TimpiePickerClockHand from '../TimePickerClockHand';
const propTypes = {
className: PropTypes.string.isRequired,
handleChange: PropTypes.func.isRequired,
max: PropTypes.number.isRequired,
... |
// External
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { reduxForm, Field, formValueSelector } from 'redux-form';
// import cpy from 'cpy';
import styled from '@emotion/styled';
// Internal
import { switchSettingsTab, setCoreSettingsRestart } from 'lib/ui';
import { stopCor... |
// https://webpack.js.org/guides/author-libraries/
/* eslint-disable */
const webpack = require('webpack');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CopyWebpackPlugin = require('copy-webpack-plugin');
c... |
var frameRate = 0.03; //frameRate
var x = 0;
var y = 0; //altitude
var rotation = 0; //rotate
var throttle = 0; //self-explanatory
var opa = ((100000-y)/100000); //opacity
var inOpa = (y/100000); //opacity
var quart = 0; //quarter of thing
var screenHeight = window.innerHeight;
var screenWidth = window.innerWidth;
var... |
import React,{useState, useEffect} from "react";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import ProductItem from "../components/Product/items";
import AddButton from "../components/Product/floatButton";
import ProductFilters from "../components/Product/filters";
import { getPr... |
import { S } from './index';
export function content(parent, value, current) {
var t = typeof value;
if (current === value) {
// nothing to do
}
else if (t === 'string') {
current = parent.innerText = value;
}
else if (t === 'number') {
value = value.toString();
c... |
var Colors = (function(){
var colors = [
["black","#000000",255],
["red","#ff0000",255],
["blue","#0000ff",255],
["green","#00ff00",255],
["orange","#ff8000",255],
["cyan","#00ffff",255],
["yellow","#ffff00",255],
["white","#ffffff",255],
["dark red",... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
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] =... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import sdk from "matrix-react-sdk";
import { UserSession } from "blockstack";
import { getPublicKeyFromPrivate } from "blockstack/lib/keys";
import ScatterJS from "scatterjs-core";
import ScatterEOS from "scatterjs-plugin-eosjs";
let userSes... |
if (D2RMM.getVersion == null || D2RMM.getVersion() < 1.4) {
D2RMM.error('Requires D2RMM version 1.4 or higher.');
return;
}
if (config.scha || config.mcha || config.lcha) {
const magicsuffixFilename = 'global\\excel\\magicsuffix.txt';
const magicsuffix = D2RMM.readTsv(magicsuffixFilename);
const group = Mat... |
'use strict';
const {
P2P_CALL
} = require('@fabric/core/constants');
// Internal Dependencies
const http = require('http');
const https = require('https');
const querystring = require('querystring');
// External Dependencies
const fetch = require('node-fetch');
const parser = require('content-type');
const ws = r... |
// 0x0701FDB8 - 0x0701FEA8
import {
gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPVertex, gsSP2Triangles, gsSP1Triangle,
gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode, gsDPSetTile,
gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometryMode,
G_... |
import HtmlWebpackPlugin from "html-webpack-plugin";
import CopyWebpackPlugin from "copy-webpack-plugin";
import WriteFilePlugin from "write-file-webpack-plugin";
import MiniCssExtractPlugin from "mini-css-extract-plugin";
import nodeExternals from "webpack-node-externals";
import { BundleAnalyzerPlugin } from "webpack... |
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
import {CATEGORIES, CATEGORY_NAMES} from './categories.js';
export const VIEW_BY_INSTANCE_TYPE = 'by-instance-type';
export const VIEW_B... |
// var Test = require('../config/testConfig.js');
var BigNumber = require('bignumber.js');
var FlightSuretyApp = artifacts.require("FlightSuretyApp");
var FlightSuretyData = artifacts.require("FlightSuretyData");
const Web3 = require('web3');
let flightSuretyData = null;
let flightSuretyApp = null;
const NUM_CONSENSU... |
require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
//let yeomanImage = require('../images/yeoman.png');//获取图片地址
//获取图片相关的数组
let imagesData = require('../data/imageData.json');
imagesData=((imagesData) => {
for(var i=0,j=imagesData.lengt... |
"use strict";
const { app, BrowserWindow, ipcMain } = require("electron");
const path = require("path");
const SerialPort = require("serialport");
var mainWindow = null;
let isDebugMode = false;
/************************************************************
* Window create
********************************... |
import React from 'react';
import PropTypes from 'prop-types';
import {SortableContainer, SortableElement, SortableHandle} from 'react-sortable-hoc';
// class DirItemInfo extends React.Component {
// render() {
// let menuItemTempl = null;
//
// if (!this.props.item.get('modify')) {
// menuItemTempl = ... |
import React from "react";
import PropTypes from "prop-types";
import { zValue } from "@paprika/stylers/lib/helpers";
import { LockBodyScroll, Portal } from "@paprika/helpers";
import OriginalOverlay from "@paprika/overlay";
import Content from "./components/Content";
import Dialog from "./components/Dialog";
import Fo... |
import Sortable from 'sortablejs'
import i18n from 'mi18n'
import cloneDeep from 'lodash/cloneDeep'
import merge from 'lodash/merge'
import actions from '../../common/actions'
import { indexOfNode, orderObjectsBy, get } from '../../common/helpers'
import events from '../../common/events'
import dom from '../../common/d... |
/* To-do:
- populate the select elements from a list of colors
- every time a candidate/voter is added add a function to remove them
*/
//universal, unique, untouched. unadulturated, the raw uncut
const COLORS = {
"amber": [1, 0.749, 0],
"aqua": [0, 1, 1],
"aquamarine": [0.498, 1, 0.831],
"azure": [... |
const { createFixtureLoader, solidity } = require("ethereum-waffle");
const { expect, use } = require("chai");
const fs = require("fs");
const { BigNumber } = require("@ethersproject/bignumber");
const { advanceTime } = require("./utils/time");
const { packData } = require("./utils/packData");
const {
dai,
usdc,
... |
import React, { Component } from "react";
import {
StyleSheet,
WebView ,
View,
TouchableOpacity,
Dimensions,
Image,
AsyncStorage,
ToastAndroid,
FlatList,
NetInfo,
Modal,
} from "react-native";
import {
Container,
Spinner,
Button,
Text,
Content,
Header,
Left,
Right,
Title,
Body... |
const express = require('express')
const app = express()
const port = process.env.PORT || 3000
var jugadores = ["NEGRAS", "BLANCAS"];
var jugador;
var oponente;
var heuristicas = [
120, -20, 20, 5, 5, 20, -20, 120,
-20, -40, -5, -5, -5, -5, -40, -20,
20, -5, 15, 3, 3, 15, -5, 20,
5, -5, 3, 3, 3, 3, -5, 5,
... |
'use strict';
var chooseHowManyRounds = 20;
var uniqueIndexArray = [];
var allBusMall = [];
var parentE = document.getElementById('mallImgs');
var totalVotes;
var names = [];
var votes = [];
var views = [];
function Data(name, extension, varVotes, varViews){
this.filepath = `img/${name}${extension}`;
this.alt = ... |
import React from 'react';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import messages from './messages';
import { compose as composeApollo, graphql } from 'react-apollo'
import IconMenu from 'material-ui/IconMenu';
import MenuItem fr... |
var current_page = parseInt(0);
var s_current_page = parseInt(0);
tinymce.init({
selector: '#post-content',
height: 500,
relative_urls: false,
remove_script_host : false,
convert_urls : true,
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchrepl... |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Primordial Sea', function () {
afterEach(function () {
battle.destroy();
});
it('should activate the Primordial Sea weather upon switch-in', function () {
battle = common.createBattle();
... |
// @flow
import React from 'react';
import getContentStateFragment from 'draft-js/lib/getContentStateFragment';
import getDraftEditorSelection from 'draft-js/lib/getDraftEditorSelection';
import { convertFromRaw, Modifier, EditorState, ContentState, convertToRaw } from 'draft-js';
// @flow
/*:: import type { BlockNode... |
const Models = require(basedir+'/modules/Models')
class Products extends Models {
constructor(data){
super(data)
this.settings = {
collection: 'products',
fields: [
{name:'gallery',input_type:'img_array',placeholder:'Images... |
/**
* Daemon server
* @module servers/daemon
*/
const path = require('path');
const fs = require('fs');
const net = require('net');
const uuid = require('uuid');
const protobuf = require('protobufjs');
const EventEmitter = require('events');
const NError = require('nerror');
const SocketWrapper = require('socket-wra... |
/*
* MemeCanvasView
* Manages the creation, rendering, and download of the Meme image.
*/
var headlineBase = 0;
var nameBase = 0;
MEME.MemeCanvasView = Backbone.View.extend({
initialize: function() {
var canvas = document.createElement('canvas');
var $container = MEME.$('#meme-canvas');
// Display canv... |
// General
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import { withStyles } from '@material-ui/core/styles'
// Components
import ButtonBase from '@material-ui/core/ButtonBase'
import Divider from '@material-ui/core/Divider'
import Icon from '@material-ui/core/Icon'
import List from... |
import React, {Component} from 'react';
import axios from 'axios'
class AirdropAdmin extends Component {
constructor(props) {
super(props);
this.state = {
cryptocurrency_name: '',
analyse: '',
type: '',
reward: '',
isAirdropFree: null,
statusMsg: null,
published: fal... |
const mm = require('music-metadata')
const USB = require('usb')
const Drives = require('drivelist')
const cvlc = require("@bugsounet/cvlc")
const path = require("path")
const fs = require("fs")
var _log = function() {
var context = "[MUSIC]"
return Function.prototype.bind.call(console.log, console, context)
}(... |
var bGUI = bGUI || {};
(function() {
"use strict";
var GUISystem = function(scene, guiWidth, guiHeight) {
this._scene = scene;
var mainCam = scene.activeCamera;
mainCam.layerMask -= bGUI.GUISystem.LAYER_MASK;
if (this._scene.activeCameras.indexOf(mainCam) == -1) {
th... |
import {
IonApp,
IonButton,
IonButtons,
IonContent,
IonHeader,
IonItem,
IonLabel,
IonList,
IonMenu,
IonMenuButton,
IonPage,
IonRange,
IonSelect,
IonSelectOption,
IonSplitPane,
IonToolbar,
} from "@ionic/react";
import { useEffect, useRef, useState } from "react";
function drawWave(conte... |
import { fieldData } from '../actions-input';
import { autocompleteAddNewItem, autocompleteDropdownMatches,
autocompleteUpArrowPressed, autocompleteDownArrowPressed, autocompleteAddSelectedItem,
autocompleteRemoveSelectedItem } from '../actions-autocomplete';
import { getFormFieldData, isAutoCompleteValueHighli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.