text stringlengths 3.22k 29.5k |
|---|
/**
* Copyright 2018 Aarhus University
*
* 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 agr... |
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes, Component } from 'react';
import styles from './MenuPage.css';
import withStyles from '../../decorators/withStyles';
import HttpClient from '../../core/HttpClient';
import FlatButton from 'material-ui/lib/flat-button';... |
'use strict';
var pdfKit = require('pdfkit');
var moment = require('moment');
var numeral = require('numeral');
var i18n = require('./i18n');
var TEXT_SIZE = 8;
var CONTENT_LEFT_PADDING = 50;
function PDFInvoice(_ref) {
var company = _ref.company;
var customer = _ref.customer;
var tab_recap = _ref.tab_recap;
... |
import { faCheckCircle, faCode, faEllipsisV, faHistory, faPen, faSpinner, faTimes, faUpload } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon as Icon } from '@fortawesome/react-fontawesome';
import Tippy from '@tippyjs/react';
import Breadcrumbs from 'components/Breadcrumbs/Breadcrumbs';
import EditL... |
//library dependencies
import React, {Component} from 'react';
import {withStyles, TablePagination, Modal} from '@material-ui/core';
import {toast} from "react-toastify";
import {connect} from "react-redux";
import {bindActionCreators} from "redux";
//style
import './style.scss';
//custom component
import Questionnai... |
import axios from 'axios'
import React, {useContext, useEffect, useState, useCallback} from 'react'
import * as HotKeys from './HotKeys'
const ContextData = React.createContext()
const ContextUpdateData = React.createContext()
const ContextXMMRegisters = React.createContext()
const ContextSubmit = React.createContext... |
import { registerOption } from "pretty-text/pretty-text";
registerOption(
(siteSettings, opts) => (opts.features["vbulletin-bbcode"] = true)
);
function wrap(tag, attr, callback) {
return function(startToken, finishToken, tagInfo) {
startToken.tag = finishToken.tag = tag;
startToken.content = finishToken... |
import _ from 'lodash';
import moment from 'moment';
import APIForecast from '../models/APIForecast';
import ForecastAPI from '../models/ForecastAPI';
import APIPlan from '../models/ForecastAPIPlan';
import Upgrade from '../models/Upgrade';
import ForecastTier from '../models/ForecastTier';
import {actions} from './act... |
const debug = true;
/**
* @typedef NodesSlice
* @property {Comment} startMarker
* @property {Comment} endMarker
*/
/**
* @typedef {Node|NodesSlice} NodeGroup
*/
/**
* @typedef NodesSlice
* @property {Comment} startMarker
* @property {Comment} endMarker
*/
/**
* @typedef AttributeBinding
* @property {Str... |
'use strict';
const HBS = require('express-hbs');
const Handlebars = require('handlebars');
const express = require('express');
const favicon = require('serve-favicon');
const utils = require('../common/utils');
module.exports = {
instance : function (service, settings) {
let _self = this;
let _handlebars = Han... |
import React, {Component} from 'react';
import {
View,
ScrollView,
StyleSheet,
KeyboardAvoidingView,
Linking,
Alert,
Vibration,
} from 'react-native';
import {isAndroid, isTablet} from 'react-native-device-detection';
import {
Portal,
TextInput,
Button,
Dialog,
List,
Text,
Title,
} from 'rea... |
import React, {useState} from 'react'; // eslint-disable-line no-unused-vars
import {Map, layer, source, control, interaction, overlay} from '../src' // eslint-disable-line no-unused-vars
import {Container, Row, Col, Button, Tooltip, ListGroup, ListGroupItem } from 'reactstrap' // eslint-disable-line no-unused-vars
im... |
/**
Author: YijunChen
Create:2017/8/1
Detail:多边形蜘蛛图
log: 2017/8/1 不再依赖jQuery,纯js实现
use: import spiderChart from 'spiderChart.js'
*/
function SpiderChart(options) {
this.options = {
id: "", //容器Id
canvasId: 'spiderChart', // canvas的ID
level: ["优质", "良好", "略差", "不及格"], //蜘蛛图框 级数,由... |
'use strict';
const names=[
'bag',
'banana',
'bathroom',
'boots',
'breakfast',
'bubblegum',
'chair',
'cthulhu',
'dog-duck',
'dragon',
'pen',
'pet-sweep',
'scissors',
'shark',
'sweep',
'tauntaun',
'unicorn',
'usb',
'water-can',
'wine-glass',
];
const imagesSection=document.getE... |
/*jslint maxerr:1000 */
/**
*
* tabcontrol.js: Cross-platform metro style tab control
* Copyright: 2013 <NAME> (http://bencoding.com)
* License: http://www.apache.org/licenses/LICENSE-2.0.html
*
* Extensions for icon & cues: <EMAIL>
*/
var _isAndroid = Ti.Platform.osname === 'android';
// --------------... |
var test = require('tape');
var CN = require('../src/clearingnummer.js');
var SE = require('../src/swedish-bank-utils.js');
var ACC = require('../src/swedish-account-formats.js');
var testAccounts = [
{'clearing': '6189', 'account': '834435918', 'bank': 'Handelsbanken'},
{'clearing': '9420', 'account': '4172385', ... |
// html templates
// stored in function to allow paramterization
function criterionHtml(){
return `
<div class="row criterion z-depth-1" id="criterion-${numCriteria}">
<div class="input-field col s3" id="domain-${numCriteria}">
<select id="criterion-type-${numCriteria}">
<option value="q" selecte... |
/**
* Node Trinity source code
* See LICENCE file at the top of the source tree
*
* ******************************************
*
* stakecalc.js
* ROI calculator
*
* ******************************************
*
* Authors: <NAME>, <NAME>, <NAME>
*/
const mysql = require('mysql');
let params = {
kblocks_per... |
import React, { Component } from "react";
import { Query, Mutation } from 'react-apollo';
import { Link, Redirect } from 'react-router-dom';
import styled from 'styled-components';
import { Header, Icon, Dropdown, Pagination, Input } from 'semantic-ui-react';
import moment from 'moment';
import _ from 'lodash';
import... |
const apiKey = 'fe79f292b12f6fa0da9ff561cba92215';
let currentCityEl = document.querySelector('#currentCity');
let fiveDayEl = document.querySelector('#fiveDay');
let fiveDayTitleEl = document.querySelector('#fiveDayTitle');
let humidityFive = document.querySelector("#humidity5")
let humidityFour = document.querySelect... |
import css from 'dom-css';
import isstring from 'is-string';
import themes from './themes';
import { theme } from './theme';
const styles = require('./styles/container-style.js');
import { ComponentManager } from './component-manager';
import { MenuBar } from './menu-bar';
import { Panel } from './panel';
import { ... |
var Class = require('shipyard/class/Class'),
Tree = require('./tree/Tree'),
LocalStorageCollapse = require('./tree/LocalStorageCollapse'),
object = require('shipyard/utils/object'),
string = require('shipyard/utils/string'),
dom = require('shipyard/dom'),
File = require('../models/File'),
Modu... |
jb_component("studio.allTests", {
impl: {
$: 'group',
style: 'studio-allTests-main-group',
features: [{
$: 'prepare',
action: { $: 'studio.runAllTests'},
loadingControl: { $: 'label', databind: 'Running jbart tests...', style: 'studio-allTests-running' }
}],
controls: [
{
$: "label", style: 'st... |
/*
BB strategy - okibcn 2018-01-03 */
// helpers
var _ = require('lodash');
var log = require('../core/log.js');
const moment = require('moment')
var BB = require('./indicators/BB.js');
var rsi = require('./indicators/RSI.js');
// let's create our own method
var method = {};
// prepare everything our method ne... |
import React, {Component} from 'react';
import { Form, Input, Button, Select, Spin, message, Card, Modal, Popover} from 'antd';
import {connect} from 'react-redux';
import { Link, hashHistory} from 'react-router';
import { remote, updatePostState, toggleLoading} from './action';
import Uploader from './upload';
import ... |
import React, { useRef, useEffect } from 'react';
import {
Scene,
TextureLoader,
Vector2,
PerspectiveCamera,
WebGLRenderer,
Clock,
AmbientLight,
BufferGeometry,
BufferAttribute,
Object3D,
Float32BufferAttribute,
PointsMaterial,
AdditiveBlending,
Color,
Points,
PointLight,
Vector3,
A... |
// Set to true to see console logs
const debug = false;
function logger(text) {
if (debug) {
console.log(text)
}
}
/**
* Dummy data for the excercise
* This could hook into an API at some point
*/
function retrieveData() {
return [
{
"code": "one",
"title": "Secti... |
/*
* Copyright (c) 2016. <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* pub... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.agent = exports.hastingsToSiacoins = exports.siacoinsToHastings = exports.call = exports.isRunning = exports.launch = exports.connect = exports.makeRequest = exports.errCouldNotConnect = undefined;
var _regenerator = require('babel-... |
import mongoose from 'mongoose';
import async from 'async';
import LifeCycleVersion from '../models/lifeCycle.js';
import add_objects from '../models/additionalModels.js';
import { logger } from '../../server/log';
function postLifeCycle(req, res) {
var life_cycle_version = req.body;
life_cycle_version._id = ... |
import React, { PureComponent } from "react";
import { connect } from "dva";
import {
Row,
Col,
Input,
Select,
Icon,
Card,
Divider,
message,
Button,
Tabs
} from "antd";
import _ from "lodash";
import ReactEcharts from "echarts-for-react";
import DemoBar from "./DemoBar";
import { buildOptionsByTags ... |
"use strict"
/**
* Used to display the screen in the escape room
*/
const db_functions = require("./db_functions")
const sqlite3 = require('sqlite3').verbose();
const request = require('request');
const device_controller = require('./deviceController')
const game_config = require("../config/config.json");
var c_time... |
// DOM Ready =============================================================
$(document).ready(function() {
if( window.location.pathname === "/home"){
appendSliders()
// Populate the user table on initial page load
populateArtistList();
}
$(document).on('click', ".artistDiv", function(event) {
//Do nothing i... |
import {
Checkbox
} from "./chunk-E4PWA4PK.js";
import "./chunk-XMK3PKMX.js";
import {
FieldMixin,
helper
} from "./chunk-ZLYHCBTY.js";
import {
requiredField
} from "./chunk-G7RHUQOA.js";
import "./chunk-PSOWVSIC.js";
import "./chunk-2QU43T3L.js";
import "./chunk-M63LEPKS.js";
import "./chunk-2WAZ2OPO.js";
imp... |
const Https = require('https')
const QueryString = require('querystring')
const Secrets = require('./secrets.js')
const Aws = require('aws-sdk')
const Plotly = require('plotly')('firefueled', Secrets.plotlyApiKey);
const playlistItemsUrl = 'https://www.googleapis.com/youtube/v3/playlistItems?'
const videosDataUrl = 'h... |
import React from 'react';
import {
StyleSheet,
View,
Text,
StatusBar,
ActivityIndicator,
Image,
SafeAreaView,
TouchableOpacity,
TextInput,
ScrollView,
Alert,
Picker
} from 'react-native';
import { fetch_timeout } from './tools/Tools';
import { COLORS, SIZES, icons, FONTS... |
"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... |
window.ignoreCyan = false;
function testImageColors(source, cyanInTargetGamut) {
window.ignoreCyan = !cyanInTargetGamut;
var image = document.querySelector('img');
image.onload = function() {
runAfterLayoutAndPaint(window.testRunner ? changeColorProfile : profileChanged);
};
image.src = source;
}
func... |
function Box(body, colour, hp=10) {
this.body = body;
this.colour = (colour === undefined) ? "black" : colour;
this.destroy = false;
this.health = hp==999 ? Infinity : hp;
this.maxHealth = hp;
this.life = 0;
World.add(world, this.body);
this.draw = function() {
if (this.init && this.life == 0) {
... |
const _ = require('lodash');
const Telegraf = require('telegraf');
const sharp = require('sharp');
const captcha = require('svg-captcha');
const md5 = require('md5');
const dayjs = require('dayjs');
const Markup = require('telegraf/markup');
const genfun = require('generate-function');
const telegrafCommandParts = requ... |
/* vim: set expandtab ts=2 sw=2: */
self.port.on("NDT.testResults", function (results) {
/*
* Graph generation code originally from
* http://bl.ocks.org/mbostock/3884955.
*/
var margin = {top: 20, right: 20, bottom: 60, left: 50},
width = 500 - margin.left - margin.right,
height = 350 - margin... |
import React, { useState, useEffect, useRef } from "react";
import Button from "@material-ui/core/Button";
import ButtonGroup from "@material-ui/core/ButtonGroup";
import ToggleButton from "@material-ui/lab/ToggleButton";
import ToggleButtonGroup from "@material-ui/lab/ToggleButtonGroup";
import { makeStyles } from "@m... |
// ==UserScript==
// @name NATO Enhancements
// @namespace http://github.com/Tiny-Giant
// @version 1.0.0.9
// @description Includes the actual post on the new answers to old questions page of the 10k tools.
// @author @TinyGiant
// @include /https?:\/\/(meta\.)?stackoverflow.com\/tools\/ne... |
'use strict';
const uuid = require('uuid/v4'),
shortid = require('shortid'),
fs = require('fs'),
lodash = require('lodash'),
validator = require('validator');
let flatArr = [], pointree = {}, jsonFilePath, schemas = {
url: {
type: 'string',
max: 2048,
min: 1,
}... |
import React, { Component } from 'react'
import _ from 'underscore'
import moment from 'moment-timezone'
import 'moment/locale/ja'
moment.locale('ja')
let prefix = process.env.FIREBASE_PROJECT_NAME
class Admin extends Component {
constructor(props) {
super(props)
this.state = {
ordering: false,
us... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DialogConfiguration = exports.DialogService = exports.DialogRenderer = exports.Renderer = exports.DialogController = exports.AttachFocus = exports.AiDialog = exports.AiDialogHeader = exports.AiDialogFooter = exports.AiDialogBody = e... |
/*
* 构造函数Schedule
* 三个参数
* moutdom 必须 类型为字符串或者HTMLElement
* initstate 可选 类型为一个 7 * 24 的二维数组,默认初始数据都为0
* lifehook 可选 生命周期hook
componentMount 组件挂载之后触发
beforeUpdate state更新之前触发
afterUpdate state更新之后触发
*
* 用法:
* var s = new Schedule(".mount");
* console.log(s.getdata());
* s.setdata([[0,0,0,0,0,0,0],[0... |
'use strict';
/**
* @Author Nathan
*
* File is used as the main JS for the index page
*/
var containers; // Makes switching between dynamic content pages easier
/**
* Function to initialize all the dynamic content for the page
*/
function displayDynamicContent() {
window.playlist = false;
var originalHeight, o... |
const tulind = require('tulind');
const Indicators = require('./indicators');
const IndicatorBuilder = require('../modules/strategy/dict/indicator_builder');
module.exports = {
/**
* https://www.tradingview.com/wiki/Bollinger_Bands_%25B_(%25B)
*
* @param currentPrice
* @param upper
* @param lower
*... |
const rp = require('request-promise');
const url = require('url');
const config = require('./config');
const constant = require('./constant');
const utils = require('./utils');
const _ = require('lodash');
let globalSuggestionTimer = false;
const checkNew = (part) => {
const lettersText = document.querySelector('... |
/*
From https://github.com/morgan3d/misc/
Created by <NAME> in 2020
Released into the public domain.
*/
"use strict";
/*
There is no consistent way to detect a closed WebRTC
connection, so we have to send keepalive messages. PeerJS
has its own parameters for ping rates, but does not appear
to use them at prese... |
// manage4.ns
import { argparse, argparse_help } from "argparse.ns";
function loadcfg(ns, config) {
var cfg = JSON.parse(ns.read(config))
if (!cfg.tmp_path) {
throw ".tmp_path must be specified (recommended: '/tmp')"
}
if (!cfg.growratio) {
throw ".growratio must be specified (... |
import log from '../log.js'
import sizzle from 'sizzle'
import u from '../utils/core'
import { Strophe } from 'strophe.js/src/core'
import { _converse, api, clearSession, tearDown } from '../core.js'
import { debounce, isElement } from 'lodash'
const BOSH_WAIT = 59
/**
* The Connection class manages the connection t... |
// FOUNDATION FOR APPS TEMPLATE GULPFILE
// -------------------------------------
// This file processes all of the assets in the "client" folder, combines them with the Foundation for Apps assets, and outputs the finished files in the "build" folder as a finished app.
// 1. LIBRARIES
// - - - - - - - - - - - - - - -
... |
'use strict';
import Player from './Player';
import pathFinding from 'pathfinding';
class Dungeon {
constructor({ name="<NAME>", tileSize={width:100, height: 100} }) {
this.player = new Player();
this.name = name;
this.tileSize = tileSize;
this.map = "map";
this.canvasMiniMap = document.getElem... |
var Logger = require('./logger');
const dotenv = require('dotenv');
dotenv.config();
const { MessageActionRow, MessageButton } = require('discord.js');
class Pomo {
constructor(channelId,
work,
short_break,
long_break,
sessions,
channel,
pausable,
User,
... |
/** @license MIT */
// Written in ES5 in order to not have a compile step
'use strict';
// Characters that are interpreted differently: html characters, all modifiers, newlines, escapes, lists (digits / - at the start of a line)
var specialchars = /[\n\\<>*_~\|<>@>]|^((\d\.)|-)/gm;
var isdigit = /\d/;
var replacecha... |
// @flow
"use strict";
let assert = require("assert");
let tools = require("../../src/js/tools.js");
describe("tools.xor", function () {
it("truth table", function () {
assert(!tools.xor(true, true));
assert(tools.xor(true, false));
assert(tools.xor(false, true));
assert(!tools.... |
import React,{ useState, useEffect} from 'react';
import {View,Text,TouchableOpacity,ScrollView,Alert, ToastAndroid} from 'react-native';
import {Picker} from '@react-native-picker/picker';
import Icon from 'react-native-vector-icons/AntDesign';
import {Header,Input,Button} from 'react-native-elements';
import firestor... |
import { Feiloppsummering } from 'nav-frontend-skjema';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Field, reduxForm, SubmissionError, formValueSelector } from 'redux-form';
import Alertstripe from 'nav-frontend-alertstriper';
import { mo... |
import Tools from './Tools';
import GoogleDrive from './persistence/GoogleDrive';
import LocalStorage from './persistence/LocalStorage';
/**
* A thin wrapper to hide the variations between persistence services.
*/
export const PERSISTENCE_TYPES = ['localStorage', 'googleDrive'];
export default class Pers... |
// Generated by psc version 0.9.1
"use strict";
var Prelude = require("../Prelude");
var Control_Alt = require("../Control.Alt");
var Control_Alternative = require("../Control.Alternative");
var Control_Apply = require("../Control.Apply");
var Control_Monad_Cont_Trans = require("../Control.Monad.Cont.Trans");
var Contr... |
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const PnpWebpackPlugin = require('pnp-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const InlineChunkHtmlPlugin = req... |
/**
* 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 i... |
import DOM from './dom';
import Contract from './contract';
import './flightsurety.css';
(async() => {
let result = null;
let contract = new Contract('localhost', () => {
//Populating airlines
populateSelect('airlines-select', contract.airlines);
//Populating passengers
p... |
import { loadScript } from './file';
import { logger } from './debug';
import { toJS } from 'mobx';
const binary = Symbol('binary');
const address = Symbol('address');
const signed = Symbol('signed');
const endFrame = Symbol('endFrame');
const skipFrame = Symbol('skipFrame');
const endSection = Symbol('endSection');
... |
/**
* jquery.clearable.js
*
* Adapted from http://stackoverflow.com/questions/6258521/clear-icon-inside-input-text
* Requires the following CSS:
.clearable {
background: #fff url(data:image/gif;base64,R0lGODlhBwAHAIAAAP///5KSkiH5BAAAAAAALAAAAAAHAAcAAAIMTICmsGrIXnLxuDMLADs=) no-repeat right -10px center;
... |
import React, { Component } from 'react';
import { connect } from 'dva';
import qs from 'qs';
import moment from 'moment';
import { Card, Row, Table, Tabs, Form, Input, Button, message } from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import SectionHeader from '../../components/PageHeader/Se... |
import {
DISABLE_DEACTIVATION,
TYPES,
DEFAULT_VEHICLE_STATE,
BACK_LEFT,
BACK_RIGHT,
FRONT_LEFT,
FRONT_RIGHT,
DEFAULT_MAX_ENGINE_FORCE,
DEFAULT_MAX_BREAKING_FORCE,
DEFAULT_STEERING_CLAMP,
DEFAULT_STEERING_INCREMENT
} from '../constants';
import {
PHYSICS_EVENTS
} from '..... |
/* Usage: node generate-component.js plmg-component-name */
const fs = require('fs');
const path = require('path');
/**
* Validates that a component tag meets required naming conventions to be used for a web component
* @param tag the tag to validate
* @returns an error message if the tag has an invalid name, undef... |
var county_id = 0;
var rawData = [];
var width = 960,
height = 500;
// var path = d3.geo.path();
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
d3.json("js/us.json", function(error, topology) {
// console.log(topology);
rawData = topology;
});
d3.json("js/us.js... |
const { expect } = require("chai");
const { ethers } = require("hardhat");
const { fromRpcSig } = require("ethereumjs-util");
const ethSigUtil = require("eth-sig-util");
const Wallet = require("ethereumjs-wallet").default;
const { keccak256, toUtf8Bytes, defaultAbiCoder } = ethers.utils;
const { MaxUint256 } = ethers.... |
/**
* @author : <NAME> (<EMAIL>) //carlos
*
* @license: MenuItem
PEGAR
*/
'use strict'
const inside = require('point-in-polygon')
const path = require('path')
const {
dialog
} = require('electron').remote
const {
SplitPane,
Task,
ButtonsContainer,
GuiExtension,
Grid,
Modal,
util
} = require('el... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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]; } } }... |
//BUDGET CONTROLLER
var budgetController = (function() {
//Data structure to insert expenses and incomes
var Expense = function(id, description, value) {
this.id = id;
this.description = description;
this.value = value;
this.percentage = -1;
};
Expense.prototype.calcPercentage = function(totalI... |
/*
* The gamestate enumeration
*/
var GameState = exports.GameState = {
unstarted : 0,
building : 1,
waving : 2,
finished : 3,
};
/*
* Global objects
*/
var types = exports.types = {
units : {},
towers : {},
shots : {},
};
/*
* The GAME
*/
var GameLogic = exports.GameLogic = Base.extend({
init: functio... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Form, Row, Col, Button, Modal, Select, Radio, Icon, InputNumber, Input, Checkbox } from 'antd';
import { Editor } from 'react-draft-wysiwyg';
import { EditorState, convertToRaw } from 'draft-js';
import draftToHtml from 'draftjs-to-h... |
// IP cust --- IBEGIN
function refreshCusPlt(cusdoc) {
if (!getNode(srcdoc, "//wzsk:ts")) return;
if (!getNode(srcdoc, "//wzsk:cldtots")) return;
var mytext;
var yss = ["cldtots"];
if (getNode(srcdoc, "//wzsk:cld1s")) yss.push("cld1s");
if (getNode(srcdoc, "//wzsk:cld2s")) yss.push("cld2s");
if (getNode(srcdoc... |
import React from "react";
import { withStyles } from "@material-ui/core/styles";
import Grid from "@material-ui/core/Grid";
import Typography from "@material-ui/core/Typography";
import { connect } from "react-redux";
import SNETTextarea from "shared/dist/components/SNETTextarea";
import AlertBox, { alertTypes } from... |
var currentSystem = ""
var CurrentStation = ""
exports.parseEvent = function (line, mainDb) {
//var eventJSon = JSON.parse(line);
var eventJSon = line.data;
if (eventJSon.event === undefined) {
if (eventJSon.lastSystem !== undefined) {
console.log("*** GOT A LONG LASTSYSTEM ENTRY ***")
... |
/*
* *
* Copyright 2014 Comcast Cable Communications Management, 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 ... |
// test-transition-notifications.js
//
// Run some prepared jira event through the handler to ensure
// that we get our expected results
/*jshint esversion: 6 */ // Help out our linter
// See readme to determine how to configure test via environment
require('dotenv').config();
fs = require('fs');
path = require('path... |
// Copyright © 2016-2017 Dell Inc. or its subsidiaries. All Rights Reserved.
'use strict';
var di = require('di');
module.exports = workflowApiServiceFactory;
di.annotate(workflowApiServiceFactory, new di.Provide('Http.Services.Api.Workflows'));
di.annotate(workflowApiServiceFactory,
new di.Inject(
'Pro... |
var flipNumberAndStreetCountries = require('./flipNumberAndStreetCountries');
var geolib = require('geolib');
var _ = require('lodash');
var logger = require('pelias-logger').get('api:nameExpansions');
var adminExpansions=['neighbourhood', 'locality'];
var translations = {};
var api = require('pelias-config').generat... |
import {TP_ELEMENT_TYPES, setTPSelection, updateNodeTPOptions} from './tool_panel.js';
import {getNodePosition, translateNode} from './nodes.js';
import {hammerizeGroup} from './hammer_events.js';
var selection_area = null;
export var GROUP_TEMPLATE = {
'label': null,
'position': {x: 50, y: 50},
'scale': {x:1, ... |
import React, { Component } from 'react';
import { connect } from 'umi';
import { QuestionCircleFilled } from '@ant-design/icons';
import { Row, Col, Card, Table, Button, Progress, Popover, Tooltip } from 'antd';
import numeral from 'numeral';
import { Pie, TagCloudCustom } from '@/components/Charts';
import moment fro... |
/**
* Created by <NAME> on 25/12/2015.
*/
function getData(status){
if(status==false){
//waitingDialog.show();
$.ajax({
url : 'modules/act_view_logsheet.php',
cache : false,
data : { modules:document.form1.modules.value},
success : function(output)... |
import React, { Component } from 'react';
import Web3 from 'web3'
import Tokens20 from './Tokens/all20';
import Tokens721 from './Tokens/all721';
import Nav from './Components/Nav';
import Description from './Components/Description';
import Container from './Components/Container';
import InstallMetamask from './Compone... |
"use strict";
exports.__esModule = true;
var game_test_1 = require("game-test");
var THREE = require("three");
var ConvexGeometry_1 = require("three/examples/jsm/geometries/ConvexGeometry");
// Better logging on Errors.
(0, game_test_1.set_panic_hook)();
var CAMERA_DISTANCE = 500;
var CAMERA_WIDTH = 40;
// Create the 3... |
var password_choice_16 = {
length: 16,
repeat: 2,
lower: 2,
upper: 2,
number: 2,
dash: 2,
space: 0,
symbol: 2
};
var password_choice_12 = {
length: 12,
repeat: 2,
lower: 2,
upper: 2,
number: 2,
dash: 2,
space: 0,
symbol: 2
};
var password_choice_30 = {
length: 30,
repeat: 2,
lowe... |
import React, {useEffect, useState} from "react";
import {ListGroup} from "react-bootstrap";
import SideMenu from "../menu/SideMenu";
import Button from "react-bootstrap/Button";
import LoadingScreen from "../utils/LoadingScreen";
import {getCurrentStatus, getSurveyStatus} from "../utils/SurveyStatus";
import Card fro... |
// Get the element where the user client enters their chosen city
let userInputValue = document.querySelector(".input-value");
// Access elements where API data objects will be displayed
let city = document.querySelector(".city");
let country = document.querySelector(".country");
let mainWeather = document.querySelect... |
import {
Button,
FlatList,
NativeEventEmitter,
NativeModules,
PermissionsAndroid,
Platform,
SafeAreaView,
ScrollView,
StatusBar,
StyleSheet,
Text,
TouchableHighlight,
View,
} from 'react-native';
import React, {useEffect, useState} from 'react';
import BleManager from 'react-native-ble-manage... |
const mysql = require("mysql");
const TravelLocation = require('./app/models/TravelLocation');
const LocationFeature = require('./app/models/LocationFeature');
const FeatureRating = require('./app/models/FeatureRating');
var mysqldb = mysql.createConnection({
host: "cis5503.cumb2j1rxmgj.us-east-2.rds.amazonaws.com",
... |
const socket = io();
let symbol,
myTurn,
won = false,
draw = false;
// functions
function renderTurnMessage() {
$('#leftSide .player-symbol').text(`${symbol}`);
if (myTurn) {
$('#centerSide .alert').text(`Your Turn`);
$('.gameholder button').removeAttr('disabled');
} else {
$('#centerSi... |
import React from 'react';
import ReactNative, {
StyleSheet,
View,
Text,
RefreshControl,
TouchableOpacity,
TextInput,
Dimensions,
BackAndroid,
TimePickerAndroid,
DatePickerAndroid,
ToastAndroid,
InteractionManager,
} from 'react-native';
import { connect } from 'react-redux';
import { fetchRem... |
/**
* Helper method that determines when to recalculate row or column metadata.
*
* @param cellsCount Number of rows or columns in the current axis
* @param cellsSize Width or height of cells for the current axis
* @param computeMetadataCallback Method to invoke if cell metadata should be recalculated
* @param co... |
var
sys = require("sys"),
common = require("./common"),
ChildHandler = require("./handler").ChildHandler,
ChildPool = require("./pool").ChildPool,
UserScript = require("./userscript").UserScript;
exports.ERR_TOO_MUCH_MEMORY = "killed: too much memory used";
exports.ERR_TOO_MUCH_TIME = "killed: too much tim... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _vue = require("vue");
var _xeUtils = _interopRequireDefault(require("xe-utils"));
var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
var _size = require("../../hooks/size");
var _d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.