text
stringlengths
3
1.05M
// SIGN IN - DROP DOWN //const dropdown = document.querySelector(".dropdown"); const signcontain = document.querySelector(".signcontain"); //const toggle = const signIn = document.querySelector(".signin"); signIn.addEventListener("click", () => { signcontain.classList.toggle("hidden"); }); // // SIGN UP - DROP DOW...
/** * 向上查找离得最近的指定name的Vue组件对象 * @param context 当前上下文 * @param componentName 组件名 * @return {Vue} */ export function findComponentUpward(context, componentName) { let parent = context.$parent, name = parent.$options.name; while (parent && (!name || name !== componentName)) { parent = parent.$parent; ...
# Run with Python 3 import requests # 1. Get your keys at https://stepik.org/oauth2/applications/ # (client type = confidential, authorization grant type = client credentials) client_id = "..." client_secret = "..." # 2. Get a token auth = requests.auth.HTTPBasicAuth(client_id, client_secret) response = requests.post...
import React from 'react'; import { createStackNavigator } from '@react-navigation/stack'; import NewPlantHome from './NewPlantHome'; import MeasureFunction from './MeasureFunction'; import NewPlantEntry from './NewPlantEntry'; import ImagePickerScreen from './ImagePickerScreen'; import NewSnapshotPage from './NewSnaps...
const functions = require('firebase-functions'); const admin = require('firebase-admin'); const app = require('express')(); const algoliaClient = require('./../algolia/client'); app.use(require('cors')({ origin: true })); app.use((req, res, next) => { req.user = null; if (req.headers.authorization && req.headers...
from typing import Union import numpy as np from fmodeling.seismic.dynamic.zoeppritz_coeffs import puppup from fmodeling.seismic.dynamic.zoeppritz_coeffs_water import puppup_water from objects.seismic.boundaries.base_boundary import BaseBoundary from objects.seismic.waves import WD, WT class TransmissionUp(BaseBoun...
"use strict" var token = require("jwt-simple"); var momento = require("moment"); var claveSecreta = ("_interlibros321"); exports.cargarToken = function(usuario){ var cargarToken = { sub: usuario._id, nombre: usuario.usuario, now: momento().unix(), exp: momento().add(30, "days").unix() }; return...
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from data.base_dataset import BaseDataset, get_params, get_transform import torch import torchvision.transforms as transforms from PIL import Image import util.util as util import os import random #from scipy.ndimage.filters import gaussian_filte...
#!/usr/bin/python3 import rospy import ms5837 from sensor_msgs.msg import FluidPressure, Temperature class Ms5837InterfaceNode(object): def __init__(self): rospy.init_node("pressure_node") self.pub_pressure = rospy.Publisher( "sensors/pressure", FluidPressure, queue_size=1 )...
import { GlIcon } from '@gitlab/ui'; import { mount } from '@vue/test-utils'; import { trimText } from 'helpers/text_helper'; import UsersMockHelper from 'helpers/user_mock_data_helper'; import Assignee from '~/sidebar/components/assignees/assignees.vue'; import UsersMock from './mock_data'; describe('Assignee compone...
const path = require("path"); const webpack = require("webpack"); module.exports = { entry: "./src/index.js", mode: "development", module: { rules: [ { test: /\.(js|jsx)$/, exclude: /(node_modules)/, loader: "babel-loader", options: { presets: ["@babel/env"], ...
from exporter.tags.tag import LeafTag from exporter.util import terms_enumeration class FailedCountLeafTag(LeafTag): LEVELS = ("coverage", "coverageSet", "coverageEmpty", "quality") def __init__(self, gdocs, dataset_id): super().__init__(self.process_tag, gdocs, dataset_id) self.set_param_va...
const { existsSync } = require("fs"); const { readFile } = require("fs/promises"); const { parseFile } = require("music-metadata"); const { basename, extname, parse, format } = require("path"); const { detect } = require("chardet"); module.exports = { async readAudioTags(filePath) { const fileName = basename(file...
// This file was procedurally generated from the following sources: // - src/identifier-names/extends.case // - src/identifier-names/default/obj-assignment-prop-name.template /*--- description: extends is a valid identifier name (PropertyName of an ObjectAssignmentPattern) esid: prod-AssignmentPattern features: [destru...
const Hapi = require('@hapi/hapi') const nunjucks = require('nunjucks') const path = require('path') const { version } = require('../package.json') const vision = require('@hapi/vision') const inert = require('@hapi/inert') const config = require('./config/server') const crumb = require('@hapi/crumb') const Uuid = requ...
'use strict' const { Writable } = require('readable-stream') const setImmediate = (1, eval)('this').setImmediate || function (fn) { setTimeout(fn, 0) } module.exports = DevNull /** * Writable stream a-la /dev/null */ function DevNull () { const devnull = new Writable() devnull._write = function (chunk, encodi...
const glob = require('glob'); const { readFileSync, writeFileSync, mkdirSync } = require('fs'); const path = require('path'); const rimraf = require('rimraf'); const SOURCE_FILES_PATTERN = './src/**/*.js'; const DESTINATION_DIR = './__ts-tests__'; const EXAMPLE_REGEX = /(## Usage\n \* ```js)([\S\s]*?)(```)/g; const JS...
#!/usr/bin/env node const yargs = require("yargs"); const path = require("path"); const fs = require("fs"); const main = require("./main"); module.exports = async function () { yargs.default("projectRoot", process.cwd()); const project_root = yargs.argv.projectRoot; yargs.default( "libRoot", path.join(p...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2015 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * The Animation Manager is used to add, play and update Phaser Animations. * Any Game Object such as Phaser.Sprite tha...
const {flatten} = require('../Array'); const BaseCard = require('./basecard'); const Spectator = require('./spectator'); class Message { static fragment(format, ...args) { if(args.length === 1 && !format.includes('{0}')) { return new Message({ format, args: args[0] }); } return...
import { _wrapTRId } from '@/utils' export default ({ delayInMinutes, word }) => { const alarmId = _wrapTRId(word) chrome.alarms.clear(alarmId, wasCleared => { chrome.alarms.create(alarmId, { delayInMinutes, periodInMinutes: delayInMinutes }) }) }
Ext.define('TouchTomatoes.model.Movie', { extend: 'Ext.data.Model', config: { fields: [ { name: "id", type: "string"}, { name: "title", type: "string" }, { name: "synopsis", type: "string" }, { name: "year", type: "int" }, { name: "mpaa_rating...
import React from 'react'; import PropTypes from 'prop-types'; import { Image } from 'react-native'; import { Container, Content, Text, Form, Item, Label, Input, Button } from 'native-base'; import { Actions } from 'react-native-router-flux'; import Header from './Header'; import Spacer from './Spacer'; import * as fir...
import acl from 'acl' export default new acl(new acl.memoryBackend())
# Copyright (C) 2018, Raffaele Salmaso <raffele@salmaso.org> # # 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, mod...
"""Turn model.""" from datetime import datetime class Round: """Class managing turns.""" def __init__(self) -> None: """Initialize round objects.""" self.name = "" self.match = [] self.start_time = "" self.end_time = "" def set_round_name(self, name: str) -> None...
var request = require('supertest'); var expect = require('chai').expect; var url = 'http://localhost:8089/'; var aggent; var CONSTANTS = require('../../constants/constantsTest'); require('../../config/environment/development'); describe('Warehouses Specs', function () { 'use strict'; describe('Warehouses wit...
import os from jinja2 import Environment, FileSystemLoader class _NotebookType: JUPYTER_NOTEBOOK = "jupyter_notebook" JUPYTER_LAB = "jupyter_lab" # NTERACT = "nteract" # ZEPPELIN = "zeppelin" class _AssetsHost: DEFAULT_HOST = "https://cdn.jsdelivr.net/npm/chart.xkcd@1.1/dist/" ...
const { kInitValue, kDataLength, kDataSource, createMark } = require('../benchmark_setup'); let { begin, end } = createMark(__filename); let dummy = true; begin(); for (let i = 0; i < kDataLength; ++i) { dummy &= (undefined != kInitValue.get(kDataSource[i][0])); } end();
/** * © 2018 Liferay, Inc. <https://liferay.com> * * SPDX-License-Identifier: BSD-3-Clause */ import React, {useEffect, useState} from 'react'; export default props => { const [enabled, setEnabled] = useState(true); // eslint-disable-line @typescript-eslint/no-unused-vars useEffect(() => { if (window.docsear...
/** * @file * @author Owen McAteer * @copyright 2016 Owen McAteer. * @license {@link https://github.com/owenmcateer/MicroControl-js/blob/master/LICENSE|MIT License} */ Micro.game = { /** * Output width {boolean} width - Pixel width of output. */ width: 0, /** * Output height {boolea...
/** * @license Apache-2.0 * * Copyright (c) 2018 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...
import React, { Component } from 'react' import { connect } from 'react-redux' import { fetchChatrooms } from "../actions/messages"; import { Link } from 'react-router-dom' import Chatroom from './Chatroom' class ChatRoomsList extends Component { componentDidMount() { this.props.fetchChatrooms() } // handl...
/** * Auto-generated action file for "Linode" API. * * Generated at: 2019-06-06T13:12:27.570Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / linode-com-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector are licensed under the A...
const { Articles, Users } = require('../db/models') async function createNewArticle(userId, title, body) { const article = await Articles.create({ title, body, userId }) return article } /*Whether you want to do it this way showAllArticles({username: ''}) or this way showAllArticles({title...
from __future__ import print_function, unicode_literals from setuptools import setup, find_packages $Import __author__ = "$USER" with open("requirements.txt", 'r') as file: requirements = file.readlines() with open("readme.md", 'r') as file: readme = file.read() with open("LICENSE", 'r') as file: l...
assert.dom('.foo').hasNoClass('bar'); assert.dom(foo).hasNoClass('bar'); assert.dom(foo.bar).hasNoClass('bar'); assert.dom('.foo').hasNoClass('bar', 'custom message'); assert.dom('.foo', '.parent-scope').hasNoClass('bar'); assert.dom('.foo').hasNoClass('bar'); assert.dom('.foo').hasNoClass('bar'); assert.dom('.fo...
import formatDistance from './_lib/formatDistance/index.js' import formatLong from './_lib/formatLong/index.js' import formatRelative from './_lib/formatRelative/index.js' import localize from './_lib/localize/index.js' import match from './_lib/match/index.js' /** * @type {Locale} * @category Locales * @summary We...
import attr from 'ember-data/attr'; import ModelBase from 'open-event-frontend/models/base'; import { belongsTo, hasMany } from 'ember-data/relationships'; import { computed } from '@ember/object'; import { inject as service } from '@ember/service'; export default class Group extends ModelBase.extend({ router : s...
var cwise = require("../cwise.js") var ndarray = require("ndarray") var F0 = ndarray(new Float32Array(512*512), [512, 512]).transpose(1, 0) var F1 = ndarray(new Float32Array(512*512), [512, 512]).transpose(1, 0) var C0 = ndarray(new Float32Array(512*512), [512, 512]) var C1 = ndarray(new Float32Array(512*512), [512, 5...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addWarningAndroid = addWarningAndroid; exports.addWarningIOS = addWarningIOS; exports.addWarningForPlatform = addWarningForPlatform; function _chalk() { const data = _interopRequireDefault(require("chalk")); _chalk = function ...
/* eslint-disable camelcase, handle-callback-err, max-len, no-dupe-keys, no-unused-vars, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS207:...
import React from 'react'; import PropTypes from 'prop-types'; import { useSpring, animated } from 'react-spring/web.cjs'; // web.cjs is required for IE 11 support const Fade = React.forwardRef(function Fade (props, ref) { const { in: open, children, onEnter, onExited, ...other } = props; const style = useSpring({...
const requestV6 = require('../v6/request') /** * V7 indicates ZStandard capability (see KIP-110) * @see https://github.com/apache/kafka/blob/9c8f75c4b624084c954b4da69f092211a9ac4689/clients/src/main/java/org/apache/kafka/common/requests/ProduceRequest.java#L118-L121 * * Produce Request (Version: 7) => transactiona...
// @flow import React, {Component} from 'react' import { View, ActivityIndicator } from 'react-native' import {connect} from 'react-redux' // import styles from './Styles/LoadingContentStyle' // import {Images} from '../Themes' // import DrawerButton from '../Components/DrawerButton' // import {Actions as Nav...
/** * @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 ...
import { Engine } from "./Engine.js"; import { playTune, loopTune } from "./tunePlayers.js"; const BLACK_LISTED_WORDS = [ "localStorage", "document", "window", // "eval", "import", // "Function" ]; export function createEval() { let currentEngine = null; let tunePlayers = []; return evalGameScript;...
// const router = require('express').Router(); import { Router } from 'express'; // const createUserRoute = require('./auth/createUserRoute'); import createUserRoute from './auth/createUserRoute'; // const signInRoute = require('./auth/signInRoute'); import signInRoute from './auth/signInRoute'; // const gifRoutes =...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
(window.webpackJsonp=window.webpackJsonp||[]).push([[71],{493:function(s,t,a){"use strict";a.r(t);var n=a(15),e=Object(n.a)({},(function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[a("h1",{attrs:{id:"butterfly美化"}},[a("a",{staticClass:"heade...
define([ "text!./templates/showTakeoverListSearchBar.html", "app/base/BaseSearchBar" ], function(template, BaseSearchBar) { return $.widget("app.showTakeoverListSearchBar", BaseSearchBar, { // default options options : { enableFilter : true, unselectMsg : '请选择一条记录', searchBar : 'showTakeoverList', grid...
/*______________ | ______ | U I Z E J A V A S C R I P T F R A M E W O R K | / / | --------------------------------------------------- | / O / | MODULE : Uize.Parse.Xml.Text Object | / / / | | / / / /| | ONLINE : http://www.uize.com | /____/ /__/_| | COPYRIGHT : (c)2...
import moment from 'moment'; import { RHSM_API_RESPONSE_DATA_TYPES } from './Constants'; /** * Generate a range of dates. * * @param {Date} date * @param {number} subtract * @param {string} measurement * @returns {{endDate: Date, startDate: Date}} */ export const setRangedDateTime = (date = new Date(), subtract...
""" Implementation of the Golub-Welsh algorithm. """ import numpy import scipy.linalg import chaospy.quad def quad_golub_welsch(order, dist, accuracy=100, **kws): """ Golub-Welsch algorithm for creating quadrature nodes and weights. Args: order (int) : Quadrature order dist (Dist) : Dist...
import asyncio from typing import Set, Union from sensor import Button, SteerWheel from utils import console, exit_program, forever button_data = {10: "s", 11: " ", 12: "w"} # button_data = {11: " ", 12: "w"} buttons: Set[Button] = {Button(pin, key) for pin, key in button_data.items()} # keys to press when steer whe...
// Copyright 2017-2021 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 // order important in structs... :) /* eslint-disable sort-keys */ export default { rpc: {}, types: { CallIndex: '(u8, u8)', LotteryConfig: { price: 'Balance', start: 'BlockNumber', length...
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import App from '../src/components/app.js'; describe('<App/>', () => { it('should render without exploding', () => { const wrapper = shallow(<App/>); expect(wrapper.find('.container')).to.have.length(1); }); });
// window.onload = function() { // new fullpage('#fullpage', { // //options here // anchors: ['res', 'it', 'study', 'ad', 'lastPage'], // menu: '#myMenu' // }); // } $(document).ready(function () { allLangChange(); $('.backhome a').css({ 'color': '#000' }); le...
/** * Copyright (c) 2013, Yanis Wang <yanis.wang@gmail.com> * MIT Licensed */ var expect = require("expect.js"); var HTMLParser = require("../index").HTMLParser; expect.Assertion.prototype.event = function(type, attr){ var self = this, obj = self.obj; if(attr !== undefined){ attr.type = ...
/** * @class Ext.ux.mantis.model.History * */ Ext.define('Ext.ux.mantis.model.Attachment', { extend: 'Ext.data.Model', alias: 'mantis.model.attachment', requires: [ 'Ext.ux.mantis.model.User' ], fields: [ { name: 'id', persist: false, type: 'number'...
import React from 'react'; import PropTypes from 'prop-types'; import { StaticQuery, graphql } from 'gatsby'; import styled, { createGlobalStyle } from 'styled-components'; import Header from './header'; const LayoutWrapper = styled.div` margin: 0 auto; max-width: 960px; padding: 0px 1.0875rem 1.45rem; paddin...
//============================================================================== // Wuxing.js //============================================================================== var Imported = Imported || {}; Imported.Wuxing = true; /*: * @plugindesc Elemental rock-paper-scissors. * @author mjshi * * @param ---Configur...
import pako from 'pako'; import DataAccessHelper from 'vtk.js/Sources/IO/Core/DataAccessHelper'; import Base64 from 'vtk.js/Sources/Common/Core/Base64'; import macro from 'vtk.js/Sources/macro'; import vtkDataArray from 'vtk.js/Sources/Common/Core/DataArray'; import BinaryHelper from 'vtk.js/Sources/IO/Core/BinaryHelp...
from django.test import TestCase, override_settings class GetGPGTestCase(TestCase): def test_get_gpg_default_encoding(self): from secure_mail import utils previous_value = utils.GNUPG_ENCODING try: utils.GNUPG_ENCODING = None gpg_obj = utils.get_gpg() finall...
import coinsLogos from '../assets'; const coins = [ { ticker: 'BTC', name: 'Bitcoin', logo: coinsLogos.btc, availablePriceSources: ['binance', 'bitfinex', 'bitstamp', 'bittrex', 'kraken'], }, { ticker: 'BCH', name: 'Bitcoin Cash', logo: coinsLogos.bch, availablePriceSources: ['bit...
# Copyright 2015 NEC 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 ...
''' Applies the E-Swish function element-wise: .. math:: ESwish(x, \\beta) = \\beta*x*sigmoid(x) See E-Swish paper: https://arxiv.org/abs/1801.07145 ''' # import pytorch import torch from torch import nn # import activation functions import echoAI.Activation.Torch.functional as Func class Eswish(nn.Module): ...
//Initialization Parameters var annotations = []; var locations = []; var currentLoc = Alloy.Globals.currentLoc; var data = []; //Setup V2 Maps Module var Map = (OS_IOS || OS_ANDROID) ? require("ti.map") : Ti.Map; var mapview = Map.createView({ mapType : Map.NORMAL_TYPE }); /** * Map screen Initialization **/ func...
sprint_editor.registerBlock('twitter', function ($, $el, data) { data = $.extend({ url: '' }, data); this.getData = function () { return data; }; this.collectData = function () { data['url'] = $el.find('.sp-url').val(); return data; }; this.afterRender = f...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
import * as clipboard from 'clipboard-polyfill' export default ({ Vue }) => { Vue.prototype.$clipboardWrite = (str) => { clipboard.writeText(str) if (typeof cordova !== 'undefined') { cordova.plugins.clipboard.copy(str) } } }
dojo.provide("dojox.grid.compat._data.dijitEditors"); dojo.require("dojox.grid.compat._data.editors"); dojo.require("dijit.form.DateTextBox"); dojo.require("dijit.form.TimeTextBox"); dojo.require("dijit.form.ComboBox"); dojo.require("dojo.data.ItemFileReadStore"); dojo.require("dijit.form.CheckBox"); dojo.require("diji...
// express setup const express = require("express"); //translate relative to absolute path const path = require("path"); const app = express(); //assign port const port = process.env.PORT || 8000; //static middleware app.use(express.static("./public")); //show restaurant json page when adding /api in URL app.get("/ap...
/** * Copyright (c) 2002-2020 "Neo4j," * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * 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...
"use strict"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvcmUvYmFieWxvbmNlcy9zeXN0ZW1zL3NfbWF0ZXJpYWwuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEiLCJmaWxlIjoiY29yZS9iYWJ5bG9uY2VzL3N5c3RlbXMvc19tYXRlcmlhbC5qcyIsInNvdXJjZXNDb250ZW50IjpbIiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
import metadata from '../metadata.min.json' import parser from '../../../../source/parse' function parse(...parameters) { parameters.push(metadata) return parser.apply(this, parameters) } describe('parse', () => { it('should not parse invalid phone numbers', function() { // Too short. parse('+7 (800) 55-35-35...
"use strict"; var inherits = require('util').inherits , EventEmitter = require('events').EventEmitter , Connection = require('./connection') , Query = require('./commands').Query , Logger = require('./logger') , f = require('util').format; var DISCONNECTED = 'disconnected'; var CONNECTING = 'conne...
const express = require("express"); const knex = require("./connection/create_table"); const router = express.Router(); const app = express(); app.use(express.json()); app.use("/", router); require("./router/postSignUp")(router); require("./router/postLogIn")(router); require("./router/getApi")(router); app.listen(3...
"""Subscriber for devolo home control API publisher.""" import logging _LOGGER = logging.getLogger(__name__) class Subscriber: """Subscriber class for the publisher in mprm websocket class.""" def __init__(self, name, callback): """Initiate the subscriber.""" self.name = name self.c...
import creditService from '../services/credit' import { setNotification } from './notificationReducer' const reducer = (state = [], action) => { switch (action.type) { case 'GET_CREDITS': { return action.data } case 'DELETE_CREDITS': { return state.filter(credit => !action.data.includes...
//Epilepsy effect function epilepsy() { var textGeo; var textMaterial; var textObject; var textMesh1; var t; var start; var last; var tog = false; var event = new Event("effectEnd"); var lightt; this.start = function() { lightt = new THREE.SpotLight(); lightt.castShadow = true; lightt.position.set( 0...
const Sequelize = require('sequelize'); require('dotenv').config(); const sequelize = process.env.JAWSDB_URL ? new Sequelize(process.env.JAWSDB_URL) : new Sequelize(process.env.DB_NAME, process.env.DB_USER, process.env.DB_PW, { host: 'localhost', dialect: 'mysql', dialectOptions: { decim...
import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' import Fastclick from 'fastclick'; import VueLazyload from 'vue-lazyload' import toast from '@/components/common/toast'; // 安装插件,就会调用toast的install函数 Vue.use(toast); // 安装图片懒加载插件 Vue.use(VueLazyload, { preLoad...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ (function(){function g(a){return CKEDITOR.tools.capitalize(a,!0)}function n(a,c){function b(a){return function(b,d){var c=b.widgets.focused,e=CKEDITOR....
'use strict' const extend = require('extend') const _ = require('lodash') const path = require('path') const Inert = require('inert') const Vision = require('vision') const HapiSwagger = require('hapi-swagger') const Mrhorse = require('mrhorse') const logging = require('loggin') const logUtil = require('./utilities/lo...
from enum import Enum from pydantic import BaseModel from testcompose.models.network.network import ContainerNetworkSettings class PossibleContainerStates(Enum): RUNNING = 'exited' EXITED = 'running' class ContainerState(BaseModel): Status: str Running: bool Paused: bool Restarting: bool ...
/* * Outline API * # Introduction The Outline API is structured in an RPC style. It enables you to programatically interact with all aspects of Outline’s data – in fact, the main application is built on exactly the same API. The API structure is available as an [openapi specification](https://github.com/outline/op...
import React, { PureComponent, Fragment } from "react"; import { Table, Button, Input, message, Popconfirm, Divider, Modal, Icon, Tooltip } from "antd"; import { routerRedux } from "dva/router"; import styles from "./style.less"; import ConfirmModal from "components/ConfirmModal"; import { trim, trimNum } from "../../....
var $pg = $pg || {}; //it is necessary to determine which pole of the DNA... //sequence is to the left and which is to the right... //the default is 5'-DNAHERE-3'. //if not oriented properly.. // primers won't function for PCR /*" By convention, if the base sequence of a single strand of DNA is given, the left end o...
var GlobePolygonDrawer = function() { this.init.apply(this, arguments) } GlobePolygonDrawer.prototype = { viewer: null, scene: null, clock: null, canvas: null, camera: null, ellipsoid: null, tooltip: null, entity: null, positions: [], tempPositions: [], drawHandler: null, modifyHandler: null,...
'use strict'; var Boom = require('boom'); var _ = require('lodash'); exports.getLoan = function (req, res, next) { var loanStore = req.session.loanStore; if (_.isEmpty(loanStore)) { return next(new Boom.notFound('Loan not found')); } req.session.result = loanStore; return next(); }; exports.getNewLoan ...
# Copyright 2018-2019 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS"...
//============================================================================= // MOG_GoldHud.js //============================================================================= /*: * @plugindesc (v1.6)[v1.4] 地图UI - 金钱固定框 * @author Moghunter(Drill_up翻译+优化) * * @Drill_LE_param "备用框-%d" * @Drill_LE_paren...
let fetch = require('node-fetch') let handler = async (m, { conn }) => { let who = m.mentionedJid && m.mentionedJid[0] ? m.mentionedJid[0] : m.fromMe ? conn.user.jid : m.sender let url = global.API('https://some-random-api.ml', '/canvas/gay', { avatar: await conn.getProfilePicture(who).catch(_ => 'https://teleg...
#!/usr/bin/env node const fs = require('fs') const express = require('express') const path = require('path') const { configSpcp, configMyInfo } = require('./lib/express') const PORT = process.env.MOCKPASS_PORT || process.env.PORT || 5156 if (!process.env.SINGPASS_ASSERT_ENDPOINT && !process.env.CORPPASS_ASSERT_ENDPO...
#!/usr/bin/env node var jacoco = require("jacoco-parse"); jacoco.parseFile(process.argv[1], function(err, result) { if (err) console.log(err); });
/*! * SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2015 SAP SE. All rights reserved */ sap.ui.define(['./util/FeedItemUtils'],function(F){"use strict";var a={};a.render=function(r,c){var l=sap.ui.getCore().getConfiguration().getLanguage();var R=sap.ui.getCore().getLibraryResourceBundle("sap...
// // Custom control that creates a section for display // // Button ? (toggles collapsable document fields) // TextArea[0] // [TextArea[n]] Optional additional textareas // TextArea (collapsable error textarea toggled by content) // class section { taError; button = undefined; doc0; doc1; f...
#!/usr/bin/env python3 # -*- coding=utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf from tensorflow.keras.layers import Dense, Flatten, Conv2D from tensorflow.keras import Model """ """ class MyModel(Model): def __init__(self): super(...