text stringlengths 3.22k 29.5k |
|---|
import Phaser from "phaser";
var player;
var power;
var platform;
var background_game;
var chinatown;
var bush;
var scoreBox;
var train;
var rail;
var platformGroup;
var nextPlatformPos;
var userScore;
var scoreText;
var platformDiff;
var lastTotalPlatform;
var totalPlatform;
var spawnPlane;
var planeEvent;
var wa... |
var sys = require('pex-sys');
var merge = require('merge');
var IO = sys.IO;
var Context = require('./Context');
var Texture = require('./Texture');
var Platform = sys.Platform;
var TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
function Texture2D() {
this.gl = Context.currentContext;
Texture.call(this, this.gl.TEXTURE_2D)... |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import TetherComponent from 'react-tether';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import { debounce } from 'throttle-debounce';
import {
autocompleteRequest,
autocom... |
const router = require('@koa/router')()
const moment = require('moment')
const _ = require('lodash')
const queryString = require( 'query-string')
const md5 = require( 'md5')
router.prefix('/track')
// async function getList () {
// let tableName = 't_o_project'
// let result = await Knex
// .select(TABLE_CO... |
const { liquid } = require('../../lib/render-content')
const { loadPageMap } = require('../../lib/pages')
const entities = new (require('html-entities').XmlEntities)()
const nonEnterpriseDefaultVersion = require('../../lib/non-enterprise-default-version')
describe('liquid helper tags', () => {
jest.setTimeout(60 * 1... |
import movies from '../data/movies.js'
let features = ['originCountry', 'bigStar', 'movieGenre']
let samples = [
{
originCountry: 'EUA',
bigStar: false,
movieGenre: 'comedy',
success: false
},
{
originCountry: 'EUR',
bigStar: true,
movieGenre: 'romance',
success: false
},
{
orig... |
/*
__/\\\________/\\\____/\\\\\\\\\______/\\\\\\\\\\\\\_________/\\\\\\\\\_
__\/\\\_______\/\\\__/\\\///////\\\___\/\\\/////////\\\____/\\\////////__
__\//\\\______/\\\__\/\\\_____\/\\\___\/\\\_______\/\\\__/\\\/___________
___\//\\\____/\\\___\/\\\\\\\\\\\/____\/\\\\\\\\\\\\\/__/\\\_____________
____\//\\\__/\\\... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import { ObjectType } from "./object-type";
import { PrimitiveType, UNDEFINED, NULL } from "./primitive-type";
import { FunctionType } from "./function-type";
import { NativeFunctionType } from "./native-function-type";
import { RegexType } from "./regex-type";
import { ArrayType } from "./array-type";
import { StringT... |
// Pillars.js require & config
var project = require('../../index').configure({
debug: true, //> Show detailed errors on response. (Error 500...)
renderReload: true // Check modified template files and refresh render.
/* More options */
// cors: false, //> En... |
/* eslint no-use-before-define: 0 */
import parseExpression from '../../shared/utils/dsl';
import { NAME } from '../state';
import vocalizeErrors from './vocalize-errors';
import { getNodeValue, getTranslation } from './selectors';
const nonInteractiveTypes = ['Image', 'Text', 'Group', 'Table'];
export function trans... |
import React from "react"
import {
NavItem,
NavLink,
UncontrolledDropdown,
DropdownMenu,
DropdownItem,
DropdownToggle,
Media,
Badge
} from "reactstrap"
import PerfectScrollbar from "react-perfect-scrollbar"
import axios from "axios"
import * as Icon from "react-feather"
import classnames from "classname... |
/**
* User: ArtZub
* Date: 15.01.13
* Time: 1:36
*/
'use strict';
var TYPE_REQUEST = {
repos : 1,
commits : 2
}
, TYPE_STATUS_FILE = {
removed : 0,
modified : 1,
added : 2,
renamed : 3
}
;
function makeOAuthUrl(scope) {
scop... |
import React from 'react'
import { Flex, Text, Box } from 'rebass'
import styled, { themeGet } from 'util/styles'
import { Wrapper } from 'components/UI/wrappers'
import {
YellowTriangleTop,
PrimaryCard,
SecondaryCard,
} from 'components/UI/cards'
import Img from 'gatsby-image'
import { Image } from 'components/i... |
const { Api, JsonRpc, RpcError } = require('eosjs');
const { JsSignatureProvider } = require('eosjs/dist/eosjs-jssig'); // development only
const fetch = require('node-fetch'); // node only; not needed in browsers
const { TextEncoder, TextDecoder ... |
$(function () {
$('.lazy').Lazy();
});
(function () {
var youtube = $('.video__code');
// youtube.addClass('test');
for (var i = 0; i < youtube.length; i++) {
var source = "https://img.youtube.com/vi/" + youtube[i].dataset.embed + "/hqdefault.jpg";
var image = new Image();
// image.src = source... |
var copiedNode = null;
var binaryExtensions = [
"3dm",
"3ds",
"3g2",
"3gp",
"7z",
"a",
"aac",
"adp",
"ai",
"aif",
"aiff",
"alz",
"ape",
"apk",
"appimage",
"ar",
"arj",
"asf",
"au",
"avi",
"bak",
"baml",
"bh",
"bin",
"bk",
"bmp",
"btif",
"bz2",
"bzip2",
"cab",
"caf",
"cgm",
"class",
"c... |
/*!!!!!!!!!!!Do not change anything between here (the DRIVERNAME placeholder will be automatically replaced at buildtime)!!!!!!!!!!!*/
import NodeDriver from 'shared/mixins/node-driver';
// do not remove LAYOUT, it is replaced at build time with a base64 representation of the template of the hbs template
// we do this... |
/**
* 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 to in... |
//Remplissage
let mapp_Time_GridLine =
{
"08:00:00":2,
"08:30:00":3,
"09:00:00":4,
"09:30:00":5,
"10:00:00":6,
"10:30:00":7,
"11:00:00":8,
"11:30:00":9,
"12:00:00":10,
"12:30:00":11,
"13:00:00":12,
"13:30:00":13,
"14:00:00":14,
"14:30:00":15,
"15:00:00":16,
... |
// Copyright 2017-2021 @axia-js/app-accounts authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React, { useEffect, useState } from 'react';
import styled from 'styled-components';
import { Input, InputBalance, Modal, Toggle, TxButton } from '@axia-js/react-components';
import { getAddressMeta } from ... |
import Ember from "ember";
import preloadDataMixin from "../mixins/preload_data";
import { __get } from "../utils/polyfill";
const { getOwner } = Ember;
const getString = (obj, path) => {
const val = __get(obj, path);
return val && typeof val === "string" ? val : null;
};
export default Ember.Route.extend(preload... |
const helper = (() => {
let isOnline = function () {
var xhttp = new XMLHttpRequest({
mozSystem: true,
});
xhttp.open("GET", "https://google.com?" + new Date().getTime(), true);
xhttp.timeout = 2500;
xhttp.responseType = "document";
xhttp.send();
xhttp.onload = function () {
... |
import mapJSON from 'img/home.json';
import tilesSS from 'img/tiles.png';
import sign from 'img/sign.png';
import playerImg from 'img/playerGrid.png';
import Player from 'Player.js'
import SceneData from 'SceneData.js'
import ModalData from 'ModalData.js'
import Utils from 'Utils.js'
import Portals from 'Portals.js'
i... |
const loadChatToDom = (result, roomType, unique) => {
const chatView = document.querySelector('[data-target-chat-dom]');
if(result.chats.total === 0) {
//track This instance wth localStorage to clear when a chat begins
localStorage.setItem(`@_SOROSOKE_NO_CHAT_${unique}`, true)
ret... |
/* eslint-disable @typescript-eslint/ban-ts-comment */
/* eslint-disable no-param-reassign */
/* eslint-disable no-bitwise */
const { DepGraph } = require('dependency-graph');
const urlFilter = require('@11ty/eleventy/src/Filters/Url.js');
const fs = require('fs');
const { SaxEventType, SAXParser } = require('sax-was... |
import stor from '../libs/xpmjs/service/stor'
import moment from '../libs/moment.min'; //导入模块
moment.locale('zh-cn'); //设置语言 或 moment.lang('zh-cn');
function format(data) {
let time = moment(data).valueOf()
return Math.floor(time / 1000)
}
function formatTime(time) {
if (typeof time !== 'number' || time... |
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Almond
//
// Copyright 2019-2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Licen... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
StyleSheet,
View,
Text,
ImageBackground,
Dimensions,
LayoutAnimation,
UIManager,
KeyboardAvoidingView,
} from 'react-native';
import { Input, Button, Icon } from 'react-native-elements';
const SCREEN_WIDTH = Dimensio... |
/*************************************************************************************
* Function:cleanUp()
* Description: function to CleanUp.
* Author: Kony
*************************************************************************************/
function cleanUp() {
kony.print("cleaning up ...");
}
/**********... |
const babel = require('@babel/core')
const fs = require('fs')
const path = require('path')
const {select} = require('hast-util-select')
const prism = require('@mapbox/rehype-prism')
const math = require('remark-math')
const katex = require('rehype-katex')
const prettier = require('prettier')
const {MDXProvider, mdx: cr... |
#!/usr/bin/env node
var fs = require('fs');
var pt = require('path');
var program = require('commander');
var package = require('../package.json');
var colors = require('colors/safe');
var archy = require('archy');
var async = require('async');
var ren4plex = {
// config
config: {
preview: false,
... |
import React from 'react';
import dayjs from 'dayjs';
import { Component, Root, CORE_INSTANCE, sstyled } from '@semcore/core';
import Button from '@semcore/button';
import { Box, Flex } from '@semcore/flex-box';
import Divider from '@semcore/divider';
import Dropdown from '@semcore/dropdown';
import i18nEnhance from '@... |
const test = require('tape')
const MockCrock = require('../test/MockCrock')
const helpers = require('../test/helpers')
const bindFunc = helpers.bindFunc
const isFunction = require('../core/isFunction')
const isObject = require('../core/isObject')
const isString = require('../core/isString')
const fl = require('../co... |
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];
}
r... |
goog.declareModuleId('os.state.StateManager');
import DataManager from '../data/datamanager.js';
import ProviderEntry from '../data/providerentry.js';
import osImplements from '../implements.js';
import BaseProvider from '../ui/data/baseprovider.js';
import IStateDescriptor from '../ui/state/istatedescriptor.js';
impo... |
var _class, _temp;
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(th... |
'use strict';
const Property = require('./property');
const ReadonlyProperty = require('./readonly-property');
const { Sonos } = require("sonos");
const os = require("os");
const mkdirp = require("mkdirp");
const fs = require("fs");
const path = require("path");
const fetch = require("node-fetch");
const output = requ... |
/*
* A port of the Rails/Sequel inflections class
* http://sequel.rubyforge.org/rdoc/classes/Sequel/Inflections.html
*/
var array = require("./array").array, misc = require("./misc");
var comb = exports;
var CAMELIZE_CONVERT_REGEXP = /_(.)/g;
var DASH = '-';
var UNDERSCORE = '_';
var UNDERSCORE_CONVERT_REGEXP1 = ... |
//VERSION:5.0
const xapi = require('xapi');
const Rkhelper = require('./Rkhelper');
const RoomConfig = require('./RoomConfig');
const Settings = require('./Settings');
const Displays = require('./Displays');
const Lights = require('./Lights');
const Scenarios = require('./Scenarios');
const DEBUG = false;
const TGL_... |
/** @format */
/**
* External dependencies
*/
import {
assign,
camelCase,
constant,
debounce,
every,
filter,
flatten,
isEmpty,
isUndefined,
map,
mapValues,
pickBy,
property,
some,
uniqueId,
} from 'lodash';
import update from 'immutability-helper';
function Controller( options ) {
let debounceWait;
... |
/*
Copyright (c) 2013-2016 <NAME>, http://matteocollina.com
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... |
require('apollojs');
var fs = require('fs');
var urlUtil = require('url');
var pathUtil = require('path');
var async = require('async');
var ftp = require('ftp');
var Prefix = require('./prefix');
var kDelegationDbPath = pathUtil.resolve(__dirname, '../db/delegation.json');
var kDelegationDbLifeTime = 24*60*60*1000;... |
import React, {Component, useCallback, useEffect, useState} from 'react';
import { ScrollView, Text, View,TouchableHighlight, RefreshControl, Button } from 'react-native';
import {StyleSheet} from 'react-native';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import colors from '../config/colors';
im... |
"use strict";
require("core-js/modules/es.function.name.js");
require("core-js/modules/es.array.from.js");
require("core-js/modules/es.string.iterator.js");
require("core-js/modules/es.regexp.exec.js");
require("core-js/modules/es.symbol.js");
require("core-js/modules/es.symbol.description.js");
require("core-js... |
/**
* OCV3
*/
var pageCurr;var prc_name='APP_OCV3_DATA';
$(function() {
layui.use(['table', 'laydate'], function(){
var table = layui.table
,form = layui.form,element = layui.element,laydate = layui.laydate;
var sdate = getNextDate(-1);
var edate = getCurDate(0);
... |
const { expect } = require("chai");
const { defaultFixture } = require("./_fixture");
const { isFork, loadFixture } = require("./helpers");
const { parseUnits } = require("ethers").utils;
const { Zero, One, Two } = require("ethers").constants;
// Note: we set decimals to match what the Mainnet feeds use.
const feedDe... |
//
// (c) 2018 <NAME>
//
// https://github.com/Fil/
//
// This software is distributed under the terms of the MIT License
import { Delaunay } from "d3-delaunay";
import { geoRotation, geoStereographic } from "d3-geo";
import { extent } from "d3-array";
import {
asin,
atan2,
cos,
degrees,
max,
min,
pi,
... |
const Joi = require('joi');
const uploader = require('express-fileuploader');
const path = require('path');
const _ = require('lodash');
const fs = require('fs');
const queue = require('../config/kue');
const File = require('../models/file.model');
const cleanURL = require('../utils/string');
const { ObjectId } = requi... |
/**
* Copyright (c) 2015-present, Zippy Technologies
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import Component from '@zipp... |
var JSCompiler = require('caql-js-compiler');
var querytopic = require('./query_topic');
var StreamTopic = require('zetta-events-stream-protocol').StreamTopic;
function eventIsSpecial(topic) {
var SPECIAL = [
/^_peer\/.+$/,
/^query:.+$/,
/^query\/.+$/,
/^logs$/
];
return SPECIAL.some(func... |
function string2filename(pName) {
if (isString(pName)) {
if (pName != "") {
// pName= "This is Name / Notation? "
pName = pName.toLowerCase();
// pName= "this is name / notation? "
pName = pName.replace(/[^a-z0-9_]/g,"_");
// pName= "this_is_name___notation__"
pName = pName.rep... |
const childProcess = require('child_process');
const c = require('chalk');
const _ = require('lodash/fp');
const ora = require('ora');
const pMap = require('p-map');
const inquirer = require('inquirer');
const readPkgUp = require('read-pkg-up');
const {fetchPackageStats, fetchPackageJsonStats} = require('./fetch-packag... |
/**
* This code is mostly from the old Etherpad. Please help us to comment this code.
* This helps other people to understand this code better and helps them to improve it.
* TL;DR COMMENTS ON THIS FILE ARE HIGHLY APPRECIATED
*/
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0... |
import React from 'react'
import Router, { withRouter } from 'next/router'
import styled from 'styled-components'
import Icon from 'react-icons-kit'
import { check, x, plus } from 'react-icons-kit/feather';
import { getUser, setproject, removeProject, getSnip, updateSnip, updateUser } from '../services/local-storage';
... |
/*
* @Author: czy0729
* @Date: 2021-10-21 08:36:26
* @Last Modified by: czy0729
* @Last Modified time: 2022-01-11 08:48:04
*/
import React from 'react'
import { View } from 'react-native'
import { observer } from 'mobx-react'
import { _, systemStore, subjectStore, rakuenStore } from '@stores'
import { runAfter } f... |
/*global*/
/*
MIT License
Copyright (c) 2016 <NAME>
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... |
import pako from 'pako';
export function loadJSON(url) {
return fetch(url).then(async response => {
if (url.endsWith('.gz')) {
const reader = response.body.getReader(),
inflate = new pako.Inflate({to: 'string'});
while (true) {
const {done, value} = ... |
const { join } = require('path');
// =-=-=-=-=-=
// Website
// =-=-=-=-=-=
const express = require('express');
const app = express();
const cookieParser = require('cookie-parser');
app.use(cookieParser());
const { bot } = require('../../bot');
const { general, sessions, users, kingdoms } = bot.db;
// Functions
func... |
var nconf = require('nconf');
var moment = require('moment');
var async = require('async');
var _ = require('lodash');
var url = require('url');
var User = require('mongoose').model('User');
var payments = require('./index');
var logger = require('../../libs/logging');
var ipn = require('paypal-ipn');
var paypal = requ... |
/**
* @typedef {import('../types.js').Runtime} Runtime
* @typedef {import('../types.js').BrokerOptions} BrokerOptions
* @typedef {import('../types.js').Broker} Broker
* @typedef {import('../types.js').Transport} Transport
*/
// node packages
const path = require('path')
const glob = require('glob')
const { isFunct... |
var unitLocationMarkerIds = [];
//var selectedToolTipIds = {};
var entityAllDataToolTipIds = [];
var hoveredAllDataToolTipIds = {};
var unitLogStrings = {};
function createToolTips(unitInfo) {
createUnitLocationMarks(unitInfo);
createAllDataToolTip(unitInfo);
gameboard_canvas.onmouseleave = function(evt) {... |
import { Shaders, Node, GLSL, LinearCopy, Uniform } from "gl-react";
export const n = 43;
export const title = "irreconcilable queens";
export const Shader = ({ time }) => (
<LinearCopy>
<Persistence persistence={0.4}>
<Node shader={shaders.node} uniforms={{ time }} />
</Persistence>
</LinearCopy>... |
'use strict';
const Base = require('../base/base.js');
const {Config, HashDistance, RandomGenerator, EndPoint} = require('./util.js');
const Peer = require('./peer.js');
const LOG_INFO = Base.BX_INFO;
const LOG_WARN = Base.BX_WARN;
const LOG_DEBUG = Base.BX_DEBUG;
const LOG_CHECK = Base.BX_CHECK;
const LOG_ASSERT = B... |
function mandarPeticion(varurl){
$.ajax({
type: "POST",
url : varurl,
datatype:'json',
data : $('#prueba2').serialize(),
success : function(data){
Materialize.toast(data.mensaje, 3000);
},
e... |
const fs = require('fs');
const readline = require('readline');
const playwright = require('playwright-chromium');
const pbf = require('pbf');
const botbuilder = require('botbuilder');
const botkit = require('botkit');
const { selectors, chatType } = require('./constants.js');
const { TrovoMessage } = require('./trovop... |
const util = require("./util");
const { showdown, merge, csv, lagesoFix, latestPredictions } = util;
const {
lagesoRawCSVData,
config,
createLagesoData,
} = require("../__tests-fixtures/common");
describe("merge tests", () => {
test("function merge with predictions", async () => {
const data = await csv(lag... |
import React, { useContext, useState, useEffect } from 'react';
import '../../css/App.css'
import {AContext} from "../../context/AContext";
import {
Link
} from "react-router-dom";
function Footer(props){
const {admin} = useContext(AContext);
const {login} = useContext(AContext);
const [linkPawel, se... |
import React, {Component, PropTypes} from 'react';
import {connect} from 'react-redux';
import {findDOMNode} from 'react-dom';
import {DropTarget} from 'react-dnd';
import {DragItems} from '../../constants/DragItems';
import {CoordinatesWindow} from '../windows';
import {addMap} from '../../actions/MapActions';
import... |
var maxi = 0;
var mini = 10000;
var optima = [0, 0, 0];
var point1 = optima[0];
var point2 = optima[1];
var point3 = optima[2];
var margin = {
top: 20,
right: 80,
bottom: 30,
left: 50
},
width = 900 - margin.left - margin.right,
height = 500 - margin.top - margin.bottom;
var pa... |
import { useRouter } from "next/router";
import { Canvas, useFrame } from "@react-three/fiber";
import { EditorBed } from "../EditorBed/EditorBed";
import { EditorControls } from "../EditorControls/EditorControls";
import { HDREnv } from "../../HDREnv/HDREnv";
// import { LineDrop } from "../../LineDrop/LineDrop";
imp... |
const StatusCodes = require('http-status-codes');
const Request = require('../src/freshRequests');
const manageError = require('../shared/errorManagement').manageError;
module.exports = {
async createServiceRequest(req,res) {
const keyUser = res.locals.user;
if(keyUser.person && keyUser.person.email) {
cons... |
var args = arguments[0] || {};
require("tabViewOne.js");
alert('geobg: service has been invoked once, and will now be stopped to release it from memory. ');
Ti.App.currentService.stop();
var listener = Ti.App.currentService.addEventListener('stop',function(){
alert('geobg: Although the service has been stopped, it i... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { withStyles } from '@material-ui/core/styles'
import Stepper from '@material-ui/core/Stepper'
import Step from '@material-ui/core/Step'
import StepLabel from '@material-ui/core/StepLabel'
import StepContent from '@material-ui/core/St... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _assert() {
const data = _interopRequireDefault(require("assert"));
_assert = function () {
return data;
};
return data;
}
function _stream() {
const data = require("stream");
_stream ... |
/* eslint max-statements:0 */
/* eslint no-console:0 */
/* eslint global-require:0 */
/*
* slush-stencil
* https://github.com/ronik-design/slush-stencil
*
* Copyright (c) 2015, <NAME>
* Licensed under the ISC license.
*/
"use strict";
var gulp = require("gulp");
var path = require("path");
var fs = require("fs... |
"use strict";
import Logger from "./logger.js";
import Util from "./util.js";
import Patterns from "./patterns.js";
import Converter from "./convert.js";
import Config from "./serviceconfig.js";
import Download from "./download.js";
if ("serviceWorker" in navigator) {
navigator.serviceWorker
.register("se... |
import React from 'react';
import { Paper, Card, Typography } from 'material-ui';
import { Map } from '../Map';
import { GridListTile } from 'material-ui/GridList';
import { OverlayForFetchedData } from "../Home/HomeComponents";
import GridList from 'material-ui/GridList';
const SearchResultsLabel = (props) => {
con... |
"use strict";
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _createClass = function () { f... |
// create a server and listen on settings.config.port
const settings = require('./config.js');
const express = require('express');
const url = require('url');
const app = express();
const exphbs = require('express3-handlebars');
const bodyParser = require('body-parser');
const datejs = require('datejs');
const session... |
AJAX.config.base_url(base_url);
$(document).on('click', '.open_filemanager', function(e){
$('#file_url').val('');
$('#file_alt').val('');
var data_id = $(this).attr("data-id");
modal.file_manager(data_id);
});
$(document).on("click", ".btn_insert", function(e){
var data_identifier = $(this).attr("... |
let express = require('express'),
querystring = require('querystring'),
_ = require('lodash'),
moment = require('moment'),
utils = require('../utils'),
mongoose = utils.mongoose,
logger = utils.winston.appLogger,
router = express.Router(),
Contest ... |
// Copyright (c) 2017 Intel Corporation. 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... |
import a from "algoliasearch-helper";
import b from "./createStore";
import { HIGHLIGHT_TAGS as c } from "./highlight";
import { hasMultipleIndices as d } from "./indexUtils";
import { version as e } from "react";
import f from "./version";
import { defer as g } from "./utils";
function h(a) {
const b = [];
let... |
//Usando módulos de ES6. Usa commons.js si por alguna razón necesitas __dirname o require
//Ejemplo en utils/registry.js
//import.meta.url aunque da error en el editor, no lo da en Node.
//Para importar usas import algo from 'modulo' Archivos locales necesitan su extensión
//Exportas con export const algo = <cosa> o... |
export { launchSectorEditor }
import { drawRadar, subscribeToRadarEvents, publishRadarEvent } from './radar.js';
import { getViewpoint, getData, publishRefreshRadar , getDistinctTagValues} from './data.js';
import { ifElementHasValueThenSetProperty, populateFontsList, populateDatalistFromValueSet, getPropertyFromPrope... |
const fs = require('fs')
const path = require('path')
const getConfig = require('../../src/config.js').get
const mongoose = require('mongoose')
const Profile = require('../../src/structs/db/Profile.js')
const Feed = require('../../src/structs/db/Feed.js')
const FilteredFormat = require('../../src/structs/db/FilteredFor... |
// scripts/note.js 编码一定是 utf-8
var SUCCESS = 0;
var ERROR = 1;
$(function(){
// var userName = getCookie('userName');
// console.log("------print user info------")
// console.log(userName);
//
// $("header .header-profile .profile-username").html(userName);
//网页加载以后, 立即读取笔记本列表
loadNotebooks();
//on() 方法... |
import * as React from 'react';
import Box from '@mui/material/Box';
import Stepper from '@mui/material/Stepper';
import Step from '@mui/material/Step';
import StepLabel from '@mui/material/StepLabel';
import Button from '@mui/material/Button';
import Typography from '@mui/material/Typography';
import { Stack } from '@... |
"use strict";
require("core-js/modules/es.array.slice.js");
require("core-js/modules/es.object.freeze.js");
require("core-js/modules/es.symbol.js");
require("core-js/modules/es.symbol.description.js");
require("core-js/modules/es.symbol.iterator.js");
require("core-js/modules/es.array.iterator.js");
require("cor... |
/**
* Copyright (c) 2015, The Regents of the University of California,
* through Lawrence Berkeley National Laboratory (subject to receipt
* of any required approvals from the U.S. Dept. of Energy).
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE f... |
import app from 'flarum/app';
import Button from 'flarum/common/components/Button';
import HomeButton from './HomeButton';
import Modal from 'flarum/common/components/Modal';
import ResultButton from './ResultButton';
import Stream from 'flarum/common/utils/Stream';
const prefix = 'therealsujitk-gifs';
const ENGINE_G... |
var _ = require("lodash");
var Bacon = require("baconjs");
var autocomplete = require("cliparse").autocomplete;
var colors = require("colors");
var Application = require("./application.js");
var Interact = require("./interact.js");
var Logger = require("../logger.js");
var Addon = module.exports;
Addon.listProvide... |
//
// react-dropdown-input
// Displays a ReactBootstrap.Input element
// with a ReactBootstrap.DropdownMenu of possible options.
//
"use strict";
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.prototyp... |
import { asArray as ol_color_asArray } from 'ol/color'
/** @namespace ol.ext.imageLoader
*/
if (window.ol) window.ol.ext.imageLoader = {};
/** Helper for loading BIL-32 (Band Interleaved by Line) image
* @param {string} src
* @param {function} onload a function that takes a Float32Array and a ol.size.Size (array s... |
// Copyright © 2019–2020, <NAME>. See LICENSE for details.
const { Matrix } = require("./Q-Matrix");
const { Gate } = require("./Q-Gate");
const { ComplexNumber } = require("./Q-ComplexNumber");
const misc = require("./Misc");
const logger = require("./Logging");
Qubit = function (a, b, symbol, name) {
// If we’ve... |
import React, {useEffect, useRef, useState} from 'react';
import {Artist, Flow, VexTab} from 'vextab/releases/vextab-div';
import {vtNames, notationInfoToVtString} from "./notationUtils";
import {useSelector, useDispatch} from "react-redux";
import {
resetState,
setAllowInput,
setSelectedNote,
setSelect... |
'use strict';
var MACROUTILS = require( 'osg/Utils' );
var StateAttribute = require( 'osg/StateAttribute' );
var Uniform = require( 'osg/Uniform' );
var mat4 = require( 'osg/glMatrix' ).mat4;
var vec3 = require( 'osg/glMatrix' ).vec3;
var vec4 = require( 'osg/glMatrix' ).vec4;
var Map = require( 'osg/Map' );
// use th... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { ScrollView, SafeAreaView, Modal } from "react-native";
import { Button, ButtonLayout, DatePicker, NavBar, Input, PickerInput, TimePicker, FilterList } from "./";
/**
* Types
* @typedef {Object} Elements:
* @property {String} ... |
/* eslint-env jest */
const nunjucks = require('nunjucks')
const configPaths = require('../../config/paths.json')
const crypto = require('crypto')
const { renderTemplate } = require('../../lib/jest-helpers')
describe('Template', () => {
describe('with default nunjucks configuration', () => {
it('should not hav... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.