text stringlengths 8.5k 48.7k |
|---|
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is dis... |
"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];
})... |
import {Dimensions, StyleSheet, PixelRatio} from 'react-native';
const {width, height} = Dimensions.get('window');
export {height, width};
import COLOR from './colors';
export default StyleSheet.create({
whUndefined: {width: undefined, height: undefined},
w25: {width: 25},
w50: {width: 50},
w55: {width: 55}... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
/* Graph */
var GRAPH_DRAW_PARENTS = [],
GRAPH_DRAW_QUEUE = [],
GRAPH_DRAW_TIMEOUTS = {},
GRAPH_CONTROL_LOCK = false,
GRAPH_CONTROL_TIMEOUT = null,
$graphTemplate;
function graphDraw(graph, postpone, delay, preview) {
var graphNew;
postpone = typeof postpone == 'boolean' ? postp... |
/**
* Created by NotePad on 21.02.2019.
*/
var toSolveInExample = [
[5, 3, 4, 6, 7, 8, 9, 0, 0],
[6, 7, 2, 1, 9, 5, 3, 4, 8],
[1, 9, 8, 3, 4, 2, 5, 6, 7],
[8, 5, 9, 7, 6, 1, 4, 2, 3],
[4, 2, 6, 8, 5, 3, 7, 9, 1],
[7, 1, 3, 9, 2, 4, 8, 5, 6],
[9, 6, 1, 5, 3, 7, 2, 8, 4],
[2, 8, 7, 4, 1, 9, 6, 3, 5],
[3, 4, 5,... |
/* eslint-disable max-len */
import { getDecimalDefinition } from './Quantities';
/**
* Class defining individual currency properties. Currency objects normally should be
* accessed via {@link Currencies} by their 3 letter currency code.
* Currency objects are immutable.
* @class
*/
export class Currency {
c... |
/*$Id$*/
fnPausePlay = function(){
var audio = this.parentNode.parentNode;
if(this.className == "playBtn"){
var loop = false;
if(audio.native){
if(audio.audio.getAttribute('loop')){
loop = true;
audio.audio.removeAttribute('loop');
}
... |
import Base from '../../Core/Base.js';
import WalkHelper from '../../Core/helper/WalkHelper.js';
/**
* @module Scheduler/util/RectangularPathFinder
*/
/**
* Class which finds rectangular path, i.e. path with 90 degrees turns, between two boxes.
* @private
*/
export default class RectangularPathFinder extends Bas... |
// Global variables and init
var full_attribution_list = [];
var soundscape_compleixty = 40;
var soundscape_complexity_interval = 3000;
var query_page_size = 15;
var play_timers = [];
var am = undefined; // Audio manager
var currentlyPlayedSounds = [];
var incomingSounds = [];
var incomingSoundsCopy = [];
var evolutio... |
async function goUntil(f) {
while (true) {
await go();
const api = await currentStackFrame();
const ctx = await getThreadContext();
if (f && f.then && (await f(api, ctx))) {
return { api, ctx };
} else if (f && f(api, ctx)) {
return { api, ctx };
... |
//////////////////////////////////////////////////////////////////////////
// Setting the slide down menu options and functionality
//////////////////////////////////////////////////////////////////////////
function openNav() {
document.getElementById("menu").style.height = "90%";
document.getElementById('menuO... |
const key_file_name = './../datas/private-db-key.json';
const firebase = require('firebase-admin');
const serviceAccount = require(key_file_name);
const config = require('./../datas/config.json');
const crypto = require("crypto");
const fs = require("fs");
const path = requ... |
'use strict';
// contains common operations to the multiple parts of the domManipulator module
var kernel = require('../../kernel');
var individualCaches = !kernel.feDebug();
var allowedJs;
var forceCaptcha;
var lang;
var db = require('../../db');
var threadsCollection = db.threads();
var postsCollection = db.posts();... |
const mongoose = require('mongoose');
const valueType = { value: { type: String, trim: true, default: '' } }
const idType = { value: { type: String, trim: true, default: '' }, attr: { schemeID: { type: String, trim: true, default: '' } } }
const numberValueType = { value: { type: Number, default: 0 } }
const boolean... |
var TYPE_TEXT = 0;
var TYPE_RECTANGLE = 1;
var TYPE_IMAGE = 2;
var TYPE_VIDEO = 3;
var TYPE_HTML = 4;
function Shape(data, parentSlide){
this.parent = parentSlide;
this.workspace = parentSlide.workspace;
var _this = this;
['id', 'pos', 'rot', 'size', 'type', 'meta'].forEach(function(v){
_this[v] = data[v];
});
... |
const parse = require('./parser').parse;
const mnemonics = {
'adc abs' : { code: 0x6d, size: 3 },
'adc abx' : { code: 0x7d, size: 3 },
'adc aby' : { code: 0x79, size: 3 },
'adc imm' : { code: 0x69, size: 2 },
'adc izx' : { code: 0x61, size: 2 },
'adc izy' : { code: 0x71, size: 2 },
'adc zp' : { code: 0x... |
function paperFilter (item) {
var r = papersPrint.includes(item.id);
/*if(r)
updateYear(item.year)
*/return r;
};
function updateYear(y){
var change = false;
if(y<minYear){
minYear = y
change = true
}
if(y>maxYear){
maxYear = y
change = true
}
... |
var id = getUrlParameter('n')
class Adjustment extends React.Component {
constructor(props) {
super(props)
this.state = {
'loaded': false,
'data': {'status': 'Draft'},
'edit_mode': false,
'currentUser': {}
}
this.handleInputCh... |
var net = require('net');
var WebSocketServer = require('websocket').server;
var http = require('http');
//var mdsipNet = require('net');
var clients = {};
var incompleteData = {};
var pendingDataLen = {};
var currentData = {};
var initialized = {};
var msgId = {};
var connectionCount = 1;
var resolves = {... |
const {
createThumbnails,
createLargeImage,
sleep,
getMaxDimensions,
niceExec,
downloadFile,
getImageMetadata,
createAudioThumbnail,
getArgs,
createGifThumbnails,
createVideoThumbnailsFromGif,
createVideoThumbnailsFromVideo,
getVideoOrGifDuration,
getVideoWidthHeight,
getDisplayUri,
crea... |
var bHelpNSS = "BoxHelpers";
var bHelpNS = namespace(bHelpNSS);
bHelpNS.ContainedWorld = function(intervalRate, adaptive, width, height, scale, yGravity, sleep, callbacks ) {
var b2Vec2 = Box2D.Common.Math.b2Vec2;
var b2BodyDef = Box2D.Dynamics.b2BodyDef;
var b2Body = Box2D.Dynamics.b2Body... |
var Alexa = require('alexa-sdk');
var speechOutput = ' ';
var reprompt = ' ';
var cardTitle = ' ';
var cardContent = ' ';
var imageObj = {};
var check = ' ';
exports.handler = function(event, context, callback) {
var alexa = Alexa.handler(event, context);
alexa.registerHandlers(handlers);
alexa.execute(... |
/**
* @abstract
* @class
* Base class for Vector Object
*/
class Vector {
/**
* @function clone
* @memberof Vector
* @static
* @param {Vector} vec - A vector's instance to clone from
* @returns {Vector} A cloned version of vec
* Creates a seperate clone of another vector
*/
... |
// L7mp: A programmable L7 meta-proxy
//
// Copyright 2019 by its authors.
// Some rights reserved. See AUTHORS.
//
// 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, inc... |
var setupHtmlForLinkingPhotosToHabitats, setupDroppableItemsForLinkingPhotosToHabitats,setupSubSampleAttrsForHabitat, createNewHabitat, setupAjaxPreSubmissionObject;
var setupAjaxPageSaving, setupClickEvents, inArray, current, next, hideOccurrenceAddphoto, disableTabContents,makeImageRowOrSpareRow,createNewHabitat;
jQ... |
/**
* @file
* Javascript file for islandora_mets_editor
*
*/
(function ($) {
var tmptmp = 43.3;
var auto_naming_value = '';
var auto_numbering = false;
jQuery.browser = {};
(function () {
jQuery.browser.msie = false;
jQuery.browser.version = 0;
if (navigator.userAge... |
var scene, camera, renderer, you, ennemy, line1, x_ennemy, z_global, y_ennemy, planeBuffer, plane, planeMat, light;
var bullet_x = 0.1; var bullet_y = 0.8; var bullet_z = 0.01;
var ennemy_large_x = 1; var ennemy_large_y = 0.5; var ennemy_large_z = 0.3; var ennemy_large_x2 = 2;
var you_large_x = 1; var you_large_y = 0.5... |
const discord = require("discord.js");
const config = require("./config.json")
const mongoose = require("mongoose");
const starlix = require("./models/starlix")
const Client = new discord.Client();
Client.commands = new discord.Collection();
const disbut = require('discord-buttons');
const { readdirSync } = requi... |
// Utility function to calculate distance between two points
function distance(location1, location2) {
const R = 6371e3;
const lat1 = location1.lat * Math.PI / 180; // lat1, lat2 in radians
const lat2 = location2.lat * Math.PI / 180;
const latDiff = (location2.lat - location1.lat) * Math.PI / 180;
c... |
/*uncommeny for project nav and lint - comment for run*/
//import * as twgl from './node_modules/twgl.js/dist/4.x/twgl-full.js';
tdl.require('tdl.buffers');
const tdlfps = 'tdl.fps';
const tdlfast = 'tdl.fast';
const tdlfull = 'tdl.fullscreen';
tdl.require(tdlfast);
tdl.require(tdlfps);
tdl.require(tdlfull);
if (!win... |
const ANALYSIS_SERVER_URL = "172.16.58.3" + "/datastream";
const NODE_ID_LENGTH = 64;
// for some strange reason color formats for edges and nodes need to be different... careful!
const EDGE_COLOR_DEFAULT = "#444444";
const EDGE_COLOR_OUTGOING = "#336db5";
const EDGE_COLOR_INCOMING = "#1c8d7f";
const VERTEX_COLOR_DEFA... |
// Global variable declaration
var gEvent='';
var preEvent='';
var saveOpsEvent='';
var previewHtml='';
var previewEvent='';
//Functions declaration starts Here
//this Function used to debug
function showAlert() {
alert("hello");
}
/*
//This function calls at drag
function drag(ev) {
ev.dataTran... |
'use strict';
var _ = require('lodash');
var assert = require('assert');
var From = require('../node/from');
var Select = require('../node/select');
var Table = require('../table');
var Postgres = function() {
this.output = [];
this.params = [];
};
Postgres.prototype._myClass = Postgres;
Postgres.protot... |
// These are the core menu options
// Language, Year and ToC select switcher (mobile)
function handleSelectSwitchers() {
var languageYearSwitchers = document.querySelectorAll('.language-switcher select, .year-switcher select, .table-of-contents-switcher select');
for (var i = 0; i < languageYearSwitchers.length; i... |
/* global alert, confirm, prompt, Option, Worker, chrome */
'use strict'
var async = require('async')
var $ = require('jquery')
var base64 = require('js-base64').Base64
var swarmgw = require('swarmgw')
var csjs = require('csjs-inject')
var QueryParams = require('./app/query-params')
var queryParams = new QueryParams(... |
import * as basic from "../scripts/basics.js";
import * as folder from "./folder.js";
import * as folderPath from "./folderPath.js";
import * as optionMenu from "../scripts/optionMenu.js";
// try to fetch for all-available-video-data is successful send data to eachAvailableVideoDetails function else show error msg
exp... |
/// <reference path="phaser.min.js" />
var SCREEN_WIDTH = 500;
var SCREEN_HEIGHT = 600;
//var SCREEN_WIDTH = window.innerWidth;
//var SCREEN_HEIGHT = window.innerHeight;
var MAP_VELOCITY_X = SCREEN_WIDTH / -2
var GRAVITY_Y = SCREEN_HEIGHT * 2;
var BIRD_WIDTH = 45 * SCREEN_WIDTH / 600;
var BIRD_HEIGHT = BIRD_WIDTH;
var... |
var arrAllShownRecords = facilities = new Array();
var totalRecords = 0;
var formObjects = new Array('cpt_fee_id','cpt4_code');
var multi_select_catagory_loaded=0;
function LoadResultSet(p,f,s,so,currLink,filter){//p=practice code, f=fac code, s=status, so=sort by;
top.show_loading_image('hide');
top.show_... |
/*
LuCI - Lua Configuration Interface
Copyright 2008 <NAME> <<EMAIL>>
Copyright 2008-2018 <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/LIC... |
// game logic
var deviceID = null;
var players = {};
var lasers = [], charges = [];
var now, oob, screenshake;
var firing = false;
var shot = null;
var charged = null;
var charging = null;
var background = new THREE.Color(0x000000);
var motionDnaReady = false;
var LEFT = -24.7,
RIGHT = 24.7,
TOP = -24.7,
... |
var server = "https://" + window.location.hostname + "/janus";
var janus = null;
var sfutest = null;
var opaqueId = "videoroomtest-" + Janus.randomString(12);
//var opaqueId = "screensharingtest-" + Janus.randomString(12);
var myRoomCamera = Number($('#roomNumber').val()); // Demo room
var cameraUserName = null;
var... |
var autoSuggestor; /* Auto Suggestor Variable*/
var consts, gegee_textarea;
var loadTimer = setTimeout(function () {
window.stop();
document.execCommand("Stop");
document.body.innerHTML = "<a href='#' onclick='location.reload();'>Та 30 секундын дотор холбогдож чадсангүй. Дахин ачааллана уу. (Аюулг... |
import { A11yModule } from '@angular/cdk/a11y';
import { PlatformModule } from '@angular/cdk/platform';
import { CommonModule } from '@angular/common';
import * as i0 from '@angular/core';
import { forwardRef, EventEmitter, Directive, Optional, Input, Output, NgModule } from '@angular/core';
import { NG_VALUE_ACCESSOR,... |
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || fals... |
const fs = require('fs');
const path = require('path');
const util = require('util');
const cp = require('child_process');
const ora = require('ora');
const kleur = require('kleur');
const write = require('write');
const read = require('read-file');
const inquirer = require('inquirer');
const emptyDir = require('empty-... |
'use strict';
/*
* Created with @iobroker/create-adapter v1.21.0
*/
// The adapter-core module gives you access to the core ioBroker functions
// you need to create an adapter
const utils = require('@iobroker/adapter-core');
// Load your modules here, e.g.:
const rgbHex = require('rgb-hex'); // Lib to translate rg... |
// JSLint, include this before tests
// var window, cordova, $, document, navigator, jQuery, device, gaPluginResultHandler, gaPluginErrorHandler, serviceUpdateChecker, serviceDynamicWallpaper, toast, onDeviceReady, adjustStyle, createDatabase, updateDatabase, onPause, onResume, pressBackButton, initSettings, setTimeout... |
import React, { Component } from 'react';
import {Tab,Tabs} from 'react-bootstrap'
import Axios from 'axios'
class Aboutme extends Component {
constructor(props) {
super(props);
this.state={
ehtnicity:[
{check:0,name:'Asian'},
{check:0,name:'Black African... |
//define application data
const rootURL = "<URL for backend server>";
const seekerHomeRoute = "/Home/";
const employerHomeRoute = "/Web/Home/";
//dummy data
const genderList =
[
{ text: "Male", value: "male" },
{ text: "Female", value: "female" },
{ text: "Decline To State", value: "none" }
]
const c... |
/* global MB */
'use strict';
// ==UserScript==
// @name mbz-loujine-common
// @namespace mbz-loujine
// @author loujine
// @version 2021.4.1
// @description musicbrainz.org: common functions
// @compatible firefox+greasemonkey
// @license MIT
// @grant none
// @run-at documen... |
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < ... |
//Copyright (c) Autodesk, Inc. All rights reserved
//Autodesk Developer Network (ADN)
//Written by <NAME>
//Permission to use, copy, modify, and distribute this software
//in object code form for any purpose and without fee is hereby granted,
//provided that the above copyright notice appears in all copies and that
//... |
var exorbitant = (function() {
var _scriptDir = import.meta.url;
return (
function(exorbitant) {
exorbitant = exorbitant || {};
var Module = typeof exorbitant !== "undefined" ? exorbitant : {};
var readyPromiseResolve, readyPromiseReject;
Module["ready"] = new Promise(function(resolve, reject) {
readyProm... |
import React, { Component } from 'react';
import { array, string, func } from 'prop-types';
import { compose } from 'redux';
import { connect } from 'react-redux';
import { FormattedMessage, intlShape, injectIntl } from '../../util/reactIntl';
import classNames from 'classnames';
import { lazyLoadWithDimensions } from ... |
/*----------------------------------------------*
* *
* ROTIMI-BEST CHEAT SHEET *
* *
*-----------------------------------------------*/
const { log, error } = console;
const len = x => x.length;
//=======... |
let bellOn = document.getElementsByClassName('toggleBellOff'),
bellOff = document.getElementsByClassName('toggleBellOn'),
checkOn = document.getElementsByClassName('toggleCheckOff'),
checkOff = document.getElementsByClassName('toggleCheckOn'),
ddTarefasOn = document.getElementsByClassName('toggleDdTaref... |
let mayNeedReset = true;
let lastResetTime;
if (localStorage.getItem("lastResetTime") == "undefined")
localStorage.setItem("lastResetTime", "0");
if (localStorage.getItem("matchUpsLogTime") == "undefined")
localStorage.setItem("matchUpsLogTime", "0");
localStorage.getItem("lastResetTime")
? (lastResetTime = local... |
//Copyright (C) 2013 UniShared Inc.
//
//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, distribut... |
/* eslint-disable no-restricted-syntax */
import { useContext, useEffect, useState, useRef } from 'react';
import { Link as RouterLink } from 'react-router-dom';
import { create } from 'ipfs-http-client';
// material
import {
Container,
Typography,
Button,
Stack,
Card,
CardContent,
CardActions,
Box,
... |
let auto;
class SubText {
constructor(txt,trenner) {
this.text = txt;
this.trenner = trenner;
this.IsOpener = false;
this.IsCloser = false;
this.IsAllergene = false;
this.isParent = false;
this.prefix = "";
this.suffix = "";
this.parent = ""... |
import { point } from "@turf/helpers";
export default function findIntersections(coords) {
const arcs = new ArcCollection(coords);
const xy = arcs.findSegmentIntersections();
return dedupIntersections(xy).reduce((prev, apoint, index, array) => {
if (!prev)
prev = {};
prev[`${apoi... |
"use strict";
require("core-js/modules/es.symbol");
require("core-js/modules/es.symbol.description");
require("core-js/modules/es.symbol.iterator");
require("core-js/modules/es.array.concat");
require("core-js/modules/es.array.fill");
require("core-js/modules/es.array.iterator");
require("core-js/modules/es.arra... |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import CheckboxInput from '../../field/input/CheckboxInput';
import NumberInput from '../../field/input/NumberInput';
import PasswordInput from '../../field/input/PasswordInput';
import TextInput from '../../field/inpu... |
import React, { PropTypes } from 'react'
export const Timezones = () => ({
"Africa/Abidjan" : 4800000,
"Africa/Accra" : 4145000,
"Africa/Algiers" : 2590000,
"Africa/Bissau" : 387909,
"Africa/Cairo" : 15071000,
"Africa/Casablanca" : 3211000... |
/******************************************************************************
* Services.js
*
* Author:
* <NAME> (AleksandarDev)
*
* Created on:
* 28.06.2012.
*
*****************************************************************************/
function Services() {
/// <summary>
/// Plugin t... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
var Alloy = require('/alloy'),
Backbone = Alloy.Backbone,
_ = Alloy._;
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
require('/alloy/controllers/' + 'BaseController').apply(this, Array.prototype.... |
const botconfig = require("./botconfig.json");
const Discord = require("discord.js");
const bot = new Discord.Client({disableEveryone: false});
const fs = require("fs");
const { createServer } = require('http')
const got = require('got');
const API_KEY = '<KEY>';
const countries = require('country-data').countri... |
// ██╗ ██╗ █████╗ ████████╗███████╗██████╗ ██╗ ██╗███╗ ██╗███████╗
// ██║ ██║██╔══██╗╚══██╔══╝██╔════╝██╔══██╗██║ ██║████╗ ██║██╔════╝
// ██║ █╗ ██║███████║ ██║ █████╗ ██████╔╝██║ ██║██╔██╗ ██║█████╗
// ██║███╗██║██╔══██║ ██║ ██╔══╝ ██╔══██╗██║ ██║██║╚██╗██║██╔══╝
// ╚███╔███╔╝██... |
// problem
var height, width, problem;
var problem_set;
var problem_id;
// player internal status
var lines;
var next_status = -1;
var is_completed = false;
var UNDECIDED = 0, LINE = 1, BLANK = 2;
// player canvas and its status, constants
var canvas, ctx;
var player_height, player_width;
var dot_size... |
/**
* @author [<NAME>]{@link https://github.com/Itee}
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
*
* @file Todo
*
* @example Todo
*
*/
/* global Itee */
const AppPage = {
template: `
<TContainer orientation="vertical" hAlign="stretch" vAlign="start" expand=true>
... |
import * as SDK from './core.js'
import * as API from './utils.js'
import Storage from './storage.js'
// イベントバス
const EventBus = new Vue();
// SDK 初期化
let _currentSession = null;
const host = getHostName() || location.hostname;
const scopes = [
'serviceDiscovery',
'serviceInformation',
'mediaStreamRecording',
... |
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.type = exports.init = exports.DictTokenizer = exports.DEFAULT_MAX_CHUNK_COUNT_MIN = exports.DEFAULT_MAX_CHUNK_COUNT = void 0;
const tslib_1 = require("tslib");
const mod_1 = require("../mod");
const index_1 = require("../util/index");
... |
/**
* Copyright (c) 2019 Mozilla Inc. All Rights Reserved.
*
* 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 https://mozilla.org/MPL/2.0/.
*/
import * as mat4 from 'gl-matrix/src/gl-matrix/ma... |
/* Constants */
// Page Types
const PAGES = ['startPage', 'trainingPage', 'chattingPage', 'rankingPage', 'governancePage', 'walletPage'];
const START_PAGE = 0;
const TRAINING_PAGE = 1
const CHATTING_PAGE = 2;
const WALLET_PAGE = 5;
// Message Types
const WRITING_TYPE = 0;
const CHATTING_TYPE = 1;
const QNA_TYPE = 2;
c... |
import cytoscape from 'cytoscape';
import cyCola from 'cytoscape-cola';
import cola from 'cytoscape-cola/cola';
// import sigma from 'sigma';
import { map, intersection, union, partition, clone, sortBy, groupBy, find, isEmpty, zipObject } from 'lodash';
import { BIOSHARING_ENTITIES, GRAPH_LAYOUTS, BIOSHARING_COLLECTION... |
/**
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 o... |
/**
* GitBit Bot for Slack !
* @author: <NAME>
*/
// Libraries
var https = require('https');
var BotConfig = require('./config.json');
var Botkit = require("botkit");
var beepboop = require("beepboop-botkit");
function onInstallation(bot, installer) {
if (installer) {
bot.startPrivateConversation({
... |
let dashboard_obj={};
let tools_obj={};
let row_constructor_object={}
// console.log(test_external_variable);
// raw_endpoints_coloumns_data we are getting it directly from html file
let replace_quotes = raw_endpoints_coloumns_data.replace(/"/g,'"');
let endpoints_coloumn_data = JSON.parse(replace_quotes);
let... |
// JpreLoader ------------------
$('#main').jpreLoader({
loaderVPos: '50%',
autoClose: true,
},
function() {
$('#main').animate({"opacity":'1'},{queue:false,duration:700,easing:"easeInOutQuad"});
setTimeout( function(){
$('.panel').slideUp(1000);
},1200);
});
function initCashemir(... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
import Room from './room.js'
import Shader from './shader.js'
import Node from '../boot/node.js'
import Rdt from './rdt.js'
import Liv from './living.js'
import Ai from './ai.js'
import Tool, {DrawArray, Point2, RectangleMark} from './tool.js'
import Tbl from './init-tbl.js'
import Sound from './soun... |
// React
import React, { useEffect, useState } from "react";
// Material UI
import { LinearProgress, Typography, CircularProgress, Button, DialogContent, DialogContentText, DialogActions, List, ListItem, ListItemAvatar, ListItemText, DialogTitle, Dialog } from "@mui/material";
// CSS
import './batalhas.css';
const B... |
const segmentDirectionDeltas = [
[0, -1],
[-1, -1],
[-1, 0],
[-1, 1],
[0, 1],
[1, 1],
[1, 0],
[1, -1],
]
const transformOrigins = [
["center", "bottom"],
["right", "bottom"],... |
/* Tableau des emotes disponibles pour l'utilisateur */
var emotes = {
// regex : image
":-?\\)" : "sourire.png",
":-?\\(" : "triste.png",
"[8B]-?\\)" : "cool.png",
":-?[dD]" : "rigole.png",
";-?\\)" : "clindoeil.png",
":-?[oO]" : "surpris.png",
";-?\\(" : "pleur.png",
":-?[pP]" : "langue.png",
":-?[\\\/]" : ... |
/**
* Track the trade of a commodity from one trader to another
* @param {org.etpcc.NewOrder} order_p - the trade to be processed
* @transaction
*/
function new_order_transaction(order_p) {
/**
* 需要查询的字段
*/
var two_PC = order_p.two_PC;
var extra = order_p;
var factory = getFactory();
... |
/*jshint maxerr:10000*/
/*jshint shadow:false*/
/*jshint undef:true*/
/*jshint browser:true*/
/*jshint devel:true*/
/*jshint unused:true*/
/* global
disable_browser_var_events,
self,
QRCode
*/
let inclusionsBegin;
function loadFileContents(filename,cb,backof... |
const bluebird = require('bluebird')
const PokemonGo = require('../Pokemon-GO-node-api/poke.io')
const s2Geo = require('s2-geometry').S2
const async = require('async')
const Log = require('log')
const logLevel = 'info'
const log = console//new Log('logLevel')
log.debug = (...params) => {
if(logLevel === 'debug') {
... |
/* *
* Experimental Highcharts module which enables visualization of a word cloud.
*
* (c) 2016-2018 Highsoft AS
*
* Authors: <NAME>
*
* License: www.highcharts.com/license
*/
'use strict';
import H from '../parts/Globals.js';
import drawPoint from '../mixins/draw-point.js';
import polygon from '../mixins/pol... |
"use strict";
window.onload = async function load () {
await ExcludeUtil.pInitialise();
Renderer.item.pBuildList({
fnCallback: incItemList => populateTablesAndFilters({item: incItemList}),
isAddGroups: true,
isBlacklistVariants: true
});
};
function rarityValue (rarity) {
switch (rarity) {
case "None": re... |
/** A SCORM API.
* It provides the `window.API_1484_11` object, which SCORM packages use to interact with the data model.
* It tries to save data back to the server first using a websocket, before falling back to an AJAX request.
* If all of that fails, it saves data to localStorage, so the client can resume where t... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MpegParser = void 0;
const Token = require("token-types");
const core_1 = require("strtok3/lib/core");
const initDebug = require("debug");
const Util_1 = require("../common/Util");
const AbstractID3Parser_1 = require("../id3v2/A... |
function ready() {
TimeCost = document.getElementById('time_x_cost');
FLOPsScale = document.getElementById('FLOPsScale');
global_var = {
cpu: {
TFLOPs: EFLOPs_arr_[0]*1e+6,
nodes: nodes_arr_[0]
},
gpu: {
TFLOPs: EFLOPs_arr_[0]*1e+6,
no... |
/* eslint-env browser */
import {jml, $, $$, nbsp} from 'jamilih';
import Templates from './index.js';
import {colors, fonts} from './utils/html.js';
const nbsp2 = nbsp.repeat(2);
const nbsp3 = nbsp.repeat(3);
const getDataForSerializingParamsAsURL = () => ({
form: $('form#browse'),
// Todo: We don't need any def... |
import * as React from 'react';
import Header from './header.component';
import StartTimer from './start-timer.component';
import moment, {duration} from 'moment';
import TimeEntryList from './time-entry-list.component';
import TimeEntryListNotSynced from './time-entry-list-notsynced.component';
import 'moment-duration... |
var _ = require('lodash');
var base = require('../../lib/base');
var csv = require('papaparse');
var path = require('path');
var fs = require('fs');
var YAML = require('yamljs');
var Promise = require('promise');
var Logger = require('../../lib/logger');
var log = Logger('SegmentAnnotatorServer');
var taskFiles = requi... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
var undefined = (void 0); // Paranoia
// Beyond this value, index getters/setters (i.e. array[0], array[1]) are so slow to
// create, and consume so much memory, that the browser appears frozen.
var MAX_ARRAY_LENGTH = 1e5;
// Approximations of internal ECMAScript conversion functions
var ECMAScript = (function() {
... |
var fs = require("fs");
var path = require("path");
var core = exports.core = {
hashColor: function(name) {
if (colorCache[name]) return colorCache[name];
var hash = MD5(name);
var H = parseInt(hash.substr(4, 4), 16) % 360;
var S = parseInt(hash.substr(0, 4), 16) % 50 + 50;
var L = parseInt(hash.substr(8, 4), 16... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.