text stringlengths 2 1.04M |
|---|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.set = exports.get = exports.extend = exports.combine = exports.collapse = exports.extract = exports.construct = exports.isInstance = undefined;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.lengt... |
const foods = [
'two number 9s',
'a number 9 large',
'a number 6 with extra dip',
'a number 7',
'two number 45s, one with cheese',
'a large soda.']
// in the current order, getting and removing elements in order would require foods.shift()
// which is slow. reversing the array lets us pop() instead, which is O(1)... |
import { applyMiddleware, compose, createStore } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './rootReducer';
import { routerMiddleware } from 'react-router-redux';
import promiseMiddleware from 'redux-promise-middleware';
import reduxReset from 'redux-reset';
const configureStore = (initial... |
import React from "react"
import { useStaticQuery, graphql, Link } from "gatsby"
import { WorksTimeLine } from "../components/WorksTimeLine"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import {
faUserGraduate,
faUniversity,
faPlaneDeparture,
faPlaneArrival,
} from "@fortawesome/free-solid-... |
var path = require('path');
var webpack = require('webpack');
var config = {
entry: './src/index.tsx',
output: {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',
filename: 'build.js'
},
module: {
rules: [
// All files with a '.ts' or '.tsx' extension will be handled by 'awes... |
var fs = require('fs')
, path = require('path')
, utils = require('utilities')
, helpers = require('../template/helpers')
, actionHelpers = require('../template/helpers/action')
, usingCoffee;
module.exports = new (function () {
var PAT = /\.(js|coffee)$/;
this.init = function (app, callback) {
var ... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
#!/usr/bin/env node
//插件类
var fs = require("fs"),
path = require("path"),
http = require("http"),
sizeOf = require('image-size'),
argv = require("minimist")(process.argv.slice(2));
// 全局函数
var workpath, arrRes = [];
// 工具类
var reImagePath = /^.+\.(jpg|jpeg|png|bmp|tiff|webp|svg)$/i;
var reUnderscore = /^_*(... |
const config = require('../../config');
const CloudFoundryAuthClient = require('./cfAuthClient');
const HttpClient = require('./httpClient');
const { filterEntity, firstEntity, objToQueryParams } = require('.');
class CloudFoundryAPIClient {
constructor() {
this.authClient = new CloudFoundryAuthClient();
thi... |
const { Ammo, Physics, ServerClock, Loaders, ExtendedObject3D } = require('@enable3d/ammo-on-nodejs')
const path = require('path')
class ServerScene {
constructor() {
this.init()
this.create()
}
init() {
// init the Physics
this.physics = new Physics()
this.factory = this.physics.factory
}... |
export class LineDrawer {
getSidesCount() {
return 1;
}
draw(context, particle, radius) {
context.moveTo(0, -radius / 2);
context.lineTo(0, radius / 2);
}
} |
const got = require('@/utils/got');
const dayjs = require('dayjs');
module.exports = async (ctx) => {
const { gridName, lang } = ctx.params;
// 默认语言
let langurl = 'zh/HK';
let textshow = {
tprice: '价格',
tdiscount: '优惠',
tplusfree: 'PLUS 免费',
tendtime: '此优惠仅限',
e... |
//! no-harness
//! expect-exit: -15
//! expect-stderr: TIMEOUT: Process terminated after 0.25 seconds.
//! timeout: 0.25
// no code, so phantom will just sleep forever |
{
config.bar = true;
return config;
} |
"use strict";
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.13.9
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator... |
var AppDispatcher = require('../dispatcher/AppDispatcher');
var EventEmitter = require('events').EventEmitter;
var assign = require('object-assign');
var CHANGE_EVENT = 'change';
var collectionTweets = {};
var collectionName = 'new';
function addTweetToCollection(tweet) {
collectionTweets[tweet.id] = tweet;
}
fun... |
function shortcut(shortcut,callback,opt) {
//Provide a set of default options
var default_options = {
'type':'keydown',
'propagate':false,
'target':document
}
if(!opt) opt = default_options;
else {
for(var dfo in default_options) {
if(typeof opt[dfo] == 'undefined') opt[dfo] = default_options[dfo];
}
}
var ele = opt.ta... |
module.exports = {
PUSH: 'PUSH',
REPLACE: 'REPLACE',
POP: 'POP',
RELOAD: 'RELOAD',
INITIAL: 'INITIAL'
}; |
(function () {
'use strict';
angular.module('app.customermaintenance').controller('ControllerEditCustomerAccount', ControllerEditCustomerAccount);
/* @ngInject */
function ControllerEditCustomerAccount(UserService,customerAccount,$state, $rootScope, $http) {
/* jshint validthis: true */
... |
module.exports = {
images: {
domains: ['assets.vercel.com'],
},
} |
/*
Component Scaffolding Script
This is a script that enables scaffolding a new JSS component using `jss scaffold <componentname>`.
Edit this script if you wish to use your own conventions for component storage in your JSS app.
*/
/* eslint-disable no-throw-literal,no-console */
const fs = require('fs');
const ... |
import Ext_sparkline_Base from '../../Ext/sparkline/Base.js';
export default class Ext_sparkline_Line extends Ext_sparkline_Base {
static PROPERTIES() { return [
'ariaAttributes',
'ariaDescribedBy',
'ariaLabel',
'ariaLabelledBy',
'bind',
'border',
'chartRangeMax',
'chartRangeMaxX',
... |
import {
Toolkit,
LazyMedia,
Lightbox,
SmoothScroll,
SocialSharing,
Cookies
} from "../index";
Toolkit.add(LazyMedia);
Toolkit.add(Lightbox);
Toolkit.add(SmoothScroll);
Toolkit.add(SocialSharing);
let config = {
"debug": false,
"env": {
"development": true,
"production": false
},
"theme": ... |
/** Copyright (c) 2013 Toby Jaffey <toby@1248.io>
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, publish,... |
'use strict';
/**
* @ngdoc overview
* @name davinciNfcDecoderApp
* @description
* # davinciNfcDecoderApp
*
* Main module of the application.
*/
angular
.module('davinciNfcDecoderApp', [
'ngAnimate',
'ngCookies',
'ngResource',
'ngRoute',
'ngSanitize',
'ngTouch'
])
.config(function (... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import { Provider } from 'react-redux';
import { store } from './components/store';
import { BrowserRouter } from 'react-router-dom';
import App from './components/app/App';
// import reportWebVitals from './reportWebVitals';
import { ... |
import SignIn from '../../pages/SignIn'
import SignUp from '../../pages/SignUp'
import Favorites from '../../pages/Favorites'
import Posts from '../../pages/Posts'
import Groups from '../../pages/Groups'
import Profile from '../../pages/Profile'
export default [
{
path: '/',
redirect: '/posts'
},
{
p... |
import React from "react";
import { Progress } from "@chakra-ui/react";
import PropTypes from "prop-types";
const ProgressBar = ({ width }) => (
<Progress value={width} colorScheme="linkedin" />
);
ProgressBar.propTypes = {
width: PropTypes.number.isRequired,
};
export default ProgressBar; |
import React, { Component } from "react";
import { connect } from "react-redux";
import { addArticle } from "../actions/index";
// import './Form.css';
function mapDispatchToProps(dispatch) {
return {
addArticle: article => dispatch(addArticle(article))
};
}
class ConnectedForm extends Component {
constru... |
/*! jQuery UI - v1.12.1 - 2016-09-14
* http://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/e... |
/* eslint-disable react/no-danger */
import Mousetrap from 'mousetrap';
import React from 'react';
import Component from '../component';
import {connect} from '../utils/plugins';
import * as uiActions from '../actions/ui';
import HeaderContainer from './header';
import TermsContainer from './terms';
import Notificat... |
export * from "./images";
export const approvedAddresses = [
"0x061aFcFF60b90E0F633F8ef157e01BaB9b2FfDD3",
"0x18270bA6dA0380a2cbC705bc6C0AD6651282bD14"
]; |
'use strict';
import { Breadcrumb } from 'react-breadcrumbs';
import { Redirect, Route, Switch } from 'react-router-dom';
import DocumentTitle from 'react-document-title';
import Page0_Overview from './0_overview.js';
import Page1_ConfigureKubeCTL from './1_configure_kubectl.js';
import Page2_SimpleExample from './2_s... |
/**
* Anonymous function to use
**/
function multiplier(x) {
var factor = x;
return f => x * f;
}
function processData(input) {
var waterWeight = multiplier(1);
var mercuryWeight = multiplier(1.355);
var oilWeight = multiplier(0.900);
console.log("Weight of " + input + " metric cube of wa... |
import React, { useState } from "react";
import {
Button,
Modal,
ModalHeader,
ModalBody,
ModalFooter,
FormGroup,
} from "reactstrap";
import "bootstrap/dist/css/bootstrap.min.css";
const ModalEditarEmpleado = (props) => {
const { buttonLabel, className, data } = props;
const [modal, setModal] = useStat... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.
//>>built
define({"dgrid/extensions/nls/pagination":{status:"${start} - ${end} of ${total} results",gotoFirst:"Go ... |
/*
* Copyright 2017 Palantir Technologies, Inc. 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 req... |
'use strict';
var moment = require('moment'),
Promise = require('bluebird'),
_ = require('underscore');
function TeamView(args) {
var me = this;
this.base_date = args.base_date || moment();
this.user = args.user;
}
/**
* This function adds the object leave_summary and total_leave for the given mo... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Returns `true` if the Key was released within the `duration` value given, based on the current
* game clock time. Or returns `false` if ... |
/**
* @file Conventional Changelog Configuration
* @see https://github.com/conventional-changelog
*/
const sections = {
breaking: ':boom: Breaking Changes',
build: ':hammer: Build',
chore: ':pencil2: Housekeeping',
docs: ':book: Documentation',
feat: ':sparkles: Features',
fix: ':bug: Fixes',
perf: ':... |
import { Meta } from "./Meta";
import { ProgressBar } from "./ProgressBar";
import { BaseLayout } from "./BaseLayout";
export const AppWrapper = ({ children, isHome }) => {
return (
<>
<Meta />
<ProgressBar />
<BaseLayout isHome={isHome}>{children}</BaseLayout>
</>
);
}; |
/*
* 借助阿里云 DNS 服务实现 DDNS(动态域名解析)
*/
const Core = require('@alicloud/pop-core')
module.exports = class AliyunClient {
constructor(accessKeyId, accessKeySecret) {
if (!accessKeyId || !accessKeySecret) {
throw new Error(`Aliyun accessKeyId and accessKeySecret are required`)
}
th... |
/**
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib 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 a... |
// Copyright © 2020 The Things Network Foundation, The Things Industries B.V.
//
// 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
//
// Un... |
import styled from 'styled-components/native';
import {
responsiveScreenHeight,
responsiveScreenWidth,
responsiveScreenFontSize,
} from 'react-native-responsive-dimensions';
export const SubHeader = styled.View`
width: ${responsiveScreenWidth(89.74)}px;
align-self: center;
`;
export const SelectionWrapper =... |
const application = require('application')
const permissions = require('nativescript-permissions')
if (!permissions.hasPermission('RECEIVE_SMS')) {
permissions.requestPermissions([android.Manifest.permission.RECEIVE_SMS, android.Manifest.permission.CALL_PHONE, android.Manifest.permission.WRITE_EXTERNAL_STORAGE])
}
ap... |
(function() {
angular.module('thundurus').controller('pokepagectrl', function(fbFactory, $rootScope, $location, $http, $scope) {
var vm;
vm = this;
vm.pokemon = {};
$http.get("http://pokeapi.co/api/v1" + $location.$$path).success(function(data) {
vm.pokemon = data;
console.log(vm.pokemon);... |
"use strict";
// This icon file is generated automatically.
Object.defineProperty(exports, "__esModule", { value: true });
var FolderOpenFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M928 444H820V330.4c0-17.7-14.3-32-32-3... |
import React from 'react';
import PropTypes from 'prop-types';
import Grid from '@material-ui/core/Grid';
import Typography from '@material-ui/core/Typography';
import PolicyDescription from './PolicyDescription';
export const SelectedSecurityPolicyDescription = ({ title, selectedPolicyKey }) => (
<Grid
... |
import React from "react";
import styled from "@emotion/styled";
import { blurEdges, yOverflow } from "../layout";
const Wrapper = styled("div")`
margin: ${props => props.theme.spacing.small} 0;
max-height: 10vh;
padding: 2% 0;
${yOverflow}
${blurEdges};
`;
const Item = styled("div")`
font-size: ${prop... |
// Copyright (c) 2017, Bravo Logisitcs and contributors
// For license information, please see license.txt
frappe.ui.form.on('Border Procedures', {
refresh: function(frm) {
}
}); |
/*!
* Stylus - Expression
* Copyright(c) 2010 LearnBoost <dev@learnboost.com>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var Node = require('./node')
, nodes = require('../nodes')
, utils = require('../utils');
/**
* Initialize a new `Expression`.
*
* @param {Boolean} isList
* @api public
*/
var... |
/*
Strike by Appiphony
Version: 1.0.0
Website: http://www.lightningstrike.io
GitHub: https://github.com/appiphony/Strike-Components
License: BSD 3-Clause License
*/
({
onInit: function(component, event, helper) {
// create a pill component with null value and label to enter the markup into cache
he... |
import express from 'express';
let router = express.Router();
router.get('/', (req, res) => {
res.status(200).json({ message: 'Connected!' });
});
export default router; |
import React, { useState, useEffect } from 'react';
import { Jumbotron, Container, CardColumns, Card, Button } from 'react-bootstrap';
import { useParams } from 'react-router-dom';
import { REMOVE_BOOK } from '../utils/mutations';
import { useQuery, useMutation } from '@apollo/react-hooks';
import Auth from '../utils/a... |
import buildsys from './buildsys'; |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict';
const name = "pushpin-off";
const pathData = "M454 155q10 9 10 22t-10 23q-9 9-23.5 17t-32 15.5-35 14T331 258q12 37 3.5 76.5T296 403l-90-90L75 443q-11 12-23 0-5-5-5-11t5-11l131-131-91-90q30-30 69-38.5t77 3.5q... |
// Copyright (c) 2010-2018 The Bitcoin developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2018 TEDLab Sciences Ltd
// Tedchain code distributed under the GPLv3 license, see COPYING file.
var assert = require("assert");
var bitcore = require("bitcore-lib");
var ByteBuffer... |
import { inRange } from "lodash-es";
import { checkForRangeErrors } from "../helpers/utils/operations";
export default {
preCheck(validationValue) {
checkForRangeErrors(validationValue);
},
validate(value) {
const min = this.validationValue[0];
const max = this.validationValue[1] + 1;
return inR... |
import { constants } from 'echojs-lib';
import {
INDEX_PATH,
ACTIVITY_PATH,
SMART_CONTRACTS_PATH,
CONTRACT_LIST_PATH,
VIEW_CONTRACT_PATH,
ADD_CONTRACT_PATH,
CALL_CONTRACT_PATH,
VIEW_TRANSACTION_PATH,
PERMISSIONS_PATH,
FROZEN_FUNDS_PATH,
} from './RouterConstants';
export const HEADER_TITLE = [
{
path: IN... |
/**
* Flowtype definitions for SmartContractService_pb_service
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.11.0
*/
import * as SmartContractService_pb from "./SmartContractService_pb";
import * as TransactionResponse_pb from "./TransactionResponse_pb";
import * as Query_pb from "./Query_pb";
i... |
/**
* @license
* 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 ... |
export class BlueMatadorConfigCtrl {
constructor($scope) {}
}
BlueMatadorConfigCtrl.templateUrl = 'partials/config.html'; |
import { test } from '../qunit';
import { localeModule } from '../qunit-locale';
import moment from '../../moment';
localeModule('id');
test('parse', function (assert) {
var tests = 'Januari Jan_Februari Feb_Maret Mar_April Apr_Mei Mei_Juni Jun_Juli Jul_Agustus Agt_September Sep_Oktober Okt_November Nov_Desember D... |
/* eslint-env node */
/* eslint-disable @typescript-eslint/no-var-requires */
const withTM = require("next-transpile-modules")([
"@bloom-housing/shared-helpers",
"@bloom-housing/ui-components",
"@bloom-housing/backend-core",
])
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.... |
$(function(){
console.log("wwwwwwwwwwwwwHHHHHHH")
$(document).on('focus','.normal-input',function(){
$('.common-error-tips').hide();
});
}); |
import React,{Component} from 'react'
import {Link} from 'react-router-dom'
import MyContext from '../config/context'
import firebase from 'firebase'
import {db} from '../config/store'
import {omdbapi} from '../secret/index'
import axios from 'axios'
import { Facebook } from 'react-content-loader';
class movieDeta... |
angular.module('mrlapp.service.I2cMuxGui', [])
.controller('I2cMuxGuiCtrl', ['$log', '$scope', 'mrl', function($log, $scope, mrl) {
$log.info('I2cMuxGuiCtrl');
var _self = this;
var msg = this.msg;
// init
$scope.controllerName = '';
$scope.controllers = [];
$scope.controllerLabel = 'Co... |
goog.provide('owgis.ogc');
owgis.ogc.wmsversion = "1.3.0";// Current wms version used to make requests
owgis.ogc.wmsversionncwms2 = "1.1.1";// Current wms version used to make requests
owgis.ogc.wfsversion = "1.0.0";// Current WFS version used to make requests |
import React from 'react'
import { PageContent } from 'components/Content'
export default () => (
<PageContent>
<h2>404! Page not found.</h2>
</PageContent>
) |
'use strict';
const assert = require('assert');
const ironcache = require('iron-cache');
const ironCacheMutex = require('./iron_cache_mutex');
const BEANSTALKD_HOSTNAME = 'localhost';
const BEANSTALKD_PORT = 11300;
const QUEUE_TEST_PREFIX = 'test-';
const IRONIO_HOSTNAME = 'mq-aws-us-east-1-1.i... |
import { maxZoom, minZoom } from './defaults.json'
/**
* @class Maps
*
* @classdesc Manages Google Maps components
*
*/
export default class Map {
constructor(id, google, el, { center, styles, zoom }, handlers) {
this.id = id
this.map = new google.maps.Map(el, {
center,
clickableIcons: false... |
const Discord = require('discord.js');
const { Command } = require('discord.js-commando');
const moment = require('moment');
require('moment-duration-format');
const usage = require('usage');
const config = require('../../settings');
module.exports = class StatsCommand extends Command {
constructor(client) {
super(... |
var baseAPIUrl = "https://floating-taiga-3043.herokuapp.com/";
var siteReview = (function(){
function reviewSite(url, cb) {
postReview(url)
.done(function(data) {
cb(null, dataFormatify(data));
})
.fail(function(XMLHttpRequest, textStatus, errorThrown) {
// console.log(MLHttpRe... |
import React, { useEffect, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import {
insertAPI,
updateAPI
} from '../../state/actions/api-actions';
import './user.css';
export default function UserForm() {
const dispatch = useDispatch();
const selectedUser = useSelector(
(st... |
if(typeof require !== 'undefined'){
var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : this);
var BABYLON = globalObject["BABYLON"] || {};
var BABYLON0 = require('babylonjs/core');
if(BABYLON !== BABYLON0) __extends(BABYLON, BABYLON0);
var BABYLON;
(functi... |
export const ic_looks = { "viewBox": "0 0 24 24", "children": [{"name":"path","attribs":{"d":"M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-11z"},"children":[]}] }; |
/*
* Copyright (c) 2010-2014 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
require("ehr/triggers").initScript(this);
function onInit(event, helper){
helper.setScriptOptions({
removeTimeFromDate: false
});
}
function setDescrip... |
window.nextgenEditor.addShortcode('safe-email', {
type: 'inline',
plugin: 'shortcode-core',
title: 'Safe Email',
button: {
group: 'shortcode-core',
label: 'Safe Email',
},
attributes: {
icon: {
type: String,
title: 'Icon',
bbcode: true,
widget: 'input-text',
default... |
function contar(){
let ini = document.getElementById('txti')
let fim = document.getElementById('txtf')
let passo = document.getElementById('txtp')
let res = document.getElementById('res')
if (ini.value.length == 0 || fim.value.length == 0 || passo.value.length == 0){
res.innerHTML = 'Imposs... |
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const assert = require('assert');
describe('Composed focusout event', () => {
const URL = '/focusout-comp... |
class ErrorResponse extends Error {
constructor(message, statusCode) {
super(message);
this.statusCode = statusCode;
}
}
module.exports = ErrorResponse; |
/**
* eZmax API Definition
* This API expose all the functionnalities for the eZmax and eZsign applications.
*
* The version of the OpenAPI document: 1.1.3
* Contact: support-api@ezmax.ca
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.te... |
const { Fury } = require('fury');
const { expect } = require('../../chai');
const parse = require('../../../../lib/parser/oas/parseResponseObject');
const Context = require('../../../../lib/context');
const { minim: namespace } = new Fury();
describe('Response Object', () => {
let context;
beforeEach(() => {
... |
/*!
* Extensible 1.0.1
* Copyright(c) 2010-2011 Extensible, LLC
* licensing@ext.ensible.com
* http://ext.ensible.com
*/
/*
* Danish translation
* By JohnF
* 04-09-2007, 05:28 AM
*
* Extended and modified by Karl Krukow,
* December, 2007.
*/
Ext.UpdateManager.defaults.indicatorText = '<div class="loading-... |
import { PRESSED, PRESSED_THRESHOLD, RELEASED } from "./constants";
/** @module input */
/** Indica que es un botón */
export const BUTTON = "button";
/** Indica que es un eje */
export const AXIS = "axis";
/**
* Gamepad
*/
export class Gamepad {
/**
* Devuelve el estado del botón o del eje del gamepad.
*... |
(function() {var implementors = {};
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() |
/* global React */
import { Components } from '../components/index.js';
import { Utils } from '../utils.js';
export function banner(positionSpec, content) {
return Components.pure(function getBanner() {
return React.createElement(Components.Panel, {
style: Utils.positionSpecToStyle(positionSpec),
co... |
import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routes'
import permission from './permission'
Vue.use(VueRouter)
// vue-router push方法调用之后必须要.catch捕捉错误,修改之后可以省略.catch
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location, onResolve, onReject) {
... |
/* http://prismjs.com/download.html?themes=prism-coy&languages=markup+css+clike+javascript+c+docker+git+go+graphql+http+ini+java+json+makefile+markdown+properties+protobuf+python+scala+sql+yaml */
Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:/<!DOCTYPE[\s\S]+?>/i,cdata:/<!\[CDATA\[[... |
var thrift = require('thrift');
var _ = require('lodash');
var log = {
error: console.error,
warn: console.warn,
info: console.info,
debug: _.noop,
verbose: _.noop
};
/**
* Create a new thrift client
*
* @param {string} host
* @param {int} port
* @param {Object} service
* @param {Transport} transport
... |
import { FilePicker } from '../../index.js';
import TestUtil from '../TestUtil.js';
describe('FilePicker', () => {
const testUtil = new TestUtil(FilePicker);
testUtil.run({
mainCssClass: 'file-picker'
});
describe('.previewSize', () => {
testUtil.testMethod({
methodName: 'previewSize',
defaultValue: 'sm... |
// Copyright 2021 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
const users = [
{ name: 'Mango', active: true },
{ name: 'Poly', active: false },
{ name: 'Ajax', active: true },
{ name: 'Lux', active: false },
];
const toggleUserState = (allUsers, userName) => {
return new Promise((resolve) => {
const updatedUsers = allUsers.map(user =>
user.name === userName ?... |
export const octagon21 = "M7.925 16.998L4 13.072V7.924l3.924-3.926h5.15L17 7.924v5.148l-3.925 3.926z"; |
const WIDTH = 400
const HEIGHT = 400
let target = {
x: getRandomNumber(WIDTH),
y: getRandomNumber(WIDTH)
}
console.log(target)
let $map = document.getElementById('map')
let $distance = document.getElementById('distance')
let clicks = 0
$map.addEventListener('click', function(e){
clicks++
let distance... |
import filters from "./filters.js";
export default function(Vue, userFilters) {
Object.keys(filters).forEach(key => Vue.filter(key, filters[key]));
Object.keys(userFilters).forEach(key => Vue.filter(key, userFilters[key]));
} |
import play from './voice/play'
import say from './voice/say'
import qs from 'qs'
export const getUrl = (req, params) => {
return `${process.env.WEBHOOK_HOST}${req.baseUrl}${req.path}?${qs.stringify(params)}`
}
export const getNext = (req, { config, state }) => {
const parts = state.split('.')
const nextstate =... |
(function() {
'use strict';
var controllers = angular.module('opentele.controllers', [
'opentele.controllers.changePassword',
'opentele.controllers.errors',
'opentele.controllers.header',
'opentele.controllers.login',
'opentele.controllers.measurements',
'opentel... |
import BigNumber from 'bignumber.js/bignumber';
export const SUBTRACT_GAS_LIMIT = 100000;
const ONE_MINUTE_IN_SECONDS = new BigNumber(60);
const ONE_HOUR_IN_SECONDS = ONE_MINUTE_IN_SECONDS.times(60);
const ONE_DAY_IN_SECONDS = ONE_HOUR_IN_SECONDS.times(24);
const ONE_YEAR_IN_SECONDS = ONE_DAY_IN_SECONDS.times(365);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.