text stringlengths 3.22k 29.5k |
|---|
/**
* Copyright (c) 2015-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.
*/
/**
* Def... |
import { FieldType } from '../../../common/enums'
export let emptyItem = {
radiatorID: 'Testing',
titleInternational: '',
}
export const columnsTable = [
{ field: 'radiatorID', header: 'Radiator ID', colGroup: 'ID' },
{ field: 'id', header: 'Neo4J UUID', hidden: true },
{ field: 'titleInternational', header... |
/**
* Looks up an operator from the provided configuration.
* @param {string} feedId - the feed ID, which can be obtained by splitting the
* OTP route or stop ID by `:`
* @param {object} transitOperators - transitOperators from config.
* @return {object} the operator for the specified ... |
'use strict'
/* Define jFlick */
var jFlick = {};
jFlick.__performance = null;
jFlick.ViewStack = [];
/* Routing */
var router = {};
router.global = {};
router.global.onloading = [];
router.global.onloaded = [];
router.global.onpopping = [];
router.global.onpopped = [];
router.global.onredirecting = [];
router.onload... |
var http = require("http");
var fs = require("fs");
var wrench = require("wrench");
var path = require("path");
var util = require("util");
var exec = require("child_process").exec;
var FILE_ENCODING = "utf-8";
var buildSpec = {
baseVersion: "1.3alpha",
svnUrl: "http://rangy.googlecode.com/svn/trun... |
/**
* Copyright 2015 IBM Corp. 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 required by applica... |
import 'select2';
import 'backbone.stickit';
import extend from 'lodash/extend';
import * as DynamicSelect2 from '../utils/DynamicSelect2';
import PublicationSubtypeCollection from '../models/PublicationSubtypeCollection';
import BaseView from './BaseView';
import AlertView from './AlertView';
import hbTemplate from ... |
import React, {useState, useEffect} from 'react';
import Form from 'react-bootstrap/Form';
import Button from 'react-bootstrap/Button';
import InputGroup from 'react-bootstrap/InputGroup';
import FormControl from 'react-bootstrap/FormControl';
import { CKEditor } from '@ckeditor/ckeditor5-react';
import ClassicEditor f... |
/*
* score view
* yachet_race@self, Akashic content
*/
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Configuration
var conf = require('./content_config');
/*
score structure
ordered by gloal_socre
[global_score, check_inde... |
import { TYPE_RESELLER, TYPE_PVP } from '../../../constats/form-types';
import fs from 'fs'
import Helvetica from '!!raw-loader!pdfkit/js/data/Helvetica.afm'
fs.writeFileSync('data/Helvetica.afm', Helvetica)
const LVMH_TYPE = 'lvmh';
const MGI_TYPE = 'mgi';
const OTHERS_TYPE = 'Otros';
class InvoiceMaker {
constru... |
import styles from "../assets/scss/calendar.scss";
import "./select";
import "./button";
const months = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December",
];
const days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];... |
var strimmer_host = 'https://strimmer2.theblackparrot.us/api/1.0/';
var old_result;
var dominant_color = {r: 63, g: 81, b: 181};
var playing = 0;
function getStrimmerNowPlaying(verbosity,type,callback) {
var url = strimmer_host + 'fetch/playing.php?verbosity=' + encodeURI(verbosity) + '&type=' + encodeURI(type);
//c... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const commands_1 = require("../../commands");
const YammerCommand_1 = require("../../../base/YammerCommand");
const request_1 = require("../../../../request");
const vorpal = require('../../../../vorpal-init');
class YammerMessageListCommand e... |
import { Mongo } from 'meteor/mongo';
import SimpleSchema from 'simpl-schema';
import { Tracker } from 'meteor/tracker';
import ICAL from 'ical.js'
import swal from 'sweetalert'
import fs from 'file-saver'
import { getVTZ } from './Timezone'
import { object } from 'prop-types';
/** Define a Mongo collection to hold th... |
/*!
* graphql-result-size
* Copyright(c) 2018 <NAME>
*/
'use strict'
/**
* Module exports.
* @public
*/
module.exports = {queryCalculator, produceResult};
/**
* Module dependencies.
* @private
*/
const _ = require('lodash');
const deleteKey = require('key-del');
const {
GraphQLError
} = require('graphql... |
// 跟"修改"UI相关的JS函数
var EditorX = {
isEditing: false,
isEditFileing: false,
//增强文本型数据
enhanceText: function(selector, props) {
$(selector)
.click(function() {
//如果正在编辑状态,则不响应其他的mousemove
if (EditorX.isEditing)
return;
//隐藏数据,显示editor
$(this).hide().next().fadeIn('fast');
$(this).h... |
/* eslint-disable no-restricted-globals */
/* eslint-disable func-names */
/* eslint-disable no-plusplus */
/* eslint-disable guard-for-in */
/* eslint-disable no-restricted-syntax */
/* eslint-disable consistent-return */
/* eslint-disable no-unused-expressions */
/* eslint-disable no-unused-vars */
// navigation
con... |
/*
MIT License
Copyright (c) 2017 Marco
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, publish, dist... |
const express = require("express");
const router = express.Router();
const bodyParser = require("body-parser");
const passport = require("passport");
const generator = require("generate-password");
const mailer = require("../mailer");
const { capture } = require("./../sentry.js");
require("../passport")(passport);
cons... |
// Portions Copyright 2019 <NAME> (https://github.com/Jimbly/)
// Released under MIT License: https://opensource.org/licenses/MIT
export const MAX_SEMANTIC = 5;
const assert = require('assert');
const engine = require('./engine.js');
const { errorReportSetDetails, glovErrorReport } = require('./error_report.js');
con... |
/**
* @file: logger
* @author: gejiawen
* @date: 9/26/16 11:18
* @description: logger
*
* sword-logger中间件将所有的日志分为如下几大类(category),
*
* fatal、error、warn、info、trace、debug
* request、response、render、action
*
* 其中第一行的6种其实是bunyan自带日志等级的alias,
* 第二行是根据不同业务场景抽象出来的。
*
* - request,Nodejs程序向rest服务器发送rest api请求的日志
* ... |
const fs = require('fs');
const util = require('util');
const path = require('path');
const yaml = require('js-yaml');
const del = require('del');
const confman = require('confman');
const { ESLint } = require('eslint');
// const formatter = require('eslint-formatter-pretty');
const ruleMerge = require('./rules');
cons... |
"use strict";
// Vue!
var app = new Vue({
el: "#app",
// vars
data: {
dateBegin: moment().subtract(30, 'days').format('YYYY-MM-DD'),
dateEnd: moment().format('YYYY-MM-DD'),
projects: [],
businesses: [],
underMedium: false,
map: null,
mapInit: false,
... |
'use babel';
var shell = require("electron").shell;
$ = jQuery = require("jquery");
var fs = require("fs");
import { dirname } from 'path';
var configPath = atom.config.getUserConfigPath();
var ruta = dirname(configPath) + "/packages/web-bookmarks/atomBookmarks.json";
var jsonpatch = require('jsonpatch');
var saveboo... |
var mydata={};
var vm = new Vue({
el:'#rrapp',
data:{
showList:false,
orderNo:'',
testType:'',
orderConfigName:'',
orderConfigList:[],
workshopList:[],
lineList:[],
showList:false,
},
watch:{
testType:function(newVal,oldVal){
if(vm.testType=='01'){
this.showList=false;
}
if(... |
import React from 'react'
import {Link, withRouter} from 'react-router'
import './ArConcert.scss'
import title from "../../static/kol/title.png";
import zhangyu01 from "../../static/kol/zhangyu01.png";
import liutong02 from "../../static/kol/liutong02.png";
import zhangna03 from "../../static/kol/zhangna03.png";
impor... |
'use strict';
// based on the noble code from homebridge-avea-bulb
const moment = require('moment'),
packageJSON = require("../package.json"),
path = require('path'),
Noble = require('noble'),
fs = require('fs'),
$ = require('./helpers.js'),
bleDailySwitch = require('./bleDailySwitc... |
import vendorLinker from './vendorLinker';
import ns from './namespace';
import ObjectContainer from './ObjectContainer';
import Bootstrap from './Bootstrap';
import initBindIma from './config/bind';
import initServicesIma from './config/services';
function getInitialImaConfigFunctions() {
return { initBindIma, init... |
var cassowary = require('../deps/cassowary.js');
var primitives = require('./primitives.js');
var operators = require('./operators.js');
var parseExpression = require('./parser.js');
var Numeral = primitives.Numeral;
var Constant = primitives.Constant;
var Variable = primitives.Variable;
va... |
/**
* +----------------------------------------------------------------------
* | CodeEngine
* +----------------------------------------------------------------------
* | Copyright 艾邦
* +----------------------------------------------------------------------
* | Licensed ( http://www.apache.org/licenses/LICENSE-2.... |
/* jshint node: true */
/* jshint globalstrict: true */
"use strict";
/**
* USAGE example:
* node bankin-challenge.js
* node bankin-challenge.js --pages=100
*/
/**
* Modules requirements
*/
const puppeteer = require('puppeteer');
const argv = require('minimist')(process.argv.slice(2));
const path = require('pa... |
/**
* Import dependencies
*/
import { Stream } from 'stream';
import Joi from 'joi';
import Boom from 'boom';
import {
Source,
parse,
validate,
execute,
formatError,
getOperationAST,
specifiedRules
} from 'graphql';
// Import accepts from 'accepts';
import { version } from '../../package.json';
// Import rende... |
if (process.env.NEWRELIC)
require('newrelic');
var _ = require('lodash');
var http = require('http');
var express = require('express');
var cookieParser = require('cookie-parser');
var compress = require('compression');
var connectAssets = require('connect-assets');
var sessions = require('client-sessions');
var body... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Query } from 'react-apollo';
import { List_Reports_Statistics_1 } from '../../../../../';
import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips';
import { getStyle, hexToRgba } from '@coreui/coreui/dist/j... |
function seguirJuego() {
if(juego.isEnded()) { // ha superado en el contador el maximo
mostrarResultados();
}
else { //---------->
// enseñamos pregunta
var tiempo = 30;
display = document.querySelector('#time');
empezartiempo(tiempo, display);
var element... |
import validators from 'types-validate-assert'
const { validateTypes } = validators;
import * as wallet from './wallet'
import { Network } from './network'
export class TransactionBuilder extends Network {
// Constructor needs an Object with the following information to build Class.
//
// arg[0] (network... |
/**
* Copyright 2017 Google Inc. 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 required by applic... |
import React, { Component } from 'react';
import { Container, Row, Col, Image } from 'react-bootstrap';
import { Database, Storage } from 'components';
import { FaArrowsAlt, FaPlus, FaMinus, FaTimes } from 'react-icons/fa';
import * as htmlToImage from 'html-to-image';
import Draggable from 'react-draggable';
import Mo... |
$("#gamecanvasdiv").css({"z-index": 3});
function deepcopyarray(obj) {
var out = [],i = 0,len = obj.length;
for (; i < len; i++) {
if (obj[i] instanceof Array){
out[i] = deepcopyarray(obj[i]);
}
else out[i] = obj[i];
}
return out;
};
function getPointOnCanvas(canvas... |
const axios = (window.axios = require("axios"));
window.axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";
import React, { Component } from "react";
import { render } from "react-dom";
import moment from "moment";
import { Button, Icon, Intent, Spinner, Toaster, Position, Input } from "@blueprintjs... |
import React, { Component } from 'react';
import { TimelineLite, Power2 } from 'gsap';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { withRouter, Link } from 'react-router-dom';
import classnames from 'classnames';
import ProcessBarsList from '../processBarsList';
import Pro... |
import React from 'react'
import Helmet from 'react-helmet'
import styled from 'styled-components'
import { graphql, Link } from "gatsby"
import Img from "gatsby-image"
import {SIZE_MOBILE_LARGE} from '../components/CONSTANTS'
import metaFeaturedImage from './../assets/img/website-meta-share-personal.jpg'
im... |
/* vim: set ts=8 sts=8 sw=8 noet: */
var mod_assert = require('assert-plus');
var mod_sqlite = require('sqlite3');
var mod_vasync = require('vasync');
var mod_verror = require('verror');
var mod_jsprim = require('jsprim');
var VE = mod_verror.VError;
var MultiError = mod_verror.MultiError;
function
Database(opts)
{... |
import rome from 'rome';
import _defaults from 'lodash/object/defaults';
import moment from 'moment';
import popupTemplate from '../template/datepicker.hbs';
import scrimTemplate from '../template/scrim.hbs';
import Events from './events';
const prefix = 'c-datepicker';
const defaults = {
default: moment(),
// al... |
import React, {useMemo} from 'react';
import ReactDOM from 'react-dom';
import Modal from 'react-modal';
import {useDropzone} from 'react-dropzone';
import TextField from '@mui/material/TextField';
import FormGroup from '@mui/material/FormGroup';
import Select from '@mui/material/Select';
import MenuItem from '@mui/mat... |
'use strict';
//#!/usr/bin/env babel-node --optional es7.asyncFunctions
import path from 'path'
import fs from 'fs'
import jsdom from 'jsdom-global'
import fetch from 'node-fetch'
import jest from 'jest'
import secret from './../config/secret'
import moveIdTokens from './tests/moveIdTokens';
const homedir = require('os... |
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const Utils = {
uuid(a, b) { for (b = a = ''; a++ < 36; b += a * 51 & 52 ? (a ^ 15 ? 8 ^ Math.random() * (a ^ 20 ? 16 : 4) : 4).toString(16) : '-'); return b },
pluralize(count, word) {
return count === 1 ? word : word + 's'
},
stor... |
//
// Copyright (C) 2016-2017 DBot. All other content, that was used, but not created in this project, is licensed under their own licenses, and belong to their authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You m... |
import { React, Component } from "react";
import { Container, Grid, Paper, Typography, CircularProgress, Box, Button } from '@mui/material';
import '../assets/css/dashboard.css'
import env from "@beam-australia/react-env";
import { MostrarSociedad } from "components/MostrarSociedad";
import { MyAlert } from "compon... |
/**
* Created by Sercan on 16.11.2016.
*/
import {Template} from 'meteor/templating';
import {Meteor} from 'meteor/meteor';
import {Session} from 'meteor/session';
import {FlowRouter} from 'meteor/kadira:flow-router';
import Helper from '/client/imports/helper';
import './query_wizard.html';
require('typed.js');
l... |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview js2gtest wrapper for the chrome://media-app test suite.
*/
GEN('#include "ash/webui/media_app_ui/test/media_app_ui_browsertest.h"');... |
/****************
Digit Span Task
*****************/
// Memory task. On each trial, participants view a sequence of numbers, and must then recall the sequence of numbers in reverse.
// Starts with sequence of two numbers, which increases with each correct response. After 2 incorrect responses in a row, sequence leng... |
const {
ImpermaxERC20,
getDomainSeparator,
getApprovalDigest,
sendPermit,
} = require('./Utils/Impermax');
const {
expectEqual,
expectRevert,
expectEvent,
BN,
} = require('./Utils/JS');
const { keccak256, toUtf8Bytes } = require('ethers/utils');
const NAME = 'Ethereum';
const SYMBOL = 'ETH';
const TOTAL_SUPPLY... |
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
/*
btc-transactions
*/
function TxIn(ref, n) {
this.ref = ref;
this.n = n;
this.k = ref.id + ':' + n;
this.isvalid = function() {return true;}
}
function TxOut(txid, n) {
this.n = n;
this.k = txid + ':' + n;
}
function Transaction(id, inputs, n) {
this.id = id;
this.vin = inputs;
this.... |
var DURATION = 60;
var WordFighter = {
id: null,
word: "",
started: false,
activeKeypress: false,
level: 'E',
answers: null,
letters: null,
score: 0,
combo: 0,
opponentCombo: 0,
first: true,
opponentLevel: null,
startDate: null,
toggle_howto: function() {
$('#howto').slideToggle();
},
change_leve... |
// TypeScript file
var TileMap = (function (_super) {
__extends(TileMap, _super);
function TileMap() {
var _this = this;
_super.call(this);
//地图行列数
this._column = 10;
this._row = 10;
this._config = [
{ x: 0, y: 0, walkable: true, image: "road_jpg" },
... |
var validate = require('./')
, Validator = validate.Validator
, assert = require('assert');
var tests = module.exports = {
'test max': function () {
assert(Validator.prototype.max.call(null, 2, 1));
assert(!Validator.prototype.max.call(null, 2, 3));
},
'test min': function () {
assert(Validato... |
/* -*- coding: utf-8 -*-
Copyright (c) 2018 <NAME> <<EMAIL>>
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, mer... |
/*
* This code and all components (c) Copyright 2019-2020, Wowza Media Systems, LLC. All rights reserved.
* This code is licensed pursuant to the BSD 3-Clause License.
*/
class WowzaPeerConnectionPlay
{
constructor (props)
{
// munge plug-in
this.mungeSDP = undefined;
// callbacks
this.onconnec... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
const {namespace} = require("./def")
const {doc, blockquote, p, em, img, strong, code, br, hr} = require("../build")
const {cmp, cmpNode, gt} = require("../cmp")
function allPositions(doc) {
let found = []
function scan(node, start) {
if (node.isTextblock) {
for (let i = 0; i <= node.content.size; i++) f... |
var Shift = function () {
this.url = '/shifts/';
this.shift = $('#Shift');
this.saveButton = $('#Save');
this.userLink = $(".user-link");
this.modal = $("#ShiftModal");
this.offUsersModal = $("#OffUsersModal");
this.removeButton = this.modal.find('.removeButton');
this.shiftObj = null;
... |
import * as PIXI from 'pixi.js-legacy';
import {
getPointProjectionInfo,
makeSection,
movePoint,
moveSection,
pointFitsSection
} from './utilities/vector-utilities';
import AxisVectors from './axis-vectors';
import InteractiveZone from '../../interactions/interactive-zone';
import config from './con... |
const fs = require("fs");
const inquirer = require("inquirer");
console.log(
"To create a ReadMe, jsut answer the questions as best as you can."
);
const questions = [
{
type: "input",
name: "user",
message: "Enter your full name: ",
},
{
type: "input",
name: "userEmail",
message: "Ent... |
import React, { Component } from "react";
import { connect } from "react-redux";
import Container from "@material-ui/core/Container";
import Typography from "@material-ui/core/Typography";
import { withStyles } from "@material-ui/core/styles";
import CircularProgress from "@material-ui/core/CircularProgress";
import B... |
/*!
* json2type.js v0.0.4
* (c) 2018-2021
* Released under the MIT License.
*/
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prettier = require('prettier');
var formatByPrettier = function (code) {
try {
return prettier.format(code, {
singleQuote: true,
trail... |
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enu... |
var BPC;
if (!BPC) {
BPC = {};
}
/**
* Returns the decimal representation of the years difference between d1 and d2
*
* @param {String} d1 Date string for the first date
* @param {String} d2 Date string for the second date
*
* @returns {Number} A decimal number representing the years difference
*/
var years_apart ... |
const {bot, log, mwn, emailOnError} = require('../botbase');
const {formatSummary, saveWithBlacklistHandling} = require('./commons');
(async function() {
await bot.getTokensAndSiteInfo();
var grid = new bot.page('User:SDZeroBot/PROD grid');
var userlink = function(user) {
return `[[User:${user}|${user}]]`;
}
... |
import React, { useState } from 'react';
import Link from '../Link';
import {
Flex,
FormControl,
FormLabel,
Input,
Select,
useTheme,
Text,
Textarea,
Checkbox,
InputLeftElement,
InputGroup,
Icon,
RadioGroup,
Radio,
FormErrorMessage,
Box,
} from '@chakra-ui/core';
import PrimaryButton fro... |
async function authorized() {
resetData();
document.getElementById('please-login').style.visibility = 'hidden';
document.getElementById('data-view').style.display = '';
document.getElementById('data-view').style.visibility = 'visible';
document.getElementById('analysis').style.display = '';
document.getElem... |
const http = require('http')
const https = require('https')
const http2 = require('http2')
const domain = require('domain')
const url = require('url')
const fs = require('fs-extra')
const querystring = require('querystring')
const path = require('path')
const ResponseWrapper = require('./ResponseWrapper.js')
const Res... |
function addCssFileToHead(params) {
const link = document.createElement('link');
Object.keys(params).forEach(key => {
link.setAttribute(key, params[key]);
});
document.getElementsByTagName('head')[0].appendChild(link);
}
class Router {
constructor() {
// super();
}
changeRouter() {
}
}
class ImagesPage... |
import {
Button,
Divider,
FormHelperText,
TextField,
} from '@material-ui/core';
import DeleteIcon from '@material-ui/icons/Delete';
import { FieldArray, Formik } from 'formik';
import React, { Fragment } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import * as Yup from 'yup';
i... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const vscode = require("vscode");
const LuaParse_1 = require("../LuaParse");
const LuaFileCompletionItems_1 = require("../manager/LuaFileCompletionItems");
const TokenInfo_1 = require("../TokenInfo");
const Utils_1 = require("../Utils");
funct... |
const fs = require('graceful-fs');
const path = require('path');
const async = require('async');
const JSON = require('json-bigint'); // jshint ignore:line
const Driver = require('./driver.interface');
const log = require('../log.js');
class File extends Driver {
constructor() {
super();
this.id... |
const { MessageEmbed } = require("discord.js");
const emoji = require("../src/emojis.json");
const { addCooldown, spliceArray, newLP } = require("../src/functions.js");
const { stripIndents } = require("common-tags");
async function addTheCooldown(message, path) {
await addCooldown(message, 60000, path.includes("... |
import dayjs from 'dayjs';
import getNextScore from '~/../services/getNextScore';
import initialScore from '~/../services/initialScore';
const namespace = 'global.my';
const SPE_COURSES = `${namespace}.SPE_COURSES`;
const SPE_CATEGORIES = `${namespace}.SPE_CATEGORIES`;
const setProblem = (state, courseId, problemId,... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.socketEvent = void 0;
var _regenerator = _interopRequir... |
var translations = []
var injectState = false
var iftranslate = true
function getPageSource() {
// Keep this function isolated - it can only call methods you set up in content scripts
var htmlCode = document.documentElement.outerHTML;
return htmlCode;
}
function htmlToElement(html) {
var template = do... |
import {
HOUSE_TOWNHOUSE,
CONDO_APARTMENT,
RECREATIONAL,
COMMERCIAL,
OTHER
} from "../constants/listings";
import {
RESIDENTIAL,
COMMERCIAL as COMMERCIAL_TYPE
} from "../../core/constants/shared";
export const REBATE_COMMISSION_MIN = 0;
export const REBATE_COMMISSION_MAX = 2.5;
export const LISTING_COM... |
//通过taskId获取日志
//config为参数及回调方法
//可选参数
//taskId
//hostName
//targetId: 用来显示log的document id
//complete: 方法,最后调用
//error: 方法,出错时调用
//render: 显示返回日志时调用,可选,默认直接在targetId元素上显示
var count = {};
window.logMaxLen = 100 * 1024;
window.logPeriod = 500;
function showLogByTaskId(config){//documentCallback, requestCallback){
... |
import React, { Component } from 'react'
import * as FontAwesome from 'react-icons/lib/fa'
import * as Material from 'react-icons/lib/md'
import * as Octicons from 'react-icons/lib/go'
import { connect } from 'react-redux'
import * as LeituraApi from '../utils/api'
import { loadPosts, orderPost } from '../actions'
impo... |
import * as types from "../../constant";
import { getCurrentPlayedMusic, getLyric } from "network/music";
import { getToplistDetailById } from "network/toplist";
import { getAlbumMusicListById } from "network/album";
import { uniqueList, splitLyric, getRndInteger } from "utils/format";
const audioPlayListModule = {
... |
var save_method; //for save method string
var table;
$(document).ready(function() {
//Ajax Load data tahun dan pusat
load_select_filter();
$('#filter_approval').on('change',function(){
reload_table();
});
//load data table
table = $('#table').DataTable({
"processing":... |
"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; };
exports.default = ... |
import startCase from 'lodash.startcase'
import PropTypes from 'prop-types'
import React from 'react'
import { connect } from 'react-redux'
import ErrorCard from '../components/ErrorCard'
import Loading from '../components/Loading'
import DisplayCard from '../components/graph/DisplayCard'
import NibrsIntro from '../co... |
const urlUtil = require('url');
const typeMapping = {
"String": 'string',
"Number": 'number',
"Object": 'object',
"Array": 'array',
"RegExp": 'undefined',
"Function": 'undefined',
"Boolean": 'boolean'
}
// 修正一下number的类型,如肯定是integer的类型,则改
function hackNumberType(target) {
if (target.type === 'number') ... |
'use strict';
var _ = require('lodash');
var $ = require('preconditions').singleton();
var async = require('async');
var Mustache = require('mustache');
var log = require('npmlog');
log.debug = log.verbose;
var fs = require('fs');
var path = require('path');
var nodemailer = require('nodemailer');
var Utils = require... |
const Weapon = require( './items/weapon.js');
const forms = require( './formulas');
const Char = require( './char/char.js');
const Monster = require( './monster/monster.js');
const itemgen = require( './items/itemgen.js');
const dice = require( './dice.js');
const Party = require( './social/party.js');
const effects = ... |
"use strict";
// Gulpfile Taskrunner | by SecondSite
// Read the README.md for a list of the functions available
// Load plugins
const autoprefixer = require("gulp-autoprefixer");
const cleanCSS = require("gulp-clean-css");
const del = require("del");
const gulp = require("gulp");
const newer = require('gulp-newer');
c... |
// Dependencies
const Promise = require('bluebird');
const cheerio = require('cheerio');
const moment = require('./moment');
const debug = require('debug')('node-cba-netbank');
const util = require('util');
// Constants
const submittableSelector = 'input,select,textarea,keygen';
const rCRLF = /\r?\n/g;
// Utilities... |
"use strict";
require("core-js/modules/web.dom-collections.iterator.js");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Category = void 0;
require("./style.css");
var _react = _interopRequireWildcard(require("react"));
var _tile = require("./tile");
var _helmReactUi = _interopRequireDef... |
import { __awaiter, __decorate, __metadata } from "tslib";
import { Component, Renderer2, ElementRef, } from '@angular/core';
import { Subject, forkJoin } from 'rxjs';
import { LocalDataSource } from 'ng2-smart-table';
import { InvitesRequestsService } from '../../../../@core/data/invites-requests.service';
import { ge... |
/******************************************************************************
Copyright (c) 2012, Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source cod... |
export const DISTRICTS = [
{ id: 1, name: "Thiruvananthapuram" },
{ id: 2, name: "Kollam" },
{ id: 3, name: "Pathanamthitta" },
{ id: 4, name: "Alappuzha" },
{ id: 5, name: "Kottayam" },
{ id: 6, name: "Idukki" },
{ id: 7, name: "Ernakulam" },
{ id: 8, name: "Thrissur" },
{ id: 9, name: "Palakkad" },
... |
let player, cursors
let score = 0,
scoreText
let text
let timedEvent
let gameOver = false,
gameOverText
let youWon = false,
youWonText
let scoreKeeper
let greenjewels, purplejewels, pinkjewels, bluejewels, redhearts, blackstars
let pop, ping, death, hit
class ForeScene extends Phaser.Scene {
constructor() {
... |
/*
* Main application controller.
*/
/*
* Module dependencies.
*/
var util = require('util');
var fs = require('fs');
var path = require('path');
var Prana = require('prana');
var express = require('express');
var bodyParser = require('body-parser');
var multer = require('multer');
var methodOverride = require('me... |
const {
dateQueryBuilder,
referenceQueryBuilder,
// nameQueryBuilder,
// stringQueryBuilder,
// addressQueryBuilder,
tokenQueryBuilder
} = require('../../../utils/querybuilder.util');
const {isTrue} = require('../../../utils/isTrue');
const {fhirFilterTypes} = require('./customQueries');
const ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.