text stringlengths 8.5k 48.7k |
|---|
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
//things to do when the page loads
$j(document).ready(function() {
setupToggled();
if ($j('#work-form')) { hideFormFields(); };
hideHideMe();
showShowMe();... |
var articleId = "";
//填充文章
function putInArticle(data) {
$('.zhy-article-top').html('');
$('.zhy-article-footer').html('');
var articleTop = $('<article-top><div class="article-title">' +
'<h1>' + data.articleTitle + '</h1>' +
'</div>' +
'<div cl... |
const int = score => parseInt(score, 10) || 0;
const mainattributes = ["coordination", "knowledge", "perception", "physique", "presence", "reflexes"];
const skills = ["athletics", "evasion", "fighting", "influence", "intuition", "investigation", "knowhow", "language", "movement", "perform", "piloting", "ranged_figh... |
import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import * as infiniteHelpers from './utils/infiniteHelpers'
import checkProps from './utils/checkProps'
import Cell from './Cell'
import { offsetXYFromParent, addEvent, removeEvent } from './utils/domUtils'
let _nextTableId... |
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { LinearGradient } from 'expo-linear-gradient';
import {
FlatList, TouchableOpacity, RefreshControl, Image, View, Dimensions, TouchableHighlight,
} from 'react-native';
import {
Container, Content, Card, CardItem, Body, Text, Butt... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _ws = _interopRequireDefault(require("ws"));
var _config = _interopRequireDefault(require("../../config"));
var _fs = _interopRequireDefault(require("fs"));
var _signale = _interopRequireDefault(require("si... |
import React, { Component } from 'react';
import {
Form,
Input,
Button,
Select,
Divider,
DatePicker,
Table,
Row,
Col,
Tabs,
Card,
Spin,
Badge,
Icon,
InputNumber,
Upload,
Modal, Tag,
} from 'antd';
import styles from './style.less';
import LinkModal from '@/components/LinkModal';
const... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
'use strict';
const CERT_DAYS = 365;
const CERT_VERSION = 2;
const packageJSON = require('./package.json');
const request = require('requestretry');
const auth = require('http-auth');
const fs = require('fs');
const http = require('http');
const https = require('https');
const jsonata = require('jsonata');
const exe... |
function forEach(arr, f) {
for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]);
}
function addDoc(cm, width, height) {
var content = [], line = "";
for (var i = 0; i < width; ++i) line += "x";
for (var i = 0; i < height; ++i) content.push(line);
cm.setValue(content.join("\n"));
}
function byClassName(elt,... |
function rowSelect() {
return {
require: '^stTable',
template: '<input type="checkbox" class="s-row-select">',
scope: {
row: '=rowSelect'
},
link: function (scope, element, attr, ctrl, prop) {
element.bind('click', function (evt) {
scop... |
import { EventBus } from '@/event-bus';
import Agent from '@/models/Agent';
import Incident from '@/models/Incident';
import Language from '@/models/Language';
import Pda from '@/models/Pda';
import PhoneDnis from '@/models/PhoneDnis';
import PhoneOutbound from '@/models/PhoneOutbound';
import PhoneResource from '@/mod... |
//
var defaultDocTypes =
'XHTML 1.0 Transitional=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">,' +
'XHTML 1.0 Frameset=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">,' +... |
"use strict";
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
var global$1 = (typeof global !== "undefined" ? global :
typeof self !== "undefined" ? self :
typeof window !== "undefined" ? window : {});
// the following is from is-buffer, also by <NAME> and with same lisence
// The _isBuffer check is for Safari 5-7 support, because it's missing
// Object.p... |
const
bettertypeof = x => Object.prototype.toString.call(x).match(/\s([a-zA-Z]+)/)[1],
getProto = Object.getPrototypeOf,
setProto = Object.setPrototypeOf,
has = (o, prop) => Object.prototype.hasOwnProperty.call(o, prop),
is = (Constructor, obj) => obj instanceof Constructor,
isFunction = f => typeof f === "funct... |
(function ($, undefined) {
$('.js-accountMarker-toggleDetails').on('click', function () {
$(this).next().toggle();
});
})(jQuery);
if (typeof taxes === 'undefined') {
var taxes = {};
}
(function ($, accounting, taxes, translations, undefined) {
$(".js-removeProduct").on("click", function (e)... |
var waiting_for_update = false;
// are we currently waiting?
var LONG_POLL_DURATION = 10000; // how long should we wait? (msec)
var first_time_loading = true;
var global_meditation_doughnut = Object(),
global_pomodoro_doughnut = Object(),
global_unproductive_doughnut = Object(),
global_coding_chart = Object(),
... |
var clickItemobj,checkedstr = gid = "";
var checkedarr = new Array();
function clickNode(){
this.obj = null;
this.caption = null;
this.level = null;
this.value = null;
}
function STree(pParent,xmlFile){
this.PICPATH = siteUrl+"/admin/images/tree/" //图片文件所在的文件夹,可见public,可改变。
var self = this; //相当于一个引用... |
/**
* 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) 2016, Dash Industry Forum.
* All rights re... |
var masterContainer = document.getElementById('visualization');
var overlay = document.getElementById('visualization');
var mapIndexedImage;
var mapOutlineImage;
// where in html to hold all our things
var glContainer = document.getElementById('glContainer');
// contains a list of country codes with their matching ... |
// TODO - split constants individually
// BASE_URL (URL for Intermediate API) and MAP_BOX_TOKEN details from the .env file
export const INTERMEDIATE_API_URL = process.env.REACT_APP_INTERMEDIATE_API_URL;
export const CORE_API_ENSEMBLE_IDS_ENDPOINT = "/coreAPI/ensembleids/get";
export const CORE_API_IMS_ENDPOINT = "/cor... |
var agt = navigator.userAgent.toLowerCase();
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_gecko= (navigator.product == "Gecko");
var is_webkit=agt.indexOf('webkit')>-1;
var is_safari = (agt.indexOf('chrome')==-1)&&is_webkit;
if(!window.opera){
is_ie||is_safari||document.write... |
/**
* This work is based on original code developed and copyrighted by TNO 2020.
* Subsequent contributions are licensed to you by the developers of such code and are
* made available to the Project under one or several contributor license agreements.
*
* This work is licensed to you under the Apache Lice... |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { ret... |
/**
* box-arrow
* (c) 2013, Cybozu.
*/
goog.require('nhiro.V2');
goog.require('nhiro.assert');
goog.require('nhiro.convex_hull');
goog.require('nhiro.fusen');
goog.require('nhiro.path');
goog.require('nhiro.stateman');
goog.require('nhiro.util');
goog.provide('main.main');
var circles = [];
var boxes = [];
var pape... |
var id_valida = $("#id_valida").val();
$("#row_rechazos").hide();
$("#historial_aprobacion").hide();
//////////////////////// FUNCIONES CREADAS PARA APROBACIONES HEAD/////////////////////////
listar_documentacion_head(0);
$("#TodasHead").click(function(){
listar_documentacion_head(0);
});
$("#RevisadasHead").click(... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var mapper_utils_1 = require("./mapper.utils");
var util_1 = require("util");
var date_utils_1 = require("../../commons/utils/date.utils");
var log_utils_1 = require("../../commons/utils/log.utils");
var facets_1 = require("../model/container/... |
// Das ist eine Kopie der Datei admin.js aus phpSQLiteCMS Version 2.0.4
// einige nicht benötigte Funktionen wurden bereits auskommentiert, andere möglicherweise noch nicht
// wichtig sind auf jeden Fall die Funktionen insert_html und insert_link
/**
* Erzeugt einen Query als Schluessel-Wert-Paar
* @param k
* @param... |
"use strict";
module("BakaTsuki");
/// Load the sample file
/// As file operation is async, load the sample file into dom, and call doneCallback when file loaded
function syncLoadBakaTsukiSampleDoc() {
let that = this;
let xhr = new XMLHttpRequest();
xhr.open("GET", "../testdata/Baka-Tsuki.html", false);... |
var MapView = function (container, isSelected) {
BaseView.call(this, container, isSelected);
var self = this;
self.markers = [];
self.isCreated = false;
self.highlightedMarkers = [];
self.button = new Button("div", "pivot_sorttools mapButton pivot_activesort", $('.pivot_topbar')[0], i18n.t... |
var hiddenNodes = []; // 用于存储被隐藏的结点
var childQueryData = [];
var primaryKey = "";
var foreignKey ="";
var childIndex = 0;
// 查找数组
function getNode(id, array) {
var node;
for (var i = 0; i < array.length; i++) {
if (id == array[i].id) {
node = array[i];
}
}
return node;
}
//... |
// closest & matches Polyfill
!function(a){var c;if(a=a.Element)a=a.prototype,!(c=a.matches)&&(c=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector||a.querySelectorAll&&function matches(a){a=(this.parentNode||this.document||this.ownerDocument).querySelectorAll(a);f... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj... |
var saku, postForm;
var UPLOADING_MSG = 'Uploading...';
connSM.on('synced', postSM.feeder('sync'));
connSM.on('dropped', postSM.feeder('desync'));
connSM.on('desynced', postSM.feeder('desync'));
postSM.act('* + desync -> none', function () {
if (postForm) {
postForm.$el.removeClass('editing');
postForm.$input.v... |
var that = this;
function __skpm_run (key, context) {
that.context = context;
var exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/****... |
/**
* response is a global for the 6 month data
* newData is a global for the 6 month data that is re-populated when time ranges are changed
*/
var response;
var newData;
/**
* Setting the margins, heights and width.
* The variables appended with a '2' are for the context / brush menu
*/
var margin = {top: 10, r... |
import { mapGetters } from 'vuex';
import { encryptionPassword, computeFileSize } from '../../../comm/util';
// import { toFileImg } from '../../../comm/images'
import { SubType } from '../../../rtc/file/constant'
import {
MsgImg,
MsgFile,
msgStructure,
MsgWeak
} from './Msg';
import { insertNode } from './At/... |
var BaseElement = require("../BaseElement");
var CenteringTextElement = require("../../util/CenteringTextElement");
var drawTools = require("../drawTools")();
var forceLayoutNodeFunctions = require("../forceLayoutNodeFunctions")();
var rectangularElementTools = require("../rectangularElementTools")();
var math = requir... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.... |
const loger = require('../loger.js')
const confLib=require('./conf-lib.js')
const libParamType=require('./cus-lib-param-type.js')
const cusConst=require('./const.js')
const cusUtils=require('./cus-utils.js')
const {BrowserWindow}=require('electron')
const path = require('path')
const urllib = require('url');
const cusG... |
const ModuleName = "text-tool-set"
Hooks.once('init', async function () {
libWrapper.register(ModuleName, 'Drawing.prototype._createText', newText, 'OVERRIDE')
libWrapper.register(ModuleName, 'Drawing.prototype.refresh', refresh, 'OVERRIDE')
game.settings.register(ModuleName, "presets", {
scope: "wo... |
/**
* Created on 22/5/17.
*/
var conf = {
"version": "1.2.28",
}
var appVersion = conf.version;
const isBrowser = typeof window !== 'undefined'
const navigatorSupported = isBrowser && (typeof window.navigator !== 'undefined');
const isLocalhost = Boolean(
window.location.hostname === 'localhost'
);
let isSubscri... |
var width = 960, height = 800, node, link, root, canvas;
var graphModel = null;
var force = d3.layout.force()
.linkDistance(200)
.size([ width, height ])
.on('tick', tick);
var fill = d3.scale.category10();
var currently_selected_node = null;
var linkedByIndex = {};
var imageLocation = 'static/img/';
var selnode = n... |
#!/usr/bin/env node
/*!
** HUDS -- Head-Up-Display Server (HUDS)
** Copyright (c) 2020-2021 Dr. <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... |
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
const {Token} = require('./../Token');
const Lexer = require('./../Lexer');
const ATN = require('./ATN');
const ATNSimulat... |
var app = getApp();
//获取应用实例
var common = require("../../utils/common.js");
// 定义一个总毫秒数,以一天为例
var total_micro_second = 7200 * 1000 * 24; //这是两天倒计时
function countdown(that) {
// 渲染倒计时时钟
that.setData({
clock: dateformat(total_micro_second) //格式化时间
});
if(total_micro_second <= 0) {
that.setData({
cloc... |
const cheerio = require('cheerio');
const fs = require('fs');
const htmlparser = require('htmlparser2');
const nunjucks = require('nunjucks');
const path = require('path');
const pathIsInside = require('path-is-inside');
const Promise = require('bluebird');
const url = require('url');
const _ = {};
_.clone = require('... |
var citySearch = $("#citySearch");
var cityInput = $("#cityInput");
var currTime = $("#timeOfDay");
var currDate = $("#dateTime");
var currTemp = $("#temp");
var currWeather = $("#chanceOfWeather");
var weatherIcon = $("#weatherIcon");
var futureMinTemp = $("#minTemp");
var futureMaxTemp = $("#maxTemp");
var futureRain... |
import React from "react";
import * as d3 from "d3";
import { observer, inject } from "mobx-react";
import { types, getRoot, getType } from "mobx-state-tree";
import throttle from "lodash.throttle";
import { Spin } from "antd";
import ObjectBase from "./Base";
import ObjectTag from "../../components/Tags/Object";
impo... |
import { inject as service } from '@ember/service';
import { tracked, cached } from '@glimmer/tracking';
import { alias } from '@ember/object/computed';
import { copy } from 'ember-copy';
import { run, next } from '@ember/runloop';
import { A as boundArray } from '@ember/array';
import { set, action } from '@ember/obje... |
import {handleSelectMessage} from './handlers/selectInput.js';
import {fetchTabs} from './handlers/targetInfo.js';
import {demoZombie, fetchDemoTabs} from './handlers/demo.js';
import {handleKeysCanInputMessage} from './handlers/keysCanInput.js';
import {handleElementInfo} from './handlers/elementInfo.js';
... |
/**
* DRAGONS
* Quality Assessment Pipeline - Spectrum Viewer
*
*/
const specViewerJsonName = "/specqueue.json";
const notAvailableYet = '<span class="not-available"> (Not available yet) </span>';
const noData = '<span class="no-data"> No Data </span>';
/**
* Options to be used by the plots
*/
const plotOptions ... |
//
// Function: setElementText(elementName, elementValue)
// Set the text contents of an HTML div
//
// elementName: Name of the element in the DOM
// elementValue: Text to display in the element
//
function setElementText(elementName, elementValue, parentElement)
{
var element = document.getElementById(elementName... |
import map from '../assets/js/_Map';
import constrain from '../assets/js/_Constrain';
import onebang from '../assets/js/_Onebang';
import Ease from '../assets/js/_Ease';
import StaticClick from '../assets/js/_staticClick';
import Drag from '../assets/js/_drag';
import Hover from '../assets/js/_hover';
import valueObser... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
import rl from './raylib.js'
export default rl
export const raylib = rl
export const Vector2 = rl.Vector2
export const Vector3 = rl.Vector3
export const Vector4 = rl.Vector4
export const Matrix = rl.Matrix
export const Color = rl.Color
export const Rectangle = rl.Rectangle
export const NPatchInfo = rl.NPatchInfo
expo... |
function n(x){ return parseFloat($("#"+x).val()); }
var killTimeout,killTimeout1,tiempoInicial,pasadas,totalPasadas,modoJuego,selectedItems;
var ccg=0;
var t_ini;
var t_fin2;
var nt_t_ini, nt_t_fin, bLastNoTime, lastNoTimeArray=[], nt_pasadas;
etapa=0;
bStart=0;
cartasByFlash=0;
//no time
function nttt(){
if(noTi... |
//DOAR FUNCTII GENERALE !!!! cu parametrii !!!!!
//==============================[ jQuery - extensions ]=====================================
// reverse an array's order
$.fn.widthHeight = function(width, height){
this.width(width);
this.height(height);
}
$.fn.reverse = [].reverse;
$.fn.collectData = function () ... |
function openTopic(id) {
document.getElementById(id).style.display = "block";
}
function closeNav(id) {
document.getElementById(id).style.display = "none";
$('#publistQues').bootstrapTable('destroy');
}
function fetchFrmBasket(author)
{
var pubId = document.getElementById("pubListId").value;
var ba... |
//-------------------------- basic search functionality ----------------------
const submitButtonSong = document.getElementById("submit-btn-song");
const outputDisplayP = document.getElementById("output");
let trackTreckNum; //track length @ global scope for easy reference
//variable to check and unccheck all the tra... |
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-2088bffa.js';
//comment out second line when not in stencil (ssr)
const isSSR = () => typeof window === "undefined";
// || typeof process === 'object'; // uncomment when running ssr in stencil (npm run ssr)
/**
* Checks whether code i... |
//okay, fine, yes, global variables are getting untenable.
function Session(session_id){
this.session_id = session_id; //initial seed
//this.sceneRenderingEngine = new SceneRenderingEngine(false); //default is homestuck //comment this line out if need to run sim without it crashing
this.players = [];
this.fraymoti... |
import { MathUtils } from './MathUtils.js';
import { Matrix3 } from './Matrix3.js';
import { Vector3 } from './Vector3.js';
import { ConvexHull } from './ConvexHull.js';
const eigenDecomposition = {
unitary: new Matrix3(),
diagonal: new Matrix3()
};
const a = {
c: null, // center
u: [ new Vector3(), new Vector3()... |
/**
* @license
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
/**
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 o... |
import { Quaternion, Vector3, Matrix4, OrthographicCamera } from 'three';
import { UNIT } from './core/ControlsBase.js';
import { ControlsInteractive } from './core/ControlsInteractive.js';
import { TransformHelper } from './TransformHelper.js';
function getFirstIntersection( intersections, includeInvisible ) {
for ... |
var qidPendingPR = "1000443";
var qidAssignedPR = "1000710";
var qidAssignedFBC = "1000231";
var qidInternalRevPR = "1000428";
var qidInternalRevFBC = "1000159";
var qidHours = "1000164"; //-1019757
var apptoken = "dxjuywydk6zb2kxn8pz5daj7fcs";
var APAC = {
id:"APAC",
members:["<NAME> -Betty","<NAME> -Rey", "<NAME> ... |
const socket = io('https://rtvw.herokuapp.com');
// const socket = io('http://localhost:3000');
const game = document.getElementById('game');
const initialScreen = document.getElementById('initialScreen');
const gameCodeDisplay = document.getElementById('gameCodeDisplay');
const gameState = document.getElementById('ga... |
function updateCostDisplay(i) {
let el = document.getElementById("talismanFragmentCost")
let obtainiumCost = 1e6;
let offeringCost = 0;
if (i > 0){obtainiumCost = 3e6}
if (i > 1){obtainiumCost = talismanFragmentObtainiumCosts[i]; offeringCost = talismanFragmentOfferingCosts[i]}
l... |
//imports
importScripts('./shared/ring-buffer.min.js');
importScripts('./shared/sepia-stt-socket-client.js');
onmessage = function(e) {
//Audio worker interface
if (e.data.ctrl){
switch (e.data.ctrl.action){
//common interface
case "construct":
constructWorker(e.data.ctrl.options);
break;
case ... |
import React, { Fragment, useEffect, useRef, useState } from 'react';
import { withTranslation } from 'react-i18next';
import { Carousel } from 'primereact/carousel';
import { Calendar } from 'primereact/calendar';
import { addLocale } from 'primereact/api';
import { Button } from 'primereact/button';
import { InputNum... |
var U = [[0, 6], [1, 3], [2, 0], [3, 7], [4, 4], [5, 1], [6, 8], [7, 5], [8, 2], [15, 26], [16, 23], [17, 20], [27, 15], [30, 16], [33, 17], [47, 27], [46, 30], [45, 33], [26, 47], [23, 46], [20, 45]];
var F = [[45, 51], [46, 48], [47, 45], [48, 52], [49, 49], [50, 46], [51, 53], [52, 50], [53, 47], [6, 24], [7, 25], [... |
// The WL client main code.
'use strict';
// Local echo setting.
var localEcho = false;
// Handle window close
var isConnected = false;
// Called on connection
function connected() {
isConnected = true;
console.log('Connected.');
}
function disconnected() {
isConnected = false;
console.log('Disconnected.'... |
//
// Pages Module
// Dashboard and frontend CMS
//
// vars
const express = require('express'),
routes = express.Router(),
util = require('util'),
readFile = util.promisify(fs.readFile),
// puppeteer = require('puppeteer'),
settings = {
default_route: 'root',
views: 'pages/views'... |
/* Initialization.
Here, we create and add our "canvas" to the page.
We also load all of our images.
*/
const cvs = document.getElementById('myCanvas');
const ctx = cvs.getContext('2d');
//Styling text
ctx.font = '30px Georgia'
ctx.fillStyle = 'red'
ctx.textAlign = 'center'
//Initialize all images
con... |
var chart1;
var chart2;
// function generateChart1() {
// // if(chart1 !== undefined){
// // chart1.update();
// // }
//
// var pic1BeginY = parseFloat($("#chart1_index1").val());
// // console.info('pic1BeginY = ' + pic1BeginY);
// var pic1IndexY2 = parseFloat($("#chart1_index2").val());
/... |
// from: http://stackoverflow.com/a/14810714
Object.defineProperty(Object.prototype, 'map', {
value: function(f, ctx) {
ctx = ctx || this;
var self = this, result = {};
Object.keys(self).forEach(function(k) {
result[k] = f.call(ctx, self[k], k, self);
});
return r... |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... |
var fs = require('fs'); //Load File System module
var os = require('os'); //Load OS module
var path = require('path');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
// Make this modune an event-emitter:
// module.exports = new EventEmitter();
// to emmit an even... |
'use strict';
const path = require('path');
const fs = require('fs');
const crypto = require('crypto');
const mkdirp = require('mkdirp');
function mkdirpAsync(dirname) {
return new Promise((resolve, reject) => {
try {
mkdirp(dirname, err => err ? reject(err) : resolve());
} catch... |
/* *
*
* (c) 2016 Highsoft AS
* Authors: <NAME>
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import Axis from './Axis.js';
import H from '../Globals.js';
import O from '../Options.js';
var dateFormat = O.dateFormat... |
var dateBefore;
var dateAfter;
var ontologyName;
var name='';
var status='line';
var date='';
var URL='';
var colorObject={
"ADD CLASS": "#66bd63",
"ADD LABEL":"#a6d96a",
"Add Synonym":"#d9ef8b",
"Add Definition":"#ffffbf",
"Mark as Obsolete":"#fee08b",
"Delete Definition":"#fdae61",
"Delete Synonym":"#f46d43",
"DELET... |
import marked from 'marked';
import removeMd from 'remove-markdown';
// margin of the legend container
const LEGEND_MARGIN = {
t: 20,
r: 20,
b: 20,
l: 20,
};
const SECTION_SPACING = 10; // horizontal spacing between legend sections
const LAYER_GUTTER = 24;
const GROUP_GUTTER = 16;
const INFO_GUTTER = ... |
/*
Copyright 2018 New Vector Ltd
Copyright 2019 The Matrix.org Foundation C.I.C.
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 a... |
/*jslint node: true, es5: true, nomen: true, regexp: true, indent: 2*/
"use strict";
/* @license
*
* Copyright (c) 2012, <NAME>. All rights reserved.
*
* Use of this software is only permitted in conjunction with the
* DataKit iOS and Mac frameworks and implies conformance to the
* DataKit frameworks' license ... |
import React from 'react';
import {ScrollView,View,Dimensions,FlatList,RefreshControl,AppState } from 'react-native';
import {Layout as Lay, Text,Card,useTheme,Icon, Divider} from '@ui-kitten/components'
import Carousel from '@pn/components/global/Carousel';
import useAPI from '@pn/utils/API'
import {CONTENT_URL} from ... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { __assign, __awaiter, __generator, __spreadArrays } from "tslib";
import { isTokenCredential } from "@azure/core-auth";
import { DefaultHttpClient } from "./defaultHttpClient";
import { logPolicy } from "./policies/logPolicy";
import { g... |
let uniqueInstanceName = 0;
////
// Color Pallette
//////////////////////////////////////////////////////////////////////////////
//const purple = [200, 0, 255];
//const darkpurple = [50, 0, 50];
const cyan = [0, 200, 255];
const darkbluegreen = [0, 130, 70];
const lightLilac = [220, ... |
/*
* DigitalSpeedUnit.js - Unit conversions for Digital Storage
*
* Copyright © 2018 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.apache.org/licenses/L... |
import React, { useState, useEffect } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { useLocation, useParams, Link } from 'react-router-dom';
import cx from 'classnames';
import queryString from 'query-string';
import { t, BungieText, stringBeautifier } from '../../../utils/i18n';
import... |
/* global window */
import { ethers } from 'ethers';
import EventEmitter from 'events';
import ParseObject from './ParseObject';
import ParseQuery from './ParseQuery';
import ParseUser from './ParseUser';
import ParseACL from './ParseACL';
import MoralisErd from './MoralisErd';
import MoralisDot from './MoralisDot';
im... |
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use th... |
const ROM_START = 0x000000;
const WRAM_START = 0xF50000;
const WRAM_SIZE = 0x20000;
const SRAM_START = 0xE00000;
const ROMNAME_START = SRAM_START + 0x2000;
const ROMNAME_SIZE = 0x15;
const INGAME_MODES = [0x07, 0x09, 0x0b];
const ENDGAME_MODES = [0x19, 0x1a];
const DEATH_MODES = [0x12];
const SAVEDATA_START = WRAM_S... |
// #region 게임 설정값
const MaxCoordZ = 100; // 그림자가 정상적으로 발생하는 범위. if (coord >= MaxCoord) coord -= MaxCoord;
const ObstacleRenderDistance = 100; // 장애물 생성 거리
const ObstacleGenDelay = 2.0; // 장애물 생성 시간 간격 (초)
const DecorationGenDelay = 0.5; // 장식물 생성 시간 간격 (초)
const DecorationHorizontalRegion = [-50.0, 100.0] // 장식물이 생성되... |
let fetch = require('node-fetch')
let { MessageType } = require('@adiwajshing/baileys')
let handler = async(m, { conn, args, usedPrefix, command, text }) => {
let timeoute = 1000
let timeoutem = 60000
let timeoutu = 600000
let timeouto = 1000
le... |
// when we want to perform deep equality check, especially in objects
import dateFormats from './dateFormats';
import getSuggestions from './suggestions';
export const updateCustomQuery = (componentId, props, value) => {
if (props.customQuery && typeof props.customQuery === 'function') {
props.setCustomQuery(compon... |
'use strict';
exports.__esModule = true;
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/he... |
function init() {
closeAllws();
init_d();
change_splash(0);
if (!localStorage || !Fetch) {
show('cannot-use-ls');
} else {
show('starting_screen');
if (localStorage.getItem('knzkapp_now_token')) {
try {
now_userconf = {
token: localStorage.getItem('knzkapp_now_token'),
... |
/* Helper methods */
String.prototype.f = function () {
var s = this,
i = arguments.length;
while (i--) {
s = s.replace(new RegExp('\\{' + i + '\\}', 'gm'), arguments[i]);
}
return s;
};
String.prototype.repeat = function (num) {
return new Array(num + 1).join(this);
};
function p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.