text
stringlengths
3
1.05M
''' Helper methods which are used within SDK. ''' def prepare_payload(parameters: dict) -> dict: ''' Prepares payload for request based on provided parameters by removing unnecessary or protected variables and removing `None` values. Please note that main use is to pass `locals()` as `parameters`....
export default [ { label: "Item 1", value: 10 }, { label: "Item 2", value: 20 }, { label: "Item 3", value: 20 } ];
Component({ mixins: [], data: {}, props: {}, methods: { tap() { this.props.onCheepTap(); } }, });
dojo._xdResourceLoaded({ depends: [["provide", "dijit.Declaration"], ["require", "dijit._Widget"], ["require", "dijit._Templated"]], defineResource: function(dojo){if(!dojo._hasResource["dijit.Declaration"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dijit....
"use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { ...
# -*- coding: utf-8 -*- import json from collections import defaultdict, namedtuple from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist from django.http import Http...
// This script implements simple routing by loading partial HTML files // named corresponding to fragment identifiers. // // By Curran Kelleher October 2014 // Wrap everything in an immediately invoked function expression, // so no global variables are introduced. (function () { // Stores the cached partial HTML p...
# -*- coding: utf-8 -*- """ Available at repository https://github.com/LuminosoInsight/ordered-set salt.utils.oset ~~~~~~~~~~~~~~~~ An OrderedSet is a custom MutableSet that remembers its order, so that every entry has an index that can be looked up. Based on a recipe originally posted to ActiveState Recipe...
/*! * jquery-tcsc-convert v1.0.0 (https://github.com/ssmak/jquery-tcsc-convert) * Author: Steve Mak (https://github.com/ssmak) * Licensed under the MIT license */ function convertTC2SC(txt){var map=TC2SC.mapping;return txt=txt.replace(/[^\x00-\xFF]/g,function(s){return s in map?map[s]:s})}function convertSC2TC(txt)...
/* AngularJS v1.3.0 (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function(S,X,u){'use strict';function y(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.3.0/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=enc...
import React from "react" import { StaticQuery, graphql } from "gatsby" import styled from "styled-components" import Colors from "./styling/styles" import { Link } from "gatsby" const Aboutus = () => ( <StaticQuery query={graphql` query HeadingQuery { site { siteMetadata { ti...
/** * @license * Copyright 2013 Google 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 required by...
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket Ltd # # 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 applicab...
const pkg = require('../package.json') const fs = require('fs') const uploadArtifact = require('./upload-artifact') const dist = require('../src/lib/Dist') if (!fs.existsSync(dist.path())) { console.log('Could not find distributable: ' + dist.path()) } const copyTo = __dirname + '/../dist/' + dist.filename() co...
import { createApp } from 'vue' import App from './App.vue' import router from './router' import store from './store' import { BIconGeoAltFill, BIconCashCoin, BIconClockFill, BIconCalendarCheck, BIconInstagram, BIconFacebook, BIconList, BIconX } from 'bootstrap-icons-vue'; const app = createApp(App) .use(stor...
// Module for signing and verifying JWT tokens const jws = require('jws'); const { parseTime } = require('./lib/util'); const createModel = require('./lib/model'); const { TokenError } = require('./lib/errors'); const { ALGORITHMS } = jws; const PAYLOAD_CLAIMS = { aud: 'audience', iss: 'issuer', sub: 'subject', ...
class ZombieManager { constructor(game) { this.initMembers(game) this.initZombies() this.initDOMs() } initMembers = game => { this.game = game this.level = 0 this.zombieCount = 0 this.zombies = new Map() } initZombies = () => { this.setupLevel() } initDOMs = () => { ...
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/index/user"],{ /***/ "./node_modules/babel-loader/lib/index.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/vue-loader/lib/index....
const Bridge = require('./lib/Bridge') const Cache = require('./lib/Cache') const CacheClient = require('./lib/CacheClient') const CacheLocker = require('./lib/CacheLocker') const Locker = require('./lib/Locker') const Store = require('./lib/Store') const { generate } = require('./lib/generate') module.exports = gener...
'use strict'; const model = require('./counterModel'); const moment = require('moment'); class DataCollections { constructor() { this.model = model; } async get(_id) { if (_id) { return await this.model.findOne({ _id }); } else { return await this.model.find({}); } } create(re...
"use strict" /** * Safely traverse an object and return the referenced field. Accepts an * optional value to set. If part of the path is not found, returns * `undefined`. * * Source: * http://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key * http://stackoverflow.com/ques...
/** * navigation.js * * Handles toggling the navigation menu for small screens and enables tab * support for dropdown menus. */ ( function() { var container, button, menu, links, subMenus; container = document.getElementById( 'site-navigation' ); if ( ! container ) { return; } button = container.getElemen...
/* eslint quotes: 0 */ // Defines Sequelize model for service `permissions`. (Can be re-generated.) const merge = require('lodash.merge'); const Sequelize = require('sequelize'); // eslint-disable-next-line no-unused-vars const DataTypes = Sequelize.DataTypes; // !code: imports // !end // !code: init // !end let modu...
const { GraphQLNonNull, GraphQLString, GraphQLBoolean, GraphQLID } = require('graphql'); const { mutationWithClientMutationId } = require('graphql-relay'); const _ = require('../graph'); const { createResource, query } = require('../db'); const base64 = require('../utils/base64'); const ensureAuth = require('../utils/...
// Copyright JS Foundation and other contributors, http://js.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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless r...
// Copyright JS Foundation and other contributors, http://js.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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless r...
import React, {useState} from 'react' const Settings = ({initialX, initialY, onSubmit, show}) => { const [x, setX] = useState(initialX) const [y, setY] = useState(initialY) const sanitizeNumber = (string) => { const number = parseInt(string) if (isNaN(number)) { return initialX } else { ...
const http = require('http') const express = require('express') const socketio = require('socket.io') const app = express(); const server = http.Server(app); const io = socketio(server); const title = 'Buffer Buzzer' let data = { users: new Set(), buzzes: new Set(), } let buzz_status = true; let buzz_status_tex...
var a = { set foo(...v) {} };
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.RocketFormEventBus = undefined; var _vue = require('vue'); var _vue2 = _interopRequireDefault(_vue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var RocketFormEventBus = expo...
import time from marvin.utils.MarvinLog import MarvinLog from nose.plugins.attrib import attr from marvin.cloudstackTestCase import cloudstackTestCase from marvin.cloudstackAPI import ( createNetworkACLList, createNetworkACL, replaceNetworkACLList, restartVPC, updateNetwork, updateTemplate ) f...
// 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 ...
import Api from '@/services/Api' export default{ register(credentials){ return Api().post('register', credentials) } } /* //how to use it: AhthenticationService.register({ email:‘testing@email.com’, password:'12456' }) */
// This file was automatically generated. Do not modify. 'use strict'; Blockly.Msg["ADD_COMMENT"] = "Дадаць каментарый"; Blockly.Msg["ARD_ANALOGWRITE"] = "Set PWM pin"; // untranslated Blockly.Msg["ARD_DIGITALWRITE"] = "Set digital pin"; // untranslated Blockly.Msg["ARD_PIN_WARN1"] = "Pin %1 is needed for %2 as pi...
import numpy as np from numba import cuda from numba.core import types from numba.cuda.testing import skip_on_cudasim, CUDATestCase import unittest from numba.np import numpy_support def set_a(ary, i, v): ary[i].a = v def set_b(ary, i, v): ary[i].b = v def set_c(ary, i, v): ary[i].c = v def set_reco...
//config = require('config')() import stackTrace from 'stack-trace' import _ from 'lodash' import path from 'path' const getCallerFile = function(opts = {index: 2}) { //console.trace() //const f = _.find(stackTrace.get(), (v) => { // return !v.getFileName().match('babel-core') && !v.getFileName().match('core-js...
import os import pickle import shutil import sys import tempfile import time from typing import Any from typing import Dict from typing import List from typing import Optional from unittest.mock import patch import pytest from sqlalchemy.exc import IntegrityError from optuna import create_study from optuna import loa...
const test = require('ava') const config = require('..') const ConfigManager = require('../components/manager/configManager') const ConfigUpdateProcessor = require('../components/processor/configUpdateProcessor') test.afterEach(() => { config.agentDriverUpdateProcessor.config = undefined config.airlineUpdateProces...
jest.dontMock('../TaskDirectoryActions'); jest.dontMock('../AppDispatcher'); jest.dontMock('../../config/Config'); import {RequestUtil} from 'mesosphere-shared-reactjs'; var TaskDirectoryActions = require('../TaskDirectoryActions'); var Config = require('../../config/Config'); describe('TaskDirectoryActions', functi...
export default { name: '<%= directiveName %>', bind (el) { // } }
import dayjs from 'dayjs' const locale = { name: 'tzm', weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'), weekStart: 6, weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'....
const defaultTheme = require('tailwindcss/defaultTheme') const colors = require('tailwindcss/colors') module.exports = { theme: { fontFamily: { body: ['Miriam Libre'], mono: ['Fira Mono', ...defaultTheme.fontFamily.mono], sans: ['Fira Sans', ...defaultTheme.fontFamily.sans], }, listStyl...
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ """ __version__ = "$Id$" #end_pymotw_header import textwrap from textwrap_example import sample_text dedented_text = textwrap.dedent(sample_text).strip() print textwrap.fill(dedented_text, init...
const DATE_PARAM = "startDate"; const CONDITION_PARAM = "condition"; const LocalDate = JSJoda.LocalDate; const ChronoUnit = JSJoda.ChronoUnit; const today = LocalDate.now(); var startDate; var condition; $(function() { $("#startDateInput").datepicker({maxDate:'0'}); $("#startDateInput").datepicker("option", "dateFor...
const loaderUtils = require('loader-utils') const { requirePeer } = require('../lib/util') module.exports = function loader(contentBuffer) { this.cacheable && this.cacheable() const callback = this.async() let content = contentBuffer.toString('utf8') // image file path const path = this.resourcePath // u...
import {geoEquirectangular, geoOrthographic} from "d3-geo"; import {asin, atan, degrees, radians, sin, tan} from "./math.js"; function gilbertForward(point) { return [point[0] / 2, asin(tan(point[1] / 2 * radians)) * degrees]; } function gilbertInvert(point) { return [point[0] * 2, 2 * atan(sin(point[1] * radians...
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Syndicate Cash developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test node responses to invalid blocks. In this test we connect to one node over p2p, and test block ...
$(document).ready(function(){ "use strict"; var window_width = $(window).width(), window_height = window.innerHeight, header_height = $(".nav-header").height(), header_height_static = $(".site-header.static").outerHeight(), fitscreen = window_height - header_height; $(".fullscreen").css("height", window_height)...
# Copyright (c) 2016, Science and Technology Facilities Council # This software is distributed under a BSD licence. See LICENSE.txt. """ mrcobject --------- Module which exports the :class:`MrcObject` class. Classes: :class:`MrcObject`: An object representing image or volume data in the MRC format. """ # Im...
const READ_LINE = require("readline-sync"); const MESSAGES = require("./messages.json"); const INITIAL_MARKER = " "; const HUMAN_MARKER = "X"; const COMPUTER_MARKER = "O"; const WINNING_LINES = [ // rows [1, 2, 3], [4, 5, 6], [7, 8, 9], // columns [1, 4, 7], [2, 5, 8], [3, 6, 9], // diagonals [1, ...
// Interfaces. var Composite = new Interface('Composite', ['add', 'remove', 'getChild']); var FormItem = new Interface('FormItem', ['save']); // CompositeForm class var CompositeForm = function(id, method, action) { // implements Composite, FormItem //todo }; //todo function addForm(formInstance) { Interfac...
(function() { "use strict"; sap.ui.controller("sap.ui.core.mvctest.controller.Dummy", { onInit: function() { // Do nothing } }); }());
import os import sys THISDIR = os.path.dirname(__file__) # bdd/ TESTSDIR = os.path.dirname(THISDIR) # tests/ LAMBDADIR = os.path.dirname(TESTSDIR) # lambda_function/ SERVDIR = os.path.dirname(LAMBDADIR) # schedule_tags_api/ SLSDIR = os.path.dirname(SERVDIR) # sls/ APPDIR = os.path.dirname(SLSDIR) # rds-schedulin...
import store from "../store"; import { CHANGE_FORECAST_MODE, CHANGE_TEMP_SCALE, SET_CITY, SET_HOURLY_FORECAST, SET_WEATHER, CHANGE_TIME_FORMAT, } from "./actionTypes"; import fetchData from "../../helpers/fetchData"; import getArrOfHours from "../../helpers/getArrOfHours"; export const setCity = (city) => ...
(function() { 'use strict'; angular .module('app.dashboard') .controller('DashboardController', DashboardController); DashboardController.$inject = ['$q','$filter', '$interval', 'dataservice', 'logger', 'date', 'timer']; /* @ngInject */ function DashboardController($q, $filter, $interval, dataservic...
from collections import namedtuple import boto3 from botocore.exceptions import ClientError from dagster import Array, Field, Noneable, StringSource, check from dagster.core.events import EngineEventData, MetadataEntry from dagster.core.launcher.base import LaunchRunContext, RunLauncher from dagster.grpc.types import...
import React from "react"; import { Link } from "react-router-dom"; import { AppBar, Toolbar } from "@material-ui/core"; import HomeIcon from "@material-ui/icons/Home"; import CloudIcon from "@material-ui/icons/Cloud"; import MapIcon from "@material-ui/icons/Explore"; import "./Navbar.css"; function Nav(){ return...
from transformers import * from module.san_model import SanModel MODEL_CLASSES = { "bert": (BertConfig, BertModel, BertTokenizer), "xlnet": (XLNetConfig, XLNetModel, XLNetTokenizer), "roberta": (RobertaConfig, RobertaModel, RobertaTokenizer), "albert": (AlbertConfig, AlbertModel, AlbertTokenizer), "...
'use strict'; const { expect } = require('chai'); require('assert'); require('../../../../lib/execution/runner'); const { isMysql, isPostgreSQL, isMssql, isSQLite, isOracle, } = require('../../../util/db-helpers'); const { createUsers, createAccounts, createCompositeKeyTable, createTestTableTwo, ...
/* Smart HTML Elements v7.4.0 (2020-Apr) Copyright (c) 2011-2020 jQWidgets. License: https://htmlelements.com/license/ */ // !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o...
import * as BABYLON from "babylonjs"; import Utils from "./Utils"; export default class Player { constructor(scene) { this.controls = { inAir:true } this.scene = scene this.scene.actionManager = new BABYLON.ActionManager(this.scene); this.scene.actionManager.registerAction(new BABYLON.Execu...
# Copyright Copyright ClusterHQ Inc. See LICENSE file for details. """ Functional tests for ``flocker-ca`` CLI. """ import re from subprocess import CalledProcessError from unittest import skipUnless from eliot import Message, Logger from twisted.python.filepath import FilePath from twisted.python.procutils import...
import numpy as np import torch class EarlyStopMonitor(object): def __init__(self, logger, max_round=3, higher_better=True, tolerance=1e-4): self.max_round = max_round self.num_round = 0 self.logger = logger self.epoch_count = 0 self.best_epoch = 0 self.best_ap = 0 self.best_auc = 0 ...
/******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2016 kindsoft.net * * @author Roddy <luolonghao@gmail.com> * @website http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php * @version 4.1.11 (2016-03-3...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'flash', 'si', { access: 'පිටපත් ප්‍රවේශය', accessAlways: 'හැමවිටම', accessNever: 'කිසිදා නොවේ', accessSameDomain: 'එකම වසමේ',...
function almostSorted(arr) { // Your code here. } module.exports = almostSorted;
#!/usr/bin/env python # -*- coding: utf-8 -*- '''\ usage: venv-update [-hV] [options] Update a (possibly non-existent) virtualenv directory using a pip requirements file. When this script completes, the virtualenv directory should contain the same packages as if it were deleted then rebuilt. venv-update uses "traili...
(function(window, document, $, undefined) { 'use strict'; var eggNames = { 562: 'Wooden Egg', 555: 'Golden Egg', 559: 'Dark Egg', 561: 'Radiant Egg', 557: 'Arcane Egg', 558: 'Crystal Egg', 556: 'Ancient Egg', 560: 'Giant Egg' }; var eggIds = [562, 555, 559, 561, 557, 558, 556, 560]; functio...
module.exports = { setupFilesAfterEnv: ['<rootDir>/jest.setup.js'], moduleNameMapper: { '\\.css$': '<rootDir>/src/__mocks__/css.mock.js', }, }
/** * Copyright 2010 Tim Down. * * 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 ...
import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 10, 50) sinx = np.sin(x) # plt.plot(x, sinx, 'o') # plt.show() cosx = np.cos(x) # plt.plot(x, sinx, '-b', x, sinx, 'ob', x, cosx, '-r', x, cosx, 'or') # plt.xlabel('this is x') # plt.ylabel('this is y') # plt.title('my first plot') # plt.show() #...
pais = "aa" if (pais == 'Brasil'){ console.log("Brasileiro") }else{ console.log("Estrangeiro") }
import {createAsyncThunk, createSlice} from '@reduxjs/toolkit' import { post } from '../../api' export const login = createAsyncThunk("user/login",async (credentials,thunkAPI)=>{ const response = await post("/auth/login",{ email:credentials.email, password:credentials.password }) //action...
export default { pan: { id: 'pan', }, text: { id: 'text', fontSizes: [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], }, marker: { id: 'marker', }, polyline: { id: 'polyline', strokeWeights: [2, 4, 6, 8, 10], distanceUnits: [ { id: 'ft', displ...
from tkinter import * from tkinter.ttk import * root = Tk() root.geometry('500x500') styl = Style() styl.configure('TButton', font = ('arial', 30, 'bold', 'underline', 'italic'), fg = 'red') btn = Button(root, text='Click Me!', styl='TButton', command=root.destroy) btn.pack() root.mainloop()
'use strict' const { response } = require('../../utils/response') const { NOT_STARTED, CREATED, REQUEST_SUBMITTED } = require('../../models/psp-test-account-stage') const goLiveStage = require('../../models/go-live-stage') module.exports = function getRequestPspTestAccount (req, res, next) { const service = req.ser...
/* eslint-disable no-undef */ 'use strict' const { fetch, Request, Headers } = require('./http/fetch') const { TimeoutError, HTTPError } = require('./http/error') const merge = require('merge-options').bind({ ignoreUndefined: true }) const { URL, URLSearchParams } = require('iso-url') const TextDecoder = require('./te...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('testreport', '0023_auto_20141223_1300'), ...
from rest_framework import serializers class SerializerEnumField(serializers.Field): def __init__(self, *args, **kwargs): self.enum = kwargs.pop('enum') super(SerializerEnumField, self).__init__(*args, **kwargs) def to_representation(self, instance): return instance.label def to_...
import Footer from './components/Footer' import Header from './components/Header' import { Container } from 'react-bootstrap' import Homescreen from './screens/Homescreen' import { BrowserRouter, Route } from 'react-router-dom' import Productscreen from './screens/Productscreen' import Cartscreen from './screens/Cartsc...
import os from telethon.errors.rpcerrorlist import YouBlockedUserError from userbot import CMD_HELP, TEMP_DOWNLOAD_DIRECTORY, bot from userbot.events import register @register(outgoing=True, pattern=r"^.df(:? |$)(\d)?") async def _(fry): await fry.edit("`Sending information...`") level = fry.pattern_match.g...
'use strict'; /* * Created with @iobroker/create-adapter v1.25.0 */ // The adapter-core module gives you access to the core ioBroker functions // you need to create an adapter const utils = require('@iobroker/adapter-core'); // Load your modules here, e.g.: const axios = require('axios'); const JsonExplorer = requ...
import React from "react" import Layout from "../../../components/layout/layout.js" import AccordionList from "../../../components/accordion/accordion-list.js" import FeatureCard from "../../../components/feature-card/feature-card.js" import LeftMenu from "../../../components/menu-left/left-menu.js" const NaturalHist...
this.__defineGetter__("x", gc); x.__proto__ = this; __proto__ = 44;
from django.db import models from meiduo_mall.utils.models import BaseModel from users.models import Address, User from goods.models import SKU class OrderInfo(BaseModel): """订单信息""" # 支付方式 PAY_METHODS_ENUM = { "CASH": 1, "ALIPAY": 2 } # 支付方式约束范围(元组里面套元组) PAY_METHOD_CHOICES = ...
import core from 'core'; import { register, copyMapWithDataProperties } from 'constants/map'; import actions from 'actions'; export default store => (tool, annotationConstructor) => { registerToolInToolModeMap(tool); registerToolInRedux(store, tool); register(tool, annotationConstructor); updateColorMapInRedux...
context('/src/Examples/Tables/Vue/', () => { before(() => { cy.visit('/src/Examples/Tables/Vue/') }) // TODO: Write tests })
const assert = require('assert'); const { Network, User } = require('../index'); let network; describe('Network', () => { describe('create network', () => { it('should equals', () => { let schema = { sport: 'number', design: 'number' }; network = new Network(schema); ...
frase = str(input('Digite uma frase: ')).strip().upper() palavras = frase.split() junto = ''.join(palavras) inverso = junto[::-1] '''for letra in range(len(junto) - 1, -1, -1): inverso += junto[letra]''' print(f'O inverso de {junto} é {inverso}') if junto == inverso: print('Temos um PALINDROMO') else: print...
import PropTypes from 'prop-types'; import React from 'react'; import Dollars from '../../../components/Dollars'; import Review from '../../../components/Review'; const StatePersonReview = ({ item: { description, title, years }, expand, index, onDeleteClick }) => { return ( <Review heading={`${ind...
// index.js // 获取应用实例 const app = getApp() Page({ data: { showModal:false, isNext1:false, isNext11:false, control_remote:false, motto: 'Hello World', userInfo: {}, hasUserInfo: false, canIUse: wx.canIUse('button.open-type.getUserInfo'), canIUseGetUserProfile: false, canIUseOpe...
# Stack (LIFO) ## Arrays -> cache locality, faster access, can keep adding ## Linked Lists -> extra memory to hold pointer, but more dynamic memory # Queues (FIFO) ## Arrays -> O(n), if you remove item from head, you need to shift all following item ## Linked Lists -> O(1), easy to remove head
import * as table from './table' import * as user from './user' export default { table, user }
from django.contrib.auth.models import Group from django.urls import re_path from django.utils.translation import gettext as _ from wagtail.admin.views import generic, mixins from wagtail.admin.viewsets.model import ModelViewSet from wagtail.core import hooks from wagtail.users.forms import GroupForm, GroupPagePermiss...
/*! * CoreUI data.js v4.0.1 (https://coreui.io) * Copyright 2021 The CoreUI Team (https://github.com/orgs/coreui/people) * Licensed under MIT (https://coreui.io) */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'fu...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
'use strict'; const auth = require('./auth.middleware'); module.exports = { auth };
var searchData= [ ['empty',['empty',['../group__group-MonadPlus.html#gaa6be1e83ad72b9d69b43b4bada0f3a75',1,'boost::hana']]], ['equal',['equal',['../group__group-Comparable.html#gacaf1ebea6b3ab96ac9dcb82f0e64e547',1,'boost::hana']]], ['erase_5fkey',['erase_key',['../structboost_1_1hana_1_1map.html#af856f7bf77f...
from hailtop.hail_logging import configure_logging # configure logging before importing anything else configure_logging() from .address import run # noqa: E402 pylint: disable=wrong-import-position run()
/** * Contains options for generating default styles for `<svg-bigheads>`. Changes makes sence only before fisrt `<svg-bigheads>` is created. See {@link style.cerate}. * @typedef {Object} style_options * @property {boolean} [allow=true] Allow creating global default styles * @property {string} [fit=contain] CSS `fi...