text stringlengths 5.97k 41.2k |
|---|
/* jslint node: true */
'use strict'
/* Copyright 2017 Tierion
* 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 ... |
"use strict"; // Prevent "Too Many Errors" issue with JSHint - see https://github.com/ajaxorg/ace/issues/2955
var ace = window.ace;
const { app, dialog } = require('electron').remote;
const currentWindow = require('electron').remote.getCurrentWindow();
var fs = require('fs');
var FileTab = require('./src/fileTab');
... |
/*******************************************************************************************************
Authors: <NAME> Sarah
Displays a marker for the search placed on a time line.
The file includes the functions:
- generateTimeDot
- ShowHideTipsy
- sortDots
- createTimeListObject
- updateTim... |
'use strict';
var path = require("path");
var app_name = process.env.APP_NAME || "Jewellery"
var script_name = path.basename(__filename);
var debug = require("debug")(app_name.concat(":api").concat(":"+script_name));
var express = require("express");
var router = express.Router();
const request = require("../lib/req... |
//holder arrays
var textArray = [];
var buttonArray = [];
var imageIDArray = [];
var soundIDArray = [];
var imageArray = [];
var soundArray = [];
var picAlignArray=[];
var color;
var face;
var style;
var size;
var align;
var contentStyles = new Object();
var buttonStyles = new Object();
var headerStyles ... |
var reportViewModel = function (a) {
var self = this;
a = a || {},
self.SavedReports = ko.observableArray([]),
self.CurrentReportCSRId = ko.observable(),
self.ShowingReportResults = ko.observable(false),
self.Tables = ko.observableArray([]),
self.ReportID = ko.observable(),
self.ReportR... |
const mock_prescription = {
"result": {
"departmentPrescriptionInfo": [
{
"prescriptionQuantity": 900,
"chinaPrescriptionRateMom": 0.0168,
"chinaPrescriptionQuantity": 314,
"chinaPrescriptionRate": 0.3489,
"chinaPatentMedicineQuantityRate": 0.1889,
"dep... |
import * as d3 from "d3";
import PropTypes from "prop-types";
import React from "react";
import Diagram from "../alluvial/Diagram";
import Dispatch from "../context/Dispatch";
import { saveDiagram } from "../io/export";
import highlightColor from "../lib/highlight-color";
import { streamlineHorizontal } from "../lib/s... |
var temp_employees = []
var count_emp_check=0;
var count_paf_check=0;
var id_position=73;
var assigned_paf = []
// INICIA CARGA DE FILTRO EMPLEADOS
const get_employee_list = async () => {
let response = await fetch('http://127.0.0.1:8000/paf/?option=1')
let employees = await response.json()
await render_e... |
const express = require('express');
require("dotenv").config();
const router = express.Router();
const request = require("request");
const auth0Token = require("../components/getBearerToken");
const chalk = require('chalk');
const serverConfig = require('../server-config');
const log = serverConfig.log;
const log_api... |
var camera = undefined,
scene = undefined,
renderer = undefined,
light = undefined,
flashMesh = undefined,
mouseX = undefined,
mouseY = undefined,
maze = undefined,
mazeMesh = undefined,
mazeDimension = 11,
planeMesh = undefined,
ballMesh = undefined,
controllerAxis = [0,... |
/**
* * Performs variable matching on qualifier paths
* Here we look to see if the incoming request can be satisfied with a qualifier path containing variables
* in the format example: http://resolverdomain/01/00889842179354/10/{lotnumber}/21/{serialnumber}.
* The actual variable names between the curly brackets ca... |
/* global window, document */
'use strict';
var FDSNModel = require('fdsn/FDSNModel'),
FDSNModelValidator = require('fdsn/FDSNModelValidator'),
SelectField = require('fdsn/SelectField'),
EventTypeField = require('fdsn/EventTypeField'),
UrlBuilderFormatter = require('fdsn/UrlBuilderFormatter'),
Mag... |
/*
*
* CLI Related Tasks:
* This module is not used.
* repl.js is used instead.
* If you wanted to use this module instead of repl.js then remove the
* repl.js dependency in index.js and add a dependency for this module.
*
*
*/
// Dependencies
const fs = require('fs');
const path = require('path');
const readline = ... |
function selectCategoryPrimary(code, secondary, custom_fields) {
var boxReturn = $("#ai-f-c-sub");
$("#ai-category").val("");
boxReturn.html("<i class='fa fa-fw fa-spin fa-cog'></i>");
$.post(base_url + '/announce/categories', {category: code}, function(data, textStatus, xhr) {
/* nothing */... |
/* 2016
* <NAME> (on the BioLinker project, as Postdoc for EVL, UIC)
*
* THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTY. IN PARTICULAR, THE AUTHORS MAKE NO REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
* OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULA... |
/**
* Created by simba on 16/03/2016.
*/
var bdv = {};
// dataManager Module
bdv.dataManager = function module() {
var exports = {},
dispatch = d3.dispatch('geoReady', 'dataReady', 'dataLoading'),
data,
transitcrossfilter = crossfilter(),
location;
exports.loadCsvData = fu... |
/* Used to show and hide the admin tabs for UPCP */
function ShowTab(TabName) {
jQuery(".OptionTab").each(function() {
jQuery(this).addClass("HiddenTab");
jQuery(this).removeClass("ActiveTab");
});
jQuery("#"+TabName).removeClass("HiddenTab");
jQuery("#"+TabName).addClass("ActiveTab");
jQuery(".nav... |
export { OrthotObject, StandardObject, MovableObject }
import { getUID, releaseAsset, trit } from '../libek/libek.js'
import { direction } from '../libek/direction.js'
import { orthotCTL } from './orthot.js'
import { Surface, getSurfaceInteraction } from './surface.js'
import { Strength, Collision, ObjectState } from... |
"use strict";
///// <reference path="../../../typings/all.d.ts" />
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const reflection = tslib_1.__importStar(require("./reflection"));
const diagnostics = tslib_1.__importStar(require("./diagnostics"));
const stringHelper = t... |
var bookingDatesHash = {};
var bookingDateSlots = [];
var showPastBookings=0;
var bookingStatus = {
"IS_DONE_PAYMENT_LEFT":1,"PAYMENT_HELD":2,"IS_PAYMENT_DONE":3,
"IS_CANCELLED":4,"IS_DISPUTED_PAYMENT_HELD":5,"IS_DISPUTED_PAYMENT_DONE":6,
"PAYMENT_FAILE... |
const router = require('express').Router();
// const { spawn } = require('child_process');
const spawn = require('await-spawn')
const pythonDir = ("C:/Users/16073/Desktop/Code/reactdemoparse/parsedemo.py")
const fs = require('fs')
const { Match } = require("../../models");
router.post("/:id", async (req, res) => {
... |
/* Captures Window messages.
*
* Copyright 2018 Raising the Floor - International
*
* Licensed under the New BSD license. You may not use this file except in
* compliance with this License.
*
* The R&D leading to these results received funding from the
* Department of Education - Grant H421A150005 (GPII-APCP). ... |
'use strict';
const Script = require('smooch-bot').Script;
const _ = require('lodash');
const request = require('request');
const builder = require('botbuilder');
const csv = require('csv-parser');
const fs = require('fs');
const path = require('path');
const movieProvider = require(path.join(__dirname, "libs", "movi... |
const covid_regioni = "https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-json/dpc-covid19-ita-regioni-latest.json";
const covid_province = "https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-json/dpc-covid19-ita-province-latest.json";
/* Layers */
const layer_basico = new L.TileLayer('https://... |
// mootools.js: moo javascript tools
// by <NAME> (http://mad4milk.net) MIT-style license.
// CREDITS:
// Class is slightly based on Base.js : http://dean.edwards.name/weblog/2006/03/base/
// (c) 2006 <NAME>, License: http://creativecommons.org/licenses/LGPL/2.1/
// Some functions are based on those found in proto... |
var Main = (function ($) {
if(toastr){
toastr.options = {}
if ($(window).width() >= '768'){
toastr.options.positionClass = 'toast-top-left';
}
else{
toastr.options.positionClass = 'toast-top-center';
}
}
if($('.popover-item-p... |
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy ... |
import React from 'react';
import { StyleSheet, View, Image } from 'react-native';
import moment from 'moment';
import IonIcon from 'react-native-vector-icons/Ionicons';
import MaterialIcon from 'react-native-vector-icons/MaterialIcons';
import { Button, Content, Container, Text, StyleProvider, Accordion } from 'native... |
import React from 'react';
import { message } from 'antd';
import {guid, DialogCtrl, FormCtrl, PanelCtrl, TableCtrl, ContentTip} from '../controls';
import SelectArea from '../extends/SelectArea';
import YwArea from './YwArea';
import { getUserInfo } from '../../../../utils/utils';
import MapApi from '../utils';
import... |
/*
* Author: <NAME> (<EMAIL>)
* -----
* Copyright 2021 Fachwerk
*/
/**
* @typedef {import('../types').Runtime} Runtime
* @typedef {import('../types.js').TransportAdapter} TransportAdapter
* @typedef {import('../types.js').Transport} Transport
* @typedef {import('../types').TransportMessage} TransportMessage
*/... |
// Copyright (c) 2005 <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, distr... |
var player,
playerAvatar,
joystick,
spacebar,
enterkey,
ball,
building,
walkUp,
walkDown,
walkLeft,
walkRight,
dialogBox,
hintBoxText,
dialogBoxText,
fullScreenOverlay,
fullScreenOverlayText,
taxi,
stage1Music,
tosia,
tosiaAvatar,
tosiaUp,
tosiaDown,
tosiaLeft,
tosiaRight,
... |
'use strict';
// TODO : ESM remove the following lines...
const TemplateOpts = require('./lib/template-options');
const Cachier = require('./lib/cachier');
const Sandbox = require('./lib/sandbox');
// TODO : ESM uncomment the following lines...
// TODO : import * as TemplateOpts from './lib/template-options.mjs';
// T... |
Ext.namespace('webmail_list_space');
var gp_mail_list;
var viewPanel;
var listViewPanel;
var pagigBar;
webmail_list_space.webmail_list = function() {
var objForm = searchFormByActiveTab("form_mail_list");
var cp = new Ext.state.CookieProvider({expires: new Date(new Date().getTime()+(1000*60*60*24*30))});//30days
Ex... |
'use strict';
var DysLexer = require('dyslexer');
var fs = require('fs');
var path = require('path');
var LeftHandScope = require('./scopes/left');
var RightHandScope = require('./scopes/right');
var DataScope = require('./scopes/data');
var CommentScope = require('./scopes/comment');
var ProviderScope = require('./sc... |
import { chordColors, colors } from '../theme';
function rectsIntersect(r1, r2) {
return !(r2.x1 > r1.x2 || r2.x2 < r1.x1 || r2.y1 > r1.y2 || r2.y2 < r1.y1);
}
const getFromLocation = (location, obj) => {
const locs = Object.keys(obj)
.map(x => parseInt(x, 10))
.sort()
.reverse();
for (const loc of ... |
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) {
/******/
/****... |
const Province = require("../models/Province");
const HealthArea = require("../models/HealthArea");
const HealthZone = require("../models/HealthZone");
const Village = require("../models/Village");
const Report = require("../models/Report");
const TrainingForm = require("../models/TrainingForm");
const mongoose = requi... |
$(function () {
// 表格 新增
$("div.component-table button.add-row").on("click", function () {
var tr = $(this).closest("table").find("tr").eq(1).clone(true);
tr.find("input").val("");
tr.find("select").val("");
tr.find("textarea").val("");
$(this).closest("table")... |
import Vue from '../../utils/vue'
import KeyCodes from '../../utils/key-codes'
import noop from '../../utils/noop'
import observeDom from '../../utils/observe-dom'
import { getComponentConfig } from '../../utils/config'
import { selectAll, reflow, addClass, removeClass, setAttr } from '../../utils/dom'
import { isBrows... |
import CoreUtils from '../modules/CoreUtils'
import Graphics from '../modules/Graphics'
import Fill from '../modules/Fill'
import DataLabels from '../modules/DataLabels'
import Markers from '../modules/Markers'
import Scatter from './Scatter'
import Utils from '../utils/Utils'
import Helpers from './common/line/Helpers... |
import * as React from 'react';
import Box from '@mui/material/Box';
import Stepper from '@mui/material/Stepper';
import Step from '@mui/material/Step';
import StepLabel from '@mui/material/StepLabel';
import Button from '@mui/material/Button';
import Typography from '@mui/material/Typography';
import Navbar from '../f... |
const Emitter = require('events');
const debug = require('debug')('drachtio:agent');
const debugSocket = require('debug')('drachtio:socket');
const WireProtocol = require('./wire-protocol') ;
const SipMessage = require('drachtio-sip').SipMessage ;
const Request = require('./request') ;
const Response = require('./respo... |
// Copyright (c) 2020, The OTNS Authors.
// All rights reserved.
//
// 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 conditi... |
/**
* CanvasCamera.js
* PhoneGap iOS and Android Cordova Plugin to capture Camera streaming into an
* HTML5 Canvas.
*
* VirtuoWorks <<EMAIL>>.
*
* MIT License
*
* Default user options :
* {
* width: 352,
* height: 288,
* canvas: {
* width: 352,
* height: 288
* },
* capture: {
* width: 352... |
import Immutable, { List, Map, Set } from 'immutable';
import { isSmallScreen } from '../utils/media_utils';
import { endsWith } from '../utils/string_utils';
import { parseUrl } from '../utils/url_utils';
import * as i18n from '../i18n';
import trim from 'trim';
import * as gp from '../avatar/gravatar_provider';
impor... |
/*
* jqGrid common function
* <NAME> <EMAIL>
* http://trirand.com/blog/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
// Modal functions
var showModal = function(h) {
h.w.show();
};
var closeModal = function(h) {
... |
require('ember-metal/core'); // Ember.Logger
require('ember-metal/watching'); // Ember.watch.flushPending
require('ember-metal/observer'); // Ember.beginPropertyChanges, Ember.endPropertyChanges
require('ember-metal/utils'); // Ember.guidFor, Ember.tryFinally
/**
@module ember-metal
*/
// ............................... |
"use strict";
// used for testing
Object.assign(wizard, {
processAnswers,
inquire,
interactive,
});
const debugModule = require("debug");
const debug = debugModule('snyk');
const path = require("path");
const inquirer = require("@snyk/inquirer");
const fs = require("then-fs");
const tryRequire = require("sn... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { BadSymbol, ExchangeError, ArgumentsRequired, InvalidOrder, OrderNotFound, OnMaintenance } = require ('./base/errors');
// ----------------------------------------------... |
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) { try { step(gene... |
/*
* 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 n... |
// globals
var u = [0, 1, 0]; // axis of rotation
var aux = new Float32Array(12);
var p_aux = E.getAddressOf(aux, true);
var a = 0.5; // angle of rotation
var light = new Float32Array(12);
var p_light = E.getAddressOf(light, true);
light[0] = 1 / Math.sqrt(2);
light[1] = 1 / Math.sqrt(2);
light[2] = 0;
var filex = new ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
"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];
})... |
window.AdvancedModalDialogs = true;
var $document = $cmsj(document);
var $window = $cmsj(window);
var $visiblePopup = null;
function generateGuid() {
var S4 = function () {
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
};
return (S4() + S4() + "-" + S4() + "-" ... |
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
import { app, dialog, ipcMain, shell } from 'electron';
import fs from 'fs';
import path from 'path';
import { fork } from 'child_process';
import createGraph from 'ngraph.graph';
import pageRank from 'ngraph.pagerank';
import Database from 'better-sqlite3';
import {
ADD_NODE,
ADD_NODES,
ADD_SELECT_NODE,
CHOOSE... |
/*!
* serve-index
* Copyright(c) 2011 Sencha Inc.
* Copyright(c) 2011 <NAME>
* Copyright(c) 2014-2015 <NAME>
* MIT Licensed
*/
'use strict';
/**
* Module dependencies.
* @private
*/
var accepts = require('accepts');
var createError = require('http-errors');
var debug = require('debug')('serve-index');
var e... |
var local;
var local_class;
var clocks = {};
var alarms = {};
var alarm_clocks = {};
var base_url =
"http://api.worldweatheronline.com/free/v1/tz.ashx?key=vfc3k7q22tjedr2rxse7xzke&format=json&q=";
var view = "world";
var stopwatch;
var timer;
$(document).ready(function () {
$(".close").click(function () {
w... |
// import * as d3 from "d3"
import _ from 'lodash'
import moment from 'moment'
const d3 = require('d3')
export default class Wind {
width = 900
height = 600
margin = {top: 20, right: 30, bottom: 30, left: 20}
allWidth = 0
allHeight = 0
testDataSize = 5000
paths = [
'M 4 2 Q 4 1.2 3.4... |
/**
* Created by Miku on 16/2/29.
*/
var setList = [];
var dataList = [];
var chooseId = "";
var objArray = [];
var weekArray = ["周日","周一","周二","周三","周四","周五","周六"];
var opts = {
width: 180, // 信息窗口宽度
height: 100, // 信息窗口高度
title: "" // 信息窗口标题
}
var areaPoint = {
saveType: false,
/**
... |
const { createProduct } = require('../shared/api');
const { APP_URL } = require('../shared/resources');
// const { ftruncate } = require('fs-extra');
if (window.location.href.includes('checkout')) {
console.log('checkedouted');
window.chrome.runtime.sendMessage({
type: 'CHECKOUT_INITIATED',
data: [{
... |
import { PublicService } from '@makerdao/services-core';
import { createWatcher } from '@makerdao/multicall';
import debug from 'debug';
import { Observable, ReplaySubject, combineLatest, from, throwError, timer } from 'rxjs';
import {
map,
flatMap,
debounceTime,
take,
catchError,
filter,
takeUntil,
thr... |
var eventsEngine = require("../../events/core/events_engine"),
extend = require("../../core/utils/extend").extend,
isNumeric = require("../../core/utils/type").isNumeric,
browser = require("../../core/utils/browser"),
devices = require("../../core/devices"),
fitIntoRange = require("../../core/utils/... |
/*
* Licensed to Hortonworks, Inc. under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Hortonworks, Inc. licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not u... |
/*
The MIT License (MIT)
Copyright (c) 2017 Microsoft Corporation
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,... |
var app = angular.module("FablePlayer",['simple-sprite']);
//Module Elements
var Elements = (function(){
var animations = new Array();
var agents = new Array();
var sounds = new Array();
var properties = new Array();
//Animations
var getAnimation = function(animation){
animations.push(animation);
... |
//js2cpp test.js -s stdlib -o output/js_bin --cpp
const fs = require('fs');
const {parse} = require("@babel/parser");
const args = require('./src/args');
const {cpp_generator,incrementIndent,decrementIndent} = require('./src/cpp_generator')(parse_node);
const {makeString, JS_assert, JS_type_assert} = require('./src/ut... |
class DragBox {
constructor (boxElement = null) {
// constants
this.MAX_BINDED_PROPERTIES = 15;
this.INIT_WIDTH = 400;
this.INIT_HEIGHT = 300;
this.DEFAULT_BOX_CLASS = "dragbox";
this.DEFAULT_DRAGGABLE = true;
this.DEFAULT_STICKINESS_TYPE = "magnetized";
// ui variables
this.boxElement = boxElement;... |
var date = new Date();
document.getElementById('big-warning').style.display = "none";
document.getElementById('auton-chooser').style.display = "none";
// initial camera settings
var cameraMode = "double";
var driveReversed = false;
var allKeysPressed = new Array();
document.getElementById('camera1').style.display = "... |
/*
* This module contains all the logic to determine how incoming events from
* IRC clients are mapped to events which are passed to the bridge.
*
* For example, every connected IRC client will get messages down their TCP
* stream, but only 1 client should pass this through to the bridge to
* avoid duplicates. Th... |
/*
* Requires chromedriver
*/
const heredoc = (docf) => {
let c = docf.toString().match(/(?:\/\*(?:[\s\S]*?)\*\/)/);
return c.pop().replace(/^\/\*/, "").replace(/\*\/$/, "");
}
const TITLE = heredoc(() => {/*
<cyan> ___ . . . </cyan>
<cyan> .' \ __. | |... |
#!/bin/env node
var express = require('express');
var fs = require('fs');
var makeChat = require('./static/chat.js');
/**
* Define the sample application.
*/
var ChatApp = function() {
// Scope.
var self = this;
/**
* Set up server IP address and port # using env variables/def... |
var editId,type,neighborlyUserId,neighborlyAccountId,prevNumber;
var pageReload = false;
$('.profileDetails').click(function(){
pageReload = false
var profile = JSON.parse(localStorage.getItem('profile'));
neighborlyAccountId = profile.neighborlyAccountId;
neighborlyUserId = profile.neighborlyUserId;
if(profile)... |
var components = (function(){
// creates a dom element with the attributes specified
// on the attributes object and the given innerHTML
var createElem = function(type, attributes, innerHTML){
var elem = document.createElement(type);
for(var key in attributes){
elem.setAttribute... |
import React, { Component } from 'react';
import Pagination from '../../shared/Pagination';
import { Animated } from "react-animated-css";
import RenewPermit from './RenewPermit';
import './Permit.css';
import RequestPermit from './RequestPermit';
import $ from 'jquery';
class PermitAdmin extends Component {
disp... |
import CullVisitor from 'osg/CullVisitor';
import utils from 'osg/utils';
import { vec3 } from 'osg/glMatrix';
import { vec4 } from 'osg/glMatrix';
import { mat4 } from 'osg/glMatrix';
import AutoTransform from 'osg/AutoTransform';
import MatrixTransform from 'osg/MatrixTransform';
import Shape from 'osg/shape';
import... |
/**
* Collection of metrics and their associated SQL requests
* Created by <NAME>
*/
const debug = require("debug")("metrics");
const client = require('prom-client');
// UP metric
const up = new client.Gauge({name: 'up', help: "UP Status"});
// Query based metrics
// -------------------
const mssql_instance_local_... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, AuthenticationError, OrderNotFound } = require ('./base/errors');
// ---------------------------------------------------------------------------
module.... |
import React, { useCallback, useEffect, useState } from 'react';
import { Button, message, Modal, Table } from 'antd';
import moment from 'moment';
import {
validateBoolean,
validateNumber,
validateRequired,
} from 'components/AdminForm/validations';
import { updateUserMeta, addMeta, deleteMeta, updateMeta } from '... |
// ***************************************************************************
// DnD Attack Wing AI - Javascript
// ****************************************************************************
//Credits https://www.myfreetextures.com/worn-parchment-paper-5/
// https://dd-attack-wing.fandom.com/wiki/D%26D_Attack_Wing_... |
/*
The MIT License (MIT)
Copyright (c) 2014 <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, publis... |
const { toHiragana } = require('wanakana')
const fetch = require('node-fetch')
const domino = require('domino')
const fs = require('fs')
const kanji = require('./kanji')
const tag = require('./tag')
const { initAnki, addNote, queryAnki } = require('./anki')
/**
* Tag added to new entries by Yomichan.
*/
const TAG_Y... |
/**
* @license Copyright 2016 The Lighthouse Authors. 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... |
/*
State indicator lolz
Written by <NAME>
*/
var A_StateIndicator = function(canvasID, opts) {
this.canvasID = canvasID;
this.canvas = document.getElementById(canvasID);
this.ctx = this.canvas.getContext('2d');
this.options = { //setup default opts object
/* BASIC PARAMS (width, height, etc) */
width: 350, //p... |
/*-------------------------------------------------------------------------------------------
* Copyright (c) 2018-2021 <NAME> / Codedungeon. All rights reserved.
* Licensed under the MIT license. See LICENSE in the project root for license information.
* -----------------------------------------------------------... |
var CSSModel = {};
CSSModel.inheritedPropertyNames = [
"color", "direction", "font-family", "font-kerning", "font-size", "font-stretch", "font-style", "font-variant", "font-variant-ligatures",
"font-weight", "-webkit-font-feature-settings", "-webkit-font-smoothing", "-webkit-locale", "-webkit-text-orientation"... |
var settings = require('../core/settings');
var THREE = require('three');
var shaderParse = require('../helpers/shaderParse');
var glslify = require('glslify');
var fbo = require('./fbo');
var undef;
var mesh = exports.mesh = undef;
exports.init = init;
exports.update = update;
exports.useDiffuse = false;
exports.use... |
/*
* Thickbox 3 - One Box To Rule Them All.
* By <NAME> (http://www.codylindley.com)
* Copyright (c) 2007 <NAME>
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
jQuery.noConflict();
// for ... |
const MAX_TEXT_DISPLAY_SIZE = 30;
const ConfigUtils = require('../util/ConfigUtils');
const Constants = require('../Constants');
const SfccTagContainer = require('../enums/SfccTagContainer');
const ParseUtils = require('./ParseUtils');
const MaskUtils = require('./MaskUtils');
const ExceptionU... |
'use strict';
/**
* Module dependencies.
*/
const transformer = require('../../app/lib/transformer');
const winston = require('../../logger.js');
const rp = require('request-promise');
const req = require('request');
const https = require('https');
const fs = require('fs');
/**
* Congrid quality document creator pl... |
import { useParams } from 'react-router-dom';
import { Map, Marker } from 'pigeon-maps';
import useGet from '../../hooks/useGet';
import Progress from '../Progress';
import { Avatar, CircularProgress, Grid, IconButton, TextField, Typography } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/style... |
/**
* @file device.js: 处理与 swiper 所在设备有关的行为
*
* @note:
* 这样做的好处:
* 1. 为 swiper 提供透明的环境
* 2. 模块解耦,方便单元测试
*
* @author zhangbobell
*
* @email:<EMAIL>
* @created: 2017.07.18
*/
var Device = (function () {
function Device(global) {
this.hasTouch = !!(('ontouchstart' in global && !/Mac OS X /.test(... |
"use strict";
var TYPE_ARRAY = "[object Array]",
TYPE_OBJECT = "[object Object]",
_typeOf = function (e) {
return Object.prototype.toString.call(e);
},
_deepClone = function (e) {
return JSON.parse(JSON.stringify(e));
},
diff = function (e, t) {
var n = 0 < arguments.length && void 0 !== e ? e :... |
const Mural = require('../../models/Mural')
const Artist = require('../../models/Artist')
const Draft = require('../../models/Draft')
const User = require('../../models/User')
const DocMapping = require('./DocumentMapping')
const DataUtils = require('./DataUtils')
const aws = require('../awsS3')
const mysql = require('... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _asyn... |
//-------------------------------------------------------------------------------------------------------------------->
// Json Serializations
//-------------------------------------------------------------------------------------------------------------------->
function openForm(url) {
window.location = url;
}
... |
const $ = require('jquery');
import('core-js');
require('../css/custom.css');
require('../css/jquery.rateyo.css');
require('../scss/color-monpro.scss');
require('materialize-css/sass/materialize.scss');
require('../js/jquery.rateyo');
const materialize = require('materialize-css');
function verifTel(selector) {
c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.