text stringlengths 3.22k 29.5k |
|---|
// <NAME>
let vol;
let objc = 0;
let objs = ["Recycling" + " " + "Bin", "Cat", "Tennis" + " " + "Ball", "Manhole" + " " + "Cover"];
let endmsg = ["Great" + " " + "Work!", "Amazing" + " " + "Job!", "Incredible" + " " + "Finds!"];
// Recycling Bin Hitbox
let rbx = 127;
let rby = 265;
let rbw = 35;
let rbh ... |
'use strict';
// const { mxw, nonFungibleToken, utils } = require('mxw-sdk-js/dist/index');
const { bigNumberify } = require("mxw-sdk-js/dist/utils")
// const { nodeProvider } = require("../extend/kyc/node");
// const {KycData} = require("../extend/kyc/data");
// const {KycProvider} = require("../extend/kyc/provider")... |
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
}
var __importDefault = (th... |
/**
* Created by Primoz on 30.6.2016.
*/
let singleton = Symbol();
let singletonEnforcer = Symbol();
let maxVec = new THREE.Vector3(1, 1, 1);
Input = class {
constructor(enforcer) {
// Do not allow singleton duplicates
if(enforcer != singletonEnforcer) throw "Cannot construct singleton";
... |
import * as Util from "../common/Util.bs.js";
import * as React from "react";
import * as Belt_List from "bs-platform/lib/es6/belt_List.js";
import * as CodeExample from "./CodeExample.bs.js";
import * as ReasonReact from "reason-react/src/ReasonReact.js";
import * as CodeSignature from "./CodeSignature.bs.js";
var ... |
/* eslint-disable max-classes-per-file */
const { EventEmitter } = require('events');
const path = require('path');
const mkdirp = require('mkdirp');
const { Worker } = require('worker_threads');
const { Suite, Test, reporters: { Base } } = require('mocha');
const Codecept = require('./codecept');
const MochaFactory = ... |
"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];
})... |
import consts from 'consts/const_global'
import SignalingClientList from './signaling-client-list/signaling-client-list'
import NodesList from 'node/lists/Nodes-List'
import NodeSignalingClientSerivce from "./signaling-client-service/Node-Signaling-Client-Service"
class NodeSignalingClientProtocol {
constructor(... |
#!/usr/bin/env node
let firebase = require("firebase-admin"),
glob = require("glob"),
yamljs = require("js-yaml"),
fs = require("fs-extra"),
crypto = require('crypto'),
metaMarked = require("meta-marked"),
path = require("path");
const { getCompilationQuarterValue, getInfoFromPath } = require(... |
/*
* Licensed to Cloudkick, Inc ('Cloudkick') under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Cloudkick licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not us... |
// LOGIN PAGE
get_login = function() {
$('#login').fadeIn();
$('#create').hide();
};
get_create = function() {
$('#login').hide();
$('#create').fadeIn();
};
// POSITION TOP FOR FORM PAGE
let form_top;
let menu_top;
setInterval(() => {
form_top = $('#login-form').innerHeight() / 2;
menu_top = $(... |
/*
**************************************************
* Bungee.js
*
* (c) 2012-2013 <NAME>
* (c) 2013 <NAME>
*
* Bungee may be freely distributed under the MIT license.
* For all details and documentation:
* http://bungeejs.org
**************************************************
*/
/* jshint node:... |
'use strict';
exports.__esModule = true;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactDom = require('react-dom');
var _reactDom2 = _interopRequireDefault(_reactDom);
var _button = require('./box/button');
var _text_input = require('./input/text_input');
var _text_input2... |
import React, { Component } from "react"
import { media } from "../styles"
import { useStaticQuery, graphql } from "gatsby"
import { GatsbyImage } from "gatsby-plugin-image"
const cssWrapper = ({ is_senate }) => ({
display: "flex",
flexWrap: "wrap",
justifyContent: "center",
marginBottom: is_senate ? "0" : "2.... |
#!/usr/bin/env node
var util = require('util')
var path = require('path')
var H = require('highland')
var chalk = require('chalk')
var minimist = require('minimist')
var config = require('spacetime-config')
var apiClient = require('./api-client')
var storage = {
fs: require('./storage/fs.js'),
s3: require('./sto... |
import Vue from 'vue'
import Vuetable from './components/Vuetable.vue'
import VuetablePagination from './components/VuetablePagination.vue'
import VuetablePaginationDropdown from './components/VuetablePaginationDropdown.vue'
import VuetablePaginationInfo from './components/VuetablePaginationInfo.vue'
let E_SERVER_ERRO... |
// imports for server
const express = require("express");
const app = express();
const server = require("http").createServer(app);
const io = require("socket.io")(server);
const path = require("path");
// imports for phaser
require("@geckos.io/phaser-on-nodejs");
const { SnapshotInterpolation } = require("@geckos.io/... |
/**
* Copyright 2018-2020 bluefox <<EMAIL>>
*
* MIT License
*
**/
'use strict';
const fs = require('fs');
const path = require('path');
const del = require('del');
const cp = require('child_process');
const dir = __dirname + '/src-chart/src/i18n/';
module.exports = function init(gulp... |
const MODES_AUX = {
blend_luminosity: `float blend_luminosity (vec3 c) {
return dot(c, blendLum);
}`,
blend_saturation: `float blend_saturation (vec3 c) {
return max(max(c.r, c.g), c.b) - min(min(c.r, c.g), c.b);
}`,
blend_set_luminosity: `vec3 blend_clip_color (vec3 c) {
float l = blend_luminos... |
import React, { useStyles, Component, useContext } from 'react';
import MediaQuery from 'react-responsive';
// import { Link } from 'react-router-dom';
import { withRouter } from "react-router";
import { animateScroll as scroll, Link } from "react-scroll";
import { Container } from "reactstrap";
import "../../../../ass... |
import {contractId} from "../../utils/helpers"
import batchTranscodeReceiptHashes from "../../utils/batchTranscodeReceipts"
import MerkleTree from "../../utils/merkleTree"
import {createTranscodingOptions} from "../../utils/videoProfile"
import Segment from "../../utils/segment"
import BigNumber from "bignumber.js"
co... |
'use strict'
const fs = require('fs'),
Readable = require('stream').Readable,
file = fs.readFileSync(__filename, 'utf8'),
size = Buffer.byteLength(file).toString(),
request = require('supertest'),
test = require('tap'),
Ellipse = require('../..'),
app1 ... |
// Douban API 操作
const AV = require('../../utils/av-weapp');
var app = getApp();
//const douban = require('../../libraries/douban.js')
// 创建一个页面对象用于控制页面的逻辑
Page({
data: {
title: '',
fxtitle:'',
fxdesc:'',
fxurl:'',
loading: true,
recipe: {},
publishedAt:'',
swiperHeight:0,
// list... |
const throttle = require('lodash.throttle');
const Color = require('color');
const nameToHex = require('convert-css-color-name-to-hex');
const toHex = (str) => Color(nameToHex(str)).hexString();
const values = require('lodash.values');
// Constants for the particle simulation.
const MAX_PARTICLES = 500;
const PARTICLE... |
let lookup = {};
let initialized = {
'adjustRequirementsModal': false,
'updateDoorCodeModal': false
};
let userReqMods = {};
let toolButtons = {
'updateDoorCode': {
'label': 'Update Door Code',
'description': 'Generate a new door code for a house and distribute it to current members.',
... |
var currentLang = '';
var bottom = '';
var addToshoppingCart = '';
var outOfStock = '';
let editBook = '';
var addedToshoppingCart = '';
var deleteBottom = '';
let welcomeBlock = $("#welcome");
let currencyIcon = ' €';
let currentPage = 0;
let amountBooksInPage = 0;
let amountBooksInDb;
let ddmAmountBook = $("#ddmAmoun... |
function show_host_list() {
var data = {};
data.hostGroups = window.hostGroups;
smarty.html( "linux_host_center_list", data, "container-list-div",function () {
$("select").selectpicker();
last_click();
});
}
$(document).on("click", "#node-manager", function(){
smarty.post( "/monitor... |
var sjcl = require('./utils').sjcl;
var base = require('./base').Base;
var Seed = require('./seed').Seed;
var UInt160 = require('./uint160').UInt160;
var UInt256 = require('./uint256').UInt256;
var request = require('superagent');
var querystring = require('querystring');
var extend ... |
import Vue from 'vue';
import store from '@/core/indexedDB';
import worker from '@/core/worker';
import House from '@/models/house';
import conf from '@/models/configurations';
import configuration from '@/configuration';
const {village: confVillage, house: confHouse} = configuration;
let workerLimitation = 4;
const ... |
export const jobDataSet = [
{
"_id":"21da93",
"title":"Meister / Mitarbeiter (m/w) CNC-Zerspanungstechnik",
"city":"Schorndorf (Württemberg)",
"employer":"Hägele GmbH",
"requirements":[
"Erfolgreich abgeschlossene Ausbildung zum Meiste... |
'use strict'
// Default configuration.
const defaultConfig = {
width: '100%',
height: '100%'
}
// Check for valid number.
const isNumber = input => !Number.isNaN(Number(input))
// Add a class to an element.
const addClass = 'classList' in document.documentElement
? (element, className) => {
element.classLi... |
import { getUuid, isWheel, offset, position } from '../base/util';
const win = window;
const doc = document;
const { forEach, map } = Array.prototype;
class ScrollSpy {
static defaultConfig = {
offset: 0,
method: 'auto',
menu: '', // 菜单导航
menuCls: null, // 自定义菜单样式
menuClsPrefix: 'menu', // 菜单样式前... |
require('should');
const { Readable } = require('stream');
const { fromChunks, toObjects } = require('streamtest').v2;
const { ParseProblem } = require('../lib/util/problem');
const { parseRecords } = require('../lib/parser');
// handling stream error/success muxing is annoying to do directly since pipe()
// doesn't p... |
$(window).ready(function() {
//add events
$("#enterCover").click(function() {submit();});
$(".numButton").click(function() {typeNumber($(this));});
$("#clearCover").click(function() {clear();});
$("#burgerCover").click(function() {openSettings();});
$("#closeSettingsCover").click(function() {closeSettings();});
$("#r... |
/*
To Do:
Looking for Group command
[/] $mute command to mute users on mobile
*/
const Discord = require("discord.js");
const nodeCMD = require("node-cmd");
const client = new Discord.Client();
require("dotenv").config();
const token = process.env.TOKEN;
const commandsList = require("./commands.json");
const pre... |
$(function () {
"use strict";
//Activate tooltips
$("[data-toggle='tooltip']").tooltip();
$("[data-toggle='utility-menu']").click(function() {
$(this).next().slideToggle(300);
$(this).toggleClass('open');
return false;
});
// Login Page Flipbox control
$('#toFlip').click(function() {
loginFlip();
re... |
const DEOR = 1,
DECAT = 2,
DESTAR = 3,
DEPARENS = 4,
NOTRECOGNIZED = 5;
/** The set of transitions that still require expansion. */
var toDo = [];
/** The set of lambda-transitions still unborn! */
var toDoTransitions = [];
/** The current action, or 0 if no action. */
var action = 0;
/** The transition... |
import dateUtils from '../../../../core/utils/date';
import { getRecurrenceProcessor } from '../../recurrence';
import { inArray, wrapToArray } from '../../../../core/utils/array';
import { map, each } from '../../../../core/utils/iterator';
import { isFunction, isDefined } from '../../../../core/utils/type';
import qu... |
function addDetailLabel(ul, name, value){
var num = parseInt(value);
var li = document.createElement("ul");
ul.appendChild(li);
if(isNaN(num)){
li.innerText = `${name}: ${value}`;
} else {
li.innerText = `${name}: ${value} (0x${num.toString(16)})`;
}
return li;
}
function getAllSiblings(elem, filter) {
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _asyncToGenerator2 = _interopRequireDefault(requi... |
import "babel-polyfill"
import "whatwg-fetch"
import React from "react"
import ReactDOM from "react-dom"
import _ from "lodash"
import Textarea from "react-textarea-autosize"
import IconRating from './IconRating'
import {emojify} from 'react-emojione'
import Linkifier from 'react-linkifier'
class App extends React.Com... |
import React, { useState, useEffect } from 'react'
import { useAuth } from '../../context/AuthContext'
import { withStyles, makeStyles } from '@material-ui/core/styles';
import { db } from '../../../firebase'
import NavBar from '../../Nav/NavBar'
import Table from '@material-ui/core/Table';
import TableBody from '@mat... |
//////////////////////////////////////////////////
// Package docs at http://docs.meteor.com/#deps //
//////////////////////////////////////////////////
Deps = {};
// http://docs.meteor.com/#deps_active
Deps.active = false;
// http://docs.meteor.com/#deps_currentcomputation
Deps.currentComputation = null;
var setCu... |
import React, { Fragment, useState, useMemo, useCallback } from "react";
import { useApolloClient, useMutation } from "@apollo/react-hooks";
import { useTranslation } from "react-i18next";
import { useHistory } from "react-router-dom";
import DataTable, { useDataTable } from "@reactioncommerce/catalyst/DataTable";
impo... |
"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.getElementById("main-header-link").innerHTML = window.location.hostname
document.title = window.location.hostname
omg.ui.setupUserControls(document.getElementsByClassName("title-bar-user-controls")[0]);
omg.ui.oninboxitemclick = (item) => {
omg.server.getId(item.thingId, result => {
fp.nowPlaying.s... |
/**
* 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 appl... |
const fs = require("fs")
const path = require("path")
const axios = require("axios")
const opn = require("open")
const express = require("express")
const moment = require("moment")
let _Debug = (...args) => { /* do nothing */ }
class Spotify {
constructor(config, debug = false, first = false) {
if (first) this.a... |
import overrides from "./data/companies";
import addIndex from "ramda/src/addIndex";
import adjust from "ramda/src/adjust";
import ascend from "ramda/src/ascend";
import chain from "ramda/src/chain";
import compose from "ramda/src/compose";
import curry from "ramda/src/curry";
import defaultTo from "ramda/src/defaultT... |
var defaults = {
// settings
grid: 0, // grid cell size for snapping to on drag
filterTarget: null, // disallow drag when target passes this test
limit: { // limit the drag bounds
x: null, // [minimum position, maximum position] || position
y: null ... |
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative, then... |
/**
* Simple JavaScript tokenizer (not a full parser!!!)
*
* Portions taken from Narcissus by <NAME> <<EMAIL>>.
*/
/*jshint evil: true, regexdash: false, regexp: false */
var KEYWORDS = [
'break',
'case', 'catch', 'const', 'continue',
'debugger', 'default', 'delete', 'do',
'else', 'enum',
'fal... |
import { parse } from 'kit-qs';
import router from '@/router';
import store from '@/store';
import { Toast, Indicator, MessageBox } from 'mint-ui';
// import env from '@/config/env';
import bridge from '@/utils/bridge';
import device from '@/utils/device';
import env from '@/config/env';
import { Version } from '@dwdj... |
const Discord = require("discord.js");
const fs = require("fs");
const config = require("./pb_data/config");
const purplelog = require("./purplelog.js");
const client = new Discord.Client();
const Purple = (() => {
function generateStorage() {
if (!fs.existsSync("./pb_data/storage.json")) {
//... |
// In which I make a computer game out the Beat to Quarters system
// player deck is 53 cards, one of them a joker; gm deck provides the card of fate... As if GM card handed into player deck
// H, S, C, D 1-13 (11 = J, 12 = Q, 13 = K)
// match suit = success
// match number = crit
// match exact = perfect
// each rank... |
import './alert.js';
import { css, html, LitElement } from 'lit-element/lit-element.js';
import { ifDefined } from 'lit-html/directives/if-defined.js';
const reduceMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
const states = {
CLOSED: 'closed', // the toast is closed
CLOSING: 'closing', // the cl... |
$(function(){
var d = new Date();
var n = d.getFullYear();
$("input[type='number']").prop('min',n);
var file = window.location.href.split("/")[3]
if (file == "class_schedule_add.php") {
if (window.location.href.split("?")[1] != undefined) {
document.getElementById("schedul... |
const { AbiCoder } = require('web3-eth-abi');
const BN = require('bn.js');
const bn128 = require('../../utils/bn128.js');
const utils = require('../../utils/utils.js');
const { GeneratorParams, GeneratorVector, FieldVector, FieldVectorPolynomial, PolyCommitment } = require('../algebra.js');
const AnonProver = require(... |
var GAME_SPEED = document.getElementById("speed").value;
const CANVAS_BORDER_COLOUR = 'red';
const CANVAS_BACKGROUND_COLOUR = "grey";
var SNAKE_COLOUR = document.getElementById("snake").value;
var SNAKE2_COLOUR = document.getElementById("snake2").value;
const SNAKE_BORDER_COLOUR = 'black';
const FOOD_COLOUR = 'red';
c... |
import axios from 'axios'
import Vue from 'vue'
import Response from '@/plugins/response.js'
// import pako from 'pako'
class MQL {
constructor(strActivities = null) {
let cancel
let isDevelopment = process.env.NODE_ENV !== 'production'
let CancelToken = axios.CancelToken
this.strActivities = strActivities
t... |
import React, { useState } from "react";
import { useParams } from "react-router-dom";
import {
Button,
Container,
makeStyles,
Typography,
Step,
Stepper,
StepLabel,
CircularProgress,
} from "@material-ui/core";
import { useNavigate } from "react-router-dom";
import { Formik, Form } from "formik";
import... |
import styled from 'styled-components';
import { themeGet } from '@styled-system/theme-get';
const AccountSettingWrapper = styled.div`
padding: 60px 0;
@media only screen and (max-width: 767px) {
padding: 30px 0;
}
`;
export const AccountSidebar = styled.aside`
border-radius: 3px;
background-color: ${the... |
var submit;
var reset;
var body;
var base_url; // 根页面
$(function () {
body = $('body');
base_url = body.attr("data-base-url");
var data_md5 = $('.js_tab_head').find('.layui-this').attr('data-md5');
var iframeFirst = $(".js_tab_body[data-md5=" + data_md5 + "] iframe");
if (iframeFirst.length > 0) ... |
const EventEmitter = require('events');
const Shuffle = require('knuth-shuffle-seeded');
class Game extends EventEmitter {
constructor(params = {}) {
super();
this.params = params;
this.deck = [];
this.card = null;
this.players = [];
this.teamTurn = -2;
this.... |
"use strict";
const IPCIDR = require("ip-cidr");
const isIp = require("is-ip");
const isCidr = require("is-cidr");
const ipv6Normalize = require("ipv6-normalize");
const naturalCompare = require("string-natural-compare");
const {Address4, Address6} = require("ip-address");
const {BigInteger} = require("jsbn");
const ... |
import _ from 'lodash';
import { fs, util, zip, tempDir} from '@appium/support';
import log from '../logger';
import path from 'path';
const CONTAINER_PATH_MARKER = '@';
// https://regex101.com/r/PLdB0G/2
const CONTAINER_PATH_PATTERN = new RegExp(`^${CONTAINER_PATH_MARKER}([^/]+)/(.+)`);
const ANDROID_MEDIA_RESCAN_IN... |
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2019 Intel Corporation
import React, { Component } from 'react';
import withStyles from '@material-ui/core/styles/withStyles';
import ApiClient from '../../api/ApiClient';
import CircularLoader from '../progressbars/FullSizeCircularLoader';
import Button from '@m... |
'use strict';
var util = require('util');
var urltils = require('../../util/urltils.js');
var sumChildren = require('../../util/sum-children');
var Timer = require('../../timer');
var STATE = {
EXTERNAL: 'EXTERNAL',
CALLBACK: 'CALLBACK'
};
/**
* Initializes the segment and binds the recorder to itself, if prov... |
import { ViewPlugin } from '@remixproject/engine-web'
import * as packageJson from '../../../../../package.json'
const $ = require('jquery')
const yo = require('yo-yo')
const ethJSUtil = require('ethereumjs-util')
const Web3 = require('web3')
const EventManager = require('../../lib/events')
const Card = require('../ui... |
import { Link } from "gatsby";
import React, { Component } from "react";
import styled from "@emotion/styled";
import { vars } from "../utils/emotionVars";
import Circle from "./Circle";
import { TweenMax, Expo, TimelineLite } from "gsap";
import { debounce } from "lodash";
const Header = styled("header")`
position:... |
/*
* xbStyle.js
* $Revision: 1395307 $ $Date: 2012-10-07 22:02:53 +0800 (周日, 07 十月 2012) $
*/
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in complian... |
var brfv4Example = {
appId: "facematch", // Choose your own app id. 8 chars minimum.
loader: { queuePreloader: null }, // preloading/example loading
imageData: { // image data source handling
webcam: { stream: null }, // either webcam ...
picture: {} // ... or pictures/images
},
dom: {}, // ... |
/**
* Copyright IBM Corp. 2019, 2019
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const t = require('@babel/types');
const { default: generate } = require('@babel/generator');
const { default: template } = re... |
/**
* Created by iamhosseindhv on 24/06/2017.
*/
var queryString = require('query-string');
//do the query based on map viewport
var doQueryFromMapCoordinates = function(map) {
const ne_lat = map.getBounds().getNorthEast().lat();
const ne_lng = map.getBounds().getNorthEast().lng();
const sw_lat = map.get... |
import * as React from 'react';
import {Component} from 'react';
import {Image, Text, View} from 'react-native';
import * as Location from 'expo-location';
import config from '../config';
import Colors from '../constants/Colors';
class PlogScreenWeather extends Component {
constructor() {
super();
this.state... |
var Board = require("../lib/board.js"),
Pin = require("../lib/pin.js"),
Emitter = require("events").EventEmitter,
util = require("util"),
__ = require("../lib/fn.js"),
lcdCharacters = require("../lib/lcd-chars.js"),
converter = require("color-convert")();
var priv = new Map();
/**
* This atrocitity is un... |
// -----------------------------------------------------------------------------
//
// ExpressJs Web Server
//
// -----------------------------------------------------------------------------
'use strict';
// native node packages
const http = require('http');
const path = require('path');
const fs = require... |
/**
* https://steemit.com/@investigation
*/
/////////////
var botUserData = require("./userData.json")
var SECOND = 1000;
var MINUTE = 60 * SECOND;
var HOUR = 60 * MINUTE;
var MUST_FOLLOW_SINCE = 7 * MINUTE;
var URL1 = "https://steemit.com/resteem/@abasinkanga/36-abasinkanga-free-resteem-service-to-5000-followers... |
/* eslint-disable no-magic-numbers */
import React, { useRef, useEffect } from 'react'
import { connect } from 'react-redux'
import { View, Text, StyleSheet, SectionList } from 'react-native'
import { ListItem, Icon, Divider } from 'react-native-elements'
import { Interval, DateTime } from 'luxon'
import sectionListGet... |
$(function() {
PersonnelInformationTable();
$("#telephone").change(function() {
$("#name").val($(this).val());
});
$("#btnAdd").click(function() {
loadMenuTree("");
$("#id").val("");
$("#telephone").removeAttr("readonly")
$("#myModal").modal();
});
$('#myModal').on('show.bs.modal', function(e) {
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _classCallCheck2 = _interopReq... |
import * as React from 'react';
import { debounce } from 'lodash';
import { PropTypes } from 'prop-types';
import { Text, View } from 'react-native';
import FastImage from 'react-native-fast-image';
import { Counter } from 'kitsu/components/Counter';
import { ProgressBar } from 'kitsu/components/ProgressBar';
import { ... |
const path = require('path')
var view = {
logo: config.site.logo,
websocket: config.websocket,
components: config.components.load,
menus: {},
dont_track: ["/login"],
meta:{
title: config.site.name,
description:config.site.meta_description... |
/**
*
*/
(function(global) {
global.testhelper = {};
global.testhelper.scripts = {
"core": [
"src/tmlib.js",
],
"event": [
"src/event/event.js",
"src/event/eventdispatcher.js",
],
"util": [
"src/util/random.js",... |
'use strict';
exports.__esModule = 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]; } } } return target; };
var _createClass =... |
function rel_graph(data, labels, asset_path) {
var colors;
function create(colors) {
// SVG Panel
var h = 600;
var w = 750;
var r = 170;
var svg = d3.select('#relGraph').insert('svg', 'div.graphSelectBox').attr('top', 30).attr('width', w).attr('height', h);
var container = svg.append("g").attr("class... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
//#region step0.commonFunc.js 通用方法
// 检查字典是否为空
function checkDictNull(dict) {
for (const n in dict) {
return false;
}
return true;
}
// 获取地址参数
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substring(1).match(reg);
... |
import React from 'react'
import Formsy from 'formsy-react'
import Modal from 'react-modal';
import MyInput from '../components/my-input'
import MySelect from '../components/my-select'
import MyTextarea from '../components/my-textarea'
import SectionTitle from '../components/section-title'
import HttpHelpers from '../u... |
import React, { useContext, useState } from "react";
import { MovieContext } from "../../context/MovieContext";
import Swal from "sweetalert2";
import Axios from "axios";
import {
CContainer,
CCard,
CCardHeader,
CRow,
CCol,
CCardTitle,
CCardBody,
CForm,
CFormGroup,
CInput,
CLabel,
CButton,
CIm... |
var default_colors = ['#fdbb84','#fee8c8','#e34a33', '#3182bd', '#000000']
//0-4 are greens, 5 is a grey
//var exp_colorscale = ['#edf8e9', '#bae4b3', '#74c476', '#31a354', '#006d2c', '#bdbdbd']
var cy;
$(function(){
var cy = cytoscape({
container: document.getElementById('cy'),
elements: model_elements,
... |
import React, { Component } from 'react';
import { Alert, FlatList, Text, View, Image, ScrollView, TextInput, Button, TouchableOpacity, TouchableHighlight, SectionList, ActivityIndicator, StatusBar } from 'react-native';
import { Actions, onEnter } from 'react-native-router-flux';
import InputSpinner from 'react-native... |
import { Constants, Camera, FileSystem, Permissions } from "expo";
import React from "react";
import {
StyleSheet,
Text,
View,
TouchableOpacity,
Slider,
Vibration,
CameraRoll
} from "react-native";
import GalleryScreen from "./GalleryScreen";
const landmarkSize = 2;
const flashModeOrder = {
off: "on",... |
// TODO: Option to focus on staircases, paths, roads
var urlLoadedWithHash = window.location.hash; // Need to check this before mapbox initializes the map
mapboxgl.accessToken = '<KEY>'; // replace this with your access token
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/andyszy/ckchz70872ka... |
/*
const needTagFix = function() {
if (LEGACY) {
const testElem = document.createElement("div")
const tempTagName = "div123"
// Needed for old IE--v
testElem.innerHTML = "1<" + tempTagName + "></" + tempTagName + ">"
return getChar(testElem.getElementsByTagName("*")[0].nodeName, 0) === '/'
}... |
var URL_REGEXP = /^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/;
var EMAIL_REGEXP = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/;
var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/;
var PHONE_NUMBER_REGEXP = /^[+]*[(]{0,1}[0-9]{1,3}[)]{0,1}[-\s\./0-9]*$/;
//check inpu... |
import React, { useState, useEffect } from "react";
import PropTypes from "prop-types";
import {
Form, Segment, Checkbox, Grid, Modal, Button,
Accordion, Icon, Dropdown, Label, Header, TransitionablePortal, Popup, Input, Divider,
} from "semantic-ui-react";
import moment from "moment";
import { DateRangePicker } fr... |
//
// Copyright IBM Corp. 2020, 2020
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//
// Import portions of React that are needed.
import React, { useState, useEffect, useRef } from 'react';
// Other standard imports.
import Pro... |
"use strict";
/*
* Copyright 2020 gRPC authors.
*
* 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 l... |
import Ember from 'ember';
import ModelsTable from './models-table';
import layout from '../templates/components/models-table';
var { get, set, computed, typeOf, run } = Ember;
export default ModelsTable.extend({
bulkTaggingService: Ember.inject.service('bulk-tagging'),
layout,
/**
* True if data is current... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.