text
stringlengths
3
1.05M
#!/usr/bin/env python """ Copyright 2020 Johns Hopkins University (Author: Jesus Villalba) Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """ import sys import os from pathlib import Path from jsonargparse import ( ArgumentParser, ActionConfigFile, ActionParser, namespace_to_dict, ) import ...
/** * Scroll Your Table Body jQuery plugin * * @version 1.0.0 * @licence: MIT * @author: CapelliC, http://www.capellic.it * * Minimal implementation of a scrollable TBODY. * Some details adapted from https://jsfiddle.net/hashem/CrSpu/554/ * * https://github.com/CapelliC/jquery.ccsytb */ (function($) { ...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon([/*#__PURE__*/_jsx("path", { d: "M12 6c-3.9 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7zm3.7 10.9L11 14V8h1.5v5.3l4 2.4-.8 1.2z", opacity: ".3" }, "0"), /*#__PURE__*/_jsx("path", { d: "m2...
/** * @fileoverview Enforce img tags use alt attribute. * @author Ethan Cohen */ // ----------------------------------------------------------------------------- // Requirements // ----------------------------------------------------------------------------- import { RuleTester } from 'eslint'; import rule from '....
// Test cases: // 1) User flags override default flags // 2) Session flags override user flags /* eslint-env jest */ import { generateFlagOverrides, applyFlagOverrides } from '../flag_utils' jest.mock('../../app/errors', () => {}) const initialFlags = { FOO_BAR: { value: true, source: 'initial' }, BAZ_QUX: { val...
import argparse from copos import * import tensorflow as tf import hyperparameters as h # import gym, gym.spaces # import rl_botics.env.gym_pomdp # from rl_botics.envs.fvrs import * from rl_botics.envs.table_continuous import * from rl_botics.envs.table_continuous_with_time import * from rl_botics.common.utils import s...
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
const ajaxRequester = (() => { class Requester { _sendAjax(method, url, options) { options = options || {}; const headers = options.headers || {}, data = options.data || {}, contentType = options.contentType || 'application/json'; const promise = new Promise((resolve, reject) => { $.ajax(url, ...
#################################################################################################### # # Project: Embedded Learning Library (ELL) # File: ell_utilities.py (interfaces) # Authors: Lisa Ong # # Requires: Python 3.x # ###################################################################################...
const server = require('../../').hapi const handlers = require('./handlers') server.route({ method: 'POST', path: '/company/{companyId}/link', config: handlers.create }) server.route({ method: ['PUT', 'PATCH'], path: '/company/{companyId}/link/{attendeeId}', config: handlers.update }) server.route({ me...
from . import dashboard from .post import * from .password_change import * from .profile import * dashboard.add_url_rule('/dashboard/', view_func=List.as_view('index')) dashboard.add_url_rule('/dashboard/page/<int:page>/', view_func=List.as_view('page')) dashboard.add_url_rule('/dashboard/post/create/', view_func=Cre...
import time import logging import struct from subprocess import Popen, PIPE, STDOUT epsStructFormat = ">H" + ("Hhh" * 3) + "HHH" epsStructNames = ["Counter", "Solar_Cell_Voltage", "Solar_Cell_Current", "Solar_Cell_Power", "Battery_Voltage", "Battery_Current", "Battery_Power", "Bus_Vol...
"use strict"; exports.__esModule = true; var _setPrototypeOf = require('../core-js/object/set-prototype-of.js'); var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); var _create = require('../core-js/object/create.js'); var _create2 = _interopRequireDefault(_create); var _typeof2 = require('./typeof.js...
#!/usr/bin/python import random import sys n_nodes = int(sys.argv[1]) for i in range(n_nodes): n_connections = int(random.expovariate(0.1)) for j in range(n_connections): print i, int(random.uniform(0, (n_nodes - 1)))
import norms import scripting from utils import rng_seed from dbnc import * from nc import * from bounds import UniformBounds from engine import Metric from sklearn.model_selection import train_test_split # --- class FakeBFcAnalyzer (BFDcAnalyzer): def finalize_setup(self, _clayers): pass def search_input_c...
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Inherit everything from the local config import os, sys sys.path.append(os.path.dirname(os.path.realpath(__file__))) from conf import * OUTP...
'use strict' const { test } = require('tap') const Fastify = require('fastify') const Swagger = require('swagger-parser') const fastifySwagger = require('../../../index') test('support file in json schema', async t => { const opts7 = { schema: { consumes: ['application/x-www-form-urlencoded'], body:...
CKEDITOR.plugins.setLang("flash","el",{access:"Πρόσβαση Script",accessAlways:"Πάντα",accessNever:"Ποτέ",accessSameDomain:"Ίδιο όνομα τομέα",alignAbsBottom:"Απόλυτα Κάτω",alignAbsMiddle:"Απόλυτα στη Μέση",alignBaseline:"Γραμμή Βάσης",alignTextTop:"Κορυφή Κειμένου",bgcolor:"Χρώμα Υποβάθρου",chkFull:"Να Επιτρέπεται η Προ...
var config = require('./shared_config/core.js'); const prepareScenarios = require('./shared_config/prepare_scenarios.js'); const filteredScenarios = require('./shared_config/scenarios_filtered.js'); const scenarios = filteredScenarios(['home']).concat([ { label: "signup", path: "users/new", selectors: ["...
import createSvgIcon from './utils/createSvgIcon.js'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon([/*#__PURE__*/_jsx("path", { d: "M18 6V4h2V2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14v-2h-4.03c1.23-.91 2.03-2.36 2.03-4v-5H8v5c0 1.64.81 3.09 2.03 4H6V4h2v2c0 .55.45 1 1 1h8c.55 0 1-.45 1-...
import sampleCombine from 'xstream/extra/sampleCombine' import isolate from '@cycle/isolate' import { i, p, div, br, label, input, code, table, tr, td, b, h2, button, textarea, a, ul, li, span, th, thead, tbody, h3 } from '@cycle/dom'; import { clone, equals, merge, isEmpty } from 'ramda'; import xs from 'xstream'; imp...
module.exports = (app) => { const svg = require("../util/svgRender") const texts = require("../util/texts") app.get('/showcaseBadgesGroups', async (req, res) =>{ return res.redirect("/") }) app.get('/showcaseBadgesGroups/:scnId', async (req, res) => { try { let isPng =...
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: logical_port.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _...
// dependencies const path = require('path'); const express = require('express'); const routes = require('./controllers'); const helpers = require('./utils/helpers'); const sequelize = require('./config/connection'); const exphbs = require('express-handlebars'); const hbs = exphbs.create({ helpers }); const session = ...
/* This file is part of the GhostDriver project from Neustar inc. Copyright (c) 2012, Ivan De Marino <ivan.de.marino@gmail.com> - Neustar inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redi...
const createFloatAttribute = (array, itemSize) => { const typedArray = new Float32Array(flattenArray(array)); return new THREE.BufferAttribute(typedArray, itemSize); } const createIntAttribute = (array, itemSize) => { const typedArray = new Uint16Array(flattenArray(array)); return new THREE.BufferAttri...
import uuid from datetime import datetime from typing import Any from flask_sqlalchemy import SQLAlchemy from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.orm import relationship from server.session import token_expired db: Any = SQLAlchemy(engine_options={"pool_pre_ping": True}) def save(insta...
formfactor.register({tv: [ "tv", ( navigator.userAgent.indexOf("Large Screen") >= 0 && navigator.userAgent.indexOf("GoogleTV/") >= 0 ) ]});
var exec = require('child_process').exec; var fs = require('fs'); import consts from "consts/const_global" const uuid = require('uuid'); import Utils from "common/utils/helpers/Utils" const EventEmitter = require('events'); import Blockchain from "main-blockchain/Blockchain" import Log from 'common/utils/logging/Lo...
import React from 'react' import styled from '@emotion/styled/macro' import { useTranslation } from 'react-i18next' import { gql } from '@apollo/client' import mq from 'mediaQuery' import { useQuery, useMutation } from '@apollo/client' import UnstyledBlockies from '../Blockies' import NoAccountsModal from '../NoAccoun...
const crypto = require('crypto') const connection = require('../database/connection') module.exports = { async index (request, response) { const incidents = await connection( 'incidents', ).select('*') return response.json(incidents) }, async create (request, response)...
""" Augmenters that deal with edge detection. List of augmenters: * :class:`Canny` :class:`~imgaug.augmenters.convolutional.EdgeDetect` and :class:`~imgaug.augmenters.convolutional.DirectedEdgeDetect` are currently still in ``convolutional.py``. """ from __future__ import print_function, division, absolute_impo...
import React from 'react'; export default () => <dl className="lh-title pa4 mt0"> <dt className="f6 b">Favorite Song</dt> <dd className="ml0">Devil Got My Woman - Skip James</dd> <dt className="f6 b mt2">Favorite Movie</dt> <dd className="ml0">Primer</dd> <dt className="f6 b mt2">Favorite Artist</...
/* Copyright (c) 2013, 2018 National Technology and Engineering Solutions of Sandia, LLC . Under the terms of Contract DE-NA0003525 with National Technology and Engineering Solutions of Sandia, LLC, the U.S. Government retains certain rights in this software. */ import d3 from "d3"; const COLOR_MAP = { night: ...
import { createGlobalStyle } from 'styled-components'; export default createGlobalStyle` * { margin: 0; padding: 0; outline: none !important; box-sizing: border-box; } body { background: #FFFFFF; -webkit-font-smoothing: antialiased; } body, input, button { ...
/* ============================================================ * bootstrapSwitch v1.3 by Larentis Mattia @spiritualGuru * http://www.larentis.eu/switch/ * ============================================================ * Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0...
var fs = require('fs') var themis = require('wasm-themis') var private_key_path, public_key_path switch (process.argv.length) { case 2: private_key_path = 'key' public_key_path = 'key.pub' break case 4: private_key_path = process.argv[2] public_key_path = process.argv[3]...
export const receiveMoneyEmail = (transaction, balance) => { return { subject: `Piggy Bank - You received ${transaction.amount} from ${transaction.source_account_name}`, content: [ `## You received ${transaction.amount} from ${transaction.source_account_name}`, '', '**Detail**', '', ...
async function resizeThat(selector) { const width = parseInt(d3.select('input[name="width"]').property('value')); const image = d3.select(selector); const current_width = parseInt(image.property('width')); const current_height = parseInt(image.property('height')); const ratio = current_height / curr...
function e(){return(e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}window.CustomEvent||function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.creat...
"use strict"; const jwt = require('jwt-simple'); const bcrypt = require('bcrypt'); module.exports = (db, tokenSecret) => { const users = db.sublevel('users'); const authService = {}; authService.login = (username, password, callback) => { users.get(username, (err, user) => { if (err) return callbac...
'use strict'; var React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var ActionRoom = React.createClass({ displayName: 'ActionRoom', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d: 'M12 2C8.13 ...
// Copyright 2012 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 applicabl...
/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /* globals ClassicEditor, console, window, document */ import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-se...
from .basic_models import *
"use strict"; var fs = require("mz/fs"); var fm = require("fastmatter"); var markdown = require("marked"); var string = require("string"); var _ = require("lodash"); var join = require("path").join; module.exports = function(source) { return fs.readdir(source) .then(function(files) { var out = ...
# config.py import os.path # gets home dir cross platform HOME = os.path.expanduser("~") # for making bounding boxes pretty COLORS = ((255, 0, 0, 128), (0, 255, 0, 128), (0, 0, 255, 128), (0, 255, 255, 128), (255, 0, 255, 128), (255, 255, 0, 128)) MEANS = (104, 117, 123) # SSD300 CONFIGS voc = { 'num_...
const express = require('express') const bodyParser = require('body-parser') const cors = require('cors') const passport = require('passport') const BasicStrategy = require('passport-http').BasicStrategy const LocalStrategy = require('passport-local').Strategy const BearerStrategy = require('passport-http-bearer').St...
// Closures function makeMultiplier (multiplier) { // var multiplier = 2; function b() { console.log("Multiplier is: " + multiplier); } b(); var multiply = function (x) { return multiplier * x; } return multiply; } var doubleAll = makeMultiplier(2); console.log(doubleAll(10)); // its own exe...
import numpy as np import pandas as pd import gc import random from sklearn.metrics import roc_auc_score from sklearn.model_selection import train_test_split import torch import torch.nn as nn import torch.nn.utils.rnn as rnn_utils from torch.autograd import Variable from torch.utils.data import Dataset, DataLoader imp...
/* * Kendo UI v2015.1.408 (http://www.telerik.com/kendo-ui) * Copyright 2015 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial licen...
#!/usr/bin/env python3 import subprocess import os import argparse parser = argparse.ArgumentParser(description='Produce a dep file from ninja.') parser.add_argument( '--build-dir', help='The build directory.', required=True) parser.add_argument( '--base-dir', help='The directory for which depende...
'use babel'; /** Input/Output Panel Component @description Creates a panel on the bottom of the screen that contains two subcomponents: a display for output from the Delve process, and a display for writing commands that can be sent to the process to be evaluated **/ const _ = require('underscore'); impor...
import { call, race, take, fork, actionChannel, put } from 'redux-saga/effects'; import { SET_OFFSET_TOP, WATCH_INITIALISE, REMOVE_SCROLLER } from '../actions/const'; import actions from '../actions'; const { scrollTo } = actions; /* Scroller UI related sagas ========================== */ /*...
/* * * AssetCategories reducer * */ import produce from 'immer'; import { GET_MODELITEMS, LOAD_MODELITEMS, GET_ITEMID, GET_ITEMNAME, SHOW_EDITITEMMODAL, HIDE_EDITITEMMODAL, GET_EDITEDITEMNAME, SAVE_EDITEDITEM, GET_CURRENTPAGE, HANDLE_PAGE, HANDLE_FIRST_LASTPAGE, UPDATE_SUCCESS, UPDATE_F...
""" Tests compressed data parsing functionality for all of the parsers defined in parsers.py """ import os from pathlib import Path import zipfile import pytest from pandas import DataFrame import pandas._testing as tm import pandas.io.common as icom skip_pyarrow = pytest.mark.usefixtures("pyarrow_skip") @pytest...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { NativeModules, Platform, PixelRatio, processColor, Text, } from 'react-native'; import ensureNativeModuleAvailable from './ensure-native-module-available'; import createIconSourceCache from './create-icon-source-cache'...
import _ from 'lodash'; import React from 'react'; import { banners } from 'ui/notify'; import { NoDefaultIndexPattern } from 'ui/errors'; import { IndexPatternsGetProvider } from '../_get'; import uiRoutes from 'ui/routes'; import { EuiCallOut, } from '@elastic/eui'; import { clearTimeout } from 'timers'; let banne...
import * as ACTION from "./rentalSpotsActionTypes"; export function setRentalSpots(rentalSpots) { return { type: ACTION.SET_RENTAL_SPOTS, payload: { rentalSpots } }; } export function reqGetRentalSpot(id) { return { type: ACTION.REQ_GET_RENTAL_SPOT, payload: { id } }; } ex...
const assert = require('assert'); const should = require('should'); const sinon = require('sinon'); const supertest = require('supertest'); const moment = require('moment'); const testUtils = require('../utils'); const configUtils = require('../utils/configUtils'); const settingsCache = require('../../core/shared/setti...
// Grab node packages var gulp = require('gulp'); rename = require('gulp-rename'); uglify = require('gulp-uglify'); gulp.task('compress', function() { gulp.src('js/*.js') .pipe(uglify()) .pipe(rename('typed.min.js')) .pipe(gulp.dest('dist')) }); // Default Task gulp.task('default', ['comp...
var searchData= [ ['logging',['Logging',['../group__log.html',1,'']]] ];
import { onMounted, onUnmounted } from "vue"; import { game } from "../game"; import { hitObjectTest } from "../utils"; import config from "../config"; export function fighting({ enemys, enemyBullets, removeEnemyBullet, hurtEnemy, planeInfo, planeBullets, removePlaneBullet, hurtPlane }) { // 敌机与飞机碰撞检测 const e...
import { ObjectMap } from '@ringcentral-integration/core/lib/ObjectMap'; import { moduleActionTypes } from 'ringcentral-integration/enums/moduleActionTypes'; export const actionTypes = ObjectMap.prefixKeys([ ...ObjectMap.keys(moduleActionTypes), 'syncClosed', 'syncMinimized', 'syncSize', 'syncFocus', 'sync...
'use strict'; var path = require('path'), open = require(path.join('..', 'lib', 'open')) ; describe('Open', function() { it('browser()', function() { var url = 'http://nodejs.org'; var oses = ['darwin', 'win32', 'win64', 'win', 'sunos', 'freebsd', 'linux']; oses.forEach(function(os) { pr...
#! /usr/bin/python import sys import ast import re import astunparse def prettify_docstring(docstr): docstr = docstr.replace("DCQT", "DCQTDCQT").replace("DCNL", "DCQTDCNL") docstr = docstr.replace("'", "\\'") rv_list = [] for line in docstr.split('\n'): line = line.strip() # Remove whitespa...
var setSizes = function() { var closeBtnHeight = $("#divider-btn-close i").height(); if(closeBtnHeight !== 0){ $("#divider-btn-open img").height(closeBtnHeight); } //TODO: subtract the size of the annotation track below $("#canCont").height($(document).height() - 150 - $("#footer").height()); if (m...
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import styled from '@emotion/styled'; import { css } from '@emotion/core'; import { List } from 'immutable'; import { Toggle, Dropdown, DropdownItem, DropdownButton, colors, transitions...
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
'use strict'; angular.module ('irs') // ------------------------------------------------------------------------- // // controller for listing irs // // ------------------------------------------------------------------------- .controller ('controllerIrList', ['$scope', '$rootScope', '$stateParams', 'IrModel', ...
{ "targets": [{ "target_name": "secp256k1", "variables": { "conditions": [ [ "OS=='win'", { "with_gmp%": "false" }, { "with_gmp%": "<!(utils/has_lib.sh gmpxx && utils/has_lib.sh gmp)" } ] ] }, "sources": [ "./src/a...
import basicio def _error_sourceview(filename, lineno, colno, prefix=" "): sourceview = ["", "", "", ""] if filename != "": lines = basicio.readall(filename).split("\n") i = 0 for line in lines: if i == lineno - 1: sourceview[0] = "%s%s: %s"...
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{529:function(module,exports,__webpack_require__){__webpack_require__(530),__webpack_require__(942),__webpack_require__(952),__webpack_require__(953),__webpack_require__(949),__webpack_require__(947),__webpack_require__(946),__webpack_require__(945),__webpack_requ...
var latestChatDT = '1/1/1900'; var chatPoster; var chatReceiver = Ti.Network.createHTTPClient(); chatReceiver.onerror = function (e) { //Ti.UI.createAlertDialog({ title: 'Error', message: 'Cannot communicate with server. Please try again later.' }).show(); }; chatReceiver.setTimeout(15000); chatReceiver.onload ...
/* * Copyright 2021 Adobe Systems Incorporated * * 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 applica...
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function MdSignalWifi3Bar (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"fillOpacity":".3","d":"M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"}},{...
var define = require("../define").define, Collection = require("./Collection"), base = require("../base"); var padding = function(char, numSpaces) { var ret = []; for (var i = 0; i < numSpaces; i++) ret.push(char); return ret.join(""); }; module.exports = exports = define(Collectio...
from django.urls import path from rango import views app_name = 'rango' urlpatterns = [ path('', views.index, name='index'), path('about/', views.about, name='about'), path('category/<slug:category_name_slug>/', views.show_category, name='show_category'), path('add_category/', views.add_cate...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Basic string exercises # Fill in the code for the functions below. main() is already se...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _react() { const data = _interopRequireDefault(require("react")); _react = function _react() { return data; }; return data; } function _interopRequireDefault(obj) { return obj && obj.__esMo...
import logo from './logo.svg'; import './App.css'; // example to include logo file // return anchor function App() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <a className="App-link" href="tel:999-55...
/* eslint-env node */ 'use strict'; const request = require('request'), HttpStatus = require('http-status-codes'), ConfTool = require('./ConfTool.js'), ConfToolClientHelper = require('./ConfToolClientHelper.js'); class ConfToolClient { constructor(options) { this.key = options.apiKey; this.baseUrl = o...
function tabuada() { let num = document.getElementById('txtn') let tab = document.getElementById('seltab') if (num.value.length == 0) { window.alert('Por Favor, Digite um número!') } else { let n = Number(num.value) let c = 1 tab.innerHTML = '' while (c <= 10) { let i...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ 'use strict'; import type {ModuleGroups, ModuleTransportLike} from '../../types.flow'; import...
# Copyright (c) 2022 PaddlePaddle Authors. 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 appli...
/* */ require("../../modules/es6.number.constructor"); require("../../modules/es6.number.epsilon"); require("../../modules/es6.number.is-finite"); require("../../modules/es6.number.is-integer"); require("../../modules/es6.number.is-nan"); require("../../modules/es6.number.is-safe-integer"); require("../../modules/es6....
import React from "react"; import "./footer.scss"; class Footer extends React.Component { render() { return ( <footer> <h3>&copy; 2018 Code Fellows</h3> </footer> ); } } export default Footer;
const cupones = [ "cupon1", "cupon2", "cupon3", ]; function calcularPrecioConDescuento (precio, cupones) { const porcentajePrecioConDescuento = 100 - cupones; const precioConDescuento = (precio * porcentajePrecioConDescuento) / 100; return precioConDescuento; } function botonPrecioFinal() { ...
from keras_applications import get_submodules_from_kwargs from ._common_blocks import Conv2dBn from ._utils import freeze_model, filter_keras_submodules from ..backbones.backbones_factory import Backbones backend = None layers = None models = None keras_utils = None # -----------------------------------------------...
#先手番局面のバックアップ用 import Bboard b1a,b2a,b3a,b4a,b5a,b6a,b7a,b8a,b9a = '','','','','','','','','' b1b,b2b,b3b,b4b,b5b,b6b,b7b,b8b,b9b = '','','','','','','','','' b1c,b2c,b3c,b4c,b5c,b6c,b7c,b8c,b9c = '','','','','','','','','' b1d,b2d,b3d,b4d,b5d,b6d,b7d,b8d,b9d = '','','','','','','','','' b1e,b2e,b3e,b4e,b5e,b6e,b7e,b8...
/* Copyright 2015-2016 Samsung Electronics Co., 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...
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r)...
import { GatsbyCLI } from "../test-helpers" const MAX_TIMEOUT = 2147483647 jest.setTimeout(MAX_TIMEOUT) describe(`gatsby build`, () => { const cwd = `gatsby-sites/gatsby-build` beforeAll(() => GatsbyCLI.from(cwd).invoke(`clean`)) afterAll(() => GatsbyCLI.from(cwd).invoke(`clean`)) it(`creates a built gatsby...
import { __awaiter, __extends, __generator } from "tslib"; import * as React from 'react'; import { Component } from 'react'; import Badge from '@atlaskit/badge'; var MAX_NOTIFICATIONS_COUNT = 9; var NAVIGATION_CHANNEL = 'navigation'; var NotificationIndicator = /** @class */ (function (_super) { __extends(Notifica...
import React from "react"; import { Tabs, Tab, AppBar } from "@material-ui/core"; import AddVariableSet from './AddVariableSet.js' import EditVariableSet from './EditVariableSet.js' import Variables from './variables.js' const EditTabBar = (props) => { const [selectedTab, setSelectedTab] = React.useState(0); const...
/** * @license * https://github.com/bitcoincashjs/cashaddr * Copyright (c) 2017-2018 Emilio Almansi * Distributed under the MIT software license, see the accompanying * file LICENSE or http://www.opensource.org/licenses/mit-license.php. */ 'use strict'; var base32 = require('./base32'); var bigInt = require('bi...
#!/usr/bin/env python3 # CHECKED # NOTE IMO this exercise sucks. I just translated what the teached did in MAXIMA to python # in one of the examples in the "TEXT" # In this case: # [ dB ] [ dA, dA, dA ] [ X01 ] # [ dB ] - [ dA, dA, dA ] * [ X02 ] = new_b # [ dB ] [ dA, dA, dA ] [ X03 ] # and we just solve the ...
var mongoose = require('mongoose'); var bcrypt = require('bcrypt-nodejs'); // define the schema for our user model var userSchema = mongoose.Schema({ local : { email : String, password : String, } }); //Generate Hash userSchema.methods.generateHash = function(password) ...
window._ = require('lodash'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { window.$ = window.jQuery = require('jquery'); ...