text stringlengths 5.97k 41.2k |
|---|
/*
Copyright 2008 University of Rochester
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 la... |
"use strict";
import SGModel from './libs/sg-model/sg-model.js';
import SG2DUtils from './sg2d-utils.js';
import SG2DMath from './sg2d-math.js';
import SG2DCamera from './sg2d-camera.js';
/**
* Звуки и музыка. Поддержка 2D окружения
* @class
* @alias SG2D.Sound
* @returns {SG2D.Sound}
*/
var SG2DSound = { EMPTY:... |
var fso = new ActiveXObject("Scripting.FileSystemObject");
var logfileName = null;
var terminalOutcome = 0; // 0 - unknown, 1 = success, -1 = failure
var logContainsError = 0; // count the occurances of 'rror' in output
// needed for recursive structures...
var instanceBody = '';
var bindBody = '';
var bodyBo... |
var save_method;
var table;
$(document).ready(function() {
//force integer input in textfield
$('input.numberinput').bind('keypress', function (e) {
return (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57) && e.which != 46) ? false : true;
});
//datatables
table = $('#tabel_user')... |
if (location.href.indexOf("?") == -1) {
id1.selectedIndex = 1;
//id1.options[0].style.display = "none";
id1.options[0].disabled = true;
} else {
id26.selectedIndex = 1; //URL語尾に「?」がある場合、初期の基本スキルを裏職とする
//id26.options[0].style.display = "none";
id26.options[0].disabled = true;
}
SkillRefresh(); //初期化... |
$("#modal").animatedModal({
modalTarget: 'optionsModal',
animatedIn:'lightSpeedIn',
animatedOut:'bounceOutDown',
color: '#40793e'
});
var iconShowing;
var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
$(document).ready(function() {
// load settings
... |
import $ from 'jquery' // external global
export function DumpObject (dump) {
this.dumper = dump
this.COLLECT_METHODS = 2
this.OUTPUT_CONSTANTS = 4
this.OUTPUT_METHODS = 8
this.OUTPUT_METHOD_DESC = 16
this.OUTPUT_ATTRIBUTES_OBJ = 64
this.OUTPUT_ATTRIBUTES_CONST = 256
this.OUTPUT_ATTRIBUTES_PROP = 1024
... |
/* eslint-disable */
import ed25519 from "common/crypto/ed25519";
import WebDollarCrypto from 'common/crypto/WebDollar-Crypto'
import BufferExtended from 'common/utils/BufferExtended';
// tutorial based on http://procbits.com/2013/08/27/generating-a-bitcoin-address-with-javascript
// full demo https://bstavroulakis.c... |
"use strict";
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a... |
"use strict";
const Url = require('url')
const libPath = require("path");
const { Response } = require('cross-fetch')
const crossFetch = require('cross-fetch')
const { v1: uuidv1 } = require('uuid')
const contentTypeLookup = require('mime-types').contentType
const RestPatch = require('./rest-patch')
const l... |
/**
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and contributor
* rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Dash Industry Forum.
* All rights re... |
/*
* convertTests.js - ilib tool to convert jsunit tests to nodeunit tests
*
* Copyright © 2017, JEDLSoft
*
* 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.a... |
// Should spent the most time re-evaluating the corner stones of a work and little time building from there. Invest time proportional to the time it might save
// Should only invent new functions as need fundamentally new behaviors
function newNote(content, date, tags) {
return new BlogPost(new Note(null, content, ... |
var group_sortable1=null;
var group_sortable2=null;
/**
* Funcionalitat edicio nom del mapa
* */
function addFuncioRenameMap(){
$('#nomAplicacio').editable({
type: 'text',
mode: 'inline',
validate: function(value) {
if($.trim(value) == '') {
return {newValue: this.innerHTML};
}
},
... |
import React, { Component } from 'react'
import { withRouter } from 'react-router-dom'
import { Formik, Form, Field } from 'formik'
import { feedBackClassName, feedBackInvalid } from '../shared/ValidationMessages'
import CollectionNotice from './CollectionNotice'
import { ParticipantValidationSchema } from './Participa... |
//# sourceURL=Canvas
if (module) var Big = require('./bigDecimal');
// undefined - background
// null - wasn't there originally - e.g. edges on a ragged array
class Canvas {
constructor (preset, p = preset.p) {
if (p === undefined) throw new Error("no parent");
this.p = p;
this.repr = [];
this.poss... |
import * as echarts from 'echarts/lib/echarts';
import graphicGL from '../../util/graphicGL';
import glmatrix from 'claygl/src/dep/glmatrix';
import trianglesSortMixin from '../../util/geometry/trianglesSortMixin';
import { getItemVisualColor, getItemVisualOpacity } from '../../util/visual';
var vec3 = glmatrix.vec3;
... |
const cron = require("cron-validator");
class CronComponent extends HTMLElement {
constructor() {
super();
}
Init(state) {
this.state = state;
if (this.state.props != undefined) {
this.state.props.forEach((p) => {
this.state.self[p] = state.self.getAttribute(p);
});... |
// httpモジュールを読み込み、インスタンスを生成
const http = require('http');
const fs = require('fs');
const path = require('path');
const cookie = require('cookie');
const moment = require('moment');
const cloneDeep = require('lodash.clonedeep');
const requestPromiseErrors = require('request-promise/errors');
const routing = require('.... |
/* jshint -W097,browser: true, devel: true */
"use strict";
import { Channel } from 'midi/midi-state';
import Promise from 'bluebird';
import { iorequest, ioevents, iomidi } from 'io';
export class LiveParameter { // should inherit from LiveObject and used only for "Parameters"
constructor(liveObject) {
t... |
/*
* ::718604!
*
* Copyright(C) November 20, 2014 U.S. Food and Drug Administration
* Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al
* Affiliation: Food and Drug Administration (1), George Washington University (2)
*
* All rights Reserved.
*
* The MIT License (MIT)
*
* Permission is hereby granted, free... |
'use strict';
var searchParams = require('search-params');
var pathParser = require('path-parser');
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not ... |
/**
* 我们的 http://172.16.17.32
* 192.168.3.11:8080
* http://172.16.31.10/
*/
var ftp_url = "http://127.0.0.1:8065";
var file_upload_url = "/profile/upload/";
/**
* 通用方法封装处理
* Copyright (c) 2019 ruoyi
*/
$(function () {
// layer扩展皮肤
if (window.layer !== undefined) {
layer.config({
... |
function Page(data){
this.prototype = Object.prototype;
_DEFAULT_OPTIONS = {
TOTAL_PAGE_COUNT: -1, /* 总的页数 */
TOTAL_RECODE_COUNT: -1, /* 总的记录条数 */
CURRENT_PAGE: 1, /* 当前页 */
PAGE_SIZE: 20, /* 每页显示的记录条数 */
PAGE_BUTTON_COUNT: -1, /* 页面显示总的按钮数量, <= 0时显示全部 */
TOTAL_PAGE_ENABLE: false, /* 是否显示总的页数 *... |
'use strict';
var Cesium = require('cesium');
var path = require('path');
var Promise = require('bluebird');
var ArrayStorage = require('./ArrayStorage');
var loadMtl = require('./loadMtl');
var outsideDirectory = require('./outsideDirectory');
var readLines = require('./readLines');
var Cartesian3 = Cesium.Cartesian... |
//--- REQUIRES ---
const Jimp = require("jimp"),
NumberConverter = require("number-converter").NumberConverter,
Bitwise = require('bitwise'),
ConvertString = require("convert-string"),
fs = require('fs'),
prompt = require('prompt');
/* Get file contents as a String */
let file_to_string = (path_fil... |
/* Copyright 2019 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.
*/
'use strict';
import './scalar-span.js';
import '@polymer/polymer/lib/elements/dom-if.js';
import '@polymer/polymer/lib/elements/dom-repeat.js';
import... |
import * as Gbi from "../../../../../include/gbi"
import { generic_09008800 } from "../../../../../textures/generic"
import { bob_seg7_texture_07000000 } from "../../../textures.inc"
const bob_seg7_vertex_0700A4E0 = [
{ pos: [-993, 1690, -2310], flag: 0, tc: [22656, 0], color: [255, 255, 255, 255] },
{ pos: [-2262, ... |
import DICTIONARY from "../../dictionary.js";
import logger from "../../logger.js";
import utils from "../../utils.js";
import { generateFixedACEffect } from "../effects/acEffects.js";
/**
* This excludes shields
* @param {} data
*/
export function isArmored(data) {
return (
data.character.inventory.filter(
... |
/***************************************************************************
* variable definitions
*
*/
const fs = require('fs');
const ipcRenderer = require('electron').ipcRenderer;
var path = '' ;
var mapDb = [];
var chekedNodes = [] ;
var tabNodes = [] ;
var initialInfo = {};
/*************************************... |
import { _, path, config, log, isBlank, fsAsync } from 'azk';
import { subscribe, publish } from 'azk/utils/postal';
import { async, promisify, thenAll, promisifyModule } from 'azk/utils/promises';
import Utils from 'azk/utils';
import { Tools } from 'azk/agent/tools';
import { SSH } from 'azk/agent/ssh';
var vbm = r... |
var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
retu... |
var util = require("util"),
fs = require("fs"),
path = require("path"),
_ = require("underscore")._,
inherits = require("inherits"),
BaseClass = require("./base-class"),
Registry = require("./registry"),
Semaphore = require("./semaphore"),
ResourcePublisher = require("./resource-publish... |
import constants from 'constants/AppConstants';
import first from 'lodash/first';
import isEmpty from 'lodash/isEmpty';
import last from 'lodash/last';
import get from 'lodash/get';
import has from 'lodash/has';
import moment from 'moment';
import React, { Component } from 'react';
import Loader from 'react-loader';
i... |
"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... |
function setValFromSelectPage(ar_transaction_header_id, combination, ar_customer_id, customer_number, customer_name,
item_id_m, item_number, item_description, uom_id, address_id, address_name, address,
country, postal_code) {
this.ar_transaction_header_id = ar_transaction_header_id;
this.combination =... |
var SCREEN = null;
function fillBg(css) {
SCREEN.ctx.fillStyle = css || '#000';
SCREEN.ctx.fillRect(
0,
0,
SCREEN.canvas.width,
SCREEN.canvas.height
);
}
function plotChar(char, x, y, fr, fg, fb, br, bg, bb) {
fr = Math.floor(fr * 2.55);
fg = Math.floor(fg * 2.55);
... |
/* globals jsPDF */
/*
* svgToPdf.js
*
* Copyright 2012-2014 <NAME> <<EMAIL>>
* Copyright 2014 <NAME> <www.bengribaudo.com>
*
* This script is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _styleUtils = require('style-utils');
var _RAD2DEG = 180 / Math.PI; /* eslint-disable */
/**
* Created by jljsj on 15/12/22.
* The algorithm is GSAP BezierPlugin VERSION: beta 1.3.4
*/
var _r1 = [];
var _r2 = [];
var _r3 = [];
var... |
// copyright 2021 <NAME>. MIT license.
function init () {
const source = "https://github.com/theo-armour/2021/tree/main/sandbox/us-county-votes/";
const version = document.head.querySelector( "[ name=date ]" ).content;
const description = document.head.querySelector( "[ name=description ]" ).content;
MNU.pat... |
/*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file 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.o... |
/**
* @file Abstraction layer for websocket and long polling connections.
* See <a href="https://github.com/tinode/webapp">https://github.com/tinode/webapp</a> for real-life usage.
*
* @copyright 2015-2021 Tinode
* @summary Javascript bindings for Tinode.
* @license Apache 2.0
* @version 0.17
*/
'use strict';
... |
/*********************************************************************
Purpose: Parse PCAP-SIP and convert to HEP binary format
Author: <NAME>
Date: 30.03.2020
*********************************************************************/
/*********************************************************************
Purpose: F... |
var socket = io();
const SVG_NS = "http://www.w3.org/2000/svg";
const icon = "https://cdn.mos.cms.futurecdn.net/JtVH5Khvihib7dBDFY9ZDR.jpg"
var needUpdate = true;
socket.emit('get_cases');
socket.emit('get_news');
socket.emit('get_ports');
// in: alpha 2 code, type ('airport', 'airport_closed', 'harbour', 'harbour_cl... |
'use strict';
/**
* External interface loader utility
*
* @author Mike
*/
var external_loader = {};
const config = require('../config/config');
const external_config = require('../config/external_config');
// logger
const logger = require('../util/logger');
// module for socket connection pool
const SocketP... |
window._wpemojiSettings = {
"baseUrl": "https:\/\/s.w.org\/images\/core\/emoji\/2\/72x72\/",
"ext": ".png",
"svgUrl": "https:\/\/s.w.org\/images\/core\/emoji\/2\/svg\/",
"svgExt": ".svg",
"source": {
"concatemoji": "http:\/\/charity-is-hope.themerex.net\/wp-includes\/js\/wp-emoji-release.min.js?ver=4.6.1"... |
/**
* 公共js方法
*/
var WebUtils={};
/**
* 公共初始化
*/
$.ajaxSetup({
// contentType:"application/x-www-form-urlencoded; charset=utf-8"
// contentType:"application/json;charset=utf-8"
});
$.ajaxSettings.traditional = true;
/**
* 增加事件监听
*
* obj
* evt
* func
*/
WebUtils.addEvent = function (obj,evt,func,evtobj){
evt... |
import React from "react";
import axios from "axios";
import Dialog from "@material-ui/core/Dialog";
import DialogContent from "@material-ui/core/DialogContent";
import Paper from "@material-ui/core/Paper";
import { withSnackbar } from "notistack";
import { withStyles } from "@material-ui/core/styles";
import MuiDialog... |
/*
0.0.6
A simple editor that targets MicroPython for the BBC micro:bit.
Feel free to have a look around! (We've commented the code so you can see what
everything does.)
This code is based upon the example "blockly" editor found in the main
TouchDevelop repository.
All we've done is:
* Throw away all the code conc... |
"use strict";
var ObjectId = require("mongodb").ObjectId;
require("mongodb-toolkit");
var DLModels = require("dl-models");
var map = DLModels.map;
var PurchaseRequest = DLModels.garmentPurchasing.GarmentPurchaseRequest;
var BaseManager = require("module-toolkit").BaseManager;
var UnitManager = require("../master/unit-... |
"use strict";
let newName= localStorage.getItem('name');
document.getElementById("userName").innerHTML=`Name : ${newName}`;
let finalResult=document.getElementById("finalResult");
let examType= localStorage.getItem('exam');
let correctAnsewres=[];
let question1=document.getElementById("question1");
let yourAnswe... |
/**
* 作者: Zoran
* 公共js, 封装了一些重要的api接口, 和模块
* 以及对一些设备兼容的方法
*/
import Vue from 'vue';
import FastClick from './fastclick.min';
import { storage } from './utils';
import { toast, showProgress, hideProgress } from './base_ui';
import { ajax, baseApiUrl, resourceUrl } from './ajax';
// pull down pic
const PULL_DOWN_PI... |
//var maploader = require('./maploader');
var buildFinder = require('pomelo-pathfinding').buildFinder;
var geometry = require('../../util/geometry');
var PathCache = require('../../util/pathCache');
var logger = require('pomelo-logger').getLogger(__filename);
var formula = require('../../consts/formula');
/**
* The d... |
/* Copyright (C) 2021 Cloudnode - All Rights Reserved
* Any use, distribution or modification of this code
* is subject to the terms of the provided license.
*
* The license is available at the root (/) of the
* repository. If not, please write to:
* <EMAIL>
*/
function CdnApi (api, ep = `cdn.${location.hostnam... |
var Eris = require("eris");
var util = require('util');
var loader = require('docker-config-loader'); //<3 wolke for making JSON ez again
var youtube = require('youtube-node');
var youtubedl = require('youtube-dl');
var mal = require('maljs');
var cleverbot = require('cleverbot');
var timestamp = require('consol... |
///// DATA
var wordsArray = new Array();
var wordsArrayFiltered = new Array();
var minYear = 9999; var selectedMinYear = 0;
var maxYear = 0; var selectedMaxYear = 0;
var partsOfSpeechData = new Array();
var sameQuelleWords = new Array();
var unkTotal = 0;
var unkFound = 0;
var susTotal = 0;
var susFound = 0;
var adj... |
/* (C)2014 @animateddata */
"use strict";
var animdata = animdata || {};
animdata.tooltip = function() {
function a(a) {
var b = ["th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th"... |
import format from '/utils/common/js/format'
import { chooseImage, getCurrentLocation } from '/utils/API'
import { questionnaireList,signDetail,signOutReturnVisit } from '/api/sign/index'
import Global from '/Global'
let app = new Global()
Page({
data: {
shopType: '', // 当前客户类型
shopIndex: '', // 客户类型索引
... |
//多选
function multiSelectChange() {
$('#multi-select').change(function () {
var mSel = $(this).prop("checked");
if (!mSel) {
var idsStr = $("#btnworkflow").data("id");
if (idsStr) {
var ids = idsStr.split(' ');
$("#btnworkflow").data("id", id... |
var express = require("express");
/* const pino = require("pino");
const expressPino = require("express-pino-logger");
const logger = pino({
level: process.env.LOG_LEVEL || "info",
prettyPrint: { colorize: true },
});
const expressLogger = expressPino({ logger }); */
const log = require("./log");
var logger = req... |
function keysToObject (keys) {
return keys.reduce((acc, e, i) => {
acc[e] = i
return acc
}, {})
}
const VersionType =
{
classic: 0,
classic110: 2,
lod: 100,
lod110: 101
}
const ClassType = keysToObject(
[
'not_applicable',
'normal',
'exceptional',
'elite'
])
const QualityType ... |
import {
requestAnimationFrame
} from 'utils/request-animation-frame';
/*
Chartlets v0.9.10: http://chartlets.com
MIT License
(c) 2013 <NAME>
Adjusted by <NAME>
*/
let type;
let ctx;
let width;
let height;
let rotated;
let range;
let sets;
let opts;
let colors;
let themes;
let renderers;
let animate;
// T... |
// Generated by BUCKLESCRIPT VERSION 4.0.7, PLEASE EDIT WITH CARE
'use strict';
var $$Array = require("bs-platform/lib/js/array.js");
var React = require("react");
var ReasonReact = require("reason-react/src/ReasonReact.js");
var Js_primitive = require("bs-platform/lib/js/js_primitive.js");
var Table$VoteUSReason = re... |
// "use strict"
const word = require("./values").word;
let {nth_item} = require("./expressions")
let {property, evaluate_property} = require("./expressions")
let {method_call} = require("./actions")
let {
adjust_interpret,
block,
checkNewline,
raiseNewline,
do_interpret,
dont_interpret,
look_1_ahead,
maybe,
... |
"use strict";
require("core-js/modules/es.symbol");
require("core-js/modules/es.symbol.description");
require("core-js/modules/es.symbol.iterator");
require("core-js/modules/es.array.concat");
require("core-js/modules/es.array.for-each");
require("core-js/modules/es.array.from");
require("core-js/modules/es.arra... |
// This file is used to run a stub API that mimics the MediaWiki interface
// for the purposes of testing extension expansion.
'use strict';
require('../core-upgrade.js');
var express = require('express');
var bodyParser = require('body-parser');
var crypto = require('crypto');
var Promise = require('../lib/utils/pr... |
/*
+ add or replace callback(s) to event
- remove or clear callback(s) from event
-> event fired
, seperates linear program flow
Program flow
------------
script load, +window.load: afterLoad
->window.load, afterload
afterload, getData
getData, +xhr.readyStateChange: processResponse
->xhr.readyStateChange, proc... |
// SPDX-FileCopyrightText: 2020 ret2libc <<EMAIL>>
// SPDX-License-Identifier: LGPL-3.0-only
const SPECIAL_CHARACTERS = ["\\s", "@", "|", "#", '"', "'", ">", ";", "$", "`", "~", "\\", ",", "(", ")"];
const SPEC_SPECIAL_CHARACTERS = ["\\s", "@", "|", "#", '"', "'", ">", ";", "$", "`", "~", "\\", ",", "(", ")", ":"];
c... |
// Dynamic Controller
// Welcome to the Coding Quiz!
console.log('Coding Quiz!');
// Game Variables
var userPoints = 0; // User Starting Points
var maxHighScores = 5; // Max High Scores to Store
var nextQuestionTimer = 750; // Set the Time in Milliseconds of When the Next Question is Cycled
var showScoresAnimationTim... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
/**
* @license
* Copyright (c) 2021 Handsoncode. All rights reserved.
*/
// import
var dictionary = {
errors: {
CYCLE: '#CYCLE!',
DIV_BY_ZERO: '#SAYI/0!',
ERROR: '#ERROR!',
NA: '#YOK',
NAME: '#AD?',
NUM: '#SAYI!',
REF:... |
'use strict';
var HttpRequest = require("../../node-request");
var Wallet = require("nebulas");
var Account = Wallet.Account;
var Transaction = Wallet.Transaction;
var Utils = Wallet.Utils;
var Unit = Wallet.Unit;
var expect = require('chai').expect;
var BigNumber = require('bignumber.js');
var FS = require("fs");
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var pkg = require("./package");
var core = require("./core");
var workspace = require("./workspace");
var U = pxt.Util;
function setDiagnostics(diagnostics) {
var mainPkg = pkg.mainEditorPkg();
mainPkg.forEachFile(function (f) { return... |
import moment from "moment";
import React, { Component } from "react";
import {
Button,
Col,
Container,
Form,
Row,
Table,
ToggleButton,
ToggleButtonGroup
} from "react-bootstrap";
import { Typeahead } from "react-bootstrap-typeahead";
import "react-bootstrap-typeahead/css/Typeahead.css";
import ButtonTo... |
"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];
})... |
const _ = require('lodash');
const Sync = require('./sync');
const Helpers = require('./helpers');
const EagerRelation = require('./eager');
const Errors = require('./errors');
const CollectionBase = require('./base/collection');
const Promise = require('bluebird');
const createError = require('create-error');
/**
* ... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {contains, filter, clone, has, isNil, type, omit} from 'ramda';
/* global Plotly:true */
const filterEventData = (gd, eventData, event) => {
let filteredEventData;
if (contains(event, ['click', 'hover', 'selected'])) {
c... |
import './Number'; // For Number#mod
// Circular but it's… mostly OK. See Overture.js for explanation.
import { i18n } from '../localisation/LocaleController';
const isLeapYear = function ( year ) {
return (
( ( year % 4 === 0 ) && ( year % 100 !== 0 ) ) || ( year % 400 === 0 )
);
};
const daysInMont... |
import React, { useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { withRouter, useParams } from 'react-router-dom';
import Grid from '@material-ui/core/Grid';
import TextField from '@material-ui/core/TextField';
import { makeStyles } from '@material-ui/core/styles';
import Icon f... |
/*global: $, mapboxgl, MapboxDirections, turf*/
$(window).on("scroll", function () {
var scrollValue = $(window).scrollTop();
if (scrollValue > 220) {
$(".navbar").addClass("affix");
} else {
$(".navbar").removeClass("affix");
}
});
/*Load location (stores2)*/
function loadLocations(asynchr = true) {
... |
import React, {useState, useEffect, useRef} from 'react';
import {confirmAlert} from 'react-confirm-alert'; // Import
import 'react-confirm-alert/src/react-confirm-alert.css'; // Import css
import {CKEditor} from '@ckeditor/ckeditor5-react';
import {
NotFoundUserImage,
NotFoundCMNDImage
} from '@modules/Common/... |
import React from "react";
import gql from "graphql-tag";
import { useQuery } from "@apollo/client";
import { ClassNames } from "@emotion/react";
import {
Box,
Button,
Flex,
Popover,
PopoverArrow,
PopoverContent,
PopoverTrigger,
Portal,
VisuallyHidden,
useColorModeValue,
useTheme,
useToast,
} fr... |
import consts from './components/consts';
import { normalizeAngle, getVerticallyShiftedAngularCoords as _getVerticallyShiftedAngularCoords, patchFontOptions } from './core/utils';
import { extend as _extend } from '../core/utils/extend';
import { isNumeric } from '../core/utils/type';
import { each as _each } from '../... |
/*
* plus.treegrid plugin
* http://Generic.af
*
* requires jQuery.js v2.1.3 or higher http://jquery.com/
* tested with jQuery v2.1.3
*
* Copyright 2015 Generic.af
* Released under the Generic.af Co API license
*
* Date: 2015-06-02 23:31:16 GMT+0430 (Afghanistan Standard Time)
*
* @author: <EMAIL>
*
... |
import $ from "jquery";
import api from '../../api.js';
import PromisePool from 'es6-promise-pool';
const re_buttonId = /button_id=\S+?&/;
const re_qid = /qid.[0-9]+/;
const re_ajaxify = /ajaxify":"\\\/waist_content\\\/dialog\S+?"/;
const re_adId = /id=[0-9]+/;
const re_adIdFB5 = /"ad_id":"[0-9]+/;
const re_clientTok... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
// import moment from 'moment';
import ReactPlayer from 'react-player';
import {
Row,
Col,
Card,
Form,
Input,
Select,
Icon,
Button,
Dropdown,
Menu,
Modal,
Radio,
Checkbox,
} from 'antd';
import StandardTable... |
var div = document.getElementById('message-box');
div.scrollTop = div.scrollHeight;
var ws; //定义全局变量ws
var error = false;
$(function () {
$("#online_ervice").on('click', function () {
console.log(1111111111111111111111111);
connect();
localStorage.setItem("ichat_pop", "pop");
get_mes... |
/*
Module gérant les fichiers descriptifs des articles qui sont des CSV ayant les colonnes suivantes :
id nom code-barre prix categorie unite image
Un fichier est chargé en mémloire dans une liste 'articles' :
- c'est de facto l'index dans la liste qui y est identifiant (PAS id, doublons possibles)
- chaque objet d... |
var Base = require('./base')
var Path = require('path');
var fs = require('fs');
var os = require('os');
var async = require('async');
var mkdirp = require('mkdirp');
var Logger = require("./logger");
var Config = require("./config");
var Tools = require("./tools");
var Args = require("./args");
var Component = req... |
import React from "react"
import { storiesOf } from "@storybook/react"
import Post from "../src/components/post"
import PostPage from "../src/components/pages/post"
const htmlString = `<p>Hello Galaxy, <br/>tell me <strong>HOW</strong> you're doing.</p>`
storiesOf("Components/post", module)
.add("single", () => (
... |
//
// <NAME> - mar 2013 - cody
//
//
console.log("loading " + module.id);
var fs = require("fs");
var cody = require('../index.js');
function TreeController(context) {
console.log("TreeController.constructor -> page(" + context.page.itemId + ") = " + context.page.title + ", request = " + context.request);
... |
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
function __alloyId23(e) {
if (e && e.fromAdapter) return;
__alloyId23.opts || {};
var models = __alloyId22.models;
... |
import FileSaver from 'file-saver'
import _ from 'lodash/fp'
import { createRef, Fragment } from 'react'
import Dropzone from 'react-dropzone'
import { div, h, span } from 'react-hyperscript-helpers'
import { AutoSizer } from 'react-virtualized'
import * as breadcrumbs from 'src/components/breadcrumbs'
import {
butto... |
var runApplication = function(){
(function(){
var Class = jsface.Class
, extend = jsface.extend
, events = {
ready: []
}
, mixins={
Event: function(){}
}
// Has the ready methods been called.
, _callReady = false
, globalApplication = null
;
Application = Class({
type: 'App... |
"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];
})... |
function addItemWindow() {
var aiw = document.getElementById('additemwindow'); //cp iteminfo
if(aiw.style.visibility == "visible") {
$(".aiw-container").animate({ top: "-50px" }, "fast");
$("#additemwindow").animate({ opacity: 0 }, "fast", function() {
setTimeout(function () {
... |
/* Copyright (c) 2018 <NAME>, Pur3 Ltd. See the file LICENSE for copying permission. */
// Based heavily on https://github.com/sparkfun/SparkFun_MPU-9250_Breakout_Arduino_Library
var C = {
WHO_AM_I_MPU9250 : 0x75,
PWR_MGMT_1 : 0x6B,
PWR_MGMT_2 : 0x6C,
INT_PIN_CFG : 0x37,
INT_ENABLE : 0x38,
FIFO_EN : 0x23,
... |
/*!-----------------------------------------------------------------
Name: neXessary - neXessary
Version: 0.0.0
Author: fujitsu
Website: http://fujitsu.com
Purchase: http://fujitsu.com
Support: http://fujitsu.com
License: You must have a valid license purchased only from ThemeForest (the above link) in or... |
/* eslint-disable eqeqeq */
import React from 'react';
import { Form, Modal, Popconfirm, Icon, Select, Input } from 'hzero-ui';
import intl from 'utils/intl';
import { Bind } from 'lodash-decorators';
import { connect } from 'dva';
import { queryMapIdpValue } from 'services/api';
import { getContextParams } from 'compo... |
'use strict';
import CiHelperController from '../../shared/ci-helper/ci-helper.controller';
import CiHelperTemplate from '../../shared/ci-helper/ci-helper.html';
const testsRunsController = function testsRunsController($mdDialog, $timeout, $q, $state, TestRunService,
... |
import lowRiskMeter from '../images/low-risk-meter.svg';
import moderatelyLowRiskMeter from '../images/moderately-low-risk-meter.svg'
import moderateRiskMeter from '../images/moderate-risk-meter.svg';
import moderatelyHighRiskMeter from '../images/moderately-high-risk-meter.svg'
import highRiskMeter from '../images/hig... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.