text stringlengths 5.97k 41.2k |
|---|
var camera, scene, renderer, controls;
var container;
window.onload = init;
var cubeSize = 20;
var lastAddedSnakePart;
var YouBitTheWrongStuff = false;
var FoodID;
var collidableMeshList = [];
var collidableMeshListIndex;
var windowWidth;
var windowHeight;
var spaceTreeColors = [0xa17c04, 0xffa500, 0x0205fa, 0xf8093b, ... |
const Web3 = require('web3')
const BigNumber = require('bignumber.js')
const config = require('./config')
require('dotenv').config()
var log = require('npmlog')
const createRequest = async (input, callback) => {
/* Params expected in the request:
proxyAddress: This is the address of the proxy contract for data ... |
/*
Copyright 2017, <NAME>
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... |
//more functions
$(document).ready(function() {
toggle_login();
return true;
});
function toggle_login(preserve)
{
if (typeof preserve === 'undefined') preserve = 0;
// alert('toggling!');
$.ajax({url:"login.php?action=toggle_login&page=tweets&login=1",
complete: function (response) {
$(".login_st... |
const {prefix, token, admin, pollschannelid, wednesdaychannelid, bgcolor, fgcolor} = require ('./config.json');
const discord = require('discord.js');
const jimp = require('jimp');
const schedule = require('node-schedule');
const Sequelize = require('sequelize');
const client = new disco... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const glsl = x => x;
let drawVert=glsl`
precision mediump float;
attribute float a_index;
uniform sampler2D u_particles;
uniform float u_particles_res;
varying vec2 v_particle_pos;
void main() {
vec4 color = texture2D(u_part... |
/*
*
* WordPres版微信小程序
* author: jianbo
* organization: 守望轩 www.watch-life.net
* github: https://github.com/iamxjb/winxin-app-watch-life.net
* 技术支持微信号:iamxjb
* 开源协议:MIT
* Copyright (c) 2017 https://www.watch-life.net All rights reserved.
*/
function formatTime(date) {
var year = date.getFull... |
//initialize connection between server and client
const socket = io();
const canvas = document.getElementById("ctx");
const ctx = document.getElementById("ctx").getContext("2d");
const idText = document.getElementById("worldId");
const clearBtn = document.getElementById("delete");
const formMenu = document.getElem... |
var tab = null;
var accordion = null;
var tree = null;
$(function (){
//自适应
$('#container').ligerLayout({leftWidth: 200, height: '100%', onHeightChanged: f_heightChanged});
//手风琴菜单
G3bgAccordion.show({parentElem:'#accordion-box',clickElem:'.accordion-hd',showElem:'.accordion-ct'});
G3bgAccordion.fold({parent... |
import ChunkType from './ChunkType.js'
var GeometryFlag = {
rwTRISTRIP: 0x00000001,
rwPOSITIONS: 0x00000002,
rwTEXTURED: 0x00000004,
rwPRELIT: 0x00000008,
rwNORMALS: 0x00000010,
rwLIGHT: 0x00000020,
rwMODULATE_MATERIAL_COLOR: 0x00000040,
rwTEXTURED2: 0x00000080,
rwNATIVE: 0x0100000... |
/* eslint-disable no-shadow */
/* eslint-disable react/jsx-no-bind */
/* eslint-disable react/jsx-closing-tag-location */
/* eslint-disable import/no-named-as-default */
/* eslint-disable import/no-named-as-default-member */
import React from 'react';
import { connect } from 'dva';
import { message, Menu, Dropdown, Mod... |
import m from 'mithril';
import I18n from 'i18n-js';
import h from '../h';
import contributionVM from '../vms/contribution-vm';
import rewardVM from '../vms/reward-vm';
import paymentVM from '../vms/payment-vm';
import projectVM from '../vms/project-vm';
import usersVM from '../vms/user-vm';
import faqBox from '../c/fa... |
import ecs from "./ecs.m.js";
import { Trail, TrailSystem } from "./Trail.js";
import { DebugCollidersSystem } from "./DebugCollidersSystem.js";
import { Renderer } from "./Renderer.js";
import { Projectile, ProjectileSystem } from "./Projectile.js";
import { explode, Explosion, ExplosionSystem } from "./Explosion.js";... |
import React, { Component } from "react";
import { SectionList,Button, Card, Form, Container, Row, Col } from 'react-bootstrap';
import Web3Context from '../../Web3Context';
import { withTranslation } from "react-i18next";
import background from '../pdf/assets/background.jpg';
import axios from "axios";
import DataFrom... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
/*
* Copyright (C) 2013 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/*
this file bootstraps the webaverse engine.
it uses the help of various managers and stores, and executes the render loop.
*/
import * as THREE from 'three';
import Avatar from './avatars/avatars.js';
import * as sounds from './sounds.js';
import physx from './physx.js';
import ioManager from './io-manager.js';
impo... |
/* *
*
* (c) 2009-2019 <NAME>
*
* Instrument class for sonification module.
*
* License: www./license
*
* */
/**
* A set of options for the Instrument class.
*
* @requires module:modules/sonification
*
* @interface Highcharts.InstrumentOptionsObject
*//**
* The type of instrument. Currently only `os... |
'use strict'
/* eslint no-unused-expressions: [2, { allowShortCircuit: true }] */
// External modules
const request = require('request');
const _ = require('underscore');
const fs = require('fs');
const colors = require('colors');
const imageToAscii = require("image-to-ascii");
const imgcat = require('./imgcat.js');
c... |
import { io as IO } from './io.js';
import * as Flags from './flags.js';
import * as Utils from './utils.js';
import { sprite as SPRITE } from './sprite.js';
import { color as COLOR, colors as COLORS } from './color.js';
import * as Text from './text.js';
import { data as DATA, types, fx as FX, ui, message as MSG, def... |
'use strict';
'require view';
'require dom';
'require form';
'require rpc';
'require fs';
'require ui';
var isReadonlyView = !L.hasViewPermission();
var callSystemValidateFirmwareImage = rpc.declare({
object: 'system',
method: 'validate_firmware_image',
params: [ 'path' ],
expect: { '': { valid: false, forcable: ... |
/* jslint node: true */
/* eslint-disable no-console */
'use strict';
// ENiGMA½
const resolvePath = require('../../core/misc_util.js').resolvePath;
const {
printUsageAndSetExitCode,
getConfigPath,
argv,
ExitCodes,
initConfigAndDatabases
} = require('./oputil_common... |
$(function () {
//限制键盘只能按数字键、小键盘数字键、退格键
$('[name="productionbatchnumber"]').keydown(function (e) {
var code = parseInt(e.keyCode);
if (code >= 96 && code <= 105 || code >= 48 && code <= 57 || code == 8) {
return true;
}
else {
return false;
}
});
/* 选择日期插件初始化 */
$('[name="workeddate"]').datetimepi... |
/*
Spellcast
Copyright (c) 2014 - 2020 <NAME>
The MIT License (MIT)
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, co... |
var timeline = [];
timeline.push({
type: 'fullscreen',
fullscreen_mode: true
});
var participant_id = jsPsych.randomization.randomID(15);
// utility functions
save_data = function() {
var form = document.createElement('form');
document.body.appendChild(form);
form.method = 'post';
form.action = './save-data.p... |
import similarity from 'compute-cosine-similarity';
import {
COLOR_COMBINATIONS,
cardColorIdentity,
cardDevotion,
cardType,
cardIsSpecialZoneType,
COLOR_INCLUSION_MAP,
} from 'utils/Card';
import { csrfFetch } from 'utils/CSRF';
import {
getRating,
botRatingAndCombination,
considerInCombination,
ge... |
import extend from 'extend';
import {
testRectRect
} from '../../../math/narrow-phase-collision';
import filterOverlapping from './bars-overlapping-filter';
const PADDING = 4;
// const DOUBLE_PADDING = PADDING * 2;
function cbContext(node, chart) {
return {
node,
data: node.data,
scale: chart.scale,
... |
var currentLocation;
var statsEnabled = isDataPublishingEnabled();
var isToday=false;
var isMonth=false;
var isHour=false;
var isDefault=false;
var isWeek=false;
var apiFilter = "allAPIs";
//setting default date
var to = new Date();
var from = new Date(to.getTime() - 1000 * 60 * 60 * 24 * 30);
currentLocation = win... |
/*
* Copyright 2016 Google Inc. 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 applicabl... |
/* eslint-disable no-console */
import _ from 'lodash';
import PromisePool from 'es6-promise-pool';
import { Account } from '../../modules/Account';
import { EventTypes } from '../../modules/EventTypes';
import {
DOC_AGENT_RELEASES_GQL,
CLOUD_LINKED_ACCTS_GQL,
CLOUD_LINKED_ACCTS_WITH_ID_GQL,
APM_DEPLOYMENTS_GQ... |
import React from 'react'
import PropTypes from 'prop-types'
import { MuiThemeProvider } from "@material-ui/core/styles"
import Pagination from "material-ui-flat-pagination"
import Typography from '@material-ui/core/Typography'
import { withRouter } from 'react-router-dom'
import { AGI, getMarketplaceURL, isSupportedNe... |
/* eslint-disable global-require */
const ApiGateway = require('@cubejs-backend/api-gateway');
const crypto = require('crypto');
const fs = require('fs-extra');
const path = require('path');
const LRUCache = require('lru-cache');
const SqlString = require('sqlstring');
const R = require('ramda');
const CompilerApi = re... |
import fetch from 'node-fetch';
import Link from 'next/link';
import ReactMarkdown from 'react-markdown';
import { useState, useContext } from 'react';
import { Header, Label, Checkbox, Radio, Input, InputWithFix, Toggle } from '../components/Form';
import PageLayout from '../components/PageLayout';
import Confirmation... |
import React, { Component } from 'react'
import io from 'socket.io-client'
import faker from "faker"
import {IconButton, Badge, Input, Button} from '@material-ui/core'
import VideocamIcon from '@material-ui/icons/Videocam'
import VideocamOffIcon from '@material-ui/icons/VideocamOff'
import MicIcon from '@material-ui/i... |
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { InfoCircle } from '@styled-icons/boxicons-regular/InfoCircle';
import { FastField, Field } from 'formik';
import { first, get, groupBy, isEmpty, omit, pick } from 'lodash';
import { defineMessages, FormattedMessage, useIntl } from 're... |
var fs = require("fs");
var path = require("path");
var nodemailer = require("nodemailer");
var net = require("net");
var YAML = require("yamljs");
import { loadFromToml } from './configuration/configloader';
import { CamoConfig } from './configuration/camoconfig';
import { PrometheusConfig } from './configuration/pro... |
import React, {
Component,
Fragment,
} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {
formatAuto, formatBoolean, formatDate, formatNumber, formatText, LEFT_ALIGNMENT, PropertySortType,
RIGHT_ALIGNMENT, SortDirection
} from '../../services';
import { isFunction } ... |
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; };
/* Tabulator v4.8.1 (c) <NAME> */
var ExportRow ... |
import React, { Component } from 'react';
import {
TextInput, View, Image,
ScrollView, Platform,
TouchableWithoutFeedback,
} from 'react-native';
import _ from 'lodash';
import update from 'immutability-helper';
import { getInitialObject, getDefaultStyles } from './Convertors';
import CNTextInput from './CNTextIn... |
/**
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"... |
/*
Functions for processing flex files into the json format used by the site.
*/
const fs = require('fs');
const util = require('util');
const parseXml = require('xml2js').parseString;
const speakerRegistry = require('../speaker_registry').speakerRegistry;
const tierRegistry = require('./tier_registry').tierRegistry;... |
import { intersect, unifiedToNative } from './index'
import { uncompress, buildSearch } from './data'
import frequently from './frequently'
const SHEET_COLUMNS = 56
const COLONS_REGEX = /^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/
// Skin tones
const SKINS = ['1F3FA', '1F3FB', '1F3FC', '1F3FD', '1F3FE', '1F3FF']
/**
... |
var http = require('http'),
fs = require('fs'),
path = require('path'),
_ = require('busyman'),
chalk = require('chalk');
var ioServer = require('./helpers/ioServer');
var server = http.createServer();
var mockDevs = require('./dev_mock');
var options = {
baudRate: 115200,
rtscts: tru... |
import React, { useEffect, useRef, useState } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { Dialog, DialogContent, DialogTitle } from '@material-ui/core';
import { AddCircle as AddIcon } from '@material-ui/icons';
import AuthorizedDevices from './authoriz... |
'use strict';
/**
* This file contains all Node.js version of utils functions.
* Since we're stil in the progress to migrate to Node.js, the
* missing functions in this file should be in the 'utils-xpc.js'
*
* About documents:
* Users can find comments in the 'utils-xpc.js',
* which contains the complete functi... |
'use strict';
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 () { f... |
import React, { useState, useEffect, useCallback } from 'react';
import PropTypes from 'prop-types';
import { t } from '@lingui/macro';
import { withFormik, useField } from 'formik';
import {
Form,
FormGroup,
Switch,
Checkbox,
TextInput,
Title,
} from '@patternfly/react-core';
import ContentError from 'com... |
import React, { PropTypes } from "react";
import { assign, defaults, pick, omit } from "lodash";
import Point from "./point";
import Scale from "../../helpers/scale";
import Domain from "../../helpers/domain";
import Data from "../../helpers/data";
import {
PropTypes as CustomPropTypes, Helpers, VictoryTransition, Vi... |
/* global $, window, document */
/* global toTitleCase, connect_to_server, refreshHomePanel, closeNoticePanel, openNoticePanel, show_tx_step, marbles*/
/* global pendingTxDrawing:true */
/* exported record_company, autoCloseNoticePanel, start_up, block_ui_delay*/
var ws = {};
var bgcolors = ['whitebg', 'blackbg', 'redb... |
var periods = [12.42,12.0,12.66,23.93,25.82,24.07,6.21];
var periodsRad = [0.505892537,0.523598776,0.496302157,0.262565203,0.243345674,0.261038027,1.011785074];
var amplitudes = Create2DArray(1221,821);
var angles = Create2DArray(1221,821);
var colors = Create2DArray(1221,821);
var minOffset = -0.5509;
var ... |
import React, { useEffect, useMemo, useState } from "react";
import MeetingContainer from "./meetingContainer/MeetingContainer";
import { MeetingProvider } from "@videosdk.live/react-sdk";
import {
MeetingAppProvider,
meetingLayoutPriorities,
meetingLayouts,
meetingLayoutTopics,
} from "./MeetingAppContextDef";... |
const Discord = require("discord.js");
/**
* @param {Discord.Client} client
* @param {Discord.Message} message
* @param {import('../index').modmailOptions} options
*/
async function modmail(client, message, options = []) {
let { MessageButton, MessageActionRow } = require("discord.js");
try {
if (options.... |
const { ApiPromise, WsProvider } = require("@polkadot/api")
const { options } = require("@acala-network/api")
const BigNumber = require("bignumber.js")
const SubstrateBot = require("@ryabina-io/substratebot")
const { metaConvertToConfig } = require("@ryabina-io/substratebot/tools/utils")
const { formatBalance } = requi... |
/**
* Copyright (c) 2013-present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesM... |
const path = require('path')
const createRenderer = require('../')
const createContext = require('pex-context')
const createGUI = require('pex-gui')
const mat4 = require('pex-math/mat4')
const quat = require('pex-math/quat')
const vec3 = require('pex-math/vec3')
const random = require('pex-random')
const io = require('... |
const fs = require('fs');
let inputPath = 'input.txt';
class Position {
constructor(x, y, z) {
this.x = x;
this.y = y;
this.z = z;
}
toString() {
return ` x: ${this.x} | y: ${this.y} | z: ${this.z} `;
}
manhattanDistanceTo(position) {
return Math.abs(position.x - this.x) + Math.abs(pos... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// jQuery
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$(document).ready(function($) {
"use strict";
equalHeight(... |
/* eslint-disable class-methods-use-this */
/* eslint-disable func-names */
/* eslint-disable no-restricted-syntax */
import Phaser from 'phaser';
import sceneoptions from '../config/sceneoptions';
import bg from '../assets/bg.png';
import gamoraWalk from '../assets/gamora_walk.png';
import platform1 from '../assets/bi... |
'use strict';
var assert = require('assert');
var path = require('path');
var matcher = require('./support/match');
var mm = require('..');
var sep = path.sep;
describe('micromatch', function() {
after(function() {
path.sep = sep;
});
describe('empty list', function() {
it('should return an empty array... |
'use strict';
var http = require('http');
var PROTOCOL = process.env.PROTOCOL || 'http:';
var INTERNALURLPREFIX = 'protocol://authority';
var INTERNAL_ROUTER = process.env.INTERNAL_ROUTER;
function withTeamsDo(req, res, user, callback) {
if (user !== null) {
user = internalizeURL(user);
var headers = {
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.analyse = 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... |
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import moment from 'moment';
import { fetchNewsEditor,
newsEditorRequest,
newsEditorPost,
newsCategory,
newsImageDeleteRequest,
newsTagsGetRequest
} from './actions';
import { selectNewsEdit... |
var inherits = require('inherits');
var has = require('has');
var defined = require('defined');
var isarray = require('isarray');
var once = require('once');
var onend = require('end-of-stream');
var sprintf = require('sprintf');
var concatMap = require('concat-map');
var shuffle = require('shuffle-array');
var throu... |
"use strict";
//--------------------PRELOAD--------------------
var game = new Phaser.Game(800, 800, Phaser.AUTO, '', { preload: preload, create: create});
var headgears = [];
var skintones = [];
var bodies = [];
var charData;
var socket;
var bossGroup;
//Preload assets
function preload() {
this.stage.disableVisibilty... |
import React, { Component } from "react";
import withAuthorization from "../WithAuthorization";
import { db } from "../../firebase";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import Card from "@material-ui/core/Card";
import CardHeader from "@material-ui/core/CardHeader"... |
/////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by Forge Partner Development
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided tha... |
"use strict";
var PASTA_CONFIG = {
"server": "https://pasta.lternet.edu/package/search/eml?", // PASTA server
"filter": "&fq=scope:knb-lter-ble", // Filter results for an LTER site
"limit": 20, // Max number of results to retrieve per page
"resultsElementId": "searchResults", // Element to contain results
... |
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil; tab-width: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/*
* Copyright 2013 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lic... |
var messages = {
email: function (field) {
return ("Please enter a valid " + field + " address");
},
password: function (field) {
return ("Please enter your " + field + " ");
},
required: function (field) {
return ("The " + field + " is required.");
},
confirmed: func... |
const { expect } = require('chai');
const { BigNumber } = require('ethers');
const { ethers } = require('hardhat');
const { NATIVE_TOKEN_ADDRESS, registry, ZERO_ADDRESS } = require('../helpers/Constants');
const Contracts = require('../../components/Contracts').default;
const PPM_RESOLUTION = BigNumber.from(1_000_000... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TreeSelectControlRenderer = void 0;
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importDefault(require("react"));
var Overlay_1 = tslib_1.__importDefault(require("../../components/Overlay"));
var PopOver_1 = tslib_1.__import... |
const LCXL_FADER1 = 77;
const LCXL_FADER2 = 78;
const LCXL_FADER3 = 79;
const LCXL_FADER4 = 80;
const LCXL_FADER5 = 81;
const LCXL_FADER6 = 82;
const LCXL_FADER7 = 83;
const LCXL_FADER8 = 84;
const LCXL_ROW1_KNOB1 = 13;
const LCXL_ROW1_KNOB2 = 14;
const LCXL_ROW1_KNOB3 = 15;
const LCXL_ROW1_KNOB4 = 16;
const LCXL_ROW1... |
/**
* @file multi-checkbox.js
* @fileOverview Multi-checkbox vanilla javascript component. Provides
* an input with a dropdown of multiple checkboxes that are concatenated.
* in the input when selected. See the README file for usage.
* @version 0.1.8
* @author <NAME> <<EMAIL>>
* @copyright ©2021 <NAME> Software ... |
// This file is automatically rebuilt by the Cesium build process.
var hello_world_index = 63;
var gallery_demos = [{
"name": "3D Models",
"date": 1488376539596,
"img": "3D Models.jpg"
}, {
"name": "3D Models Coloring",
"date": 1488376539589,
"img": "3D Models Coloring.jpg"
}, {
"name": "3D Tiles Adjust H... |
/* gestione delle varie select */
function buildSelect(selId, data) {
var selectObj = jQuery(selId)[0];
selectObj.options.length=0; // remove all options
// add the new ones
jQuery.each(data, function() {
var option = new Option(this.text, this.value);
if (jQuery.browser.msie) {
selectObj.add(opti... |
// Open a database
// var SQL = window.SQL;
// var db = new SQL.open();
// const sqlite3 = SQL.open();
// var Database = sqlite3.Database;
// var Statement = sqlite3.Statement;
// var dataset;
// var DataType;
/*
var createStatement = "CREATE TABLE IF NOT EXISTS Contacts (id INTEGER PRIMARY KEY AUTOINCREMENT, usern... |
const fs = require('fs');
const path = require('path');
const ejs = require('ejs');
const API = require('caccl-api');
const CACCLError = require('caccl-error');
const sendRequest = require('caccl-send-request');
const parseLaunch = require('caccl-lti/parseLaunch');
const MemoryTokenStore = require('./MemoryTokenStore... |
"use strict";
/* Text OT!
*
* This is an OT implementation for text. It is the standard implementation of
* text used by ShareJS.
*
* This type is composable and by default non-invertable (operations do not by
* default contain enough information to invert them). Its similar to ShareJS's
* old text-composable ty... |
const _ = require('lodash');
const YoHoException = require('../framework/exception');
const { joinRelationTable } = require('./db');
const Sequelize = require('sequelize');
const Timer = require('./timer');
const dayjs = require('dayjs');
const logger = global.yoho.logger;
const CALC_TYPE = [{
title: 'SUM'
}, {
ti... |
// @ts-check
/* eslint-disable eslint-comments/disable-enable-pair */
/* eslint-disable fp/no-loops */
const crypto = require('crypto')
const os = require('os')
const path = require('path')
const gitRepoInfo = require('git-repo-info')
const { GraphQL, InternalConsole, OneGraphClient } = require('netlify-onegraph-inter... |
import React from 'react';
import {StatusBar, StyleSheet, SafeAreaView, Text, Image, View, Dimensions, TextInput, Platform, TouchableOpacity, Alert} from 'react-native';
import DeviceInfo from 'react-native-device-info';
import Moment from 'moment';
import Modal from 'react-native-modal';
import {useIsFocused} from '@r... |
//Function created table whit different columns,rows and any place inside your HTML
//TableId - HTML id for your table will be placed
//tableHeaderData - header data for your table
//Example array test_a = [["HEAD 1, HEAD 1", "HEAD, HEAD 2"]];
//tableData - your table main date
//Example Array test_b = [["row 1, cell ... |
/**
* @file videojs-contrib-hls.js
*
* The main file for the HLS project.
* License: https://github.com/videojs/videojs-contrib-hls/blob/master/LICENSE
*/
import document from 'global/document';
import PlaylistLoader from './playlist-loader';
import Playlist from './playlist';
import xhrFactory from './xhr';
impor... |
#!/usr/bin/env node
'use strict';
process.env.LC_ALL = 'C';
process.env.LANG = 'C';
process.env.LANGUAGE = 'C';
const async = require('async');
const ipaddrjs = require('ipaddr.js');
const child_process = require('child_process');
const http = require('http');
const express = require('exp... |
// 文件名:testcase
// 文件功能:测试附加功能是否正常
/******************************** 预处理设置区 ********************************/
// 表单事件处理器
var formcallback = {};
// 表单超时计时器
var timeouts = {};
// 临时状态
var tmpeff = "";
// 临时侧边栏计数器
var sidecount = {};
function getUuid(p) {
let pl = getOnLinePlayers();
if (pl != null) {
let jpl = JS... |
#!/usr/bin/env node
/*
* Copyright (c) 2020 <NAME>. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const express = require('express')
const { addAsync } = require('@awaitjs/express')
const compression = require... |
$(function () {
$('.lazy').Lazy();
});
// product tag
$('.product-tag').on('click', function () {
var $this = $(this)
var id = $this.attr('data-product')
$this.addClass('product-tag_active')
$('.product-tag').not($this).removeClass('product-tag_active')
console.log(id);
var product = $(id)
product... |
/*
* Copyright 2017, Yahoo Inc.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
/*
This module contains methods which loads dataFiles.
We have 3 kinds of data files.
packedTzData (tzdata.js) : Contains history list of each ianaTimeZones which de... |
import React, { useEffect, useState } from 'react';
import { Checkbox, FormControl, InputLabel, LinearProgress, MenuItem, Select, Switch } from '@material-ui/core';
import Icon from '@iobroker/adapter-react/Components/Icon';
import I18n from '@iobroker/adapter-react/i18n';
import Utils from '../components/Utils';
imp... |
/*
MythDeck - index.js
Por mitosan/mscore/misto_quente
Help me - please
*/
var fs;
$id = 1;
var buff;
var decr;
var cPlay;
var seeking;
var canLoad;
var loading;
var getPads;
var grabKey;
var what = 0;
var logoAnim;
var jsGamepad;
var transAnim;
var fOutAtivo;
var gamepadId;
var fadeT = 1;
var winH = 560;
var checkT... |
import { observable, action } from 'mobx';
import axios from 'axios';
import { ipcRenderer } from 'electron';
import storage from 'utils/storage';
import helper from 'utils/helper';
import contacts from './contacts';
import settings from './settings';
import members from './members';
import snackbar from './snackbar'... |
var base_url = $('html head base').attr('href');
var base_path = base_url;
if (base_path.substring(0,7) == 'http://') base_path = base_path.substring(7);
if (base_path.substring(0,8) == 'https://') base_path = base_path.substring(8);
if (base_path.substring(0,window.location.hostname.length) == window.location.hostn... |
/**
* Computed structure of the DataTables API, defined by the options passed to
* `DataTable.Api.register()` when building the API.
*
* The structure is built in order to speed creation and extension of the Api
* objects since the extensions are effectively pre-parsed.
*
* The array is an array of objects wit... |
AFRAME.registerComponent('graph', {
schema: {
csv: {
type: 'string'
},
id: {
type: 'int',
default: '0'
},
width: {
type: 'number',
default: 1
},
height: {
type: 'number',
default: 1
},
depth: {
type: 'number',
... |
function getNonZeroRandomNumber() {
var random = Math.floor(Math.random() * 199) - 99;
if (random == 0) return getNonZeroRandomNumber();
return random;
}
function randomIntFromInterval(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min);
}
function randomBetween(min, max) {
if (m... |
/* eslint-disable camelcase */
require('dotenv').config();
const _ = require('lodash');
const Promise = require('bluebird');
const { expect } = require('chai');
const eventToPromise = require('event-to-promise');
const { BU } = require('base-util-jh');
const config = require('./config');
const Main = require('../../.... |
/*!
* evolutility-server-node :: crud.js
* CRUD (Create, Read, Update, Delete) end-points
*
* https://github.com/evoluteur/evolutility-server-node
* (c) 2019 <NAME>
*/
const dico = require('./utils/dico'),
ft = dico.fieldTypes,
sqls = require('./utils/sql-select'),
query = require('./utils/query'),
... |
var Emitter = require('./emitter'),
Observer = require('./observer'),
config = require('./config'),
utils = require('./utils'),
Binding = require('./binding'),
Directive = require('./directive'),
TextParser = require('./text-parser'),
DepsParser = require('./deps-pa... |
import React, { useState, useEffect } from "react";
import { useMoralis } from "react-moralis";
import shineLogoV7 from "assets/illustrations/shine-logo-v7.png";
import ProgressBar from "react-bootstrap/ProgressBar";
import PulseLoader from "react-spinners/PulseLoader";
import { MobileDiv, Button, Card, Text } from "co... |
const Tree = require('./trees');
const Polygon = require('./math/Polygon3');
const Plane = require('./math/Plane');
const OrthoNormalBasis = require('./math/OrthoNormalBasis');
const CAG = require('./CAG'); // FIXME: for some weird reason if CAG is imported AFTER frompolygons, a lot of things break???
const Propertie... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.