text stringlengths 3.22k 29.5k |
|---|
var QueryCaCardGrid = Ext.extend(Ext.grid.GridPanel, {
caStore: null,
cardId: null,
constructor: function () {
this.caStore = new Ext.data.JsonStore({
url:Constant.ROOT_PATH + "/core/x/Prod!queryCaCommand.action",
root: 'records',
totalProperty: 'totalProperty... |
/*
* Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/)
*
* 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 requ... |
import { get } from 'object-path';
import { Helmet } from 'react-helmet';
import PropTypes from 'prop-types';
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
import { Link, withRouter } from 'react-router-dom';
import {
clearGranulesFilter,
clearGranulesSearch,
deleteCol... |
/*Preprocess*/
var LANG = ['python', 'scala', 'r', 'julia', 'c++', 'perl'];
var TITLE_WITH_LANG = ['/get_started/', '/tutorials/', '/how_to/', '/architecture/'];
for(var i = 0; i < LANG.length; ++i) {
TITLE_WITH_LANG.push('/api/' + LANG[i] + '/');
}
/*Check whether is API page*/
var API_PAGE = ['python'];
var isAP... |
import logo from './logo.svg';
import './App.css';
import {createVoucher} from "./lib/LazyMinter";
import { initializeApp } from "firebase/app";
import { getAnalytics } from "firebase/analytics";
import {Route,Link, useHistory} from 'react-router-dom';
import { getAuth, createUserWithEmailAndPassword,signOut } from "fi... |
#!/usr/bin/env node --harmony
var program = require('commander')
, packageData
, configData = require('./lib/baseConfig.js')
, utils = require('./lib/utils.js')
, prompt = require('prompt-sync')({
history: require('prompt-sync-history')()
})
, async = require('async')
, chalk = require('chalk')
... |
'use strict';
angular.module('gmall.directives')
.directive('brandsList',['$anchorScroll','Brands','BrandTags','$q','SelectCategory','$timeout','global','$http','Confirm','exception','Stuff',
function($anchorScroll,Brands,BrandTags,$q,SelectCategory,$timeout,global,$http,Confirm,exception,Stuff){
re... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var babel = require('@babel/core');
var pluginutils = require('@rollup/pluginutils');
var helperModuleImports = require('@babel/helper-module-imports');
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.cre... |
'use strict';
var object = require('./util/object');
var digits = require('./util/number').digits;
/**
* math.js factory function.
*
* @param {Object} [config] Available configuration options:
* {String} matrix
* A string 'matrix' (default) or 'array'.
* ... |
import Diagram from 'diagram-js';
// nodeSequencer modules
import autoConnect from './features/auto-connect';
import nodeSequencerConfig from './config';
import coreModule from './core';
import cropping from './features/cropping';
import emissionAnimation from './features/emission-animation';
import emitterAnimation f... |
const cheerio = require('cheerio')
const Europa = require('node-europa')
const mongodb = require('../../../database/mongodb')
const url = require('url')
const sites = {
jwc: {
name: '教务处',
codes: ['00'],
baseUrl: 'http://jwc.seu.edu.cn',
infoUrl: 'http://jwc.seu.edu.cn',
list: [
['#wp_news_... |
/*!
* Copyright 2021 - Swiss Data Science Center (SDSC)
* A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
* Eidgenössische Technische Hochschule Zürich (ETHZ).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
var monthNames = [
"January", "February", "March", "April", "May", "June", "July", "August",
"September", "October", "November", "December"
];
var monthNamesShort = [
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
"Nov", "Dec"
];
var dayNames = [
"Sunday", "Monday", "Tuesday",... |
'use strict'
const { mergeOptions } = require('../utils')
const { isTest } = require('ipfs-utils/src/env')
const log = require('debug')('ipfs')
const errCode = require('err-code')
const { DAGNode } = require('ipld-dag-pb')
const { UnixFS } = require('ipfs-unixfs')
const initAssets = require('../runtime/init-assets-nod... |
$(function()
{
let GAME_TIME = 60;
let KEY_A = 65;
let KEY_D = 68;
let KEY_S = 83;
let KEY_LEFT = 37;
let KEY_RIGHT = 39;
let KEY_DOWN = 40;
window.$body = $('#main-container');
//PREPARE BOARD
let _startLeft = 538;
let _startTop = 115;
let _cellWidth = 85;
let _ce... |
/**
*
* ManageActivityDefinitionPage
*
*/
import find from 'lodash/find';
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import { createStructuredSelector } from 'reselect';
... |
var $ = require('jquery');
var _ = require('underscore');
var CoreView = require('backbone/core-view');
var renderLoading = require('builder/components/loading/render-loading');
var ErrorView = require('builder/components/error/error-view');
var template = require('./modal-export-data.tpl');
var checkAndBuildOpts = req... |
// This file contains definition of StunMessage classes.
const crypto = require('crypto')
const {
createEncodeStream,
encode,
decode,
encodingLength,
types: { array }
} = require('binary-data')
const { crc32 } = require('crc')
const constants = require('lib/constants')
const { StunMessagePacket, StunAttribut... |
var Parse = require('../../parse');
let Game = Parse.Object.extend("Game");
/**
* 操作常量
*/
const ACTIONS_MAP = new Map()
.set('delete', '删除')
.set('startLevel', '执行')
.set('edit', '编辑')
.set('add', '添加');
/**
* 盲注列表
* 以game中rounds为基础
* 再根据currentRoundIndex和status生成带不同操作的盲注列表
*/
Component({
/... |
import Typography from "typography"
import Wordpress2016 from "typography-theme-wordpress-2016"
Wordpress2016.overrideThemeStyles = () => {
return {
"html":{
fontSize: `18px`
},
"body":{
background: `#fefefe`,
fontFamily: `source sans pro,helvetica neue,Arial,sans-serif`,
lineHeig... |
const Dex = artifacts.require("Dex")
const Link = artifacts.require("Link")
const truffleAssert = require('truffle-assertions');
contract("Dex", accounts => {
//When creating a SELL market order, the seller needs to have enough tokens for the trade
it("Should throw an error when creating a sell market or... |
import _objectWithoutProperties from "babel-runtime/helpers/objectWithoutProperties";
import _classCallCheck from "babel-runtime/helpers/classCallCheck";
import _createClass from "babel-runtime/helpers/createClass";
import _possibleConstructorReturn from "babel-runtime/helpers/possibleConstructorReturn";
import _inheri... |
/*! firebase-admin v8.11.0 */
"use strict";
/*!
* Copyright 2020 Google 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
*
* Unle... |
//Sample code for Hybrid REST Explorer
var lastSoupCursor = null;
function regLinkClickHandlers() {
var logToConsole = cordova.require("salesforce/util/logger").logToConsole;
var smartStore = cordova.require("salesforce/plugin/smartstore");
logToConsole("regLinkClickHandlers");
$('#link_fe... |
/**
* @author arodic / https://github.com/arodic
*
* This class provides events and related interfaces for handling hardware
* agnostic pointer input from mouse, touchscreen and keyboard.
* It is inspired by PointerEvents https://www.w3.org/TR/pointerevents/
*
* Please report bugs at https://github.com/arodic/Po... |
/* Initialisation */
if (document.readyState === "interactive" || document.readyState === "complete") {
doqInit();
} else {
document.addEventListener("DOMContentLoaded", doqInit, true);
}
async function doqInit() {
let path = (new URL(import.meta.url)).pathname;
path = path.substring(0, path.lastIndexOf("/") + ... |
// unmodified version: https://stackoverflow.com/a/61406094/14578626
// TODO: Mehrere objekte gleichzeit bearbeiten
// TODO: Nice-To-Have: Sachen in da DB speichern
// TODO: Imagefilter gehen zb ned
var t1, t2, timeDiff;
class ObjectUtils {
static props = ['top', 'left', 'scaleX', 'scaleY', 'zoomX', 'zoomY'];
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Sticky = void 0;
var tslib_1 = require("tslib");
var React = require("react");
var Utilities_1 = require("../../Utilities");
var Styling_1 = require("../../Styling");
var ScrollablePane_types_1 = require("../ScrollablePane/ScrollablePa... |
/**
* Copyright 2016 Google 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 applicable law or agreed t... |
// websockets
var socket;
const socketMessageListener = (event) => {
// console.log(event);
CY.serverResponse(event.data);
};
const socketOpenListener = (event) => {
// console.log('Connected');
document.getElementById("notsaved").style.display = 'none';
document.getElementById("connectedicon").sty... |
var _ = require('../utility');
var errorParser = require('../errorParser');
var logger = require('./logger');
function handleDomException(item, options, callback) {
if(item.err && errorParser.Stack(item.err).name === 'DOMException') {
var originalError = new Error();
originalError.name = item.err.name;
o... |
'use strict';
const lo_find = require('lodash.find');
const lo_assign = require('lodash.assign');
const lo_reject = require('lodash.reject');
const lo_orderBy = require('lodash.orderby');
const co = require('co');
const path = require('path');
const semver = require('semver');
const Packman = require('./packman');
c... |
/*global document */
import { linear } from '../animation/Easing.js';
import { nearest } from '../dom/Element.js';
import { cancel, invokeAfterDelay } from '../foundation/RunLoop.js';
import { getViewFromNode } from '../views/activeViews.js';
import { ScrollView } from '../views/containers/ScrollView.js';
import { Roo... |
var RSAVerifier = require('./helpers/rsa-verifier');
var base64 = require('./helpers/base64');
var jwks = require('./helpers/jwks');
var error = require('./helpers/error');
var DummyCache = require('./helpers/dummy-cache');
var supportedAlgs = ['RS256'];
/**
* Creates a new id_token verifier
* @constructor
* @param... |
var MeshData = require('../renderer/MeshData');
var ObjectUtils = require('../util/ObjectUtils');
/**
* An axis-aligned rectangular prism defined by a center point and x-, y- and z-extents (radii)
* from that center (a box).
* @extends MeshData
* @param {number} [width=1] Total width of box.
* @param {number} [he... |
import INTERNAL_ATTRS from '../../../processing/dom/internal-attributes';
import INTERNAL_PROPS from '../../../processing/dom/internal-properties';
import SandboxBase from '../base';
import ActiveWindowTracker from '../event/active-window-tracker';
import nativeMethods from '../native-methods';
import * as browserUtils... |
import ProjectileBase from "./projectile-base.js";
const {ParticleSystem,ResourceManager,TextLayer} = Eleven;
const FIRE_TIMEOUT = 1000;
const NAME = "shotgun";
const IMAGE = "weapon/shotgun";
const FIRE_ANIMATION_DURATION = 50;
const RELOAD_ANIMATION_DURATION = 100;
const EMPTY_SOUND_TIMEOUT = 200;
const PELLET_COU... |
const { defaultFixture } = require("../_fixture");
const { expect } = require("chai");
const {
daiUnits,
xusdUnits,
usdcUnits,
usdtUnits,
loadFixture,
isFork,
} = require("../helpers");
const { parseUnits } = require("ethers/lib/utils");
describe("Flipper", async function () {
if (isFork) {
this.time... |
const lunarisVariantPredictor = {
inputFileNames: {},
statuses: {},
idsPending: [],
fieldNames: [],
stringOperators: ["==", "=~", "!=", "!=~"],
numericalOperators: ["<", "<=", ">", ">="],
operators: ["==", "=~", "!=", "!=~", "<", "<=", ">", ">="],
filterGroupCounter: 0,
filterCounter... |
import { clamp } from './math.js';
export function transformColor(color, ...matrix) {
const [r, g, b, a] = color;
matrix = matrix.reduce((m1, m2) => multiply(m1, m2));
color[0] = matrix[0] * r + matrix[1] * g + matrix[2] * b + matrix[3] * a + matrix[4];
color[1] = matrix[5] * r + matrix[6] * g + matrix[7] * b + ma... |
var $ = require('jquery');
var queue = require('queue-async');
var d3 = require('d3');
var L = require('leaflet');
require('leaflet-providers');
var config = require('../config.json');
// $('.districts-toggles li').on( 'click', function(){
// $this = $(this);
// var districtNum = parseInt($this.data('district'));
/... |
import Control from '../Control';
import { addClass } from '../utils/class';
import { setStyles } from '../utils/style';
import createBlockNode from './createBlockNode';
import { ROW, COLUMN, WIDTH, HEIGHT, LEFT, TOP } from '../utils/constants';
function Block ({ boxxy, parent, data, edges }) {
this.start = this.size... |
/**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy... |
'use strict';
/* eslint-env node */
const os = require('os');
const {assert} = require('chai');
const Promise = require('bluebird');
const express = require('express');
const http = require('http');
const https = require('https');
const serveIndex = require('serve-index');
const Throttle = require('throttle');
const {r... |
var AllowedAdUnits = [[728, 90], [120, 600], [300, 250], [160, 600], [336, 280], [234, 60], [300, 600], [300, 50], [320, 50], [970, 250], [300, 1050], [970, 90], [180, 150]];
var UnsupportedAdUnits = [[700, 100], [100, 600], [300, 200], [100, 600], [300, 200], [200, 60], [900, 200], [300, 1000], [900, 90], [100, 100]];... |
let _ = require('lodash');
let d3 = require('d3');
let $ = require('jquery');
let ngMock = require('ngMock');
let expect = require('expect.js');
let YAxis;
let Data;
let persistedState;
let el;
let buildYAxis;
let yAxis;
let yAxisDiv;
let timeSeries = [
1408734060000,
1408734090000,
1408734120000,
14087341500... |
import React from 'react';
import PropTypes from 'prop-types';
import { Line, Bar, Doughnut, Chart } from 'react-chartjs-2';
import ChartDataLabels from 'chartjs-plugin-datalabels';
import 'chartjs-plugin-annotation';
import { Button, ButtonDropdown, DropdownItem, DropdownMenu, DropdownToggle, Row, Col } from 'reactstr... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { readable } from 'svelte/store'
import { location } from './location'
const LOCALSTORAGE_KEY = 'weather-data';
let currentState = JSON.parse(localStorage.getItem(LOCALSTORAGE_KEY));
const saveState = state => {
currentState = state;
localStorage.setItem(LOCALSTORAGE_KEY, JSON.stringify(state));
}
co... |
import _ from './utils';
import singleBtn from './singleBtn';
import HandlerBus from './handlerBus';
const EVENT = ['touchstart','touchmove','touchend','drag','dragstart','dragend','pinch','pinchstart','pinchend','rotate','rotatestart','rotatend','singlePinchstart','singlePinch','singlePinchend','singleRotate','single... |
//(function() {
if(typeof(rev_lang) == 'undefined'){
rev_lang = {};
rev_lang.slider_revolution_shortcode_creator = 'Slider Revolution Shortcode Creator';
rev_lang.shortcode_generator = 'Shortcode Generator';
rev_lang.please_add_at_least_one_layer = 'Please add at least one Layer.';
rev_lang.choose_imag... |
/*
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... |
/* global window */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import CKANApi from 'lib/CKANApi';
import i18n from 'i18n';
import { Input } from 'reactstrap';
// eslint-disable-next-line import/no-extraneous-dependencies
import debounce from 'lodash/debounce';
import { inject } from '... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.helper = undefined;
var _is_plain_object = require('./is_plain_object');
var plain = _interopRequireWildcard(_is_plain_object);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj ... |
import Component from '@ember/component';
import {
get, set, computed, observer, setProperties
} from '@ember/object';
import { inject as service } from '@ember/service';
import ViewNewEdit from 'shared/mixins/view-new-edit';
import ChildHook from 'shared/mixins/child-hook';
import { alias, equal } from '@ember/objec... |
/**
* Handles validation on a model
*
* Uses Offshore-validator for validating
* https://github.com/Atlantis-Software/offshore-validator
*/
var _ = require('lodash');
var validator = require('offshore-validator');
var async = require('async');
var utils = require('../utils/helpers');
var hasOwnProperty = utils.ob... |
'use strict';
const {
html_beautify
} = require('./js-beautify/beautify-html');
const vscode = require('vscode');
const {
commands,
workspace,
window,
languages,
Range,
Position
} = vscode;
const fs = require('fs');
const os = require('os');
const cp = require('child_process')... |
window.tablebuilder = function(tableClass) {
var _header;
var _rows = [];
if (!tableClass) tableClass = "";
this.setHeader = function(_headers) {
_header = "<tr><th>" + _headers.join("</th><th>") + "</tr>";
};
this.addRow = function(_cells) {
_rows.push("<tr><td>" + _cells.joi... |
const kctil = require("./index.js");
const assert = require("assert");
(async () => {
try {
assert.strictEqual(kctil.format("[s01] hello %s.", "world"), "[s01] hello world.", "should be: [s01] hello world.");
assert.strictEqual(kctil.format("[s02] hello %10s.", "world"), "[s02] hello world.", "should be... |
import { noop, getUniqId } from '#/common';
import { objectGet } from '#/common/object';
import * as sync from './sync';
import {
cache,
getRequestId, httpRequest, abortRequest, confirmInstall,
newScript, parseMeta,
setClipboard, checkUpdate,
getOption, getDefaultOption, setOption, hookOptions, getAllOptions,... |
/**
* @license
* Copyright 2019 Google LLC. 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 a... |
/**
* Copyright 2018 The Subscribe with Google Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var scrollama = require('scrollama');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(... |
'use strict';
const
abPager = require('ab-pager'),
js0 = require('js0'),
spkMessages = require('spk-messages'),
spocky = require('spocky'),
$layouts = require('./$layouts'),
modules = require('./modules')
;
export default class System
{
get actions() {
return this._actions;
}... |
import $ from 'jquery';
window.$ = window.jQuery = $;
//import 'jquery-ui/ui/widgets/datepicker.js';
window.Popper = require('popper.js')
function searchZip(myZip)
{
if(myZip.length == 5) {
var cityRequest;
var stateRequest;
try {
cityRequest = new XMLHttpRequest();
stateRequest = new XMLHttpRequest();
... |
// $(function() {
// var citysData={};
// getCitysData(function(){
// $('#mallForm').citys({
// required:false,
// nodata:'disabled',
// data:citysData
// });
// });
//
//
// //搜索按钮
// $("#btnSearch").click(function(e) {
// var url = __appc... |
// Emojis
const fire = String.fromCodePoint(0x1f525)
const partyFace = String.fromCodePoint(0x1f973)
const stressFace = String.fromCodePoint(0x1f613)
const greenCheck = String.fromCodePoint(0x2705)
const redX = String.fromCodePoint(0x274c)
const snowflake = String.fromCharCode(0x2744)
const warning = String.fromCodePoi... |
const formatDateTime = dt => moment(dt).format(`MMMM D, YYYY hh:mm:ss`);
const formatDate = d => moment(d).format(`MMMM D, YYYY`);
const notification = (type, title, message)=> {
return toastr[type](message,title);
};
// let token = localStorage.getItem("TOKEN");
// Append headers to Ajax attributes
// $.ajaxSetu... |
const { GraphQLServer, PubSub} = require("graphql-yoga");
const {MONGODB} = require('./config.js');
const mongoose = require('mongoose');
var { GraphQLError } = require('graphql');
// Machine learning .. using tensorflow
require('@tensorflow/tfjs');
const toxicity = require('@tensorflow-models/toxicity');
// Posts
co... |
"use strict";
/********************************************************************************
* Copyright (C) 2018 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl... |
#! /usr/bin/env node
"use strict";
var fs = require('fs');
var path = require('path');
var START_MARKER = '// EMSCRIPTEN_START_FUNCS\n';
var END_MARKER = '// EMSCRIPTEN_END_FUNCS\n';
function countLines(s) {
var count = 0;
for (var i = 0, l = s.length; i < l; i ++) {
if (s[i] === '\n') count++;
}
return... |
const inquirer = require('inquirer')
const axios = require('axios')
const delay = require('delay')
const profile = require('../../profile.json')
const j = require('request').jar();
const fetch = require("node-fetch");
//const site = 'https://dashboard.hype-central.com'
const request = require('request').defaults... |
/**
* name : userExtensionController.js
* author : Akash
* created-date : 01-feb-2019
* Description : User extension related functionality.
*/
// Dependencies
const csv = require("csvtojson");
const userExtensionHelper = require(MODULES_BASE_PATH + "/userExtension/helper")
const FileStream = require(ROOT_PATH + "... |
const {
MessageEmbed
} = require("discord.js")
const {
nodes
} = require("../config.json")
const {
ErelaClient,
Utils
} = require("erela.js");
const admin = require('firebase-admin');
let db = admin.firestore();
var fs = require("fs");
const https = require("https");
const { getAnnouncementEmbed ,query } = req... |
const _ = require('lodash');
const Async = require('async');
const Benchmark = require('benchmark');
const SixSpeed = {
tests: {},
stats: {},
log: [],
running: false,
ran: false,
profile(testName, testType, count) {
if (!SixSpeed.tests[testName]) {
throw new Error(`Unknown test: ${testName}`);
... |
import is from 'electron-is';
import apis from './apis';
const path = require('path');
const _ = require('lodash');
const log = require('electron-log');
const filenamify = require('filenamify');
const hasItem = async (collection, item) => {
const foundItem = _.find(collection, item);
if (foundItem) {
return tr... |
import React, {useEffect, useState} from 'react';
import AdminPanel from "@/Layouts/AdminPanel";
import {
DataGrid,
gridPageCountSelector,
gridPageSelector,
useGridApiContext,
useGridSelector,
GridToolbar,
GridToolbarContainer, GridToolbarExport
} from '@mui/x-data-grid';
import {Autocomplet... |
// Code for the tileSetView that displays all tiles in a ROM.
const cmn = require('./common.js');
const domu = require('./domUtils.js');
const nesChr = require('./nesPatternTable.js');
const {CHR_WIDTH, CHR_HEIGHT, CHR_BYTE_SIZE} = require('./nesPatternTable.js');
/* TileSetView is composed of a series of canvas elem... |
/**
* @version 0.43
* @author Vadym
*/
import React, { PureComponent } from 'react'
import {
View,
TouchableOpacity,
Text,
StyleSheet,
Platform
} from 'react-native'
import { connect } from 'react-redux'
import ScreenWrapper from '@app/components/elements/ScreenWrapper'
import NavStore from '@a... |
import * as THREE from 'three';
import GeometryLayer from 'Layer/GeometryLayer';
import PointsMaterial, { MODE } from 'Renderer/PointsMaterial';
import Picking from 'Core/Picking';
const point = new THREE.Vector3();
const bboxMesh = new THREE.Mesh();
const box3 = new THREE.Box3();
bboxMesh.geometry.boundingBox = box3;... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
HOW TO USE:
* Audio *
Classes 'player', 'audio'. File path without extension. No matter HTML tag's id.
This script is going to load media file with name and path provided, and the file extensions stored in the 'EXPECTED_AUDIO_EXTENSIONS' global var
i.e. If EXPECTED_AUDIO_EXTENSIONS == ['mp3', 'ogg'],... |
/*****************************************************************************
* Open MCT, Copyright (c) 2014-2022, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version ... |
// 先定义三个常量表示状态
const PENDING = 'pending';
const FULFILLED = 'fulfilled';
const REJECTED = 'rejected';
// 新建 MyPromise 类
class MyPromise {
constructor(executor){
// executor 是一个执行器,进入会立即执行
// 并传入resolve和reject方法
try {
executor(this.resolve, this.reject)
} catch (error) {
this.reject(error... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default_config = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; des... |
const sort_initEventFun = function() {
// 扩展方法
var oThis = this;
$('#' + this.options.id).on('mouseup', function(e) {
if ($(e.target).closest('#' + oThis.options.id + '_header').length > 0) {
// 点击的是header区域
oThis.mouseUpX = e.clientX;
oThis.mouseUpY = e.clientY;
... |
//
// mediasoup_sample
// https://github.com/mganeko/mediasoup_v3_example
// mediasoup_v3_example is provided under MIT license
//
// This sample is using https://github.com/versatica/mediasoup
//
// Thanks To:
// - https://lealog.hateblo.jp/entry/2019/03/25/180850
// - https://lealog.hateblo.jp/entry/2... |
'use strict';
// This is the Node.JS entry point
module.exports = algoliasearch;
var debug = require('debug')('algoliasearch:nodejs');
var crypto = require('crypto');
var inherits = require('inherits');
var Promise = global.Promise || require('es6-promise').Promise;
var semver = require('semver');
var AlgoliaSearch... |
/*
* Copyright (c) 2016-2017 by STEP Tools 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 applica... |
import React, { useCallback, useEffect, useMemo, useState } from "react";
import { Surface } from "gl-react-dom";
import { Shaders, Node, GLSL, Uniform, LinearCopy } from "gl-react";
import MersenneTwister from "mersenne-twister";
// TODO use hash
const promiseOfLoad = import("./rust/pkg");
let render;
promiseOfLoad.... |
import React from 'react';
import injectSheet from 'react-jss';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import * as CAL from '@doodle3d/cal';
import * as toolNames from '../constants/d2Tools';
import { PIPETTE } from '../constants/contextTools.js';
import { CANVAS_SIZE } from '../cons... |
function generateId() {
const bytes = new Uint8Array(16); // same length as UUID
window.crypto.getRandomValues(bytes);
const base64 = btoa(String.fromCharCode(...bytes));
const base64Url = base64
.replace(/=/g, "")
.replace(/\+/g, "-")
.replace(/\//g, "_");
console.log('My ID:', base64Url);
return base64Url... |
/**
* -= Magbot3 =-
* Sj3rd & 7kasper
* Licensed under MIT
* -= Magbot3 =-
*/
// Imports
const winston = require('winston');
require('winston-daily-rotate-file');
winston.loggers.add('main', {
// level: 'alert',
// level: 'info',
level: 'silly',
format: winston.format.simple(),
transports... |
import React from 'react';
import styled from 'styled-components';
import CancelIcon from '@material-ui/icons/Cancel';
import DeleteForeverOutlinedIcon from '@material-ui/icons/DeleteForeverOutlined';
import EditNotif from "./Utilities/EditNotif.js";
import UpdateNotif from "./Utilities/UpdateNotif.js";
import PopUp fr... |
/****************************************************************************
Copyright (c) 2020 <NAME> Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of cache-manager software and associated engine source code (the "Software"), a limited,
worldwide... |
import { TezosToolkit } from "@taquito/taquito";
import { BeaconWallet } from "@taquito/beacon-wallet";
import { TezosOperationType } from "@airgap/beacon-sdk";
const Tezos = new TezosToolkit(rpc_addr);
const Wallet = new BeaconWallet({ name: "<NAME>" });
Tezos.setWalletProvider(Wallet);
Tezos.contract.at(contract_ad... |
var genInclude = require("./genInclude.js");
module.exports = genRequire;
var fs = require("fs");
var CACHE = {};
function showModuleComment(_obj, _name)
{
if(Array.isArray(_obj))
{
for(var l = 0; l < _obj.length; l++ )
{
console.log("[*] " + _name + ": " + _obj[l]);
}
}
else if(typeof _obj == "string")
... |
import Base from '../base'
import tpl from './index.html'
import style from './index.less'
const template = document.createElement('template')
template.innerHTML = `<style>${style}</style>${tpl}`
const SLIDE_ACTIVE_COLOR = '#1AAD19'
const SLIDE_BACKGROUND_COLOR = '#E9E9E9'
/**
* 判断数值相等
*/
function isNumEqual(a, b)... |
import React, { useState, useEffect } from 'react'
import {
AsyncStorage,
Button,
Dimensions,
Image,
SafeAreaView,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native'
import { LinearGradient } from '../../components/LinearGradient'
import Lottie from 'lottie-react-native'
... |
import { debug } from 'util';
var Conf = require('../conf');
var $ = require("jquery");
String.prototype.printf = function (obj) {
var useArguments = false;
var _arguments = arguments;
var i = -1;
if (typeof _arguments[0] == "string") {
useArguments = true;
}
if (obj instanceof Array || useArguments)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.