text stringlengths 3.07k 16k |
|---|
var vows = require('vows');
var assert = require('assert');
var sandbox = require('sandboxed-module');
var _ = require('underscore');
function fancyResultingMultiprocessAppender(opts) {
var result = { clientOns: {}, serverOns: {}, logged: [], ended: [] };
var fakeSocket = {
on: function (event, fn) {
r... |
const path = require('path')
const hljs = require('highlight.js')
const Token = require('markdown-it/lib/token')
const cheerio = require('cheerio')
const getBabelCommonConfig = require('./antd-tools/getBabelCommonConfig')
const babelConfig = getBabelCommonConfig(false)
babelConfig.plugins.push(require.resolve('babel-p... |
/**
* Copyright 2016 The AMP HTML 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
*
* Unless require... |
"use strict";
const { ChargingState, AutonomousCharging } = require("abstract-things");
const {
Vacuum,
AdjustableFanSpeed,
AutonomousCleaning,
SpotCleaning,
} = require("abstract-things/climate");
const MiioApi = require("../device");
const BatteryLevel = require("./capabilities/battery-level");
const checkR... |
"use strict";
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "sym... |
const mysql = require("mysql");
const inquirer = require("inquirer");
const Index = require("../index");
const connection = mysql.createConnection({
host: "localhost",
port: 3306,
user: "root",
password: "password",
database: "company_managingDB"
});
const addEmployee = async () => {
await co... |
// Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
import {UNMARKED, TENTH_FRAME, NINETH_FRAME, STRIKE, SPARE} from './constants.js';
const STRIKE_CHAR = 'X';
const SPARE_CHAR = '/';
const GUTTERBALL_CHAR = '-';
// Frame class represents a single frame as displayed on the bowling scorecard
// There will be ten of these per game
export class Frame {
constructor(nu... |
/**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2020 Mozilla Foundation
*
* 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... |
var hash = require('./hash')
module.exports = put
function put (db, clock, heads, key, value, opts, cb) {
if (typeof opts === 'function') return put(db, clock, heads, key, value, null, opts)
var req = new PutRequest(db, key, value, clock, opts)
req.start(heads, cb)
}
function PutRequest (db, key, value, clock,... |
const os = require('os')
const path = require('path')
const webpack = require('webpack')
const def = require('./webpack.def')
const HappyPack = require('happypack')
const happyThreadPool = HappyPack.ThreadPool({ size: os.cpus().length })
const postcssImport = require('postcss-import')
const autoprefixer = require('aut... |
function getUrl(url, parameters) {
var url_parameters = [];
var url_arr = url.split('?');
if (url_arr[1]) {
url_parameters = url_arr[1].split('&');
url_parameters.forEach(function (item, ind) {
if (item.indexOf('page') == 0 || item.indexOf('sort') == 0 || item.indexOf('only') == ... |
const _ = require('lodash');
const path = require('path');
const request = require('request-promise');
const { parse, testsMap, mapArgs, prepareTestSet } = require('./parser');
const { run } = require('./runner');
const { interactiveSetup, getConfig } = require('./setup');
const { asyncify } = require('asyncbox');
fu... |
var compress = require('compression')
var cors = require('cors')
var debug = require('debug')('instant')
var downgrade = require('downgrade')
var express = require('express')
var fs = require('fs')
var http = require('http')
var https = require('https')
var jade = require('jade')
var parallel = require('run-parallel')
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _babelHelperVueJsxMergeProps = require('babel-helper-vue-jsx-merge-props');
var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps);
var _defineProperty2 = require('babel-runtime/helpers/definePropert... |
// Load modules
var Squeeze = require('good-squeeze').Squeeze;
var Hoek = require('hoek');
var Moment = require('moment');
var SafeStringify = require('json-stringify-safe');
var Through = require('through2');
// Declare internals
var internals = {
defaults: {
format: 'YYMMDD/HHmmss.SSS',
utc: tr... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
'use strict';
const assert = require('assert');
const plugins = require('../../plugins');
const config = require('../config');
const fs = require('fs');
const path = require('path');
const waterStream = require('water-stream');
const helpers = require('../../shared/helpers');
// Set the cache ttl from the configuratio... |
const fs = require('fs');
const path = require('path');
const gatsbyConfig = require('./gatsby-config');
const pagePathPrefix = path.resolve(__dirname, 'src', 'pages');
const path2hrefs = {};
const path2title = {};
// Creates pages and populates pathHrefs.
exports.createPages = ({ graphql, actions: { createPage } }) ... |
const _ = require('underscore');
const Player = require('./player.js');
const EventRegistrar = require('./eventregistrar.js');
const Settings = require('../settings.js');
class Challenge {
constructor(game, properties) {
this.game = game;
this.attackingPlayer = properties.attackingPlayer;
t... |
import { createElement } from 'react';
import ReactDOM from 'react-dom';
import HeadManager from './head-manager';
import { createRouter } from 'avet-shared/lib/router';
import EventEmitter from 'avet-shared/lib/event-emiiter';
import App from 'avet-shared/lib/app';
import { getURL } from 'avet-shared/lib/utils';
impor... |
const db = require("../models");
const fs = require('fs');
// const User = db.user;
const Post = db.post;
const Comment = db.comment;
// Sauvegarde la création d'un nouveau post
exports.createPost = (req, res) => {
const id = req.params.id;
const date = Date.now()
if (req.file) {
const parseBody = JSON.pars... |
require('dotenv').config();
const { getSearchPlugins } = require('./src/utils/search');
const configManager = require('./src/utils/config');
const path = require('path');
const emoji = require('./src/utils/emoji');
const _ = require('lodash');
const config = configManager.read();
configManager.generate(__dirname + '/.... |
'use strict';
const Bundle = require('./bundle').Bundle;
const BundledSource = require('./bundled-source').BundledSource;
const CLIOptions = require('../cli-options').CLIOptions;
const LoaderPlugin = require('./loader-plugin').LoaderPlugin;
const Configuration = require('../configuration').Configuration;
const path = r... |
/*-----------------------------------------------*\
GLOBAL VARS
\*-----------------------------------------------*/
// URLS
var url_grid = window.location.origin + "/api/udmarticulo/"
var url_nuevo = window.location.origin + "/udmarticulo/nuevo/"
var url_editar = window.location.origin + "/udmarticulo/edit... |
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const sinon = require("sinon")
const Backbone = require("backbone")
const _ = require("underscore")
const { Show } = requir... |
import React, { useEffect, useState } from 'react'
// import PropTypes from 'prop-types'
import { useStaticQuery, graphql } from 'gatsby'
import { ScatterPlot } from '../Module'
import { Card } from '../../components/Base'
import * as d3 from 'd3'
import * as numeric from 'numericjs'
import { SVD } from 'svd-js'
const... |
import { useState } from "react";
import { Form, Input, Popover, Button, Alert, Modal, Spin, Select } from "antd";
import { RocketOutlined } from "@ant-design/icons";
import { v4 as uuidv4 } from "uuid";
const languages = [
{
label: "English",
value: "en",
},
{
label: "Chinese",
... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const scriptNumber = require('./script_number');
const scriptSignature = require('./script_signature');
const types = require('./types');
const bip66 = require('bip66');
const ecc = require('tiny-secp256k1');
const pushdata = require('pushdata... |
"use strict";
const vscode = require("vscode");
const child = require("child_process");
const path = require("path");
const fs = require("fs");
const root = require("./root");
const common = require("./common");
const plugins = require("./plugins");
const output = vscode.window.createOutputChannel("Po... |
import React from 'react';
import PropTypes from 'prop-types';
import { graphql, withApollo } from '@apollo/client/react/hoc';
import { cloneDeep, get, uniqBy, update } from 'lodash';
import { NAVBAR_CATEGORIES } from '../lib/collective-sections';
import { API_V2_CONTEXT, gqlV2 } from '../lib/graphql/helpers';
import ... |
import { AbstractExperience } from '@soundworks/core/client';
import { render, html } from 'lit-html';
import renderInitializationScreens from '@soundworks/template-helpers/client/render-initialization-screens.js';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import throttle from 'lodash.throttle';
... |
'use strict';
const _ = require('lodash');
const pluralize = require('pluralize');
const SINGLE_TYPE = 'singleType';
const COLLECTION_TYPE = 'collectionType';
const ID_ATTRIBUTE = 'id';
const PUBLISHED_AT_ATTRIBUTE = 'published_at';
const CREATED_BY_ATTRIBUTE = 'created_by';
const UPDATED_BY_ATTRIBUTE = 'updated_by'... |
import * as _ from "lodash";
import models from "../models";
import interpreter from "../interpreter";
import hooksConfiguration from "!../hooks.json";
import Hook from "./hooks";
import {createSelector} from "reselect/lib/index";
import modelTranslator from "./modelTranslator";
import applyEffects from "./applyEffects... |
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
import { T... |
import Component from '@ember/component';
import { alias, reads } from '@ember/object/computed';
import ModalBase from 'ui/mixins/modal-base';
import { resolve } from 'rsvp';
import layout from './template';
import { get, set, computed, observer } from '@ember/object'
import { inject as service } from '@ember/service';... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
/* eslint-disable react/display-name */
import { useMutation, useQuery } from "@apollo/client";
import { isEnAttente, isEnCours, isEteinte } from "@emjpm/biz";
import { Checkbox, Label } from "@rebass/forms";
import { format } from "date-fns";
import { useMemo, useState } from "react";
import { Box, Flex, Text } from "... |
/**
* Copyright 2015 IBM Corp. 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 applica... |
const fs = require('fs');
const path = require('path');
const sdk = require('indy-sdk');
const agent = require('superagent');
const ledger = require('./ledger');
const crypto = require('./crypto');
const pairwise = require('./pairwise');
const message = require('./indy-message');
const blobStorage = require('./blob-st... |
var string = `interface BaseNodeMixin {
readonly id: string
readonly parent: (BaseNode & ChildrenMixin) | null
name: string // Note: setting this also sets autoRename to false on TextNodes
readonly removed: boolean
toString(): string
remove(): void
getPluginData(key: string): string
set... |
'use strict';
var util = require('util'),
XModule = require('../../../core/XModule'),
ltx = require('ltx'),
Promise = require('bluebird'),
uuid = require('uuid'),
NS = require('../namespace'),
JID = require('node-xmpp-core').JID,
Message = require('node-xmpp-core').Stanza.Message,
pubutil = require('..... |
"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if... |
const { JSDOM } = require('jsdom');
const { URL } = require('url');
const parallelLimit = require('run-parallel-limit');
const fs = require('fs');
const download = require('download');
const infoOrder = ['composer', 'developer', 'publisher', 'released', 'dumper', 'tagger'];
const toKeyValues = (element) => {
... |
var x_PI = 3.14159265358979324 * 3000.0 / 180.0;
var PI = 3.1415926535897932384626;
var a = 6378245.0;
var ee = 0.00669342162296594323;
var wgs84togcj02 = function wgs84togcj02(lng, lat) {
var lat = +lat;
var lng = +lng;
if (out_of_china(lng, lat)) {
return [... |
#!/usr/bin/env node
var github = require('octonode');
var fs = require('fs');
var secret = process.argv[2] || process.env.AMP_DOC_SECRET;
if(!secret) {
console.error("This script requires a github app secret to run.");
process.exit(1);
}
var client = github.client({
id: '96393b5b98b18d10aec2',
secret: secret
}... |
import { create } from 'apisauce'
import { encode } from 'base-64'
import { self } from 'react-native-workers'
import Secrets from 'react-native-config'
import { drawIsochron } from './drawIsochron'
const debug = false // set to true to enable log messages for debug
const useBoundaryDuration = true // if true, will fe... |
var bookshelf = require('../config/bookshelf');
var Tx = require('./tx.model');
var User = require('../user/user.model');
var Signer = require('../signer/signer.model');
var signerCollection = bookshelf.Collection.extend({
model: Signer
});
var userObj = {};
var txObj = {};
var signers = [];
var signComplete = 0;
mo... |
var argv = require('optimist')
.usage('\nGithub Flavored Markdown Server.\nRun in your project\'s root directory.\nUsage: $0')
.demand('p')
.alias('p', 'port')
.describe('p', 'Port number to listen at.')
.alias('h', 'host')
.describe('h', 'Host address to bind to.')
.default('h', 'localhost'... |
import { useState } from "react";
import axios from "axios";
import { useSelector } from "react-redux";
const WidgetsHelper = () => {
const baseUrl = process.env.REACT_APP_LARAVEL_URL;
const currentUser = useSelector((state) => state.currentUser);
const [loadData, setLoadData] = useState(true);
const [pemasuka... |
const URI = require('url');
const http = require('http');
const pack = require('./pack');
const crypto = require('crypto');
const EventEmitter = require('events');
const querystring = require('querystring');
const md5 = data => {
const buf = Buffer.from(data)
const str = buf.toString('binary')
return crypto.crea... |
#!/usr/bin/env node
const path = require('path');
const fs = require('fs');
const walkSync = require('fs-walk').walkSync;
const { emojiToCategory, matchEmojis } = require('./emojis');
const { getText, getURL } = require('./regex');
// These two arguments must be directories.
const input = process.argv[2];
const outp... |
import { createContext } from 'preact'
import { useContext, useEffect, useRef, useReducer } from 'preact/hooks'
import { fetchQuery, gql } from './query.js'
export { gql }
console.log('calling experiment-with-context.js')
class Collection {
constructor() {
this.reset()
}
reset() {
this.lastProvisionedI... |
// Dependencies
const fs = require("fs");
const mysql = require("mysql");
const inquirer = require("inquirer");
const { allowedNodeEnvironmentFlags, title } = require("process");
const connection = mysql.createConnection({
host: 'localhost',
// port
port: 3306,
// username
user: 'root',
... |
import nodeVisitor from './nodeVisitor'
import { getTagId } from '../tag'
import { findIndex } from '../utils'
const Keys = {
Up: 'ArrowUp',
Down: 'ArrowDown',
Left: 'ArrowLeft',
Right: 'ArrowRight',
Enter: 'Enter',
Home: 'Home',
PageUp: 'PageUp',
End: 'End',
PageDown: 'PageDown',
}
export const Nav... |
import {
getCommonHeader,
getCommonContainer
} from "egov-ui-framework/ui-config/screens/specs/utils";
import set from "lodash/set";
import { ShgMemberReviewDetails } from "./viewSHGMemberResource/shg-member-review"
import { poViewFooter } from "./viewSHGMemberResource/footer";
import { getQuer... |
var mathUtil = require('./mathUtil');
var polyline = require('@mapbox/polyline');
var DEFAULT_TOLERANCE = 0.1;
/**
* Returns sin(initial bearing from (lat1,lng1) to (lat3,lng3) minus initial bearing
* from (lat1, lng1) to (lat2,lng2)).
*/
function sinDeltaBearing( lat1, lng1, lat2, lng2, lat3, lng3) {
le... |
var minCopyrightHeader = "/*! Trivial Components | (c) 2015 <NAME> and others | Apache License, Version 2.0 (https://raw.githubusercontent.com/trivial-components/trivial-components/master/LICENSE) */\n";
var gulp = require('gulp');
var gutil = require('gulp-util');
var bower = require('gulp-bower');
var less = require... |
// ==UserScript==
// @name Kraken - Withdrawal fees in EUR and sorted
// @description Enhances the Kraken withdrawal fees support page in your browser with fees in euros (fetched from CoinGecko) and sorts the table on those euro fees
// @namespace https://github.com/Eegee/violentmonkeyscripts
// @match ... |
import amap from '@/components/amap-wx/lib/amap-wx.js';
// 地铁颜色图
const line = {
'1号线': '#C43B33',
'2号线': '#016299',
'4号线/大兴线': '#008E9C',
'5号线': '#A42380',
'6号线': '#D09900',
'7号线': '#F2C172',
'8号线': '#009D6A',
'9号线': '#8FC41E',
'10号线': '#009DBE',
'13号线': '#F9E701',
'14号线东段': '#D4A7A2',
'14号线西段': '#D4A7A2',
... |
var config = require(__dirname + '/config.js');
// Express
var express = require('express');
var compression = require('compression');
var bodyParser = require('body-parser');
var methodOverride = require('method-override');
var cookieParser = require('cookie-parser');
var session = require... |
var Infinity = 1 / 0
, $def = require('./$.def')
, E = Math.E
, pow = Math.pow
, abs = Math.abs
, exp = Math.exp
, log = Math.log
, sqrt = Math.sqrt
, ceil = Math.ceil
, floor = Math.floor
, EPSILON = pow(2, -52)
, EPSILON32 = pow(2, -23)
, MAX32 = pow(2, 127) * (2 - EPSILON... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import Button from 'react-bootstrap/Button';
import axios from 'axios';
import Accordion from 'react-bootstrap/Accordion';
import Card from 'react-bootstrap/Card';
import { Icon } from '@iconify/react';
import arrowDropDownLine from ... |
import React from 'react';
import clsx from 'clsx';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from './styles.module.css';
const features = [
{
title: ... |
import { is, NA, } from '../utils.js';
import { chunker as t } from './chunker.js';
const W = (cond,k,o) => cond ? { [k]: o } : o, // wrap
S = a => 1 === a.length ? a[0] : a, // simplify
I = t => t; // identity / pass-through / no-op / preserve as-is
/**
* String parser for Markdown syntax,
* and compile... |
'use strict'
const url = require('url')
const debug = require('./../debug').authentication
const IDToken = require('@solid/oidc-op/src/IDToken')
/**
* Hidden form fields from the login page that must be passed through to the
* Authentication request.
*
* @type {Array<string>}
*/
const AUTH_QUERY_PA... |
module.exports = Swarm
const arrayRemove = require('unordered-array-remove')
const debug = require('debug')('bittorrent-tracker:swarm')
const LRU = require('lru')
const randomIterate = require('random-iterate')
// Regard this as the default implementation of an interface that you
// need to support when overriding Se... |
// Load all the dependences and set them up if necessary
require("dotenv").config();
const keys = require("./keys.js");
const axios = require('axios');
const fs = require('fs');
const moment = require('moment');
const SpotifyAPI = require('node-spotify-api');
const spotify = new SpotifyAPI(keys.spotify);
// Global var... |
import React, { useRef, useEffect } from 'react';
import Cropper from 'cropperjs';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby g... |
"use strict";
//---------------- game object
const game = {};
// reference game blocks by number, set as keys on game object, and immediately invoke (IIFE)
(() => {
for(let i = 0; i < 9; i++){
game[`number-${i}`] = document.getElementById(`number-${i}`);
}
})();
//---------------- private keys
game.turnIs = ... |
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Almond
//
// Copyright 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 License.
/... |
import * as React from 'react'
import {getReporteCampos, getReporteCamposCSV} from "../reporte_ciclos/reporteCampos";
import OpcionesPageSize from "../../pregrado/components/OpcionesPageSize";
import ReactPaginate from "react-paginate";
import {getCarreras, getCiclosAcademicos, getDelegaciones, getUnidades} from "../..... |
/**
* Functions for text editing (toolbar stuff)
*
* @todo most of the stuff in here should be revamped and then moved to toolbar.js
* @author <NAME> <<EMAIL>>
*/
/**
* Creates a toolbar button through the DOM
*
* Style the buttons through the toolbutton class
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <... |
const Discord = require('discord.js')
const {MessageMentions} = require('discord.js')
const {
privateChannelPrefix,
listify,
sendBotMessageReply,
getCategory,
getMember,
getCommandArgs,
timeToMs,
} = require('../utils')
const {
defaultLifeTimeMinute,
warningStepMinute,
maxInactiveTimeMinute,
eolRe... |
'use strict';
var assert = require('assert');
var crypto = require('crypto');
var events = require('events');
var net = require('net');
var Q = require('q');
var readline = require('readline');
var util = require('util');
var errors = require('../errors');
var proxy = require('./proxy');
var Client = function JestC... |
'use strict'
var net = require('net')
var fork = require('child_process').fork
var impromptu = require('../lib/impromptu')
var path = require('path')
var fs = require('fs')
var minimist = require('minimist')
var dtp = require('dtrace-provider').createDTraceProvider('impromptu')
dtp.addProbe('socket-connect', 'int')
d... |
'use strict';
const config = require('../config');
const http = !config.secure ? require('http') : require('https');
const express = require('express');
const bodyParser = require('body-parser');
const logger = new require('./logger')();
const path = require('path');
const fs = require('fs');
const port = no... |
var newRes;
//
// socket.on('reservoir', function(res, wells) {
// restoreResMethods(res);
// console.log('res', res);
// console.log('wells', wells);
// //resObj = clone(res);
// newRes = clone(res);
// wellsObj = wells;
// //wellsObj = [{ loc: { x: 1, y: 3 }, p_bh: 3350 }, { loc: { x: 25, ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _base = require("../utils/base");
var _reactEmotion = _interopRequireDefault(requir... |
var path = '../../';
var cfg = {
path: path,
map: {
center: [13.36, 100.98], // map center lat, lng, default [13.36, 105.98]
zoom: 6, // zoom level, default 6
min_zoom: 4, // minimum zoom level, default 1 (Min level = large area)
double_click_zoom: true, //disable dou... |
// node-slate
// Imports
const browserSync = require('browser-sync');
const cleanCss = require('gulp-clean-css');
const concat = require('gulp-concat');
const del = require('del');
const ejs = require('gulp-ejs');
const fs = require('fs');
const gulp = require('gul... |
import * as tslib_1 from "tslib";
import { getType as getListType, ListBuilder } from '../builder/list-builder';
import { parseString } from '../text';
import { normalizePMNodes } from '../utils/normalize';
import { parseMacroKeyword } from './keyword';
import { TokenType, parseToken } from './';
import { parseNewlineO... |
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(this, arguments); }
f... |
/*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import * as PushConstants from 'dashboard/Push/PushConstants';
import ParseApp from 'lib/ParseApp';
import React... |
function albums(){
var request;
var desc = new Array();
var lang=getCookie('lang');
if(window.XMLHttpRequest)
{
request=new XMLHttpRequest();
} else {
request=new ActiveXObject("Microsoft,XMLHTTP");
}
request.open('GET', 'json/pictures.json');
request.onreadyst... |
function readParticipant(_ParticipantID) {
var conn;
var participant = {};
try {
conn = $.db.getConnection();
var select = 'SELECT "ID", "EventID", "FirstName", "LastName", "Twitter"'
+ ' FROM "com.sap.sapmentors.sitreg.odataparticipant.procedures::ParticipantsRead"'
... |
import {
ElementMixin
} from "./chunk-6TGXYB6C.js";
import {
IronResizableBehavior
} from "./chunk-D4OAJTCX.js";
import {
mixinBehaviors
} from "./chunk-BFXXBFHG.js";
import {
DomIf
} from "./chunk-ZNYRZO32.js";
import {
DomRepeat
} from "./chunk-DYEQLZCC.js";
import {
afterNextRender
} from "./chunk-5SUV3F... |
/* eslint-disable */
import store from '../../store';
import mySkyHelper from './helpers/mySkyHelper';
import Provider from './common/Provider';
import utils from '../utils';
import badgeSvc from '../badgeSvc';
const dbName = 'Main workspace';
export default new Provider({
id: 'mySkyWorkspace',
name: 'SkyDB',
... |
import React, { useEffect, useState } from "react";
import { makeStyles } from "@material-ui/core/styles";
import Table from "@material-ui/core/Table";
import TableBody from "@material-ui/core/TableBody";
import { styled } from '@mui/material/styles';
import TableCell, { tableCellClasses } from '@mui/material/TableCell... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactRouterPropTypes from 'react-router-prop-types';
import { connect } from 'react-redux';
import isEqual from 'lodash/isEqual';
import moment from 'moment';
import queryString from 'qs';
import { TitleManager } from '@folio/stripes/c... |
/*
* Função que associa uma funçào listener quando o DOM é carregado
* Equivale ao $(function() { ... }); do jQuery
* Obtido em http://youmightnotneedjquery.com/
*/
var documentReady = function (fn) {
if (document.readyState !== 'loading') {
fn();
} else {
document.addEventListener('DOMContentLoaded', f... |
'use strict';
const resolvePackagePath = require('resolve-package-path');
const { findUpPackagePath } = resolvePackagePath;
const fs = require('fs');
const path = require('path');
const parseIdentifier = require('./parse-identifier');
const AppsCheckedForPathConflict = new Set();
function isAddon(pkg) {
return pkg... |
$(document).on({
ajaxStart: function () {
$("body").addClass("loading");
},
ajaxStop: function () {
$("body").removeClass("loading");
},
});
$(() => {
get_proveedorHuevo();
get_field();
get_huevo();
});
let proveedor =[];
let cigars = [];
let edit=false;
let idCurrent =0;
get_proveedorHuevo= () =>... |
'use strict';
const htmlMinifier = require('html-minifier');
const cookRawQuasi = require('./cook-raw-quasi');
const {normalizeModulesConfig, getModuleConfig} = require('./config.js');
function setupDefaultBindingOption(bindings, binding, moduleConfig) {
if (!moduleConfig.defaultExport) {
return false;
}
bindin... |
import React from 'react';
import { useToggle, useGetSet, useEffectOnce } from 'react-use';
import numeral from 'numeral';
import router from 'umi/router';
import { connect } from 'dva';
import {
Form,
Button,
Card,
Typography,
} from 'antd';
import WithTableName from '@/components/HOC/WithTableName';
/... |
// CUADRADO ********
function perimetroCuadrado(lado){
return diametro = lado * 4;
}
function areaCuadrado(lado){
return diametro = lado * lado;
}
// TRIÁNGULO ********
const ladoTriangulo1 = 6;
const ladoTriangulo2 = 6;
const ladoTriangulo3 = 4;
const alturaTriangulo = 5.5;
function perimetroTriangulo(lado1... |
let example_nodes = ['A', 'G']
function GetSampleData(){
let exampleData = document.getElementById('txtSample').value
if(exampleData.length>0)
example_nodes = exampleData.split(',')
else{
let node_list = cy.elements('node')
node_list.forEach(node=>{
example_nodes.push(nod... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... |
/**
* 通用uni-app网络请求
* 基于 Promise 对象实现更简单的 request 使用方式,支持请求和响应拦截
* @author qiaomingxing
*/
const CONTENT_TYPE = {
json: 'application/json;charset=UTF-8',
urlencoded: 'application/x-www-form-urlencoded',
formdata: 'multipart/form-data'
}
class HttpHeader {
constructor(params) {
Object.keys(params).forEa... |
/* dashboard.js */
// 绘制仪表盘
function paintBoard(canvas, context, board) {
/* 0. 保存状态 */
context.save();
/* 1. 定义配置变量 */
let boardR = board.getRadius();
let r2 = boardR / 10.0;
let border = board.getBoder();
let offset = 20;
/* 2. 有抗锯齿吗? */
/* 3. 重映射 canvas 的原点 */
context.translate(boardR + offset, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.