text stringlengths 5.97k 41.2k |
|---|
var directed = false;
let matrix2;
function checkDirection() {
var switchE = document.getElementById("directedSwitch");
if (switchE.checked) {
directed = true;
console.log("Usng Directed Edges");
} else {
directed = false;
console.log("Using Undirected Edges");
}
}
var directedSwitch = document.... |
/*
* The PenBlu framework is free software. It is released under the terms of
* the following BSD License.
*
* Copyright (C) 2015 by PenBlu Software (http://www.penblu.com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... |
const remote = require('electron').remote;
const dialog = remote.dialog;
const fs = require('fs');
const session = remote.session;
const needle = require('needle');
const prompt = require('dialogs')(opts={});
const mkdirp = require('mkdirp');
const homedir = require('os').homedir();
const sanitize = require("sanitize-... |
import React, { Component } from 'react';
import styled, { css } from 'styled-components';
import { getRanking, isValidFeedItem, enhanceFeedItem } from './api';
import { pageView } from './Analytics';
import { getFeed } from './Feed';
import {
Entity,
EntityName,
IfIsActiveEntity,
IfIsOwnedByCurrentUser,
IfA... |
var ReturnTo = {};
ReturnTo.Storage = {
// Generated using ReturnTo.Storage::UUIDv4
Signatures: {
Entry: "e92683db-f4b7-47e9-a44d-4f1d4fa1901d",
Setting: "c573e4b0-94a3-4f08-89ae-0461af00adc6"
},
PromiseRejected: reason => {
console.log("Promise rejected: " + reason);
},
... |
const antlr4 = require('antlr4/index')
const iStar2Lexer = require('./iStar2Lexer')
const iStar2Parser = require('./iStar2Parser')
const fs = require('fs')
const { Visitor, layout } = require('./Visitor');
function levelChild(goalmodel, actor) {
var n = actor.nodes.length
var levels = []
var ops = []
for (i in act... |
/// The data structure for documents. @nonabstract
export class Text {
/// @internal
constructor() { }
/// Get the line description around the given position.
lineAt(pos) {
if (pos < 0 || pos > this.length)
throw new RangeError(`Invalid position ${pos} in document of length ${this.le... |
// Namespaced isEmpty handlebars helper for testing if
// a given input is does not contain additional values
Handlebars.registerHelper('bugs-isEmpty', (input) => {
if (!input) {
return true;
}
if (input instanceof Array) {
return input.length < 1;
}
if (input instanceof Set) {
return input.size ... |
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(gene... |
//#region Scoped css
function scope(scope, css) {
css = css.replace(/\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*\/+/g, "")
const regex = /([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g
let m
let replaceList = []
while ((m = regex.exec(css)) !== null) {
if (m.index === regex.lastIndex) {
regex... |
'use strict';
// Copyright (c) 2018 Software. All Rights Reserved.
var __assign =
(this && this.__assign) ||
function () {
__assign =
Object.assign ||
function (t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s)
if (... |
/**
*
* klf200 adapter
*
*
* file io-package.json comments:
*
* {
* "common": {
* "name": "klf200", // name has to be set and has to be equal to adapters folder name and main file name excluding extension
* "version": "0.0.0", // use "S... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var isWhat = require('is-what');
var defaultConfig = {
setter: 'set',
getter: 'get',
deletor: 'delete',
vuexEasyFirestore: false,
ignorePrivateProps: true,
ignoreProps: [],
pattern: 'simple'
};
/* eslint-disable... |
function freshBattleStatus() {
return {
'armorReduction': 0,
'dealtPoisonDamage': 0,
'poisonDamage': 0,
'poisonRate': 0,
'crippled': 0
}
}
/**
* Returns the data used to create a new game.
*/
function newGameData() {
var data = {
'area': 'shore',
'... |
/* -------------------------------
VARIABLE SETUP
------------------------------- */
var currentPosition,
opponentPosition,
currentMove,
selectedMove,
AImove,
_AIdefense,
_AIoffense,
AI_offense_percent = 50,
AI_defense_percent = 50,
gameOver = false;
// Cre... |
import { Badge } from "@material-ui/core";
import { withStyles } from "@material-ui/styles";
import { makeStyles } from "@material-ui/core";
import { marked } from "marked";
import { useEffect } from "react";
import { useState } from "react";
import { CONSTANTS } from "../../../Utils/Constants";
import Theme from "../.... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* reviewsampler API s... |
var currency ="KSh. ";
var baseUrl = "http://localhost/primepos/index.php/";
var iconUrl= 'http://localhost/primepos/assets/images/icons/warning.png';
var successiconUrl= 'http://localhost/primepos/assets/images/icons/success.png';
//SEARCH THE STOCK TABLE
$(document).ready(function(){
$("#searchsalesite... |
/**
* @preserve Copyright (c) 2013 <NAME> and <NAME>
* Use of this source code is governed by an MIT-style license that
* can be found at
* https://github.com/davidben/webathena
*/
// Only place in first file of each bundle.
"use strict";
var Crypto = {};
Crypto.randomNonce = function() {
var word = sjcl.ran... |
const fs = require('fs');
const worker = require('worker');
const factory = require('@graphy/core.data.factory');
const ttl_write = require('@graphy/content.ttl.write');
const sparql_results_read = require('@graphy-dev/content.sparql_results.read');
const endpoint = require('../class/endpoint.js');
let h_prefixes = {... |
"use strict";
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
/**
* Copyright 2013-2014, 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.
*
* @providesModule ... |
export const AND = 'and';
export const EQUALS = '=';
export const GREATER_THAN = '>';
export const GREATER_EQ = '>=';
export const IN = 'in';
export const LESS_EQ = '<=';
export const LESS_THAN = '<';
export const NOT_IN = 'NOT_IN';
export const NOT_STARTS_WITH = 'NOT_SW';
export const OR = 'or';
export const STARTS_WI... |
function push(result, actual, expected, message) {
message = message || (result ? "okay" : "failed");
expected = QUnit.jsDump.parse(expected);
actual = QUnit.jsDump.parse(actual);
var output = message; + ', expected: ' + expected;
if (actual != expected) {
result = false;
output += "\nexpected: "+ expected;... |
const extend = require('extend')
const CliCommandOptions = require('./CliCommandOptions')
const CliContext = require('./CliContext')
const {
cli_help_formatter,
print_cli_argument_aliases,
} = require('./cli_help_formatter')
const ColumnPrinter = require('./textops/column_printer')
const CliArgument = require('./Cl... |
// Copyright 2018-2021, University of Colorado Boulder
/**
* ScreenView for game screens where the objective is to build specific fractions.
*
* @author <NAME> <<EMAIL>>
*/
import BooleanProperty from '../../../../axon/js/BooleanProperty.js';
import DerivedProperty from '../../../../axon/js/DerivedProperty.js';
i... |
/*
** Module: luftdaten-data-raw
**
**
** node index luftdaten-data-archive 2017-08-30
**
*/
// **********************************************************************************
"use strict"; // This is for your code to comply with the ECMAScript 5 standard.
var request = require('request');
var fs = require('fs')... |
/*Copyright 2015-2019 <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, software
dist... |
var util = require('util');
var redisHandler = require('./RedisHandler.js');
var logger = require("dvp-common/LogHandler/CommonLogHandler.js").logger;
var dbConn = require('dvp-dbmodels');
var EventEmitter = require('events').EventEmitter;
var resourceService = require('./services/resourceService');
var IterateData ... |
import { html, PolymerElement } from "@polymer/polymer/polymer-element.js";
import { setPassiveTouchGestures } from "@polymer/polymer/lib/utils/settings.js";
import { updateStyles } from "@polymer/polymer/lib/mixins/element-mixin.js";
import { afterNextRender } from "@polymer/polymer/lib/utils/render-status.js";
import... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _reactIs = require("react-is");
var _lodash = _interopRequireDefault(require("lodash.d... |
const _ = require('../utils/under-dash');
const colCache = require('./../utils/col-cache');
const Range = require('./range');
const Row = require('./row');
const Column = require('./column');
const Enums = require('./enums');
const Image = require('./image');
const Table = require('./table');
const DataValidations = r... |
/**
* Copyright 2016, 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 conditi... |
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.hasOwnProperty(p)) d[p] =... |
// # renderer.js
"use strict";
const three = require('three');
const _ = require('lodash');
const {
isNumber, isFunction, listenToMixin, xor, noop
} = require('./util');
const Scene = require('./scene');
const OrbitControls = require('./orbit-controls');
// Some shared stuff, such as the raycaster & mouse vector.
con... |
import _ from "lodash";
import moment from "moment";
import Icon from 'react-native-vector-icons/FontAwesome'
//import 'moment/locale/pt-br'
//moment.locale('pt-br');
import PropTypes from "prop-types";
import React, { Component } from "react";
import {
Animated,
DatePickerIOS,
Keyboard,
Modal,
NativeModules,... |
import {Snackbar, Typography} from '@mui/material';
import {withStyles} from '@mui/styles';
import {AttachFile, CloudUpload} from '@mui/icons-material';
import clsx from 'clsx';
import PropTypes from 'prop-types';
import * as React from 'react';
import {Fragment} from 'react';
import Dropzone from 'react-dropzone';
imp... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireWildcard(require("react"));
var _d = require("d3");
var _propTypes = _interopRequireDefault(require("prop-types"));
require("./style.css");
var _customHooks = _interopRequireDefault... |
const exposes = require('../lib/exposes');
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
const tz = require('../converters/toZigbee');
const ota = require('../lib/ota');
const constants = require('../lib/constants');
const reporting = require('../lib/reporting');
cons... |
function PrayTimes(method) {
//------------------------ Constants --------------------------
var // Time Names
timeNames = {
imsak: "Imsak",
fajr: "Fajr",
sunrise: "Sunrise",
dhuhr: "Dhuhr",
asr: "Asr",
sunset: "Sunset",
... |
import chai from 'chai'
import chaiAsPromised from 'chai-as-promised'
import Liquid from '../../src/index'
chai.use(chaiAsPromised)
const liquid = new Liquid()
const expect = chai.expect
const ctx = {
date: new Date(),
foo: 'bar',
arr: [-2, 'a'],
obj: {
foo: 'bar'
},
func: function () {},
posts: [{
... |
// "Global state" av våran data.
let rawData = [];
let colorCounts = {
red: [],
green: [],
blue: []
}
let barRenderCounts = {
red: [],
green: [],
blue: []
}
// Används för att processera data och rita bars
let binSize = 16;
// För resize eventlistner
let hasBeenDrawn = false;
// Bestämmer om histogram ell... |
const question = document.querySelector('#question');
const choices = Array.from(document.querySelectorAll('.choice-text'));
const progressText = document.querySelector('#progressText');
const scoreText = document.querySelector('#score');
const progressBarFull = document.querySelector('#progressBarFull');
let currentQ... |
/**
* Original program by <NAME>
* https://www.khanacademy.org/cs/i/5522928629252096
*/
// jshint ignore: start
const NAME = 'Project Samaritan Bootstrap',
VERSION = '0.0.1',
AUTHOR = 'Aliquis';
/** Magic variables:
* __requirements__:
* An object of requirements to be imported and passed into the sec... |
// (c) <NAME> 2020
'use strict'
import * as Places from './query/places.js?cachebust=07819';
import * as Colors from './util/colors.js?cachebust=07819';
import * as Numbers from './util/numbers.js?cachebust=07819';
import * as Text from './util/text.js?cachebust=07819';
let SVGs = {};
let Count = 0;
let Animate;
exp... |
import React, { useEffect, useContext, useState, useRef } from "react";
import { Grid } from "@material-ui/core";
import { useSwipeable } from "react-swipeable";
import PlayPauseButton from "./PlayPauseButton";
import NextButton from "./NextButton";
import PreviousButton from "./PreviousButton";
import MusicArt from ".... |
var cols = 5;
var frameCount = 0;
var canvasElement, detailsDiv;
var canvasWidth, canvasHeight;
var firstColumn;
const columnTemplate = { widgetGap: 8, widgetHeight: 30 };
const styles = { read: '#39D', write: '#5D5' };
const loadTime = Date.now();
const cursor = {};
const INPUTS = ["i", "inputs", "input", "consumes",... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... |
var api = {
submit(data) {
var fullHeaders = {}
fullHeaders["Content-Type"] = "application/json"
fullHeaders["X-CSRFToken"] = getCookie("pretalx_csrftoken")
let options = {
method: "POST",
headers: fullHeaders,
credentials: "include",
body: JSON.stringify(data),
}
retu... |
import React, { useState, useEffect } from 'react';
import BlueArrow from '../../assets/img/BlueArrow.png';
import ErrorBoundary from './../../helper/ErrorBoundary';
import { Link } from 'react-router-dom';
import { toUpper } from 'lodash';
import { ConfirmParent, FailedBooking } from './wrapper/GetBookingStyle';
// im... |
/*
* Copyright (c) 2019 InterDigital Communications, Inc
*
* 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 ap... |
var start_time="";
var end_time="";
var remarks="";
var total_time=0;
var accuracy=0;
var average_speed=0;
var final_score=0;
var temp_attempt=0;
var wrong=0;
var total_wrong=0;
$(document).ready(function() {
"use strict";
set_start_time();
$('.bg').css("background-image", "url('../../assets/imag... |
/*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
import Vue from "vue";
import Vuex from "vuex";
import swal from "sweetalert2";
import createPersistedState from "vuex-persistedstate";
import { SkynetClient, genKeyPairFromSeed } from "skynet-js";
import { Ed25519Provider } from "key-did-provider-ed25519";
import { randomBytes } from "@stablelib/random";
import Cerami... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var aureliaRouter = require('aurelia-router');
var aureliaMetadata = require('aurelia-metadata');
var aureliaPath = require('aurelia-path');
var aureliaTemplating = require('aurelia-templating');
var aureliaDependencyInjection = require('aur... |
const Discord = require('discord.js');
var Jimp = require('jimp');
const client = new Discord.Client();
const ramtid = 259943329028898816;
const jclid = 214869811547734016;
const ramtpunished = "318299184757211136";
const randomid = 156390113654341632;
const randomaltid = 318305360823844865;
const moderator = 3... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { InputGroup, Button } from 'reactstrap';
import moment from 'moment';
import pick from 'lodash/pick';
import {
inputType,
isoDateFormat,
} from 'availity-reactstrap-validation/lib/AvValidator/utils';
import { AvInput } from 'avail... |
import React from 'react';
import classNames from 'classnames';
import { FormattedMessage, FormattedHTMLMessage, injectIntl, intlShape, defineMessages } from 'react-intl';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Dialog from '@material-ui/core/Dialog';
import Dia... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: 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]; } } }... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
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)) { tar... |
"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 (reso... |
var btn_ir_agregar = $('#btn_agregar_producto');
var base_url = $('#base_url').val();
var vista_principal = $('#main-section');
var btn_info = $('#btn_info_add_prod');
var btn_precio = $('#btn_precio_add_prod');
var btn_cantidades = $('#btn_cantidad_add_prod');
var btn_imagenes = $('#btn_imagenes_add_prod');
//F... |
"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)... |
var Filtering_Running = "No";
jQuery(function(){ //DOM Ready
URPSetClickHandlers();
URPSetKeyStrokeCounters();
URPSetKarmaHandlers();
URPSetStarHandlers();
URPSetFilteringHandlers();
URPSetPaginationHandlers();
URPSetToggleHandlers();
URPInfiniteScroll();
URPFormSubmitHandler();
... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
function stringToDate(_date,_format,_delimiter){
const months = [ "January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December" ];
const days = ["Sunday","Monday", "Tuesday","Wednesday","Thursday","Friday","Saturday"]
const formatLowerCase=_format.toLower... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
import React, { useEffect, useRef, useState } from 'react';
import {
styled,
Card,
Typography,
Avatar,
Stack,
Button,
Box,
Modal,
Divider,
TextField,
IconButton,
Grid,
Accordion,
AccordionDetails,
AccordionSummary
} from '@mui/material';
import { ExpandMore } from '@mui/icons-material';
im... |
/*
* Copyright (C) 2015 Glyptodon LLC
*
* 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, publi... |
$(document).ready(function () {
////console.log("Document is ready!");
////console.log($("body"));
window.Twitch.ext.onAuthorized(auth => {
//console.log("Twitch verified!");
authCode = auth;
console.log("This auth video!", auth);
})
//window.Twitch.ext.actions.requestIdShare... |
/*!
* @nuxt/cli v2.15.3 (c) 2016-2021
* Released under the MIT License
* Repository: https://github.com/nuxt/nuxt.js
* Website: https://nuxtjs.org
*/
'use strict';
const utils = require('@nuxt/utils');
const config = require('@nuxt/config');
const path = require('path');
const exit = require('exit');
const chalk =... |
const stripeCurrencies = [
{ currency: 'USD', currency_symbol: '$', multiplier: 100, type: 'STRIPE' },
{ currency: 'AED', currency_symbol: 'د.إ', multiplier: 100, type: 'STRIPE' },
{ currency: 'AFN', currency_symbol: '؋', multiplier: 100, type: 'STRIPE' },
{ currency: 'ALL', currency_symbol: 'L', multiplier: 10... |
//This provides a set of general utility classes.
//class Utility provides miscelaneous stateless functions
//class FifoBuffer is a buffer of bytes in a fifo
/* global sys */
/* exported Utility*/
var Utility = function () {
var Api={};
function spanify(value) {
if (value && typeof value === "object") {
var re... |
'use strict';
var Promise = require('bluebird');
const EndianBuffer = require('./EndianBuffer');
const fs = Promise.promisifyAll(require('fs'));
const envvarReplacer = require('./envvarReplacer');
const SLAP_REQUEST_TYPES = {
THREAD_LIST: 0,
GET_THREAD_INFO: 1,
SUSPEND_THREAD: 2,
RESUME_THREAD: 3,
GET_THRE... |
/**
* Variables
*/
var constructorTemplatesShorted = {};
let $textareaProto = $('#css-code-result').clone().removeAttr('id').addClass('css-code-result');
/**
* Functions
*/
// Доступность хранилища
function storageAvailable(type) {
try {
var storage = window[type], x = '__storage_test__';
storage.setItem(x, x)... |
/*
* Logic js for Dashboard pages.
*
* By Tim.Liu 2012.8 TaTaUFO.com
*/
var dashboardRouter = null;
var rating;
var payflag=false;
$(function(){
// actions for popWindowss
$("#popCont").on("click", ".popClose", function(e){
$('#testchat').remove();
hideWindow();
});
// actions for page setup
... |
/* eslint-disable */
/**
调用栈分析器
为了更好的分析代码效率和优化效率,开发了这个调用栈信息耗时的工具
该工具比较占用cpu(也不是很占用)建议上线后关闭此功能)只要 1 不生效,就没性能影响
使用方式
1.挂载
module.exports.loop=require("这个js").warpLoop(main); // main就是主函数的loop
// module.exports.loop=main;
2.修改挂载
修改挂载看下面挂载
3.修改变量
saveSum=300; // 保存的帧数
// printTick=10; //... |
/*
Cisco Webex Bot to demonstrate the Webex Teams Card samples
This bot is built on the webex-node-bot-framework
https://github.com/WebexSamples/webex-node-bot-framework
This framework provides many conveniences for building
a Webex Teams bot in node.js and all functions with names
like bot.* and framework.* are proc... |
const Loot = require('../data/loot.js');
const Random = require('../classes/random.js');
const Item = require('../classes/item.js');
const DB = require('../utils/db.js');
const updateUTIL = require('../utils/update.js');
const userUTIL = require('../utils/user.js');
class Exploration {
static STORY_CHANCE = 0.15;
... |
"use strict";
const plotColset = [
/*0*/"#E41A1C","#377EB8","#4DAF4A","#984EA3","#FF7F00","#FFF000","#A65628","#F781BF","#999999",
/*9*/"#66C2A5","#FC8D62","#8DA0CB","#E78AC3","#A6D854","#FFD92F","#E5C494","#B3B3B3",
/*17*/"#8DD3C7","#FFFFB3","#BEBADA","#FB8072","#80B1D3","#FDB462","#B3DE69","#FCCDE5","#D9D9D9","#BC80... |
import Web3 from 'web3';
import RNS from '@rsksmart/rns';
import { hash as namehash } from 'eth-ens-namehash';
import { deflateSync } from 'react-zlib-js';
import cbor from 'cbor';
import { validateBytes32 } from '../../../validations';
import {
requestResolver, receiveResolver, requestSetResolver, receiveSetResolve... |
'use strict';
class Point{
constructor(x,y){
this.x = x;
this.y = y;
}
add(x,y){
this.x += x;
this.y += y;
}
equals(point){
if(point.x == this.x && point.y == this.y){
return true;
}
return false;
}
}
function randomTetrisPie... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.styles = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _obje... |
/**
* @package bitrix
* @subpackage vote
* @copyright 2001-2019 Bitrix
*/
import 'main.polyfill.core';
BX.namespace('BX.Vote');
class answer {
constructor(id, data)
{
this.id = null;
this.params = {
isNew : true,
isSaved : false
};
if (id > 0)
{
this.params.isNew = false;
this.id = id;
}... |
/*
if (typeof define !== 'function') {
var define = require('amdefine')(module);
};
define(["../../../core/jsgui-lang-enh", 'pg', '../abstract/core/all', '../../../resource/core/resource', '../dbi-postgres'],
function(jsgui, pg, Abstract, Resource, DBI_Postgres) {
*/
var jsgui = require('../../../core/jsgui-lang-... |
$(function () {
// $("#sltXa").select2({
// placeholder: "-- Chọn xã --",
// allowClear: true,
// focus: open
// });
$('#sltYear').datepicker({
format: 'dd-mm-yyyy',
autoclose: true
});
var insert = true;
insertUpdate(1);
autocompleteSearch("txtSearchNH");
$... |
/*
The colorthief module does not seem to be compatible with
yarn v3 due to how it references github sub dependencies
This file is from:
https://github.com/lokesh/color-thief/blob/master/dist/color-thief.mjs
Importing it as an ES6 module seems to be what is recommended in the docs:
https://lokeshdhakar.com/projec... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _assert = _interopRequireDefault(require("assert"));
var _path = _interopRequireDefault(require("path"));
var _nullthrows = _interopRequireDefault(require("nullthrows"));
var _utils = require("@parcel/utils... |
(function($) { "use strict";
$(document).ready(function(){"use strict";
//Scroll back to top
var progressPath = document.querySelector('.progress-wrap path');
var pathLength = progressPath.getTotalLength();
progressPath.style.transition = progressPath.style.WebkitTransition = 'none';
progressPath.styl... |
"use strict";
/** @jsx jsx */
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) i... |
import { Vector4, Vector3, Vector2 } from "../../Maths/math.vector";
import { Color4 } from '../../Maths/math.color';
import { Mesh } from "../mesh";
import { VertexData } from "../mesh.vertexData";
import { Scene } from "../../scene";
import { Axis } from '../../Maths/math.axis';
VertexData.CreateCylinder = function (... |
function vibrate(){
window.navigator.vibrate(500)
}
$("#stick").on("click tap touch touchmove touchend touchstart mousedown", function( event ) {
event.stopPropagation();
});
$("#editMenu").on("click tap touch touchmove touchend touchstart mousedown", function( event ) {
event.stopPropagation... |
const create = require('./helpers/create')
const tape = require('tape')
tape('hash copy', function (t) {
const a = create()
a.ready(function () {
const b = create(a.key)
a.append(['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'], function () {
a.proof(0, { hash: true }, function (err, proof) {
... |
// TOGGLE enable-disable textures
var textureAttive = true;
var selectWorld;
var musicOn = true;
/* selectWorld legenda:
0 = land
1 = mars
2 = dark
*/
document.getElementById("Landscape").onclick = function (event) {
selectWorld = 0;
console.log("User selected Landscape-Earth : ", selectWorld)... |
#!/usr/bin/env node
require('dotenv').config();
const fs = require('fs');
const path = require('path');
const branchName = require('current-git-branch');
const package = require('../../package.json');
const synthetixPackage = require('synthetix/package.json');
const figlet = require('figlet');
const levenshtein = req... |
/*:
-------------------------------------------------------------------------------
@title Equip Slots Core
@author Hime --> HimeWorks (http://himeworks.com)
@date Apr 15, 2016
@version 1.5
@filename HIME_EquipSlotsCore.js
@url http://himeworks.com/2015/11/equip-slots-core/
If you have any questions or concerns, you ... |
'use strict';
var Util = require('../../../utils/Util.js').Util;
var JSUtils = require('../../../utils/jsutils.js').JSUtils;
var DU = require('../../../utils/DOMUtils.js').DOMUtils;
var PegTokenizer = require('../../tokenizer.js').PegTokenizer;
var defines = require('../../parser.defines.js');
var Sanitizer = require(... |
import { effect, style, insert, spread, createComponent, delegateEvents, classList, mergeProps, dynamicProperty, setAttribute, setAttributeNS, addEventListener, Aliases, PropAliases, Properties, ChildProperties, DelegatedEvents, SVGElements, SVGNamespace } from 'solid-js/web';
var attrRE, lookup, parseTag, pushComment... |
"use strict";
var __asyncValues = (this && this.__asyncValues) || function (o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.