text stringlengths 5.97k 41.2k |
|---|
var orgDisabledTxt = "Not applicable to a informal page layout";
var bylineDisabledTxt = "Not applicable to a formal page layout";
/* Disable Element passed in (used by Byline and Organization) */
function DisableElement(el) {
var myFieldGroup = $(this).parent().closest('div .field-group');
myFieldGroup.addC... |
var Hash = require('hashish');
var mr = require('mrcolor');
var getSpacing = function(windowsize,canvaswidth) {
return Math.floor(canvaswidth / (windowsize-1));
}
exports.getSpacing = getSpacing;
exports.getStartX = function(length,windowsize,canvaswidth) {
var x = undefined;
var spacing = getSpacing(windo... |
function VoronoiMap() {
var me = this;
var current_loss = null;
var bounds = VMT.mapholder.map.getBounds(),
topLeft = VMT.mapholder.map.latLngToLayerPoint(bounds.getNorthWest()),
bottomRight = VMT.mapholder.map.latLngToLayerPoint(bounds.getSouthEast())
var voronoi_fn = d3.voronoi()
... |
"use strict";
var express = require('express');
var app = express();
var path = require('path');
var fs = require('fs');
var util = require('util');
var uuid = require('uuid');
var EXAMPLE_PATH = process.env.EXAMPLE_PATH || '../phaser-examples';
var PORT = process.env.PORT || '3000';
var example_root = path.join(EXA... |
const isDev = require("electron-is-dev");
const path = require("path");
const fs = require("fs");
const PIE = require("puppeteer-in-electron");
const Tesseract = require("tesseract.js");
const Jimp = require("jimp");
const csv = require("fast-csv");
const { createWindow } = require("../app/WindowManagement/window");
c... |
'use strict';
const express = require('express');
const router = express.Router();
const passport = require('passport');
const winston = require('winston');
const jwt = require('express-jwt');
const async = require('async');
//mine
const config = require('../config');
const logger = new winston.Logger(config.logger.w... |
let techtree = {
line1: new Array(154).fill(null),
line2: new Array(154).fill(null),
line3: new Array(154).fill(null),
line4: new Array(154).fill(null),
line5: new Array(154).fill(null),
line6: new Array(154).fill(null),
line7: new Array(154).fill(null),
line8: new Array(154).fill(null),
};
// line 1
/... |
var d3 = require("d3");
var moment = require("moment");
var globals = require("../globals");
var rangeChart = require("../rangeChart");
var temperatureData = require("../data/temperatureData");
var sleepData = require("../data/sleepData");
function locateMinMax (task,index) {
suppress_touch_val_feedback = true;
... |
class AnimationController {
constructor() {
this.animation_queue = [];
this.current_animation = null;
}
Animate(dt) {
if(this.current_animation){
if (this.current_animation.Animate(dt) &&
this.animation_queue.length > 0){
this.current_animation = this.animation_queue[0];
this.an... |
'use strict';
const fs = require('fs');
const XLSX = require('xlsx');
const years = [
2004,
2006,
2008,
2010,
2012,
2014,
2016,
];
const houseSheetNames = {
'2004': '2004 US HOUSE & SENATE RESULTS',
'2006': '2006 US House & Senate Results',
'2008': '2008 House and Senate Results',
'2010': '2010... |
/**
* Copyright (c) 2012 GAS team.
*
* 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, pu... |
const lgtv2 = require('lgtv2');
const wol = require('wake_on_lan');
const tcpp = require('tcp-ping');
const cec = require('cec-promise');
let Service, Characteristic;
module.exports = function (homebridge) {
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.Characteristic;
homebridge.regi... |
$(document).ready(function() {
init_datepicker('.datepicker');
$('textarea.editor').ckeditor();
$('.btn-start').on('click', function () {
var id = $(this).attr('data-id');
malert('Bạn có muốn kích hoạt trang tích điểm đổi quà này không?', 'Xác nhận kích hoạt trang tích điểm đổi quà', null, ... |
export default{
get,
show,
isNull,
randomIndex,
randomColorText,
openPage,
closePage,
storeData,
getData,
getLocation,
loading,
hideLoading,
showModel,
saveUserLogin,
getUser,
delay,
isPlatformWeiXin,
isPlatformApp,
isPlatformH5,
uploadFiles,
notifyEvent,
notifyRegisterEventO... |
import React, { Component } from "react";
import {
StyleSheet,
WebView ,
View,
TouchableOpacity,
Dimensions,
ImageBackground,
AsyncStorage,
Image,
TouchableHighlight,
FlatList,
ToastAndroid,
NetInfo,
Modal,
} from "react-native";
import {
Container,
Spi... |
class PolyNumber {
form;
array;
orientation;
static FORMS = ['x', 'y'];
static EXPRESSION = new Expression();
static NOTATION = [new ColumnNotation(), new RowNotation()];
static EXTENDED = [new ColumnExtended(), new RowExtended()];
constructor(array=[], orientation=ORIENTATION.COLU... |
var restify = require('restify');
var clients = require('restify/lib/clients');
var es = require('event-stream');
var fs = require('fs');
var mimeStream = require('mime-multipart-stream');
var http = require('http');
function defaultContent ( ) {
var fileOne = es.readArray(["dummy content hello world text"]);
var ... |
'use strict';
const multer = require('multer');
const path = require('path');
// node js
const fs = require('fs');
// models
const Product = require('../models/Product');
const Download = require('../models/Download');
const Review ... |
$(() => {
getCost();
getSupplier();
});
$(document).on({
ajaxStart: function () {
$("body").addClass("loading");
},
ajaxStop: function () {
$("body").removeClass("loading");
},
});
$("#name_cost").change(() => {
let name = $("#name_cost").val();
if(name){
$("#frm_name_cost > input").removeClass("is-in... |
// const $ = require('jquery');
function init() {
if($('#menuTree').length) { init_admin_menu(); }
if($('#relations').length) { init_admin_relations(); }
if($('#upload_images').length) { init_images(); }
if($('.ajax').length) { init_inputChange(); }
$(".btn-danger").click(function() { if(!confirm... |
/*
* @Author: <NAME>
* @Date: 2022-01-24 16:09:18
* @Last Modified by: <NAME>
* @Last Modified time: 2022-03-20 16:08:57
*/
'use strict';
const fs = require('fs');
const path = require('path');
const env = require('espoir-cli/env').default;
const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLoc... |
'use strict';
require('dotenv').config();
const { getConnection } = require('./db');
const faker = require('faker/locale/es');
const bcrypt = require('bcrypt');
/* const fs = require('fs-extra');
const { formatDateToDB } = require("./helpers");
const { random } = require("lodash");
const path = require("path"); */
... |
const getImageSize = url => {
return new Promise((resolve, reject) => {
const img = new Image();
img.addEventListener("load", function () {
resolve(`${this.naturalWidth}x${this.naturalHeight}`);
});
img.src = url;
});
}
//Animation init
new WOW().init();
//Modal
$... |
/* http://masscode.ru/index.php/k2/item/44-limarquee */
var idt = 60000; //60,000 = 1 min
var i;
var responseJSON;
var predictions;;
var tides;
var l;
var tday, tday_year, tday_month, tday_day, tday_formated;
var weatherurl;
var uniweatherdata;
//var vid = document.getElementById("vidinset");
$.idleTimer(idt);
$(docum... |
var CLASSLIST = document.documentElement.classList !== undefined,
SPACE = " ";
var DOC = document,
BODY = DOC.body;
window.G = window.G || function(id) {
return id + "" === id ? document.getElementById(id) : id;
};
var input = G("input"),
form = G("form"),
logo = G("logo"),
params = G("s... |
const { BotConfig, ChangesModel } = require('./models/models')
const { AllHtmlEntities } = require('html-entities')
const { Template } = require('adaptivecards-templating')
const { getAhaClient, ahaIdeaVisibilityMapping, loadIdea } = require('./lib/aha');
const Bot = requi... |
let passport = null;
let nodefonyPassport = null;
try {
passport = require('passport');
//nodefonyPassport = require("@nodefony/passport-wrapper");
nodefonyPassport = require(path.resolve(__dirname, "..", "..", "src", "passport", "passportFramework.js"));
} catch (e) {
this.log(e);
}
const pluginReader = funct... |
/**
* Created by Jeevjyot on 8/2/16.
*/
var project_name='';
var cost='no value';
$(document).ready(function() {
$('#qc_form').validate();
load_projects();
$('#qc_number').attr('required','required');
$('#subc').attr('required','required');
$('#iDate').att... |
/**
* Copyright 2020, <NAME> <<EMAIL>>
* 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... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports._isNode = exports.fromJS = exports.attribute = exports.element = exports.logic = exports.operatorMap = undefined;
exports.item = item;
exports.decimal = decimal;
exports.integer = integer;
exports.string = string;
exports.number =... |
import { EventBus } from "../event-bus/event-bus.js";
import Filter from "../filter/filter.js";
var SummaryCharts = {};
SummaryCharts.BACKGROUND_COLORS = [
"hsla(320, 100%, 70%, 0.75)",
"hsla(280, 100%, 70%, 0.75)",
"hsla(207, 100%, 70%, 0.75)",
"hsla(177, 100%, 70%, 0.75)",
"hsla(132, 70%, 60%, 0.75)",
"hsla(8... |
import React, { Component } from 'react';
import {Button, Label, Card, CardBody, Table, Col, Input, Row } from 'reactstrap';
import PropTypes from 'prop-types';
import {commons} from '../../_helpers/commons.js';
import AttributeArrayGroup from './AttributeArrayGroup.js';
import AttributeArrayObjectGroup from './Attribu... |
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
// Import caccl
import initCACCL from 'caccl/client/cached';
// Import React
import React, { Component } from 'react';
// Import fonts
import 'typeface-fredoka-one';
// Import other components
import LoadingSpinner from './shared/LoadingSpinner';
import NotSetUp from './Body/NotSetUp';
import Configuration from './B... |
var initBubbles = function(){
var isSmallDevice = window.innerWidth < 840 ? true : false;
var width= isSmallDevice ? 320 : 1000 ;
var height= window.innerHeight;
var vWidth = width, anchoMaximo = vWidth*0.9; // defino el ancho maximo que puede tener la dataviz
var vHeight = height;
... |
var types=[
{type:'Buffer',
title:"",
info:"output=input",
i:{in_:0},
o:{out:0},
f:function(i,o){
o.out=i.in_;
}
},{type:'Logger',
title:'console.log()',
info:"Prints the input to the browser console.",
i:{msg:""},
f:function(i,o){
console.log(i.msg);
}
},{type:'Summer',
title:'Sum',
info:"c=a+b",
i:... |
/**
* Web page processing module. Its only export, `processPage()`, is executed after {@link module:app
* the main module} on first run and as part of {@link module:boot.reloadPage} on subsequent runs.
*
* @module processPage
*/
import CdError from './CdError';
import Comment from './Comment';
import CommentForm ... |
/**
* @license
* Copyright 2017 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
var gulp = require('gulp'),
connect = require('gulp-connect'),
// Proxy = require('gulp-connect-proxy'),
url = require('url'),
Proxy = require('proxy-middleware'),
livereload = require('gulp-livereload'),
runSequence = require('run-sequence'),
clean = require('gulp-clean'),
ren... |
//Node JS imports
import React, {Component} from 'react';
import { createMuiTheme, MuiThemeProvider} from '@material-ui/core/styles';
import FlexBand, { FlexBandItem } from 'flexband'
import ln3 from 'ln3';
import { teal, deepOrange, green, indigo, red } from '@material-ui/core/colors';
import { ReflexContainer, Reflex... |
var canvas = document.getElementById("game");
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
canvas.addEventListener("mousedown", onClickStart, false);
canvas.addEventListener("mouseup", onClickEnd, false);
canvas.addEventListener("touchstart", onTouchStart, false);
canvas.addEventListener("touc... |
/*
Copyright (c) Copyright (c) 2007, <NAME> All rights reserved.
Code licensed under the BSD License: http://www.featureblend.com/license.txt
Version: 1.0.4
*/
var FlashDetect = new function(){
var self = this;
self.installed = false;
self.raw = "";
self.major = -1;
self.minor = -1;
self.revisio... |
/**
* Interactive Web Physics 6 - Animator UI Routines, requires Jquery
* <NAME>, <NAME> 2016 - Version 5.0 Initial Port to HTML + SVG
* <NAME>, <NAME> 2018 - Version 5.1 Added Graphing and D3
* <NAME>, <NAME>, <NAME> 2019 - Version 6.0 Migrated into Play Framework
*/
/**
* Performs no calculations, but repain... |
function createPlanet(nspeed, nheight, radius, atmoRadius, colorInner, colorOuter, colorDetail, colorAtmo, nseed, ncount)
{
var heights = Array(ncount);
var bheights = Array(ncount);
noise.seed(nseed);
// Generate heights
for(var i = 0; i < ncount; i++)
{
var height0 = noise.perlin2(i / ncount * nspeed * 1... |
import Api from '../Api'
import Logger from '../Logger'
import { getType, isArray, isBrowser, isInt, isObject, isString } from '../utils'
/**
* Class HistoryExport
*/
class HistoryExport {
attributes = {}
options = {}
constructor(attributes = {}, options = {}) {
Object.entries(attributes).forEach(([key, v... |
const MEM = {name:"Asm Emulator Memery IO", version:"1.0.0", desciption:"ASM 16 bit emulator memery io system based on JavaScript."};
//creat a buffer space for Emulator memery system;
var buffer = new ArrayBuffer(65536);
function Memio(cmdout, cmdin, cmdstat, point){
this.ram = new Uint8Array(buffer);
for (v... |
/*
* @Author: Lumoon
* @Date: 2019-11-27 21:52:09
* @Last Modified by: Lumoon
* @Last Modified time: 2019-12-08 23:12:33
* @description: 武器信息展示
*/
"use strict";
import interaction from "../modules_interaction.js";
import msg from "../message.js";
class WeaponInfo {
constructor() {
this.update_nu... |
/**
* LuxPath expressions parser
*
* VERSION: 1.0.1
*
* DVD: added sexpr property to the token as array to keep s-expressions.
* arity and first, second etc will be removed
*
*/
// Parser for Simplified JavaScript written in Simplified JavaScript
// From Top Down Operator Precedence
// http://javascript... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* Many of these tests taken from Joyent's Node
* https://github.com/joyent/node/blob/master/test/simple/test... |
import * as utils from './utils'
import _ from 'underscore'
import { format as d3Format } from 'd3-format'
// globals
const RETURN_ARG = x => x
const ESCAPE_REG = /([.*+?^=!:${}()|[\]/\\])/g
const EMPTY_LINES = /\n\s*\n/g
const TRAILING_NEWLINE = /\n\s*(\)*)\s*$/
const AND_OR = /([() ])(?:and|or)([)( ])/ig
const ALL_P... |
import React, { Component } from 'react'
import { connect } from 'react-redux';
import { Button, Form, InputGroup, Modal, FormControl } from 'react-bootstrap';
import CurrencyInput from 'react-currency-input';
import { Account } from './Tabs'
import Navbar from '../components/Navbar';
import SpinnerComponent from '../.... |
import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import CheckboxComponent from '../../components/CheckboxComponent';
import InputComponent from '../../components/InputComponent';
import SelectComponent from '../../components/SelectComponent';
import TextAreaComponent fro... |
"use strict";
var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
var _sliceInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/slice");
var _Array$from2 = require("@babel/runtime-corejs3/core-js-stable/array/from");
var _Symbol2 = require("@babel/runt... |
var playStatus = 0,
musicfc = document.getElementsByTagName("audio")[0],
volume = 1,
musicLoop = '',
arrMusic = new Array(),
nowPlayNum = 0;
onlyLoop = 0,
arrMusicNum = 0,
allTime = 0,
currentnum = 0,
currentTime = 0,
lycArray = new Array();
//创建歌词数组存放JSON,处理歌词字符串进行同步
function createLrc(lycText)
{
lycArray = new A... |
"use strict";
var s = {};
s.tree = '%'
s.bplat = 'o'
s.rplat = '!'
s.bguy = '*'
s.rguy = '@'
s.trackH = '-'
s.trackV = '|'
s.startU = 'u'
s.startR = 'r'
s.endH = '='
s.endV = '#'
s.null = '.'
s.null2 = ','
s.up = 0;
s.right = 1;
s.down = 2;
s.left = 3;
s.dirs = ["up","right","down","left"];
s.udirs = ["↑","→","↓","←"]... |
/**
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### ####... |
import * as R from 'ramda';
import EventSource from 'eventsource';
import axios from 'axios';
import { clearIntervalAsync, setIntervalAsync } from 'set-interval-async/fixed';
import conf, { logApp } from '../config/conf';
import { createRelation, deleteElementById, internalLoadById, loadById } from '../database/middlew... |
/*
* 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... |
//=========================================================================
// minimalist DOM helpers
//=========================================================================
var Dom = {
get: function(id) { return ((id instanceof HTMLElement) || (id === document)) ? id : document.getElementB... |
Object.defineProperty(exports, "__esModule", { value: true });
const data_1 = require("../data");
const settingsManager_1 = require("./settingsManager");
const eventEmitter_1 = require("../../utils/eventEmitter");
const extendedObject_1 = require("../../utils/extendedObject");
const sortedList_1 = require("../../u... |
'use strict';
let state = new State();
let ell;
window.addEventListener('DOMContentLoaded', function() {
let originFun = function() { return [0, 0]; };
let release = function(s, c, over) { if(s==='release') state.release(); over.refresh(); }
let graphs = [];
let updateGraphs = function() {
ell = state.ell... |
'use strict';
window.onload = function () {
render();
}
function loadingStarted() {
document.getElementById("loading-popup").style.display = "block";
}
function loadingDone(timeBegin) {
document.getElementById("loading-popup").style.display = "none";
document.getElementById("time-to-render").innerH... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Config = exports.LintConfig = exports.IGNORE_FILE = void 0;
const fs = require("fs");
const path = require("path");
const path_1 = require("path");
const colorette_1 = require("colorette");
const js_yaml_1 = require("../js-yaml");
cons... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { arrayOf, func, node, number, shape, string } from 'prop-types';
import differenceBy from 'lodash/differenceBy';
import isEqual from 'lodash/isEqual';
import classNames from 'classnames';
import { types as sdkTypes } from '../../util/sd... |
/* Copyright 2019 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
*/
'use strict';
import './cp-dialog.js';
import '@chopsui/chops-loading';
import * as PolymerAsync from '@polymer/polymer/lib/utils/async.js';
import {Ba... |
/*-
*
* Hedera Mirror Node
*
* Copyright (C) 2019 - 2022 Hedera Hashgraph, 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-... |
'use strict';
var PromiseA = require('bluebird');
var mkdirpAsync = PromiseA.promisify(require('mkdirp'));
var path = require('path');
var fs = PromiseA.promisifyAll(require('fs'));
var sfs = require('safe-replace');
var os = require('os');
function log(debug) {
if (debug) {
var args = Array.prototype.slice.cal... |
'use strict';
/**
* Takes an array of [keyValue1, keyValue2] pairs and creates an object of {keyValue1: keyValue2, keyValue2: keyValue1}
* @param {Array} array the array of pairs
* @return {Object} the {key, value} pair object
*/
function arrayToObject(array) {
return array.reduce(function (obj, _ref) {
var ... |
const angular = require('angular');
const $ = require('jquery');
const _ = require('lodash');
import merge from 'deepmerge';
angular
.module('dbt')
.factory('project', ['$q', '$http', function($q, $http) {
var TARGET_PATH = '';
var service = {
project: {},
tree: {
project: [],
... |
// Copyright 2017 ODK Central Developers
// See the NOTICE file at the top-level directory of this distribution and at
// https://github.com/getodk/central-backend/blob/master/NOTICE.
// This file is part of ODK Central. It is subject to the license terms in
// the LICENSE file found in the top-level directory of this ... |
import React, {createContext, useState} from "react";
import Cookies from "js-cookie";
const MyContext = createContext();
function MyContextProvider({children}) {
const [firstName, setFirstName] = useState("");
const [lastName, setLastName] = useState("");
const [firstNameError, setFirstNameError] = useState("")... |
/*
* Dracula Graph Layout and Drawing Framework 0.0.3alpha
* (c) 2010 <NAME> <<EMAIL>>, http://strathausen.eu
* Contributions by <NAME> <<EMAIL>>.
*
* based on the Graph JavaScript framework, version 0.0.1
* (c) 2006 <NAME> <<EMAIL>>
* (c) 2006 <NAME> <<EMAIL>>
*
* Ported from Graph::Layouter::Spring in... |
// used when hosting the site on the ESP8266
var address = location.hostname;
var urlBase = "";
// used when hosting the site somewhere other than the ESP8266 (handy for testing without waiting forever to upload to SPIFFS)
// var address = "esp8266-1920f7.local";
// var urlBase = "http://" + address + "/";
var postCo... |
// 全局变量
var GlobalData = {
clientWidth: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, // 视口宽
clientHeight: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, // 视口高
stopFlag: false,
time: 0, // 倒计时时间
timer: null,... |
const {
fetchJSON,
absolute,
debug,
getPath,
setPath,
jwtDecode,
makeArray,
request,
responseToJSON,
btoa,
byCode,
byCodes,
units
} = require("./lib");
const str = require("./strings");
/**
* Gets single reference by id. Caches the result.
* @param {String} refId
... |
/**
* Module dependencies
*/
var path = require('path');
var fs = require('fs');
var _ = require('@sailshq/lodash');
var chalk = require('chalk');
var COMMON_JS_FILE_EXTENSIONS = require('common-js-file-extensions');
var flaverr = require('flaverr');
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -... |
import _ from 'lodash';
// import $ from 'jquery';
import angular from 'angular';
import { uiModules } from 'ui/modules';
import uiRoutes from 'ui/routes';
import chrome from 'ui/chrome';
import 'plugins/kibana/dashboard/grid';
import 'plugins/kibana/dashboard/panel/panel';
import { SavedObjectNotFound } from 'ui/err... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// Generated by Khrysalis TypeScript converter - this file will be overwritten.
// File: views/MonthCVD.kt
// Package: com.lightningkite.butterfly.views
const CustomView_1 = require("./CustomView");
const DisposeCondition_ext_1 = require("../r... |
var _ = require("lib/Underscore");
var Config = require("config");
var InAppPurchases = require("lib/InAppPurchases");
var ChooseGame = require("modules/ChooseGame");
var ContentMenu = require("ui/ContentMenu");
// var GameSet = require("modules/GameSet");
var GamePicker = require... |
'use strict';
exports.__esModule = true;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _propTypes = r... |
var plask = require('plask-wrap')
var SkCanvas = plask.SkCanvas
var SkPaint = plask.SkPaint
var Rect = require('pex-geom/Rect')
/**
* [SkiaRenderer description]
* @param {[type]} ctx [description]
* @param {[type]} width [description]
* @param {[type]} height [description]
*/
function SkiaRenderer (regl, widt... |
$(document).ready(function() {
$(".close-collectible-modal").click(function() {
$("#create-collectible-modal").removeClass("d-block");
});
// Collection MODAL
$(".generate_collection").click(function() {
$("#collectionModal").addClass("d-block");
$(".collection-content")
... |
'use strict';
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
var os = require('os');
var misc = require('./misc');
var validate = require('./validate');
var ServiceType... |
/*
The MIT License (MIT)
Copyright (c) 2018 <NAME>, <EMAIL>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... |
/*
* seajs(CMD) Module combo pulgin for gulp
* Author : nanwei
* Date : 2015-03-31
* 备注 seajs.config只有在seajs.use的时候有用
*
*
* 在全局检索模式下,match() 即不提供与子表达式匹配的文本的信息,也不声明每个匹配子串的位置
* 在全局检索模式下,exec永远只返回第一个匹配,并且提供子表达式匹配的文本的信息,下次执行时会返回第二个
*/
var Promise = require('promise'),
fs = require('fs'),
path = require('p... |
import {
waitForAll,
getLeagueUsers,
getLeagueRosters,
getNflState,
leagueID,
managers,
getLeagueData,
nflTeams,
getLeagueMatchups } from '$lib/utils/helper';
import { get } from 'svelte/store';
import { leagueData, scoreboardStore } from '$lib/stores';
export const getPlayByPlay = async (gameID) => {
... |
function textPath(x, y) {
// Text should wrap around the top half of the node
return `M ${x-30} ${y} A ${30} ${30} 0 0 1 ${x+30} ${y}`
}
// Return path instructions
function straightLine(x1, y1, x2, y2, padding) {
let diffx = x2-x1;
let diffy = y2-y1;
let distance = Math.sqrt(diffx*diffx + diffy*di... |
var _ = require('lodash');
var und = undefined;
var kong = "";
var ling = 1;
var nul = null;
var nan = NaN;
var d = '123123';
var b = 'asdcasd';
var o = {'a': 123, 'b': '123'};
var f = ['A1', 'A2', 'B4', 'M5'];
var f1 = ['A1', 'A2', 'B3', 'M4'];
let test_und = _.toNumber(und) || 0 ;
let test_nan = _.toNumber(nan) |... |
import React, { Component, createRef } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators} from 'redux';
import OrchestralRibbon from '../containers/orchestralRibbon';
import Score from '../containers/score';
import TEI from 'meld-clients-core/lib/containers/tei';
import Swiper from ... |
/**
* Created by <NAME> on 6/20/20
*
* This is input toolbar component
*/
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { View, StyleSheet, Keyboard, TouchableOpacity, TextInput, Image, Platform, Modal, TouchableWithoutFeedback } from 'react-native';
import getUid from 'g... |
/*
* LiskHQ/lisk-service
* Copyright © 2021 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, ... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _applyLayout = _interopRequireDefault(require("../../modules/applyLayout"));
var _applyNativeMethods = _interopRequireDefault(require("../../modules/applyNativeMethods"));
var _ExecutionEnvironment = require("fbjs/lib/ExecutionEnvironment");
va... |
var GeoPackageApi = require('geopackage')
, FeatureModel = require('mapcache-models').Feature
, path = require('path')
, fs = require('fs-extra')
, log = require('mapcache-log')
, lwip = require('lwip')
, BufferStream = require('simple-bufferstream')
, turf = require('turf')
, tile = require('mapcache-t... |
import React, { Component } from 'react';
import GoogleMapReact from 'google-map-react';
import { observer } from "mobx-react";
//import {when,autorun,reaction} from 'mobx';
import {store} from './App';
import {diff} from 'json-diff';
import cfg from './config';
class Marker extends Component {
markerClicked = (id)... |
'use strict'
module.exports = createAxes
var createText = require('./lib/text.js')
var createLines = require('./lib/lines.js')
var createBackground = require('./lib/background.js')
var getCubeProperties = require('./lib/cube.js')
var Ticks = require('./lib/ticks.js')
var identity = new Floa... |
// "use strict";
// globals
var root_url = 'http://' + window.location.href.split('/')[2];
var tasks = new Set();
var x_sel = "";
var y_sel = "";
var task_cached = "";
var params = [];
var labels = [];
var overlayed_params = [];
var subplotted_params = [];
var active_querying_filter;
var filter_method_map = {"range":"B... |
import 'isomorphic-fetch';
import { format } from 'd3';
// Components
import BarChart from 'utils/widgets/bar';
import LineChart from 'utils/widgets/line';
import PieChart from 'utils/widgets/pie';
import OneDScatterChart from 'utils/widgets/1d_scatter';
import OneDTickChart from 'utils/widgets/1d_tick';
import Scatte... |
/*
* Copyright IBM Corp All Rights Reserved
*
* SPDX-License-Identifier: Apache-2.0
*/
'use strict';
const express = require('express');
const utils = require('./utils.js');
const supplychainRouter = express.Router();
// Bring key classes into scope, most importantly Fabric SDK network class
const Order = require('../... |
"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
va... |
const {baseInteractionsFromEvents, pointerGestures} = require('most-gestures')
const GL = require('./lightgl')
const {colorBytes} = require('./jscad-viewer-helpers')
/**
* lightgl.js renderer for jscad viewer
* @param {DOMElement} containerelement container element
* @param {object} options options for rende... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.