text
stringlengths
3
1.05M
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck from checkov.common.models.enums import CheckCategories from checkov.common.models.consts import ANY_VALUE class VertexAIMetadataStoreEncryptedWithCMK(BaseResourceValueCheck): def __init__(self): name = "Ensure ...
"use strict"; module.exports = function (column) { return 'vf__' + column.split('.').join('@@@'); };
import { connect } from 'react-redux'; import { IntlProvider } from 'react-intl'; export default connect((state) => { const { lang, messages } = state.locale; return { locale: lang, key: lang, messages }; })(IntlProvider);
// https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Useful_string_methods // http://osp123.github.io/tutorials/html/weatherAPI.html // https://api.jquery.com/ // https://momentjs.com/ function createCityList(citySearchList) { $("#city-list").empty(); var keys = Object.keys(citySearchLi...
import React from "react"; import moment from "moment"; function Forecast({ weather }) { return ( <div className="container inline-flex text-center place-content-center space-x-5 "> {weather.forecast.forecastday.map((day, idx) => { return ( <div className="transition duration-...
"use strict";if(location.search.indexOf("logout")>-1){for(var cookies=document.cookie.split(";"),i=0;i<cookies.length;i+=1){var cookie=cookies[i],eqPos=cookie.indexOf("="),cookieName=eqPos>-1?cookie.substr(0,eqPos):cookie;document.cookie=cookieName+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}Materialize.toast("You have b...
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
import styled from "styled-components" import { Link } from "gatsby" export const PostItemLink = styled(Link)` color: #8899a6; display: flex; text-decoration: none; &:hover { color: #1fa1f2; } ` export const PostItemWrapper = styled.section` align-items: center; border-bottom: 1px solid #38444d; ...
import torch import numpy as np def exp_pade(X): """ Degree 7 Padé approximant """ n = X.size(0) Id = torch.eye(n, dtype=X.dtype, device=X.device) X1 = torch.mm(X, X) X2 = torch.mm(X1, X1) X3 = torch.mm(X1, X2) P1 = 17297280. * Id + 1995840. * X1 + 25200. * X2 + 56. * X3 P2 = t...
/* eslint-disable no-param-reassign */ import { getOverflow } from './dom-utils'; // Determine the font-size to set on the element `el` that will // allow the first child of that element to fill the maximum height // and width without causing overflow export default function getFillSize(el, minFontSize, maxFontSize, w...
// product model const getAllProducts=(req,res,next)=>{ } const addProduct=(req,res,next)=>{ } const updateProduct=(req,res,next)=>{ } const deleteProduct=(req,res,next)=>{ } const detailsProduct=(req,res,next)=>{ } module.exports={ getAllProducts, addProduct, updateProduct, deleteProduct, ...
# -*- coding: utf-8 -*- # @Time : 2020/11/8 23:19 # @Author : 咸鱼型233 # @File : change_asm.py # @Software: PyCharm import os import delete_asm import add_asm def function_change(): """ 修改成绩信息 仅可通过学号定位修改行 先删后加 """ print("您应当先删除再添加该生的成绩信息") delete_asm.function_delete() add_asm.func...
def element_rect(session, element): return session.execute_script(""" let {devicePixelRatio} = window; let rect = arguments[0].getBoundingClientRect(); return { x: Math.floor((rect.left + window.pageXOffset) * devicePixelRatio), y: Math.floor((rect.top + window.pageY...
if(process.env.NODE_ENV === 'production') { module.exports = { mongoURI: 'mongodb://default:default18@ds137483.mlab.com:37483/vidjot-prod'} } else { module.exports = { mongoURI: 'mongodb://localhost/vidjot-dev'} }
#!/usr/bin/env node /* Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com> Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.com> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source c...
/** * skylark-chartjs - A version of chartjs that ported to running on skylarkjs * @author Hudaokeji, Inc. * @version v0.9.2 * @link https://github.com/skylark-integration/skylark-chartjs/ * @license MIT */ define(["./controller.line","../core/core.defaults"],function(e,t){"use strict";var exports={},module={expo...
'use strict'; const webpack = require('webpack'); const path = require('path'); // plugins const extractTextPlugin = require('extract-text-webpack-plugin'); const htmlWebpackPlugin = require('html-webpack-plugin'); // local helpers const merge = require('webpack-merge'); // vars const srcPath = path.join(__dirname,...
import React from "react"; import { Col, Container, Row, Footer } from "mdbreact"; class FooterPage extends React.Component { render() { return ( <Footer color="mdb-color" className="font-small lighten-3 pt-4 mt-4"> <Container className="text-center text-md-left"> <Row className="my-4"> ...
const DMG = { "2": { "url": "credits", "pagebreak": "" }, "3": { "url": " ", "pagebreak": "" }, "4": { "url": "introduction", "pagebreak": "" }, "5": { "url": "introduction#Part2MasterofAdventures", "pagebreak": "" }, "6": { "url": "introduction#KnowYourPlayers", ...
import { minecraftColors, minecraftColorsCodes } from "../../minecraftFormatting.js"; const formatRichMotd = (motdEntries, outerText) => { let strMotd = ""; motdEntries.forEach((entry) => { if (entry.bold) strMotd += "§l"; if (entry.italic) strMotd += "§o"; if (entry.underlined) strMotd += "§n"; i...
from datetime import datetime from django.test.utils import override_settings from django.test import TestCase from custom.icds_reports.reports.issnip_monthly_register import ISSNIPMonthlyReport import mock @override_settings(SERVER_ENVIRONMENT='icds') class TestInstitutionalDeliveriesSector(TestCase): def tes...
from .tinc_client import TincClient import os, shutil from subprocess import Popen, PIPE import time import json class TincServer(TincClient): _server_process = None _server_root_path_map = {} def __init__(self): tinc_bin = shutil.which('tinc_server', path=os.getenv('TINC_BIN_DIR')) if ...
define({ root: //begin v1.x content { "days-standAlone-short": [ "1", "2", "3", "4", "5", "6", "7" ], "months-format-narrow": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ], "quarters-standAlone-narrow": [ "1", "2", "3", "4" ], "dateFormatItem-yQQ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var generate_1 = require("./generate"); var crypto_1 = require("crypto"); describe('generateKeys', function () { it('encrypts and decrypts using returned values', function () { var passphrase = 'nani?'; var message = "it's ...
import React, { useState, useEffect } from "react"; import { StyleSheet, Image, View, Text, TextInput, TouchableOpacity, //Botão sem estilização padrão como o (Button) } from "react-native"; import MapView, { Marker, Callout } from "react-native-maps"; import { requestPermissionsAsync, getCurrentPositio...
var class_xen_foro___controller_public___category = [ [ "_getCategoryModel", "de/dcd/class_xen_foro___controller_public___category.html#a6c60d6247267df7ffe03bdb38b68973d", null ], [ "_getCategoryOrError", "de/dcd/class_xen_foro___controller_public___category.html#af204e7314685a381cf84c7b6c4273a3d", null ], ...
$(document).on("pagecontainerbeforeshow", function(e, ui) { var page = ui.toPage[0].id, count = ""; if (page == "index-page" || page == "account-page") { var favourites = JSON.parse(localStorage.getItem("favourites")); // Get data from local storage // console.log(favourites.length); if (favourites ==...
/** * 业务表默认字段 */ var moment = require("moment"); module.exports = function (sequelize, DataTypes) { let columnArr = ['app_id', 'created_time', 'create_user_id', 'create_user_name', 'updated_time', 'updated_user_id', 'updated_user_name']; let defaultModel = { app_id: { type: DataTypes.UU...
/** * @license * Copyright 2020 Google LLC. 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 a...
#!/usr/bin/python3 __version__ = '0.0.3' # Time-stamp: <2021-10-26T07:41:46Z> ## Language: Japanese/UTF-8 """Simulation Buddhism Prototype No.3 x.1 - Birth 誕生関連 """ ## ## Author: ## ## JRF ( http://jrf.cocolog-nifty.com/statuses/ (in Japanese)) ## ## License: ## ## The author is a Japanese. ## ...
// Copyright (C) 2015 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 21.1.3.6 description: > Returns abrupt from ToInteger(endPosition). info: > 21.1.3.6 String.prototype.endsWith ( searchString [ , endPosition] ) ... 10. If endP...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
function parseDiscourseVerification(message, discordId) { // This discordId comes directly from the author of the message (discord.js) // Therefore, only two things can happen: get a valid ID or get 'undefined'. if (typeof discordId === 'undefined') { throw new Error( `Parsing command failed: reason: no...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.db.models import Q from django.http import HttpResponse from django.core.paginator import Paginator, EmptyPage, InvalidPage from app.cor...
const Discord = require('discord.js'); const client = new Discord.Client(); const ayarlar = require('../ayarlar.json'); const weather = require('weather-js'); var lele = ayarlar.prefix; exports.run = (client, message) => { let sender = message.author; let cont = message.content.slice(lele.length).split(" "); l...
import { getCurrentUser } from 'src/utils/UserLocalStorage'; import { APIRequest } from 'src/api/APIRequest'; import { calculation } from '../../final-license/services/finalLicenseAPI'; export const centerLocationTransferAPIFunc = async (values) => { console.log('#==> valuesvaluesvalues ' + JSON.stringify(values)) ...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
const { patients, doctors } = require('../../firestore'); let validation = { validate: async (ctx) => { const patient = await patients.where('telegram.id', '==', ctx.message.from.id).get(); return patient.docs.length != 0; }, userType: async (ctx) => { const patient = await patients.where('telegram.id', '=='...
import { GIFT_CARD_DIALOG } from "../../../elements/giftCard/giftCardDialog"; import { GIFT_CARD_LIST } from "../../../elements/giftCard/giftCardList"; import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors"; import { urlList } from "../../../fixtures/urlList"; export function openAndFillUpCreateG...
// this tests all points load("jstests/libs/geo_near_random.js"); var test = new GeoNearRandomTest("geo_near_random1"); test.insertPts(50); // test.testPt() runs geoNear commands at the given coordinates with // limits from 1 to nPts(# of inserted points). At the nth run, it // compares the first (n - 1) results w...
import React from 'react'; import { shallow } from 'enzyme'; import expect from 'expect'; import { RecipeCardDes } from '../../../../components/Recipes/RecipeCard/RecipeCardDes.jsx'; const setup = () => shallow(<RecipeCardDes/>); describe('RecipeCardDes Component snapshot', () => { it('it should render the right ...
import React from 'react'; import { TouchableOpacity, Text, StyleSheet } from 'react-native'; import colors from '../styles/colors'; import fontSizes from '../styles/fontSizes'; import fontFamilies from '../styles/fontFamilies'; const Button = ({ onPress, title }) => ( <TouchableOpacity style={styles.butt...
/*eslint-disable*/ import React from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; import InputAdornment from "@material-ui/core/InputAdornment"; import List from "@material-ui/core/List"; import ListItem from "@material-ui/core/ListItem"; import Icon from "@material-ui...
import chalk from 'ansi-colors'; import compression from 'compression'; import express from 'express'; import Console from '../utils/console.js'; import FastBootExpressMiddleware from '../utils/fastboot-express-middleware.js'; import findProjectRoot from '../utils/find-project-root.js'; export default async function( ...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // *************************************************************** // - [#] indicates a test step (e.g. #. Go to a page) // - [*] indicates an assertion (e.g. * Check the title) // - Use element ID when sele...
import {createGfiFeature} from "../../../api/gfi/getWmsFeaturesByMimeType"; export default { /** * Sets the config-params of this MouseHover into state. * Adds the overlay and eventListener for the map. * @returns {void} */ initialize ({state, commit, dispatch, rootGetters}) { const...
export const elements = { searchForm: document.querySelector('.search'), searchInput: document.querySelector('.search__field'), searchRes: document.querySelector('.results'), searchResList: document.querySelector('.results__list'), searchResPages: document.querySelector('.results__pages'), recipe: docu...
module.exports = { receive: function(client, event, args, rawArgs, user_session) { this.client = client; this.event = event; this.args = args; this.rawArgs = rawArgs; this.user_session = user_session; if (!this.rawArgs.startsWith("/")) { return Promise.resolve(null); } switch (...
class Data: def __init__(self,df): self.df = df def prepare_data(self): pass
import React from 'react'; import { Route, Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import TokenService from "services/Auth/tokenService"; const ProtectedRouteWithLayout = props => { const { layout: Layout, component: Component, ...rest } = props; return ( <Route ...
module.exports = function (data, connection, hook) { // eslint-disable-line no-unused-vars return false }
import * as React from "react"; import { Bar } from "react-chartjs-2"; const BarChart = (props) => { let donationData = props.donationData; let food20; let food21; let cpg20; let cpg21; if (donationData) { food20 = donationData[2].sum; food21 = donationData[0].sum; cpg20 = donationData[3].s...
define([ 'backbone', 'master/payment/views/view', 'master/payment/models/model' ], function(Backbone, Views, Models) { var MasterRouter; MasterRouter = Backbone.Router.extend({ routes: { '': 'all' }, initialize: function() { Backbone.emulateJSON = t...
const buble = require('rollup-plugin-buble'); const commonjs = require('rollup-plugin-commonjs'); const node = require('rollup-plugin-node-resolve'); module.exports = { input: './lib/icheques.js', external: ['bipbop-webservice', 'bipbop-websocket'], plugins: [ node({ browser: true, preferBuiltin...
import PercyClient from 'percy-client'; import Environment from 'percy-client/dist/environment'; import { version } from '../package.json'; import FileSystemAssetLoader from './fileSystemAssetLoader'; function parseMissingResources(response) { return ( (response.body.data && response.body.data.relationsh...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const bcrypt = require('bcrypt'); const adminSchema = new Schema({ createdAt: { type: Date }, updatedAt: { type: Date }, username: { type: String, required: true, minlength: 6, maxlength: 12 }, password: { type: Strin...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[20],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=script&lang=js&": /*!************************************************************************************...
/** * @license * * Copyright IBM Corp. 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const { getAttributes, formatAttributes } = require('@carbon/icon-helpers'); // For `@carbon/ibmdotcom-web-component...
import { UnavailabilityError } from '@unimodules/core'; import NotificationScheduler from './NotificationScheduler'; export default async function cancelScheduledNotificationAsync(identifier) { if (!NotificationScheduler.cancelScheduledNotificationAsync) { throw new UnavailabilityError('Notifications', 'can...
import Vue from 'vue'; import Vuex from 'vuex'; Vue.use(Vuex); export default new Vuex.Store({ state: { messages: [], rooms: {}, users: {}, roomName: null, username: null, error: null, connected: false, loading: false, }, mutations: { SOCKET_ONOPEN(state, event) { Vue.p...
import React, {useEffect, useState} from "react"; import PropTypes from "prop-types"; import { Typography, Box, withStyles } from "@material-ui/core"; import {lesions} from "./FeatureSection"; import shadeColor from "../../../shared/functions/shadeColor"; const styles = theme => ({ card: { paddingTop: theme.spac...
import $ from "jquery"; import * as color_data from "./color_data"; import * as message_list from "./message_list"; import * as message_util from "./message_util"; import * as message_view_header from "./message_view_header"; import * as narrow_state from "./narrow_state"; import * as overlays from "./overlays"; impor...
import express from 'express'; import cors from 'cors'; import paymentsApi from './routes/paymentsApi.js'; import './services/logger'; import serverlessExpress from 'aws-serverless-express'; const app = express(); const router = express.Router(); const PORT = process.env.PORT || 3001; app.use(cors()); app.use( exp...
import discord import asyncio import random import math import shutil import os from redbot.core import commands, Config, bank from redbot.core.utils.chat_formatting import box, pagify import rcon import logging log = logging.getLogger("red.vrt.arkshop") SELECTORS = ["1️⃣", "2️⃣", "3️⃣", "4️⃣"] SHOP_ICON = "https:...
(window.webpackJsonp=window.webpackJsonp||[]).push([[84],{534:function(module,exports,__webpack_require__){module.exports=__webpack_require__(1)("aLIC")}}]);
bind = "127.0.0.1:8000"
const { compare } = require('bcryptjs') const mongoose = require('mongoose') const Schema = mongoose.Schema const { hasingPassword, confirmationToken } = require('../utils/schemaRelated') // const { findByEmailAndPassword } = require('../faltu') const adminSchema = new Schema({ name: { type: String, ...
// console.log(number); // undefined number=100; console.log(number);
(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{574:function(t,_,v){"use strict";v.r(_);var e=v(1),l=Object(e.a)({},(function(){var t=this,_=t.$createElement,v=t._self._c||_;return v("div",{staticClass:"content"},[t._m(0),t._v(" "),v("ClientOnly",[v("simple-message"),t._v(" "),v("p",[v("font",{attrs:{size:"5"...
const YLDateUtil = { isTodayHour(date1 = 0, date2 = 0) { if (date1 === date2) return true; const date1Map = this.formatDateMap(date1); const date2Map = this.formatDateMap(date2); if (date1Map.year === date2Map.year && date1Map.month === date2Map.month && date1Map.day === date2Map.day && date1Map.hou...
import React from 'react' import Layout from '../components/Layout' import SEO from '../components/SEO' const ErrorPage = () => { return ( <Layout> <SEO title="Greška" /> <main className="error-page"> <section> <h1>404</h1> <h3>Stranica nije pronađena</h3> </sectio...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage } from '../../util/reactIntl'; import { LISTING_STATE_DRAFT } from '../../util/types'; import { ListingLink } from '../../components'; import { EditListingPricingForm } from '../../forms';...
// # Ghost Configuration // Setup your Ghost install for various environments var path = require('path'), config; config = { // ### Development **(default)** development: { // The url to use when providing links to the site, E.g. in RSS and email. // must not contain a path suffix after th...
/** * Welcome to your Workbox-powered service worker! * * You'll need to register this file in your web app and you should * disable HTTP caching for this file too. * See https://goo.gl/nhQhGp * * The rest of the code is auto-generated. Please don't update this file * directly; instead, make changes to your Wor...
const capabilities = require("./capabilities"); const DustBinFullValetudoEvent = require("../../valetudo_events/events/DustBinFullValetudoEvent"); const ErrorStateValetudoEvent = require("../../valetudo_events/events/ErrorStateValetudoEvent"); const MopAttachmentReminderValetudoEvent = require("../../valetudo_events/ev...
function query_page(pagesize){ var rowsShown = pagesize; //每页显示多少条 var rowsTotal = $("#data tr.tr_info").length; //获取需要处理的行数总数 var numPages = Math.ceil(rowsTotal/rowsShown); $("#data2").append("<div id='nav' style='padding-right:10px;'>共<b><"+numPages+"></b>页&nbsp;每页显示&nbsp;<b style='border:1px soli...
"""station URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
import React from 'react' import { graphql } from 'gatsby' import { Helmet } from 'react-helmet' import Layout from '../components/layout' import Image from '../components/image' import SEO from '../components/seo' import ArtistFilter from '../components/artistfilter' import '../components/global.scss' const IndexPage...
export default function _renderer(input) { const x = new _Signal(1); _beginEl("div"); { const y = new _Signal(2); _dynamicText(_compute(() => _get(x) + _get(y))); _beginEl("button"); _on("click", () => { _set(_get(x), _get(x) + 1); _set(_get(y), _get(y) + 1); }); _endEl(...
/*eslint no-console:0 */ const fs = require('fs'); const path = require('path'); const _ = require('underscore'); class JsonAchievementSource { constructor(directory) { let data = this.loadAchiSetFiles(directory); this.achiSet = data.achiSets; this.achievements = data.achievements; } ...
import { Debouncer, enqueueDebouncer, idlePeriod } from "./chunk-RUXXNLZ4.js"; import { DirMixin } from "./chunk-GBF7XL6S.js"; // node_modules/.pnpm/@vaadin/vaadin-development-mode-detector@2.0.4/node_modules/@vaadin/vaadin-development-mode-detector/vaadin-development-mode-detector.js var DEV_MODE_CODE_REGEXP ...
// Copyright (c) 2014-2018, MyMonero.com // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of // cond...
$.ajax({ url: '/profile/getPhoto', type: 'GET', contentType: "application/json", dataType: 'json', success: function (data) { if (data) { console.log("/uploads/userphotolist/" + data); if (data.profilePhoto == "anonim.jpg") { $('#profileImage').attr('s...
typeSearchIndex = [{"l":"All Classes","u":"allclasses-index.html"},{"p":"com.coderbd.exceptions","l":"ApiError"},{"p":"com.coderbd.exceptions","l":"ApiSubError"},{"p":"com.coderbd.exceptions","l":"ApiValidationError"},{"p":"com.coderbd.exceptions","l":"EntityNotFoundException"},{"p":"com.coderbd","l":"GenericController...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const wrapIcon_1 = require("../utils/wrapIcon"); const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 28, height: 28, viewBox: "0 0 28 ...
const db = require('./dbConfig'); module.exports = { add, find, findBy, findByProjectId }; async function add(user) { const [id] = await db('users').insert(user); return findById(id); } function find() { return db('users').select('id', 'username', 'password'); } function findBy(filter) { return db('...
import React, { Component } from 'react'; import axios from 'axios'; import {Link} from 'react-router'; import * as actions from '../actions/index'; import {connect} from 'react-redux'; import Header from './header'; import AddImage from './add_image'; import PublicImages from './public_images'; class App extends Comp...
import styled from '@emotion/styled' export const Benefits = styled.div({ textAlign: 'center', fontFamily: 'poppins', backgroundColor: 'whitesmoke', width: '100%', height: 650 }) export const FullContainer = styled.section({ backgroundColor: 'whitesmoke', margin: '0 -9999rem', padding...
import React from 'react'; import PropTypes from 'prop-types'; const UilBandAid = (props) => { const { color, size, ...otherProps } = props return React.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', width: size, height: size, viewBox: '0 0 24 24', fill: color, ...otherProps ...
import React, { Fragment } from 'react' import SkillBar from './skill-bar' export default ({ title = 'Skills', skills = [] }) => { return ( <Fragment> <h1>{title}</h1> {skills.map(skill => ( <SkillBar key={skill.name} name={skill.name} level={skill.level} /> ))} </Fragment> ) }
from torch import nn from sampling_free.layers import Conv2d def group_norm(out_channels, dim_per_gp=-1, num_groups=32, eps = 1e-5, affine=True, divisor=1): """get number of groups used by GroupNorm, based on number of channels.""" assert dim_per_gp == -1 or num_groups == -1, \ "GroupNorm: can on...
define({ "commonCore": { "common": { "add": "Lisa", "edit": "Muuda", "save": "Salvesta", "next": "Järgmine", "cancel": "Tühista", "back": "Tagasi", "apply": "Rakenda", "close": "Sulge", "open": "Ava", "start": "Algus", "loading": "Laen", "dis...
#!/usr/bin/python ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: nfvis_vlan short_description: This is my sample module version_added: "2.4" description: - "Create a VLAN on an NFVIS host" options: vlan_id: ...
/** * The MIT License (MIT) * * Copyright (c) 2015-2018 Mickael Jeanroy * * 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 ...
module.exports = { "extends": [ "standard", "plugin:react/recommended", ], "settings": { "react": { "version": "16.8.6", }, }, "env": { "browser": true, }, "parser": "babel-eslint", "parserOptions": { "ecmaFeatures": { ...
import { connect } from "react-redux"; import PlayerOverview from "./PlayerOverview"; import { getCurrentSystem, getGalaxyInfo, getCash, getFuel, getHoldSize, getHoldSpaceAvailable } from "/state/selectors"; const mapStateToProps = state => ({ systemInfo: getGalaxyInfo(state)[getCurrentSystem(state)], ...
var should = require('chai').should(), main = require('../index'), captureStream = require('./helpers/capture-stream'), client = main.client, server = main.server; var protractor = {}; beforeEach(function(){ global.protractor = {}; }); describe('the client server model', function(){ it('has a cl...
const express = require('express'); const Router = express.Router(); const query = require('../utilities/query'); const checkAuth = require('../utilities/checkAuth'); Router.put('/add',async (req,res)=>{ let authentic = await checkAuth.checkAuth(req.query.uid,req.query.authtoken) if (!authentic){ res.s...
(function(t){const e=t["ko"]=t["ko"]||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"0% / %1","Align cell text to the bottom":"","Align cell text to the center":"","Align cell text to the left":"","Align cell text to the middle":"","Align cell text to the right":"","Align cell text to the top":"","Align ce...
import {src, dest, parallel, series, watch} from 'gulp' import autoprefixer from 'gulp-autoprefixer' import eslint from 'gulp-eslint' import rename from 'gulp-rename' import sass from 'gulp-sass' import sourcemaps from 'gulp-sourcemaps' import webpackStream from 'webpack-stream' import webpa...