text
stringlengths
3
1.05M
import {Plugin} from 'ckeditor5-exports'; import TableStylesCommand from '../commands/tableStyles'; export default presetConfiguration => class TableStyles extends Plugin { static get pluginName() { return 'TableStyles'; } init() { const {editor} = this; const options = {...presetC...
from typing import TYPE_CHECKING if TYPE_CHECKING: from Platforms.Discord.main_discord import PhaazebotDiscord from Platforms.Web.index import WebIndex from aiohttp.web import Response, Request from .get import apiDiscordConfigsGet from .edit import apiDiscordConfigsEdit from Platforms.Web.Processing.Api.errors impo...
from site import Site from abc import abstractmethod from helper import Helper from matcher import * class Kink(Site): ARTWORK_ITEM_LIMIT = 8 id = None cookies = None helper = Helper() def __init__(self, siteId, name, baseUrl): Site.__init__(self, siteId, name, baseUrl) @abstractme...
// *******************SET YOUR API KEY HERE******************* // *********************************************************** // Insert your Patch API Key here. ReadMe for more info. var apikey ='your_api_key_here'; // Insert your Patch secret key here. ReadMe for more info. var secret ='your_secret_key_here';...
# Display your details like name, age, address in three different lines name,age,address="Anand",21,"Anand Nagar Bangalore India" print("\nName: {}\nAge: {}\nAddress: {}\n".format(name,age,address))
/* jshint asi:true */ //先等图片都加载完成 //再执行布局函数 /** * 执行主函数 * @param {[type]} function( [description] * @return {[type]} [description] */ (function() { /** * 内容JSON */ var demoContent = [{ page_link: 'http://xmake.io', img_link: '/static/img/xmake/xmake_site.png', ...
(function(env) { "use strict"; var references = { 'san francisco': { lat: 37.7577, lon: -122.4376 }, 'redwood city': { lat: 37.5081359, lon: -122.2139269 }, 'palo alto': { lat: 37.42565, lon: -122.13...
"""Configuration system for CherryPy. Configuration in CherryPy is implemented via dictionaries. Keys are strings which name the mapped value, which may be of any type. Architecture ------------ CherryPy Requests are part of an Application, which runs in a global context, and configuration data may apply to any of ...
/* * DC jQuery Vertical Accordion Menu - jQuery vertical accordion menu plugin * Copyright (c) 2011 Design Chemical * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ (function($){ $.fn.cutomAccordion = function...
/** * Calculate the secant of a value, sec(x) = 1/cos(x) * * sec(x) * * For matrices, the function is evaluated element wise. * * @param {Number | Complex | Unit | Array | Matrix} x * @return {Number | Complex | Array | Matrix} res */ math.sec = function sec(x) { if (arguments.length != 1) { th...
import gql from 'graphql-tag'; import { queryAsAdmin } from '../../utils/testQuery'; import { now } from '../../../src/database/grakn'; import { elLoadByIds } from '../../../src/database/elasticSearch'; const LIST_QUERY = gql` query opinions( $first: Int $after: ID $orderBy: OpinionsOrdering $orderMo...
def lcs(x, y): res='' xArr=list(x) for i in y: if i in xArr: res+=i xArr[:(xArr.index(i)+1)]=[] return res print(lcs("anothertest", "notatest"))
"use strict"; module.exports = { "default": require("core-js/library/fn/symbol/split"), __esModule: true };
let data = { "body": "<path d=\"M15 22h-2c-1.1 0-2-.9-2-2v-5h6v5c0 1.1-.9 2-2 2m-8-8h14l-6-4.29V6c0-1.61-1.06-4-4-4S7 4.39 7 6c0 .45-.19 1-1 1H5V3H3v9h2V9h1c2.2 0 3-1.79 3-3c0-.33.1-2 2-2c1.83 0 2 1.54 2 2v3.71L7 14z\" fill=\"currentColor\"/>", "width": 24, "height": 24 }; export default data;
import React from "react"; import clsx from "clsx"; import { List, ListItem, Button } from "@material-ui/core"; import CustomRouterLink from "./RouterLink"; import useStyles from "./styles"; const SidebarNav = (props) => { const { pages, className, ...rest } = props; const classes = useStyles(); return ( ...
import Service from '../../services/LoginService'; const state = { log: null, error: null, token: null, login: false, }; const getters = { getLog() { return state.log; }, getError() { return { error: state.error, message: 'Giriş başarısız !', color: 'error', }; }, getTo...
""" Copyright 2018 Edmunds.com, 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 or agreed to in writing, softw...
import React, { Component } from "react"; import ContainerMembershipListForExtendSuper from "./presenter"; class Container extends Component { state = {}; render() { const { now_view_member_memberships } = this.props; return ( <ContainerMembershipListForExtendSuper now_view_member_membership...
from functools import partial import numpy as np import pytest from percentiles import percentile percentile_75 = partial(percentile, percent=75) @pytest.mark.parametrize('values, expected', ( ([100, 200, 400], 300), ([1, 7, 5, 3], 5.5), ([1.1, 700.5, 2.3], 351.4), ([1.1, 700.5, 2.3, 0.1, 4, 6, 90...
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from '../components/app'; import PostsIndex from '../components/PostsIndex'; import PostsNew from '../components/PostsNew'; import PostsShow from '../components/PostsShow'; import { onIndexEnter, onPostsEnter } from './callbacks';...
from core.grammar_fuzzer import GrammarFuzzer from api_interface.request_engine import RequestEngine from core.grammar_mutation_fuzzer.data_generators import BaseGrammarMutationGenerator class GrammarMutationFuzzer(GrammarFuzzer): """ """ generator_class = BaseGrammarMutationGenerator fuzzer_type = "...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.m.RadioButton. sap.ui.define(['jquery.sap.global', './library', 'sap/ui/core/Control', 'sap/ui/core/EnabledPr...
var passport = require('passport'), LocalStrategy = require('passport-local').Strategy, mongoose = require('mongoose'), config = require('../config/config').getConfig(), Membership = require('../services/account/membership-service'); module.exports = function () { passport.use(new LocalStrategy(fun...
/*============================================================================== 1000 = one second ==============================================================================*/ /*============================================================================== color ====================================================...
const isString = require('lodash.isstring'); const isBoolean = require('lodash.isboolean'); const isNumber = require('lodash.isnumber'); const isObject = require('lodash.isobject'); function prepForComparison(value, rule, recursive = false) { let coercedValue = value; // coerce boolean/number/string to string, low...
/** * Created by marek on 17.11.2016. */ import moment from 'moment' module.exports = function (value) { return moment(value).format('HH:mm') }
import React from 'react'; import range from '../misc/utils'; export class Button extends React.Component { constructor(props) { super(props); this.state = { label: props.label, click: props.click }; } click (evt) { this.state.click(evt); } render() { return ( <button...
'use strict'; angular.module('formApp', [ 'ngAnimate' ]). controller('formCtrl', ['$scope', '$http', function($scope, $http) { $scope.formParams = {}; $scope.stage = ""; $scope.formValidation = false; $scope.toggleJSONView = false; $scope.toggleFormErrorsView = false; $scope.formParams = { ccEmail...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import pickle import os import time import ray from ray.rllib import optimizers from ray.rllib.agents.agent import Agent, with_common_config from ray.rllib.agents.dqn.dqn_policy_graph import DQNPolicyGraph fro...
/**模板引擎合并 * 开发*/ var gulp = require('gulp'), ejs = require('gulp-ejs'),//ejs模板 cheerio = require('gulp-cheerio'),//批量更换html中的引用 connect = require('gulp-connect'),//服务器 rename = require("gulp-rename");//重命名 var browserSync = require('browser-sync').get("My Server"); function devEjs() { gulp...
from django.urls import path from . import views urlpatterns = [ path('', views.index), ]
/** * Creates a template function from a template string. The template may have `<%= someVar %>` interpolators, and the returned function should be called with a data object e.g. `{ someVar: 'someData' }` * @param {string} str - the template string * @returns {function} */ export default function template ( s...
"""Added sent to invites Revision ID: de7a914273f6 Revises: 93e37d267cfc Create Date: 2020-10-04 19:55:37.456858 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'de7a914273f6' down_revision = '93e37d267cfc' branch_labels = None depends_on = None def upgrade()...
import re import time import os import pandas as pd from bs4 import BeautifulSoup from foodkm.scraper.scrape_utils import login, switch_to_menu # Generate product ids of interest ROOT_CATS = [ # 'PASCUA', # 'BAJADAS PVP', # 'NOVEDADES', # 'SUSHI', 'ALIMENTACION', 'APERITIVOS', 'BEBES', ...
from math import sqrt def quad(a, b, c): x1 = (-b + sqrt(b**2 - 4*a*c)) / (2*a) x2 = (-b - sqrt(b**2 - 4*a*c)) / (2*a) return x1,x2 print(quad(2, 7, -15))
"undefined"==typeof window||window.ICON_FONT_STYLE?"undefined"!=typeof window&&window.ICON_FONT_STYLE&&window.ICON_FONT_STYLE.update&&window.ICON_FONT_STYLE.update({fontName:"vusion-icon-font",styleContent:'@font-face {\n\tfont-family: "vusion-icon-font";\n\tsrc:url("/public/vusion-icon-font.ttf?3d02953e747bbfe9edc1376...
import { useState, useEffect } from 'react'; import { hasAccessToEnrollment } from '../../../lib/services'; const useAccessToEnrollment = enrollmentId => { const [ hasAccessToPreviousEnrollment, setHasAccessToPreviousEnrollment, ] = useState(false); useEffect(() => { async function fetchHasAccessToE...
import { useState, useEffect } from "react" function getWindowDimensions() { const { innerWidth: width, innerHeight: height } = window return { width, height } } export default function useWindowDimensions() { const [windowDimensions, setWindowDimensions] = useState( getWindowDimensions() ) u...
# Copyright 2022 Maximilien Le Clei. # # 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 w...
const path = require('path'), babiliPlugin = require('babili-webpack-plugin'), extractTextPlugin = require('extract-text-webpack-plugin'), optimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'), webpack = require('webpack'), HtmlWebpackPlugin = require('html-webpack-plugin...
import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; import "./i18n"; import App from "./App"; import reportWebVitals from "./reportWebVitals"; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById("root") ); // If you want to start measuring ...
const child_process = require('child_process'); const shell = require('shelljs'); async function main() { let name = "public" // await child_process.execSync('ls', { cwd: `./${name}` }); await shell.exec("cd ../public/ && npm -v") } main()
const MadamNazar = { possibleLocations: [ { key: "MPSW_LOCATION_00", x: -123.9039, y: 34.8213, id: "rio" }, { key: "MPSW_LOCATION_01", x: -100.0742, y: 49.0765, id: "cho" }, { key: "MPSW_LOCATION_02", x: -104.7679, y: 85.7222, id: "hen" }, { key: "MPSW_LOCATION_03", x: -84.2973, y: 82.4512, id: "...
# -*- coding: utf-8 -*- __all__ = ["TTVOrbit", "compute_expected_transit_times"] import numpy as np import theano.tensor as tt from .keplerian import KeplerianOrbit def compute_expected_transit_times(min_time, max_time, period, t0): """Compute the expected transit times within a dataset Args: min_...
# Verify that gdb can pretty-print the various PyObject* types # # The code for testing gdb was adapted from similar work in Unladen Swallow's # Lib/test/test_jit_gdb.py import os import re import subprocess import sys import unittest import locale from test.support import run_unittest, findfile, python_is_optimized ...
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global','./FlexBoxRenderer'],function(q,F){'use strict';var H={};H.render=function(r,c){F.render...
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-04-25 15:26 from django.db import migrations, models import qgisserver.models class Migration(migrations.Migration): dependencies = [ ('qgisserver', '0008_auto_20180423_1322'), ] operations = [ migrations.AddField( ...
from django.template.defaultfilters import slugify from .settings import get_cache_backend # Stripped down version of caching functions from django-dbtemplates # https://github.com/jezdez/django-dbtemplates/blob/develop/dbtemplates/utils/cache.py cache_backend = get_cache_backend() def get_cache_key(name): """ ...
from .models import * from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class SignupForm(UserCreationForm): email = forms.EmailField(max_length=200,help_text='Required') class Meta: model = User fields = ('username', 'e...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define("widgets/jquery-bar-rating", [], factory); else if(typeof exports === 'object') exports["widgets/jquer...
'use strict'; const Q = require('q'); const fs = require('fs-extra') const zipFolder = require('folder-zip-sync') const { readdirSync, statSync } = require('fs-extra') const { join } = require('path') const path = require('path') const yaml = require('js-yaml') const Selector = require('node-option') const del = requi...
export { default } from 'supabase-ember-directory/routes/application';
""" Dynamical TT-approximation """ import numpy as np import dyn_tt from tt import tensor def ksl(A,y0,tau,rmax=150,kickrank=5,verb=1,nswp=10): """ Dynamical TT-approximation """ ry = y0.r.copy() #lam = np.zeros(ry[y0.d]) #for i in xrange(10): #Check for dtype y = tensor() if np.iscomplex(A....
var map = require('map-stream'); var rext = require('replace-ext'); var xml2js = require('xml2js').parseString; module.exports = function(options) { var options = options ? options : {}; function modifyContents(file, cb) { if (file.isNull()) return cb(null, file); if (file.isStream()) return cb(new E...
# Copyright 2020 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, sof...
import sys input = sys.stdin.readline ''' 일단 시계로 돌든 반시계로 돌든 하나만 해보면 나머지 거리는 알 수 있음 그냥 배열 만들고 거기에 상점들 넣고 동근이 위치부터 시계방향으로 한바퀴 쭉 돌면서 계산 ''' # input col, row = map(int, input().split()) store_num = int(input()) block = [[False for _ in range(col + 1)] for _ in range(row + 1)] for _ in range(store_num): dir, dist = ...
// Karma configuration // Generated on Wed Dec 23 2020 07:09:39 GMT-0500 (Eastern Standard Time) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.or...
/** * @author GuangHui * @description 路由实例 */ import Vue from 'vue' import Router from 'vue-router' import routesLoader from 'Plugins/routes-loader' import { ROUTER_DEFAULT_CONFIG, INDEX_ROUTES } from 'Config' import { routerAfterEachFn, routerBeforeEachFn } from 'Config/interceptors/router-interceptor' impor...
# -*- coding: utf-8 -*- ''' Copyright (c) 2020 ETH Zurich SPDX-License-Identifier: BSL-1.0 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) test - A package to compile and run test and examples ''' import os from pyuti...
import React from 'react'; import Link from 'gatsby-link'; import moment from 'moment'; import filterPost from '../../utils/filters/Post'; import FlagIcon from "../flags/FlagIcon"; export default class OtherPost extends React.Component { isFrenchPost({ post }) { const tags = post.tags || []; const ...
class Link { constructor(bodyA, bodyB) { var lastlink = bodyA.body.bodies. length - 2; this.link = Constraint.create({ bodyA: bodyA.body.bodies[lastlink], pointA: { x: 0, y: 0 }, bodyB: bodyB.body, pointB: { x: 0, y: 0 }, length: -10, ...
import * as PluginTypes from './PluginTypes'; import RSN from './defaults/rsn'; import ETH from './defaults/eth'; /*** * Setting up for plugin based generators, * this will add more blockchain compatibility in the future. */ class PluginRepositorySingleton { constructor(){ this.plugins = []; t...
# vim:fileencoding=utf-8:noet from __future__ import unicode_literals, absolute_import __copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import os import sys from time import sleep from threading import RLock from powerline.lib.monotonic import monotonic from powerli...
/* eslint-disable react/prop-types */ import { motion } from 'framer-motion'; import React, { useEffect } from 'react'; import Chart from '../components/chart/Chart'; import styles from './detailStyle.module.scss'; const truncate = (str) => (str !== null ? str.substring(0, 15) : 'None'); const container = { initial...
const spells = [ { cost: 53, effect: (me, opponent) => { opponent.damage(4) } }, { cost: 73, effect: (me, opponent) => { opponent.damage(2); me.hp += 2; } }, { cost: 113, start: (me, opponent) => me.armor += 7, effect: (me, opponent) => {}, end: (...
import gym import numpy as np from dp import policy_iteration, value_iteration # Action mappings - Map actions to numbers action_mappings = { 0: '\u2191', # UP 1: '\u2192', # RIGHT 2: '\u2193', # DOWN 3: '\u2190', # LEFT } def play_episodes(environment, n_episodes, policy): pass # Number of episodes to play ...
""" Created on Thu Sep 14 13:11:07 2017 @author: maria """ from typing import List from numpy import cumsum, indices, zeros from numpy.typing import ArrayLike from .ballcurve import ballcurve def network_generator( rw: int, cl: int, b: int, cy: List[int], cx: List[int], xi: float, P: flo...
import React, { useState } from 'react'; import styled from 'styled-components'; import { Link } from 'gatsby'; import ChevDownSVG from 'src/assets/svgs/chev-down.svg'; const Container = styled.li` font-family: 'Raleway', sans-serif; font-size: 1.4rem; color: white; font-weight: 400; text-decoratio...
/* Copyright 2019-2021 The Tekton 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 applicable law or agreed to in writing, sof...
"""Helper rules for building CircleCI orbs with the help of Bazel.""" def nodejs_script_to_sh_script(name, output_file, bundle_file): """Rule that takes a NodeJS script and wraps it into a Bash script. This is useful for inclusion in CircleCI `run` commands in Orbs because there cannot be an external ...
/*globals describe, it, require, before, global*/ var chai = require('chai'), sinon = require('sinon'), sinonChai = require('sinon-chai'); chai.use(sinonChai); var expect = chai.expect; var _ = require('underscore'); var result = require('../tasks/task-4')(); describe('Task #4 Students Tests', function () { befo...
/** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize underscore exports="node" -o ./underscore/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentClou...
define((require, exports, module) => { let TRHMasterData = require('app/core/master') const TRH = require('app/core/const/index') return () => { return { swordId: null, rarity: null, hp: null, atk: null, def: null, mobile: null, back: null, ...
import gql from "graphql-tag"; export const GET_ALL_PRODUCTS = gql` { allProducts { product { _id name price productImageUrl } isUserFavorite } } `; export const GET_PRODUCT_DETAILS = gql` query ProductDetails($productId: ID!) { productDetails(product...
# Licensed under a 3-clause BSD style license - see LICENSE.rst import os import sys import pytest import numpy as np from .. import read ROOT = os.path.abspath(os.path.dirname(__file__)) try: import bz2 # pylint: disable=W0611 except ImportError: HAS_BZ2 = False else: HAS_BZ2 = True try: import ...
#!/usr/bin/python -u import sys import libxml2 # Memory debug specific libxml2.debugMemory(1) import libxslt styledoc = libxml2.parseFile("test.xsl") style = libxslt.parseStylesheetDoc(styledoc) doc = libxml2.parseFile("test.xml") result = style.applyStylesheet(doc, None) style.saveResultToFilename("foo", result, ...
# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # # SPDX-License-Identifier: MIT # Adafruit's CCS811 Library documentation build configuration file, created by # sphinx-quickstart on Fri Nov 11 21:37:36 2016. # # This file is execfile()d with the current directory set to its # c...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemText from '@material-ui/core/ListItemText'; import MenuItem from '@material-ui/core/MenuItem'; import ExpandLess from '@material-ui/icons/ExpandLessSharp'; import Expan...
"use strict"; //# sourceMappingURL=pinterest-square-icon.d.js.map
// Copyright (c) 2013 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. 'use strict'; /** * @fileoverview Test framework setup when run inside the browser. */ // Setup the mocha framework. mocha.setup('bdd'); mocha....
YAHOO.namespace("lacuna.buildings"); if (typeof YAHOO.lacuna.buildings.Trade == "undefined" || !YAHOO.lacuna.buildings.Trade) { (function(){ var Lang = YAHOO.lang, Util = YAHOO.util, Dom = Util.Dom, Event = Util.Event, Sel = Util.Selector, Pager = YAHOO.widget.Paginator...
const { user, invalidUser } = require('./user.mock') const { goalType, goalTypeInvalid } = require('./goal-type.mock') const { goalStatus, goalStatusInvalid, goalStatusId } = require('./goal-status.mock') const { notificationFrequency, notificationFrequencyInvalid } = require('./notification-frequency.mock') const { go...
/** * Copyright IBM Corp. 2019, 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. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-8f9a8751.js'); var createComponent = require('reakit-system/createComponent'); var createHook = require('reakit-system/createHook'); require('reakit-utils/shallowEqual'); ...
import React from 'react' import { Popover, OverlayTrigger } from 'react-bootstrap' const popoverDeactivation = ( <Popover id='popover-deactivation' className='tooltip-popover' title='Deactivation means:'> An individual takes action or a company ceases operation or deactivates an individual’s account due to inac...
// Copyright (c) 2021, VHRS and contributors // For license information, please see license.txt frappe.ui.form.on('Separating different layers of Asphalt Core', { // refresh: function(frm) { // } });
import React from 'react'; import classes from './ProdutoListado.css'; const ProdutoListado = (props) => ( <div onClick={props.clicked} className={classes.ProdutoListado}> <div className={classes.destro}> <img src={`https://firebasestorage.googleapis.com/v0/b/agencian1.appspot.com/o/${props.image[0].t...
$(document).ready(function() { $('#popupclose').fancybox({ 'width': '60%', 'height': '60%', 'autoScale':false, 'transitionIn':'none', 'transitionOut':'none'}).trigger('click'); }); window.addEventListener("load", function(){ windo...
import { h } from 'vue' export default { name: "ShoppingBagOpenBold", vendor: "Ph", type: "", tags: ["shopping","bag","open","bold"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 256 256","class":"v-icon","fill":"currentColor","data-name":"ph-shopping-bag-op...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Listr = void 0; const p_map_1 = __importDefault(require("p-map")); const rxjs_1 = require("rxjs"...
#!/usr/bin/env python3 # Copyright (c) 2015-2020 The Crown Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test transaction signing using the signrawtransaction* RPCs.""" from test_framework.address import check...
'use strict'; const QueryBuilderOperation = require('./QueryBuilderOperation'); const mapAfterAllReturn = require('../../utils/promiseUtils').mapAfterAllReturn; const isPostgres = require('../../utils/knexUtils').isPostgres; // Base class for all insert operations. class InsertOperation extends QueryBuilderOperation ...
/* eslint-disable no-plusplus, no-var, strict, vars-on-top, prefer-template, func-names, prefer-arrow-callback, no-loop-func */ /* global Chart, location, document, port, socketPath, parseInt, io */ 'use strict'; Chart.defaults.global.defaultFontSize = 8; Chart.defaults.global.animation.duration = 500; Chart.defa...
let listItemDisplay = document.getElementById('list-item-display') let newItemInputForm = document.getElementById('form') let n = 0 newItemInputForm.addEventListener('submit',(event)=>{ event.preventDefault() n+=1 let newListEntry = document.getElementById('new-list-item-entry').value let newListDiv = document.crea...
import { article, comment, command as _ } from '../..' export async function getCommentByArticleId( id, opt = { limit: 10, skip: 0, // field, } ) { return await comment .where({ id, }) .limit(opt.limit) .skip(opt.skip) .field({ _id: false, _openid: false, }...
#!/usr/bin/env python3 from json import loads, dumps from sys import exit, argv import requests if len(argv) < 3: print('Arguments: <rpc_username> <rpc_password> [<rpc_port>]') exit(1) ### START FROM ELECTRUM def bits_to_target(bits): bitsN = (bits >> 24) & 0xff if not (0x03 <= bitsN <= 0x1e): ...
import pickle import pandas as pd import numpy as np import StatsFunctions as stats from sklearn.preprocessing import StandardScaler class cor06_svm(): """ This class represents the best model/configuration from Córdoba (RIA station) - aridity index = 0.4616. It uses a SVM model and the following inpu...
#!/usr/bin/env python # # Copyright 2016 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 requir...
import { Server, Model, hasMany, belongsTo } from "miragejs"; describe("External | Shared | ORM | associationsFor", function () { let server; beforeEach(() => { server = new Server({ environment: "test" }); }); afterEach(() => { server.shutdown(); }); test("it returns an empty object for a model...
const Discord = require('discord.js') const Steam = require('../functions/steam') const Player = require('../functions/player') const errorCard = require('../templates/errorCard') const { getCardsConditions } = require('../functions/commands') const DateStats = require('../functions/dateStats') const { maxMatchsDateSta...