text stringlengths 8.5k 48.7k |
|---|
$(window).resize(() => {
$('.side_navigation').css(
{
top: (parseInt($('#top-bar').css('height'))-20)+'px'
}
);
});
function init() {
$(".row.result-row").hide();
setNotification();
$('#toTop-btn').click(() => {
$('html,body').animate({
scrollTo... |
import EVENTS from '../events.js';
import external from '../externalModules.js';
import toolStyle from '../stateManagement/toolStyle.js';
import toolColors from '../stateManagement/toolColors.js';
import drawHandles from '../manipulators/drawHandles.js';
import handleActivator from '../manipulators/handleActivator.js';... |
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _createClass = function () { function defineP... |
/*
//------------------------------------------------------------------------------
// 时间: 2017-08-04
// 作者: 蔡捷 (<EMAIL>)
//
// 文件: xx_template.js JS文件
//------------------------------------------------------------------------------
路径:~/Areas/Dev/ViewJS/xx_template.js
说明:模板(xx_template)的js... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
var basePath = window.baseHost;
var mid = window.parent.miningId
$(document).ready(function () {
var condition = {
"pro... |
var $ = require("../../core/renderer"),
eventsEngine = require("../../events/core/events_engine"),
errors = require("./ui.errors"),
Action = require("../../core/action"),
extend = require("../../core/utils/extend").extend,
inArray = require("../../core/utils/array").inArray,
each = require("../.... |
/**
* @version 14/12/2021
*/
var KENTAT = ["Medals (Total)"];
var VALITTU_KENTTA = 0; // Tän kun vaihtaa 0 niin kartta piirtyy väkiluvun mukaan
var NOUSEVA = false; // Toplistan suunta: True => Pienin -> Suurin
var LIGHT = true; // true -> valomoodi päällä, false -> pimeämoodi päällä
var BOLDATTU_MAA;
con... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');
const Precise = require ('./base/Precise');
const { uuid } = require('./base/functions/string');
// -----------------------... |
'use strict';
const os = require('os');
const path = require('path');
const chalk = require('chalk');
const fs = require('fs-extra');
const shell = require('shelljs');
const semver = require('semver');
const inquirer = require('inquirer');
const { Modules } = require('xdl');
const argv = require('minimist')(process.ar... |
/*variabel titip ke ar */
var nomor_memo_ar_ke_titip = ''; //$('#inp-memo-ar-titipan');
var nomor_kontrak_ar_ke_titip = ''; //$('#inp-no-kontrak-ar-titipan');
var nomor_kontrak_id_ar_ke_titip = '';
var nama_nasabah_ar_ke_titip = ''; //$('#inp-nama-nasabah-ar-titipan');
var saldo_ar_ke_titip = ''; //$('#inp-saldo-ar-ti... |
import '/resources/polymer/@polymer/iron-icon/iron-icon.js';
import '/resources/polymer/@polymer/iron-icons/iron-icons.js';
import '/resources/polymer/@polymer/iron-icons/av-icons.js';
import '/resources/polymer/@polymer/iron-list/iron-list.js';
import '/resources/components/tg-tree-table-content.js';
import { mixinB... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Field, reduxForm } from 'redux-form';
import moment from 'moment';
import Button from '../../components/Button';
import Card, { CardBody } from '../../components/Card';
import Dropdown ... |
/*
OimoPhysics alpha dev 10
@author Saharan _ http://el-ement.com
@link https://github.com/saharan/OimoPhysics
...
oimo.js worker for three.js
@author Loth _ http://3dflashlo.wordpress.com/
OimoPhysics use international system units
0.1 to 10 meters max for dynamique body
size and position x100 for three.js
*/
//'use... |
import { Chart } from './Chart.js'
class StackedAreaChart extends Chart {
constructor (obj) {
super(obj)
this.drawChart()
}
drawChart () {
const c = this
super.init()
super.addAxis()
super.getKeys()
// // c.processData();
c.stackData()
super.drawTooltip()
c.createScales... |
var _tipo_documento;
var _tipo_cliente;
var total_orden = 0;
var total_iva = 0;
var total_iva_suma = 0;
var exento_iva = 0;
var exento_iva_suma = 0;
var total_sin_impuesto = 0;
var result = 0;
var docVal, catVal, proVal, cliVal;
var _ImpList = [];
var _docVal = [];
var _catVal = [];
var _proVal = [];
var _cliVal = [];... |
/* jshint undef: true, unused: false, undef: true */
/* global global, require, $, console, MODULE_CHROME */
// console.log('in device_selector view_generator.js');
var package_loader;
var q;
var gns;
var static_files;
try {
package_loader = global.require.main.require('ljswitchboard-package_loader');
q = global.r... |
'use strict';
exports.__esModule = true;
exports._getNewValueForFieldOp = undefined;
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.pu... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
// the main data structure in a centralized place so that all pages can access it.
function copy_schObj(schObj1) {
var ELEMENT_SRC = schObj1.ELEMENT;
var ELEMENT_DEST = schObj.ELEMENT;
for (var key in schObj1)
{
if (schObj1.hasOwnProperty(key))
{
if(key !== "ELEMENT")
... |
import { isEmpty } from "@ember/utils";
import { and, or, alias, reads } from "@ember/object/computed";
import { debounce } from "@ember/runloop";
import { inject as service } from "@ember/service";
import { inject } from "@ember/controller";
import Controller from "@ember/controller";
import DiscourseURL from "discour... |
var esprima = require('esprima');
var estraverse = require('estraverse');
var escope = require('escope');
var rDefine = /('.*?'|".*?"|[^\\]\/\/[^\r\n\f]*|\/\*[\s\S]*?\*\/)|((?:^|[^\.])\bC5\.define\s*\()/ig;
var rModule = /('.*?'|".*?"|[^\\]\/\/[^\r\n\f]*|\/\*[\s\S]*?\*\/)|((?:^|[^\.])\bmodule\.exports\b|(?:^|[^\.])\bex... |
/* SPDX-License-Identifier: MIT
* Copyright(c) 2019-2020 <NAME> for pwmirage.com
*/
class Window {
static container;
static bounds = { x: 0, y: 0, top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0 };
static dragged_win;
static resized_win;
static focus_win_index = 0;
static focus_win;
constructor(arg... |
function filterInt(string) {
var numsStr = string.replace(/[^0-9]/g, '');
return parseInt(numsStr);
}
$(document).ready(function () {
$('form img').on('click', function () {
$('.menu-popup').css({
"position": "relative",
"display": "none",
"z-index": "-10"
})
cancelarForm()
valueIdTable()
})
$(".i... |
// Copyright 2000-2004 KnowNow, Inc. All rights reserved.
// @KNOWNOW_LICENSE_START@
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// 1. Redistributions of source code must retain the above copyright
// n... |
var G_vmlCanvasManager;
var day_array = new Array('day.abbr.sunday','day.abbr.monday','day.abbr.tuesday','day.abbr.wednesday','day.abbr.thursday','day.abbr.friday','day.abbr.saturday');
var month_array = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'Novembe... |
/*
Copyright (c) 2011 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicen... |
// TODO : 배너가 텍스쳐 매핑
"use strict";
var canvas;
var gl;
var program;
var projectionMatrix;
var modelViewMatrix;
var instanceMatrix;
var modelViewMatrixLoc;
var vertices = [
vec4(-0.5, -0.5, 0.5, 1.0),
vec4(-0.5, 0.5, 0.5, 1.0),
vec4(0.5, 0.5, 0.5, 1.0),
vec4(0.5, -0.5, 0.5, 1.0),
vec4(-0.5, -0.5, -0.5, 1.0... |
'use strict';
/*
Author: Fortinet
*
* AutoscaleHandler contains the core used to handle serving configuration files and
* manage the autoscale events from multiple cloud platforms.
*
* Use this class in various serverless cloud contexts. For each serverless cloud
* implementation extend this class and implement the ha... |
const { Client, MessageEmbed, Collection } = require("discord.js");
const Discord = require("discord.js");
const client = new Client()
const { readdirSync } = require("fs");
const config = require("./config.json");
const db = require("quick.db");
const moment = require('moment');
const ms = require("ms")
const commands... |
'use strict'
/* global describe, it */
const assert = require('assert')
const safe = require('safe-regex')
const path = require('path')
const fs = require('fs')
const yaml = require('js-yaml')
const parser = require('../')()
function load (filename) {
const contents = fs.readFileSync(filename, 'utf8')
return yam... |
/*
import Elm.Kernel.VirtualDom exposing (custom, doc)
import WebGL.Internal as WI exposing (enableSetting, enableOption)
*/
var _WebGL_guid = 0;
function _WebGL_listEach(fn, list) {
for (; list.b; list = list.b) {
fn(list.a);
}
}
function _WebGL_listLength(list) {
var length = 0;
for (; list.b; list =... |
/* jshint -W097 */
/* jshint strict:false */
/* jslint node: true */
'use strict';
var utils = require('@iobroker/adapter-core');
var Telnet = require(__dirname + '/lib/telnet');
//require('should');
var fs = require('fs');
var csv = require('csv-parser');
//var transform = require('stream-transform');
var adapter ... |
var scene = new THREE.Scene();
var camera;
var person_height = 1.8; // 1 unit = 1 meter
var SOUNDSPEED = 1/343; // speed of sound in meters
var renderer;
var url_step = 'https://www.cs.unc.edu/~gb/uploaded-files/serust@CS.UNC.EDU/319654__manuts__gravel-footstep.wav';
var url_tap = 'https://www.cs.unc.edu/~gb/uploaded-f... |
const {performance} = require('perf_hooks')
const AStar = require('./lib/astar')
const Move = require('./lib/move')
const Movements = require('./lib/movements')
const gotoUtil = require('./lib/goto')
const {logger} = require('./lib/logger')
const Vec3 = require('vec3').Vec3
const Physics = require('./lib/physics')
... |
/************************************
// *
// select.js variables *
// *
//***********************************/
let spotify_token = null;
let globalArtists = [];
let globalLabels = [];
let totalReleases = 0;
let totalLabels = 0;
let playlis... |
import React, {Component} from 'react';
import {
Container,
Header,
Content,
Card,
CardItem,
Icon,
Right,
Button,
Left,
Body,
Title,
Item,
Input,
ListItem,
CheckBox,
StyleProvider,
Thumbnail,
Text,
} from 'native-base';
import {
FlatList,
StyleSheet,
View,
ScrollView,
TextI... |
/*--------------start function------------------*/
$(document).ready(function () {
getNotifications();
activeSideMenuParentLink();
activeSideMenuChildLink();
InitRadioExtraView();
InitCheckboxExtraView();
singleDonutChart();
multiValDonutChart();
});
$('[hm-hook="click"]').click(function... |
/**
* Created by Jat on 2015/9/17.
*/
let config = {
sizeUnit:'rem'
};
/**
* @property 类型方法
*/
var cls = {
copy: function (obj) {
if (arguments.length > 1) {
for (var i = 1; i < arguments.length; ++i) {
for (var k in arguments[i]) obj[k]... |
"use strict";
var ROOMOPEN = "open";
var ROOMCLOSED = "closed";
var LIFE_TEMPORARY = 0;
var LIFE_PERSISTED = 1;
var JOINPERMINNSION = [null /*"anyone"*/, "black-list", "white-list"];
var DOORSTATES = [ROOMCLOSED, ROOMOPEN];
var LEAVEDELAY = 10;
// 2.x , 3.x
var isFirebas... |
const tag_types = [
"自由选择器",
"a",
"body",
"button",
"div",
"i",
"img",
"input",
"li",
"p",
"span",
"td",
"textarea",
"table",
"th",
"tr",
"td",
"ul",
"h1",
"h2",
"h3",
"h4",
"h5",
];
var timer_rerun_count = {};
// 拼接执行的js
funct... |
$(function () {
var isRequest = false;
var dataTableConfig = {
'language': {url: '/static/zh_CN.txt'},
'serverSide': true,
'info': true,
'autoWidth': false,
'searching': false,
'aLengthMenu': [15, 25, 50],
'deferRender': true,
"order": [[0, 'desc']... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... |
// Folder: webapp/pages
// Authors: <NAME> & <NAME>
var globalStockDictList = [];
/**
* Gets the url that flask is running on and access that api portion of the flask app
*/
function getBaseUrl(){
let baseUrl = window.location.protocol + '//' + window.location.hostname + ':' + window.location.port + '/api';
... |
/* #Misc
================================================== */
$window.trigger("dt.removeLoading");
var $mainSlideshow = $("#main-slideshow");
if(!$mainSlideshow.find("> div").length > 0){
$mainSlideshow.addClass("empty-slider");
};
/*!-Revolution slider*/
if ($(".rev_slider_wrapper").length > 0){
if( $mai... |
//PERSONAGEM PRINCIPAL
class InfoPersonagemPrincipal extends InfoObjetoComArmas_e_Vida {
constructor(formaGeometrica, infoImgVivo, infoImgMorto, vida, qtdAndar, infoArmas, qtdHelices, qtdsRotateDifHelices) {
super(formaGeometrica, infoImgVivo, infoImgMorto, vida, infoArmas, qtdHelices, qtdsRotateDifHelices);
this.... |
var input_code = ""
var tokens = []
var ast = []
//parser()の時に使う
//文法規則:演算子などの優先順位
//下に行くほど優先度が高くなる
const rules = [
{ops:[]},
{ops:["(equal)"]},
{ops:["(dot)"]},
{ops:["(greater)","(smaller)"]},
{ops:["(plus)","(minus)"]},
{ops:["(times)","(division)","(percent)"]},
];
var pa... |
var arr = [
{
id: "response_time",
title: "SLA/Response Time",
x: 0,
y: 0,
width: 12,
height: 9,
type: "success",
userData: {
fn: "createResponseTimeReport"
},
},
];
var availableReports = {
"createResponseTimeReport": "Res... |
// Execute immediately, no DOM ready
// loading in header
(function($) {
$.fn.serializeObject = function()
{
var o = {};
var a = this.serializeArray();
$.each(a, function() {
if (o[this.name] !== undefined) {
if (!o[this.name].push) {
... |
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
}
v... |
import React, { Component, Fragment } from 'react';
import styled from 'styled-components';
import cx from 'classnames';
import { formatrChartValue } from './common';
import { timeParticleSizeDropdownData, areaParticleSizeDropdownData, isTimeControl, isAreaControl, isNumberControl, relevanceImageSize } from 'src/pages/... |
// This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and
// is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012)
var map;
var triage={};
triage.options={};
triage.defaultOptions={
flickrKey:'<KEY>',
instagramKey:'<K... |
var sexMap = getSexDictionary();
var tendMap = getTendMap();
var chargeTypeMap = getChargeTypeDictionary();
var patientList = [];
/*var cacheMsg = null;*/
var attention = 1;
var currentDay = null;
var jumpUrlTemp = localStorage.getItem("jumpUrlTemp", jumpUrlTemp) || null;
/* 检验拓展 */
$.extend($.fn.validatebox.defaults.r... |
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol... |
'use strict';
// Loads and parses all the primary data that can be obtained from WDQS
// in several batches then enables the app.
function loadPrimaryData() {
doPreProcessing();
populateCoordinatesData()
.then(populateTitleData)
.then(populateMapAndIndex)
.then(() => {
return Promise.all([
... |
/**
* JavaScript Requirements: cytoscape, cytoscape-svg
* React.js requirements: react-cytoscapejs
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import CytoscapeComponent from 'react-cytoscapejs';
import _ from 'lodash';
import CyResponsive from '../cyResponsive.js';
import CyCxtMen... |
import React, {createContext, createRef, useEffect, useState} from "react";
import styled from "styled-components";
import { DndProvider } from 'react-dnd';
import { HTML5Backend } from "react-dnd-html5-backend";
import { BaseContainer } from "../../helpers/layout";
import { Square } from "./Items/Square";
import { Ite... |
var Period={
// from Element: extension
"start" : "", // C? Starting time with inclusive boundary
"end" : "" // C? End time with inclusive boundary, if not ongoing
};
var Identifier ={
// from Element: extension
"use" : "", // usual | official | temp | secondary (If known)
"type" : { }, // Description of id... |
require('dotenv').config();
const Discord = require('discord.js');
const Binance = require('binance-api-node').default;
const Table = require('ascii-art-table');
const discordClient = new Discord.Client();
const binanceClient = new Binance({
apiKey: process.env.BINANCE_APIKEY,
apiSecret: process.env.BINANCE_API... |
/**
* Components
* Created by CreaturePhil - https://github.com/CreaturePhil
*
* These are custom commands for the server. This is put in a seperate file
* from commands.js and config/commands.js to not interfere with them.
* In addition, it is easier to manage when put in a seperate file.
* Most of these comman... |
/**
*
* App codebase.
* Inter demo.
* by : <NAME>.
*
*/
// Some functions used in the app code base.
// These function must be available globally.
function assign(target,source){
return Object.assign(target,source);
}
// Used to toggle the interest button in comment container.
function togg... |
/* eslint camelcase:0, max-lines-per-function:0, consistent-return:0, max-statements:0, max-lines:0 */
import Notation from '../src/core/notation';
import NotationError from '../src/core/notation.error';
const _ = require('lodash');
const o = {
name: 'onur',
age: 36,
account: {
id: 15,
tag... |
// código tres direccciones xml
var contador = -1; // contador de temporales
var cntLbl = 0 // contador de labels
var hp = 0; // apuntador del heap
var sp = 0; // apuntador base del stack pointer
var c3d = ''; // contenido de código tres direcciones
var str3d = ''; //contenido de código ... |
/** This function is copied from stack overflow: http://stackoverflow.com/users/19068/quentin */
var QueryString = function () {
// This function is anonymous, is executed immediately and
// the return value is assigned to QueryString!
var query_string = {};
var query = window.location.search.substring(1);
... |
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.definePr... |
/* Copyright 2017 Infor
*
* 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... |
'use strict';
const is = require('is');
const arrify = require('arrify');
const extend = require('extend');
const hooks = require('promised-hooks');
const Entity = require('./entity');
const Query = require('./query');
const datastoreSerializer = require('./serializer').Datastore;
const utils = require('./utils');
co... |
'use strict';
// you have to require the utils module and call adapter function
const ping = require('ping');
const utils = require('@iobroker/adapter-core');
const LupusAync = require(__dirname + '/lib/lupusasync');
const adapterName = require('./package.json').name.split('.').pop();
const adapterNodeVer = require('.... |
/* app.json */
function showNoGoogleError() {
[...document.querySelectorAll('.no-google')].forEach((div) => {
div.removeAttribute('hidden');
});
[...document.querySelectorAll('#google-maps')].forEach((el) => {
el.setAttribute('hidden', 'hidden');
});
}
function showNoWorkerError() {
[...document.querySelectorA... |
window.onscroll = function() {
growShrinkCorners()
};
function growShrinkCorners() {
var corners = document.getElementsByClassName("corner")
var pageHeight = window.innerHeight;
var scrollPercent = (pageHeight - window.scrollY)/pageHeight;
console.log(scrollPercent)
if (scrollPercent < 1 && scrollPercent ... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var formControl = require('@chakra-ui/form-control');
var system = require('@chakra-ui/system');
var utils = require('@chakra-ui/utils');
var reactUtils = require('@chakra-ui/react-utils');
var React = require('react');
var icon = require('@... |
var state = {
// playlist
playlist: [],
playlistIndexByVideoID: {},
activeIndex: -1,
pausedAt: 0,
getPlaylist: function () {
return this.playlist;
},
setPlaylist: function (playlist) {
this.playlist = playlist;
for (var i = 0; i < this.playlist.length; i++) {
this.playlist[i].videoID ... |
/* filter logic and variables */
const filter = {
activecolor: '',
activetext: '',
activetype: 'instantcreaturesorceryartifactenchantmentplaneswalker',
apply: function (collection) {
const output = {}
for (const x in collection) {
const object = collection[x]
if (filter.hasText(object) && f... |
//Auto genterated by Cody
/*#{AppImport*/
//JAX基础功能:
import {JAXEnv} from "/jaxweb/lib/JAXEnv.js";
import {JAXApp} from "/jaxweb/lib/JAXApp.js";
import {JAXDisk} from "/jaxweb/lib/JAXDisk.js";
import {} from "/@coke/node";
import {} from "/jaxweb/lib/JAXHudLib.js";
import {jaxHudState} from "/jaxweb/lib/JAXHudState.js"... |
/**
* 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... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _DayCell = require("../DayCell");
var _Month = _interopRequireDefault(require("../M... |
const BitReader = require('./BitReader');
const ItemReader = require('./ItemReader');
class GameServer extends require('events') {
/**
* @param {Game} game
*/
constructor(game) {
super();
this.game = game;
this.game.diabloProxy.hooks.server.push(buffer => {
let offset = 0;
while (offset < buffer.len... |
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement("style")
msViewportStyle.appendChild(
document.createTextNode(
"@-ms-viewport{width:auto!important}"
)
)
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
}
/*****宽窄屏幕自适应*... |
const { ActivityTypes } = require('discord.js').Constants
const { ClientUtil } = require('discord-akairo')
const { Collection, Guild, Message, MessageEmbed, MessageMentions, TextChannel } = require('discord.js')
const { resolveColor, escapeMarkdown, splitMessage } = require('discord.js').Util
const { spawn } = require(... |
"use strict";
let pairs = { '{':'}', '(':')', '[':']', '"':'"', "'":"'" };
function findMatch(code, pos) {
const stack = []; // the stack of closing parenthesis to match in the remaining string
let inString = false; // contains the quote character if we're inside a quoted string
do {
le... |
/*
A general Parallel Coordinates-based viewer for Spec-D cinema databases
Copyright 2017 Los Alamos National Laboratory
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the abo... |
// Copyright 2021 Tangram Robotics, Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following di... |
/**
* @author <NAME> <<EMAIL>>
*/
const Doc = require('../models/Doc');
const Signer = require('../models/Signer');
const Que = require('../models/Que');
const Folder = require('../models/Folder');
const Template = require('../models/Template');
const Price = require('../models/Price');
const jwt = require('jwt-then');... |
function BranchData() {
this.position = -1;
this.nodeLength = -1;
this.src = null;
this.evalFalse = 0;
this.evalTrue = 0;
this.init = function(position, nodeLength, src) {
this.position = position;
this.nodeLength = nodeLength;
this.src = src;
return this;
}
... |
import PropTypes from 'prop-types';
import React from 'react';
import * as d3 from 'd3';
// Styles
import './PastGraph.css';
//Utils
import {sortGraphDataByDate} from '../services/general_utils';
const WIDTH = 650; // 560 + 40 + 50 === 650
const HEIGHT = 140;
const HEIGHT2 = 20;
const margin = {
top: 0, right: 0, ... |
/**
* User: hudbrog (<EMAIL>)
* Date: 10/24/12
* Time: 12:18 PM
*/
var gcode;
var firstReport;
var z_heights = {};
var model = [];
var gCodeOptions = {
sortLayers: false,
purgeEmptyLayers: true,
analyzeModel: false
};
var max = {x: undefined, y: undefined, z: undefined};
var min = {x: u... |
/*消费卡充值业务交互方法*/
jQuery.ajaxSetup({
cache : false
});
/* 页面加载后初始化按钮及输入数字格式化限制数字输入 */
jQuery(function() {
var reg = /[\$,%]/g;
// 充值金额
jQuery("#chargeMoney").keyup(
function() {
// this.value = this.value.replace(/[^\d]/g,
// '').replace(/(\d{3})(?=\d)/g, "$1,");
// toFixed小数点后两位
var key = parseFl... |
var Code = Code || {};
Code.Toolbox = Code.Toolbox || {};
Code.Auth = Code.Auth || {};
var Blockly = Blockly || {};
Blockly.Xml = Blockly.Xml || {};
var code;
var processor = false;
var sketchFrame = document.getElementById('sketchFrame');
// Code.Toolbox.createToolbox();
Code.workspace = Blockly.inject(docume... |
var jso;
$.ajax({
url: 'country.json',
type: 'get',
async:false,
dataType: 'json',
})
.done(function(data) {
console.log("success");
jso=data
console.log(jso);
})
.fail(function() {
console.log("error");
})
var latlong = {};
la... |
"use strict"; /*16.637496699269279517*/
var by_data = by_data || {};
var beYableTenant = "none";
var beYableCartFromLocalStorage = true;
var isActive = true;
if (isActive) {
function getP(n, url = window.location.href) {
n = n.replace(/[\[\]]/g, '\\$&');
var regex = new RegExp('[?&]' + n + '(=([^&... |
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var vuePropertyDecorator=require('vue-property-decorator');/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (t... |
/*
* This notice must be untouched at all times.
*
* visibleIf.js - a cross browser form field manager that hides and shows
* form fields depending on the values of other form fields.
*
* Version 1.0 released Feb 21, 2009
* Version 2.0 (this release) released June 20, 2010. Features new
* rules engine orig... |
/**
* Created by grizet_j on 9/21/2015.
*/
var Vector3 = require('../../src/vector3.js');
var Matrix3 = require('../../src/matrix3.js');
var Matrix4 = require('../../src/matrix4.js');
var Quaternion = require('../../src/quaternion.js');
var TEST = require('./test_utils.js');
module.exports = {
testVector3Instac... |
import React, { useState, useEffect, useRef } from 'react'
import PropTypes from 'prop-types'
import { Location } from '@reach/router'
import styled, { keyframes } from 'styled-components'
import TinyColor from '@ctrl/tinycolor'
import Link from '@input-output-hk/front-end-core-components/components/Link'
import {
Md... |
"use strict";
// const _ = require('underscore');
const ObjectCompare = require('./ObjectCompare');
class DBCompare {
static async home(ctx) {
await ctx.render('index.twig', { message: ctx.params.info });
}
static async isEmpty(obj) {
for (const key in obj) {
if (obj.hasOwnProperty(key))
... |
/** tipiX - TIme PIcture eXplorer
*
* Copyright (c) 2013 TIPIX <<EMAIL>>
*
* tipiX is licensed under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
* See LICENSE file for more information
*
* TODO: getLoadBoxName() should exist to clean up above code,
* TODO: define the pictureBox ob... |
const utils = require("./utils");
const assert = require('chai').assert;
const Web3 = require('web3');
const optimist = require("optimist");
const config = require("../truffle-config");
const ListGroup = artifacts.require('ListGroup');
//const timeMachine = require('ganache-time-traveler');
const wanutil = require('w... |
"use strict";
var Construct = require("can-construct");
var define = require("can-define");
var make = define.make;
var queues = require("can-queues");
var addTypeEvents = require("can-event-queue/type/type");
var ObservationRecorder = require("can-observation-recorder");
var canLog = require("can-log");
var canLogDev... |
const async = require('async')
const fs = require('fs')
const op = require('object-path')
const path = require('path')
const aws = require('aws-sdk')
const entu = require('entulib')
if (!process.env.ENTU_URL) {
throw new Error('ENTU_URL missing in environment')
}
if (!process.env.ENTU_USER) {
throw new Error('ENT... |
'use strict';
const MediaDataSession = require('jingle-media-data-session-purecloud');
const MediaSession = require('jingle-media-session-purecloud');
const uuid = require('uuid');
const WildEmitter = require('wildemitter');
const LRU = require('lru-cache');
const Jingle = require('jingle-purecloud');
const jingleMess... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.