text stringlengths 8.5k 48.7k |
|---|
import React, { Component } from 'react';
import { translate } from "react-i18next";
import {
Avatar, Menu, Dropdown, Popover, Divider, Tooltip,
Form, Button, Input, Modal, Row, Col, Select, Icon
} from 'antd';
import resource from "./../../Resource";
import _ from 'lodash';
import Map from 'grommet/components/... |
import $ from '@zhennann/dom7';
import History from '../../utils/history';
import Support from '../../utils/support';
import Device from '../../utils/device';
import Utils from '../../utils/utils';
function SwipeBack(r) {
const router = r;
const { $el, $navbarsEl, app, params } = router;
let isTouched = false;
... |
import { CollisionDetector } from './CollisionDetector';
import { _Math } from '../../math/Math';
import { Vec3 } from '../../math/Vec3';
import { Mat33 } from '../../math/Mat33';
function CylinderCylinderCollisionDetector() {
CollisionDetector.call( this );
this.n = new Vec3();
this.n1 = new Vec3();... |
/*Copyright (c) 2022 Cisco and/or its affiliates.
This software is licensed to you under the terms of the Cisco Sample
Code License, Version 1.1 (the "License"). You may obtain a copy of the
License at
https://developer.cisco.com/docs/licenses
All use of the material herein must be in accordance ... |
if (!global.framework_utils)
global.framework_utils = require('./utils');
const Crypto = require('crypto');
const Https = require('https');
const Http = require('http');
const Url = require('url');
const Zlib = require('zlib');
const ENCODING = 'utf8';
const WEBSOCKET_COMPRESS = Buffer.from([0x00, 0x00, 0xFF, 0xFF]);... |
'use strict';
/* globals MockDOMRequest, MockNfc, MocksHelper, MozNDEFRecord, NDEF,
NfcUtils, NfcManager, MozActivity */
require('/shared/test/unit/mocks/mock_moz_ndefrecord.js');
require('/shared/test/unit/mocks/mock_settings_listener.js');
require('/shared/js/nfc_utils.js');
require('/shared/test/unit/mo... |
jQuery(function($){
if(!$('.a11yc')[0])
{
return;
}
//set grobal
window.a11yc_env = {
$a11yc_content : $('.a11yc').eq(0),
fixed_height : 0,
scroll_top_position : 0,
$footer : $('#a11yc_submit')[0] ? $('#a11yc_submit') : $(),
fixed_footer_top : $('#a11yc_submit')[0] ? $('#a11yc_submit').offset().top : 0 ,
... |
class Blockmatch extends Widget {
constructor(specification) {
super(specification);
this.numberpals;
this.levelsJSON = [
{"maxValueRange":"3","barType":"2COLOR/BARS","chunking":"0","maxTimePerItem":"9","level":"0\r"},
{"maxValueRange":"3","barType":"2COLOR/BARS/NUMBERS","chunking":"0","maxTimePerItem":"... |
/**
@Js-name:cart.js
@Zh-name:购物车JS函数
*/
//订单限额 2016-01-14
var sodTariff = 1000;
var newStore = false;
$(function() {
$('#dutyTotal').text(sodTariff);
var pageNum = 1;
var totalPage = 1;
$("#mytips").html(cartoedertip);
//重要紧急公告
mBox.open({
title: ['重要紧急公告', 'color:#8016AD;font-size:1... |
import webpack from 'webpack';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import httpProxyMiddleware from 'http-proxy-middleware';
import http from 'http';
import { spawn } from 'child_process';
import fs from 'fs';
import path from 'path';
impo... |
'use strict';
var imagesProcessed = 0;
var imagesTotal = 0;
var itemBundles = [];
addEventListener('DOMContentLoaded', function() {
const input = document.querySelector('form input');
const download = document.querySelector('button');
document.querySelector('form').addEventListener('submit', function(e) {
... |
var getKey = function(d) {
return d.Id;
}
var legendKey = function(d) {
return d.count;
}
// randX and randY return a random x and y location on the boundary of the
// graph. i%4 == 0 maps to bottom, i%4 == 1 maps to left, i%4 == 2 maps to top,
// and i%4 == 3 maps to right. Random position is selected on tha... |
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 <NAME> <<EMAIL>>
<NAME> <<EMAIL>>
<NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License versio... |
var COMMAND = hammerhead.get('../session/command');
var UploadInfoManager = hammerhead.get('./sandbox/upload/info-manager');
var hiddenInfo = hammerhead.get('./sandbox/upload/hidden-info');
var listeningContext = hammerhead.get('./sandbox/event/listening-context');
var INTERNAL_PROPS = hammerhead.g... |
const _ = require('lodash');
const objectHash = require('object-hash');
module.exports = function(context, options) {
const contextParser = require('./context-parser')(context,options);
const workflowService = context.app.service('workflows');
const operationService = context.app.service('operations');
const u... |
$(window).load(function () {
//--my code st
Date.prototype.yyyymmdd = function () {
var yyyy = this.getFullYear().toString();
var mm = (this.getMonth() + 1).toString(); // getMonth() is zero-based
var dd = this.getDate().toString();
Date.prototype.month_names_short ... |
/*
* Copyright (c) 2005-2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.ap... |
import React, { Component,PureComponent } from 'react';
import {
Card,
Button,
Form,
Icon,
Col,
Row,
DatePicker,
TimePicker,
Input,
Select,
Popover,
Checkbox,
Radio,
InputNumber,
Upload,
message,
Cascader,
Table,
Modal,
Tooltip,
Tag,
} from 'antd';
import { connect } from 'dva'... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Digimon Showdown *
* Created By: *
* Insist + Ashley the Pikachu + Stellation + AlfaStorm *
* Special Thanks to: ... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... |
"use strict";
function deg2rad(d) {
return d * Math.PI / 180;
}
function rad2deg(d) {
return d / Math.PI * 180;
}
function createProgramInfo(gl, vShaderSrc, fShaderSrc) {
const program = initShaders(gl, vShaderSrc, fShaderSrc);
return {
program: program,
uniformSetters: twgl.createUniformSetters(gl, program... |
"use strict";
var objExtend = require("./domutils.js").objExtend;
var console = require("console");
var _valueSet = function(defs, model, prop, value) {
var dotPos = prop.indexOf('.');
if (dotPos == -1) {
if (typeof model[prop] == 'undefined') {
console.log("Undefined prop " + prop + " while setting val... |
const { findRole, findUser, getWithWeight, getRandomNumber, jsDate2Mysql, setTimeout_, readableDateTimeText, color, nameToUuid, profile } = require("../../function.js");
const Discord = require("discord.js");
const { ms, createEmbedScrolling } = require("../../function.js");
const fetch = require("node-fetch").default;... |
import fontkit from '@pdf-lib/fontkit';
import {
clip,
clipEvenOdd,
closePath,
cmyk,
degrees,
drawRectangle,
endPath,
grayscale,
LineCapStyle,
LineJoinStyle,
lineTo,
typedArrayFor,
moveTo,
PDFDocument,
popGraphicsState,
pushGraphicsState,
rgb,
setLineJoin,
StandardFonts,
AFRelati... |
//HEADER************************************************************
function generatHeader() {
let boutonCarousel = document.createElement("button");
boutonCarousel.setAttribute("class", "sectcar")
boutonCarousel.innerHTML = "Carousel";
let boutonList = document.createElement("button");
bouto... |
import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import { Table } from 'antd'
import { Map, List, is, fromJS, Record } from 'immutable'
import { Resizable } from 'react-resizable';
import Checkbox from '../checkbox/index'
import uuid from './uuid'
//import $ from 'jquery'
import changeColSize f... |
import { db } from '../db.js';
const PATIENT_LIST_VIEW = 'patientList';
const ExcelJS = require('excel4node');
let info = [];
let index;
function date(dateObject) {
const d = new Date(dateObject);
const day = d.getDate();
const month = d.getMonth() + 1;
const year = d.getFullYear();
const date = `${day}.${... |
var Base = new function() {
var hidden = /^(statics|generics|preserve|enumerable|beans|prototype)$/,
proto = Object.prototype,
has = proto.hasOwnProperty,
proto = Array.prototype,
slice = proto.slice,
forEach = proto.forEach = proto.forEach || function(iter, bind) {
for (var i = 0, l = this.length; i < l... |
/****************************************************************************
UtilsUI - UI utility methods.
****************************************************************************/
var UtilsUI = {};
module.exports = UtilsUI;
var EventBus = require('app/common/eventbus');
var EVENTS = require('app/common/event_... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const fast_diff_1 = tslib_1.__importDefault(require("fast-diff"));
const path_1 = tslib_1.__importDefault(require("path"));
const vscode_languageserver_types_1 = require("vscode-languageserver-types");
const v... |
//console.log ("alexis");
console.log ("bem vindo ao curso");
//variáveis----------------------------------
/*
let idade=10;
console.log (idade);
let altura=175;
console.log (altura);
*/
/*
Maneiras de nomear uma variável
Não pode iniciar por números,caracteres especíais, ou espaços em branco.
O ideal é começar por... |
// REACT
import React, { useEffect, useRef, useState, useContext } from "react";
// MATERIAL UI
import Slide from "@mui/material/Slide";
import Typography from "@mui/material/Typography";
import FormGroup from "@mui/material/FormGroup";
import FormControlLabel from "@mui/material/FormControlLabel";
import Switch from "... |
import React, { useState, useEffect } from 'react';
import * as Moment from 'moment';
import CustomizedPopup from 'Assets/Elements/CustomizedPopup';
import { useTranslation } from 'react-i18next';
import { useForm, Controller } from 'react-hook-form';
import { InputAdornment, MenuItem, TextField } from '@material-ui/co... |
var
PeerState = require('./peer_state').PeerState,
Scuttle = require('./scuttle').Scuttle,
EventEmitter = require('eventemitter2').EventEmitter2,
net = require('net'),
util = require('util'),
child_process = require('child_process'),
dns = require('dns'),
debug = require('debug')('telepathine'),
dgram = requir... |
/* eslint-disable no-console */
/* eslint-disable no-unused-vars */
/* eslint-disable no-param-reassign */
/* eslint-disable react/no-array-index-key */
/* eslint-disable react/react-in-jsx-scope */
/* eslint-disable no-return-await */
/* eslint-disable no-restricted-globals */
/* eslint-disable consistent-return */
im... |
'use strict'
let currentLang = 'en'
export function setLanguage (lang) {
currentLang = lang
}
export function getLanguage () {
return currentLang
}
export function getAvailableLanguages () {
return ['en', 'es']
}
export function isValidLanguage (l) {
return getAvailableLanguages().indexOf(l) !== -1
}
expo... |
// global values
var countClicks = 0;
var num_of_clicks_on_obj = 0;
var startTime = new Date();
var endTime = startTime;
// var regal_ids = ["time/ID","sv1-1","sv1-2","sv2-1","sv2-2","sv3-1","sv3-2","sv4-1","sv4-2","sv5-1",
// "sv5-2","sv6-1","sv6-2","sv6-3","sv6-4","sv6-5","sv7","sv8","sv9-1","sv9-2","sv9-3",
// ... |
var QUnit = require('specs/qunit').QUnit,
module = require('specs/qunit').module,
expect = require('specs/qunit').expect,
equals = require('specs/qunit').equals,
start = require('specs/qunit').start,
stop = require('specs/qunit').stop,
test = require('specs/qunit').test,
ok = require('specs/qunit').ok;
... |
// Filename: beast.full.js
// Timestamp: 2013/12/24 (last modified)
// Author(s): Bumblehead (www.bumblehead.com), <NAME> (www.pupius.co.uk)
// Filename: domlt.js
// Timestamp: 2013.12.24-17:13:49 (last modified)
// Author(s): Bumblehead (www.bumblehead.com)
//
// documentElement.getBoundingClientRect() is... |
/***************************************************************************************************************
* Author: <NAME>
* Author URL: https://barbosagonzalez.github.io
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-business-frontpage/blob/master/LICENSE)
*
**********************... |
function getStringErrorCode100(errorcode) {
switch (errorcode) {
case 102:
return "AC voltage too high";
case 103:
return "AC voltage too low";
case 105:
return "AC frequency too high";
case 106:
return "AC frequency too low";
c... |
// Copyright 2013 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive license for use of this work by or on behalf of the U.S. Government. Export of this program may require a license from the United States Government.
var width = 4750;
var height = 2500;
var bubble_size = 1500;
... |
import abiDecoder from 'abi-decoder'
import asyncForEach from 'async-await-foreach'
import Web3 from 'web3'
import Permissions from 'safechannels-contracts/src/js/Permissions'
import Participant from 'safechannels-contracts/src/js/Participant'
import SafeChannelUtils from 'safechannels-contracts/src/js/SafeChannelUtil... |
var __g, _g = _g || {};
_g = (function() {
var __ = this;
this.isDebug = false;
this.$doc = document;
this.$win = window;
this._a = TweenMax;
this.$html = this.$doc.documentElement;
this.mq = this.$win.matchMedia('(max-width:750px)');
this.isSp = null;
this.isIos = null;
this.isAndroid = null;
this.isImgLoad... |
//App functions
var SlateApp = (function () {
//set default variables
this.uploadQueue = [];
this.uploadQueueNum = 0;
this.uploadQueueSlates = [];
this.origFiles = [];
this.currentUploadNum = 0;
//timeouts
this.isCheckUploads = null;
this.isCheckUploadsQueue = null;
this.isSuccessfulUploads = 0;
... |
//---------------------------------------------------------------------
//
// QR Code Generator for JavaScript
//
// Copyright (c) 2009 <NAME>
//
// URL: http://www.d-project.com/
//
// Licensed under the MIT license:
// http://www.opensource.org/licenses/mit-license.php
//
// The word 'QR Code' is registered trademar... |
var DRAW_HITBOXES = false;
//constants
var REDRAW_MS = 50;
var GODMODE = false;
var MOVEMENT = 3;
var MAX_SPEED_X = 20;
var MIN_SPEED_Y = 5;
var MAX_SPEED_Y = 15;
var WORLD_MAX_SCALE = 1.0;
var WORLD_MIN_SCALE = 0.05;
var WORLD_GROWTH_CONSTANT = 1.15;
var WORLD_SHRINK_CONSTANT = 0.995;
var DIR... |
import { statSync } from 'fs';
import { dirname, resolve, basename, extname, sep } from 'path';
import { makeLegalIdentifier, attachScopes, createFilter } from 'rollup-pluginutils';
import { walk } from 'estree-walker';
import MagicString from 'magic-string';
import { sync } from 'resolve';
var HELPERS_ID = '\0commonj... |
'use strict';
const Camera = require('./camera');
const Grid = require('./grid');
const Tile = require('./tile');
const Object = require('./object');
const Shape = require('./shape');
const Material = require('./material');
const Model = require('./model');
const Matrix = require('./matrix');
const DiscreteR... |
import { createL10nApplier, createReactive } from '../js/dumb-reactive.js'
import { ripple } from '../js/material.js'
import { localize, localizeWith } from '../js/l10n.js'
import { showClub, getClubByName } from '../js/lists.js'
import { savedClubs } from '../js/saved-clubs.js'
import {
currentTime,
identity,
no... |
window.addEventListener('load', load_game, false);
var Colors = {
red:0xf25346,
white:0xd8d0d1,
brown:0x59332e,
pink:0xF5986E,
brownDark:0x23190f,
blue:0x68c3c0,
};
function load_game() {
document.addEventListener('mousemove', handleMouseMove, false);
create_scene();
create_lights();
create_plane();
cr... |
/**
* @flow
* @file i18n messages
* @author Box
*/
import { defineMessages } from 'react-intl';
const messages = defineMessages({
today: {
id: 'be.today',
description: 'Shown instead of todays date.',
defaultMessage: 'today',
},
yesterday: {
id: 'be.yesterday',
... |
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function shuffle(array) {
var currentIndex = array.length, temporaryValue, randomIndex;
// While there remain elements to shuffle...
while (0 !== currentIndex) {
// Pick a remaining element...
... |
var Web;
function WebInterface() {
/*
* Main elements
* */
this.web_document = null;
/*
* Managers
* */
this.pages_manager = null;
this.ajax_manager = null;
this.notifications_manager = null;
this.hotel_manager = null;
this.customforms_manager = null;
/*
*... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 ReactDOM from 'react-dom';
import { buildClientSchema, Gr... |
// Implementation of Activity Vocabulary, with extension for ActivityPub
// https://www.w3.org/TR/activitystreams-vocabulary
// https://www.w3.org/TR/activitypub
// Note: their prototypes are defined after to allow the definition of ObjectFetcher
// Base for other elements - to put things in common
const ASBase = func... |
/**
* DevExtreme (viz/core/utils.js)
* Version: 20.2.3
* Build date: Tue Oct 20 2020
*
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
exports.map = map;
exports.normalizeEnum = normalizeEnum;
exp... |
'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... |
'use babel'
const {Range} = require('atom')
const Base = require('./base')
class Operator extends Base {
static operationKind = 'operator'
static command = false
recordable = true
wise = null
target = null
occurrence = false
occurrenceType = 'base'
flashTarget = true
flashCheckpoint = 'did-finish'... |
#!/usr/bin/env teajs
var exports = require("GL");
for (var p in exports) { global[p] = exports[p]; }
//adding matrix 4x4 library
/*
* Copyright (c) 2009, Mozilla Corp
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... |
/*eslint-disable*/
var dt = require('common/datetime');
var TZDate = require('common/timezone').Date;
describe('datetime', function() {
describe('millisecondsTo()', function() {
it('convert millisecond value to other types.', function() {
expect(dt.millisecondsTo('hour', 86400000)).toBe(24);
... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import querystring from 'querystring';
import { Card, Button, Popconfirm, message, Modal, Form, Select, Tooltip, Icon } from 'antd';
import Annotation from '../../components/Annotation';
import NicaiFo... |
// var if_exist;
// //个讨
// $('#single_ped').click(function() {
// if_exist = null;
// cfg_offense_expect = $('#cfg_offense_expect').val();
// var setting = {
// url: ZDurl+'?_c=monster&action=jsonlist&list_type=all&order_by=rarity-desc&_='+timestamp,
// // url: ZDurl+'?_c=adventure&action=proceed&island_id=3&a... |
'use strict';
var db = firebase.database();
var auth = firebase.auth();
var LANGUAGE = {
searchPlaceholder: "Buscar",
sProcessing: 'Procesando...',
sLengthMenu: 'Mostrar _MENU_ registros',
sZeroRecords: 'No se encontraron resultados',
sEmptyTable: 'Ningún dato disponible en esta tabla',
sInfo: 'Mostrando ... |
/*
INVOLT FRAMEWORK CORE FILE
<NAME> 2015
involt.github.io
This file is required. It contains communication bridge, core functions and JQuery methods.
1. Common functions and converting CSS to parameters
2. Serial communication functions
3. Bluetooth and Bluetooth LE communication functions
4. JQuery methods
... |
#!/usr/bin/env node
'use strict'
const manifest = require('./package.json')
const CWD = process.cwd()
const async = require('async')
const gm = require('gm')
const path = require('path')
const program = require('commander')
const _ = require('underscore')
const inquirer = require('inquirer')
const... |
/*
Webgl & Webgl2
*/
export const GL_COLOR_BUFFER_BIT = 16384;
export const GL_DEPTH_BUFFER_BIT = 256;
export const GL_STENCIL_BUFFER_BIT = 1024;
export const GL_TEXTURE_2D = 3553;
export const GL_TEXTURE_CUBE_MAP = 34067;
export const GL_TEXTURE_3D = 32879;
export const GL_TEXTURE_MAG_FILTER = 10240;
export co... |
/*!
* Contentstack Import
* Copyright (c) 2019 Contentstack LLC
* MIT Licensed
*/
const Promise = require('bluebird')
const fs = require('fs')
const path = require('path')
const _ = require('lodash')
const mkdirp = require('mkdirp')
const chalk = require('chalk')
const request = require('../util/request')
const he... |
// Copyright 2012 Traceur Authors.
//
// 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 ... |
//JQUERY function focus and blur
//focus es si el usuario ha insertado el foco en ese valor
//blur es si el usuario ha retirado el foco de ese valor
jQuery.fn.fill_or_clean = function () {
this.each(function () {
if ($("#name_user").attr("value") === "") {
$("#name_user").attr("value", "Nombre ... |
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||... |
/* global THREE */
const { EventDispatcher, Vector3, Euler } = THREE;
class Mission {
constructor(isRight = true) {
this.isRight = isRight;
// CONFIGURATION
this.CONFIGURATION_SERVICE_UUID = "0bb6d9ac-1012-448b-8485-495bea5238a7";
this.CONFIGURATION_CHARACTERISTIC_UUID =
"5a6256f0-fc1c-42b5-b... |
import { lazy } from "react";
import { ReactComponent as SupportIconImage } from "images/support-icon.svg";
import { ReactComponent as ShieldIconImage } from "images/shield-icon.svg";
import { ReactComponent as CustomizeIconImage } from "images/customize-icon.svg";
import { ReactComponent as FastIconImage } from "imag... |
var margin = {top: 30, right: 20, bottom: 40, left: 50},
theight = 81, // tardis height
tmargtop = 20,
tmargin = 30,
width = 960 - margin.left - margin.right,
height = 500 - margin.top - margin.bottom;
var runtime = 132 * 1000; // 132 seconds total run time
var dev,
hrinfo = [];
var columns ... |
import React, {
forwardRef,
useCallback,
useContext,
useMemo,
useRef,
useState,
useEffect,
} from 'react';
import { ThemeContext } from 'styled-components';
import { defaultProps } from '../../default-props';
import { Box } from '../Box';
import { Button } from '../Button';
import { Heading } from '../He... |
// <NAME> gave the 100th vote!
/**
I've been programming for 76+ months, and I have learned 69% of Intro to JS and 21% of Advanced Simulations.
I'm a 14-year-old homeschooled student in tenth grade, and I've been markup-ing/scripting/programming since I was 6.
I've been using Khan Academy for some math help... |
function BranchData() {
this.position = -1;
this.nodeLength = -1;
this.src = null;
this.evalFalse = 0;
this.evalTrue = 0;
this.init = function(position, nodeLength, src) {
this.position = position;
this.nodeLength = nodeLength;
this.src = src;
return this;
}
... |
lastLoc = window.location.pathname;
lastHash = window.location.hash;
$(function () {
$("#loading-overlay").addClass("hidden");
if (visibleURL) {
console.log("Should navigate to", visibleURL);
window.history.replaceState("", "", visibleURL);
}
addListeners();
initPlugins(false);
window.onpopstate = functi... |
/**
*
* JS Name : common.js
* Description : common
* author : GGCM93
* since : 2019. 10. 17.
* version : 1.0
* Modification Information
* since author description
* =========== ===================== ===========================
* 20... |
var test={
items:[
{uuid:"fefsfse", name:"Ajouter des besoins"},
{uuid:"555sfse", name:"Un besoin dépendant du précédent"},
{uuid:"444sfse", name:"Un autre besoin dépendant du précédent"},
{uuid:"789sfse", name:"Encore un besoin dépendant du précédent"},
{uuid:"999sfse", name:"Un sous sous besoin"... |
import $ from 'jquery'
import autosize from 'autosize'
function addTravel(){
var focusedEles = {
"editable": document.querySelector("#section>textarea:last-child"),//存放#section中获得焦点的可文本编辑的元素,默认为最后一个textarea;
"prev":null,//存放#section中前一个获得焦点的元素
"now":null//存放#section中当前获得焦点对象的元素
};
va... |
// This class stores information about model weights
// this is useful for extracting trained model weights
// or importing pre-trained model weights
class LayerWeights {
_layer;
_weights;
_bias;
constructor(layer) {
this._layer = layer;
}
_Float32ArrayFromBuffer(buffer, offset, byte_size) {
return ... |
#!/usr/bin/env node
const fs = require('fs');
const nodePath = require('path');
const { JSDOM } = require('jsdom');
const RSS = require('rss-generator');
const YAML = require('yaml');
const showdown = require('showdown');
const sharp = require('sharp');
const FlexSearch = require('flexsearch');
const { deburr, set, st... |
'use strict';
const Fs=require('fs');
const Os=require('os');
const Cp=require('child_process');
const Ev=require('events');
const Hp=require('http');
const Hps=require('https');
module.exports=class keUtility {
constructor () {
this.Custom = {}; this.Event = {}; this.INFOJ = {};
this.REC = []; this.SCREEN = ... |
WebHooksPlugin = {
handleAjaxError: function(dialog, response) {
dialog.cleanErrors();
if (response.status === 422) {
if (response.responseJSON.errored) {
$j.each(response.responseJSON.errors, function(index, errorMsg){
dialog.ajaxError(errorMsg)
});
}
} else {
console.log("----- begin webh... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// uuid: 4293b25a-0b5f-4af9-8dd7-a351ff686908
// ------------------------------------------------------------------------
// Copyright (c) 2018 <NAME>. All rights reserved.
// Licensed under the MIT License+uuid License. See License.txt for de... |
var WV = {};
function report(str)
{
console.log(str);
}
WV.screenSpaceEventHandler = null;
//WV.layersUrl = "data/layers.json";
WV.layersUrl = "/static/data/layers.json";
WV.defaultBillboardIconURL = "/images/mona_cat.jpg";
//WV.defaultAnchorIconURL = "/Viewer/images/purplePlacemark.png";
WV.defaultAnchorIconURL... |
// 封装
import domRender from './editor/createElement';
import CONFIG from './editor/config';
import codemirorTools from './editor/codemirror';
const { getState } = codemirorTools;
import { debounce } from 'lodash-es';
const INPUT_EVENT_DEBOUNCE_WAIT = 300;
// 工具图标功能
import './style/index.less';
import $tools from './... |
/*
* This file is part of the Companion project
* Copyright (c) 2018 Bitfocus AS
* Authors: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
*
* This program is free software.
* You should have received a copy of the MIT licence as well as the Bitfocus
* Individual Contributor License Agreement for companion along with
* thi... |
const { promiseChain } = require('lib/promise-utils.js');
const { Database } = require('lib/database.js');
const { sprintf } = require('sprintf-js');
const Resource = require('lib/models/Resource');
const { shim } = require('lib/shim.js');
const structureSql = `
CREATE TABLE folders (
id TEXT PRIMARY KEY,
title TEXT... |
'use strict'
const rgba = require('color-normalize')
const getBounds = require('array-bounds')
const extend = require('object-assign')
const glslify = require('glslify')
const pick = require('pick-by-alias')
const flatten = require('flatten-vertex-data')
const triangulate = require('earcut')
const normalize = require... |
'use strict';
const Promise = require('bluebird');
const NodeRestClient = require('node-rest-client-promise').Client;
const Request = require('request-promise');
const Speakeasy = require('speakeasy');
const HttpErrors = require('http-errors');
const Bunyan = require('bunyan');
const QueryString = require('querystring... |
import events from 'events';
import log from './logger';
import { errors } from 'appium-base-driver';
import RpcClientSimulator from './rpc-client-simulator';
import messageHandlers from './message-handlers';
import { appInfoFromDict, pageArrayFromDict, getDebuggerAppKey,
getPossibleDebuggerAppKeys, checkParam... |
function LoadSld( slideId )
{
if( !g_supportsPPTHTML ) return
if( slideId )
parent.SldUpdated(slideId)
g_origSz=parseInt(SlideObj.style.fontSize)
g_origH=SlideObj.style.posHeight
g_origW=SlideObj.style.posWidth
g_scaleHyperlinks=(document.all.tags("AREA").length>0)
if( g_scaleHyperlinks )
InitHLi... |
/// <reference path="typings/jquery/jquery.d.ts" />
/// <reference path="typings/bootstrap/index.d.ts" />
/// <reference path="typings/jstree/jstree.d.ts" />
/// <reference path="typings/main.d.ts" />
var $waitDialog;
var $editDialog;
var $folderTree;
var $loginModal;
var $outputPanel;
var $propertiesPanel;
var $elemen... |
import invert from 'lodash.invert'
import { snomedUri } from '../snomed/core.js'
// Get `{ coding, type }` for the subject concept of a Medication resource.
export const getSubjectConcept = resource => {
if (!resource.code) throw new Error('No code element found.')
if (!resource.code.coding) throw new Error('No c... |
const {app, BrowserWindow, globalShortcut, ipcMain, dialog} = require('electron'); //globalShortcut must be defined with app or it does not work
const electron = require('electron');
require('v8-compile-cache');
/**
* -----------------------------------------------------------------
* Logging & app start
* ------... |
// @flow
const fs = require('fs')
const util = require('util')
const path = require('path')
const inquirer = require('inquirer')
const yaml = require('js-yaml')
const chalk = require('chalk')
const merge = require('lodash/merge')
const diff = require('diff')
const isValidDomain = require('is-valid-domain')
const mkdi... |
import cookies from './util.cookies'
import db from './util.db'
import log from './util.log'
import { Message } from 'element-ui'
const util = {
cookies,
db,
log
}
/**
* @description 更新标题
* @param {String} title 标题
*/
util.title = function (titleText) {
const processTitle = process.env.VUE_APP_TITLE || 'D2... |
/*
* 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 n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.