text
stringlengths
3
1.05M
window.ST = window.ST || {}; /** Ajax request status indicator Give `ajaxRequest` and `ajaxResponse` and get back four streams which reflect the status of the request (loading, success, error, idle) Usage: var ajaxResponse = ajaxRequest.ajax(); var status = window.ST.ajaxStatusIndicator(ajaxRequest, aja...
function Mostrar() { //alert("hacer en casa"); var numero = parseInt(prompt("Ingrese un numero positivo")); var contador = 0; while(numero <= 0 || isNaN(numero)){ numero = parseInt(prompt("Error! Ingrese numero positivo")); } for(var i = 1; i <= numero; i++){ if(!(numero...
# -*- coding: utf-8 -*- """ .. _ex-eeg-csd: ===================================================== Transform EEG data using current source density (CSD) ===================================================== This script shows an example of how to use CSD :footcite:`PerrinEtAl1987,PerrinEtAl1989,Cohen2014,KayserTenke201...
'use strict'; const fs = require('fs'); const ip = require('ip'); const FIFO = require('fifo-js'); const spawn = require('child_process').spawn; let Service, Characteristic, uuid, StreamController, Accessory, hap; module.exports = (homebridge) => { Service = homebridge.hap.Service; Characteristic = homebridge.ha...
export const PROXY_TYPE = { MANAGEMENT: 'MANAGEMENT', SPAWN: 'SPAWN', TRANSFER: 'TRANSFER', VOTING: 'VOTING', }; export const proxyTypeToHuman = proxyType => { switch (proxyType) { case PROXY_TYPE.MANAGEMENT: return 'management'; case PROXY_TYPE.SPAWN: return 'spawn'; case PROXY_TYPE....
const CONFIDENCE_BOOST_STATION = 4; const CONFIDENCE_BOOST_STOP = 2; const getLabel = properties => { const { name, street, housenumber, postalcode, city } = properties; const result = []; if (name) { result.push(name); } if (street) { const num = housenumber || ""; result.push(`${street} ${num}`...
import PropertyCard from './PropertyCard' import PropertyFilter from './PropertyFilter' import FloatButton from './FloatButton' import Button from './Button' import Error from './Error' import InputArea from './InputArea' import InputSelect from './InputSelect' import ImagePickerFunction from './ImagePicker' import Swi...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['pt'] = { "editor": "Editor de texto enriquecido", "editorPanel": "Painel do editor de texto enriquecido", "common": { "editorHelp": "Press...
describe('Cache#keySet()', function () { it('should return the set of keys of all items in the cache.', function () { var itemKeys = ['item1', 'item2', 'item3']; var cache = TestCacheFactory('DSCache.keySet.cache'); cache.put(itemKeys[0], itemKeys[0]); cache.put(itemKeys[1], itemKeys[1]); cache....
""" This module provides utility functions for the Scan Op. See scan.py for details on scan. """ from __future__ import absolute_import, print_function, division __docformat__ = 'restructedtext en' __authors__ = ("Razvan Pascanu " "Frederic Bastien " "James Bergstra " "Pas...
define([ 'jquery', 'magnific-popup', ], function ($) { var settings = { open_links: 'modal-window', layout: 'horizontal' }; return { init: function ($link) { $link.magnificPopup({ type:'inline', mainClass: 'modal-about' ...
CKEDITOR.plugins.setLang("bidi","pt",{ltr:"Dire o do texto da esquerda para a direita",rtl:"Dire o do texto da direita para a esquerda"});
import { BaseSpatializer } from "../../BaseSpatializer"; import { disconnect } from "../../GraphVisualizer"; /** * Base class providing functionality for audio listeners. **/ export class BaseEmitter extends BaseSpatializer { /** * Creates a spatializer that keeps track of position */ constructor(au...
var { MessageEmbed, MessageButton, MessageActionRow, Permissions } = require("discord.js"), ms = require("ms"), config = require(`${process.cwd()}/botconfig/config.json`), emoji = require("../../botconfig/emojis.json"), ee = require(`${process.cwd()}/botconfig/embed.json`), { createBar, format, check_if_dj, ...
const axios = require('axios'); const { YunError, PropertyRequiredError } = require('../../utils/error'); // req.query.id req.body.size module.exports = async function(req) { let ret; if(req.body['size']) { try { ret = await axios.get(`http://hnqndaxuexi.dahejs.cn/stw/news...
var when = require('when'), _ = require('lodash'), validation = require('../validation'), errors = require('../../errors'), validate, handleErrors, cleanError; cleanError = function cleanError(error) { var temp, message, offendingProper...
exports.min = function min (array) { if (!array) return 0; let minElement = array[0]; for(let i=0;i<array.length;i++){ if(minElement > array[i]){ minElement = array[i] } } return minElement || 0 ; } exports.max = function max (array) { if (!array) return 0; let maxEl...
print("Hello world")
'use strict'; const optimize = require('.'); const test = require('@putout/test')(__dirname, { 'regexp/optimize': optimize, }); test('plugin-regexp/optimize: report', (t) => { t.report('regexp', 'RegExp /(ab|ab)/ can be optimized to /(ab)/'); t.end(); }); test('plugin-regexp/optimize: transform', (t) =>...
from tkinter import * import numpy as np import pandas as pd # from gui_stuff import * l1=['back_pain','constipation','abdominal_pain','diarrhoea','mild_fever','yellow_urine', 'yellowing_of_eyes','acute_liver_failure','fluid_overload','swelling_of_stomach', 'swelled_lymph_nodes','malaise','blurred_and_distorted...
/*React************************************************************************/ /* Copyright 2020 Maxim Zhukov */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); ...
var pj_mlfn = require("./pj_mlfn"); var EPSLN = 1.0e-10; var MAX_ITER = 20; module.exports = function(arg, es, en) { var k = 1 / (1 - es); var phi = arg; for (var i = MAX_ITER; i; --i) { /* rarely goes over 2 iterations */ var s = Math.sin(phi); var t = 1 - es * s * s; //t = this.pj_mlfn(phi, s, Math...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var bcrypt = require('bcrypt-nodejs'); var UserSchema = new Schema({ username: { type: String, unique: true, required: true }, email: { type: String, }, password: { type: String, requir...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var VisualTest_1 = require("../../common/VisualTest"); var RunVisualTest_1 = require("../../visualtest/RunVisualTest"); var componentIds = []; componentIds.push({ selector: '.' + 'ms-CommandBarItem-link', imageSelector: '.' + 'CommandB...
var documentController = function(Document) { var post = function(req, res) { var document = new Document(req.body); if (!req.body.title){ res.status(400); res.send('Title required'); } else if (!req.body.author) { res.status(400); res.send('Author required'); } else if (!req....
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ exports.__esModule = true; var ethers_1 = require("ethers"); { Authentication, AuthenticationInterface, ; } from; "../Authentication"; var _abi = [ { inputs: [ { ...
# This file is NOT licensed under the GPLv3, which is the license for the rest # of YouCompleteMe. # # Here's the license text for this file: # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, eithe...
import Vue from 'vue' import Vuex from 'vuex' import * as Cookies from 'js-cookie' import state from './state' import mutations from './mutations' import getters from './getters' import actions from './actions' Vue.use(Vuex) export default new Vuex.Store({ state, mutations, getters, actions, })
import Cookies from 'js-cookie' const authToken = { // 当Token超时后采取何种策略 // jumpAuthPage 每次请求时判断Token是否超时,若超时则跳转到授权页面 // getNewToken 每次请求时判断Token是否超时,若超时则获取新Token (推荐) tokenTimeoutMethod: 'getNewToken', // 在Cookie中记录登录状态的key loginKey: 'isLogin', // Token是否超时 hasToken: ...
# Copyright 2017 The TensorFlow 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 applica...
const path = require('path'); const webpack = require('webpack'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const WebpackBuildNotifierPlugin = require('webpack...
import { coordEach } from '@turf/meta'; import { isObject } from '@turf/helpers'; import clone from '@turf/clone'; /** * Takes input features and flips all of their coordinates from `[x, y]` to `[y, x]`. * * @name flip * @param {GeoJSON} geojson input features * @param {Object} [options={}] Optional parameters *...
import logging import subprocess import tempfile from django import forms from django.core.exceptions import ValidationError from django.core.files.uploadedfile import SimpleUploadedFile, UploadedFile from django.utils.translation import ugettext_lazy as _ from pretix.control.forms import ClearableBasenameFileInput l...
'use strict'; const cssapi = require('../lib/cssapi'); describe('css-api', () => { describe('getCSSApi()', () => { let component; const namespace = 'paper-toast'; beforeAll(() => { component = '__tests__/test-components/paper-toast'; }); it('throws an error if the CSS file is not found i...
import {align, getAlignmentClasses, checkSelectionConsistency, markLabelAsSelected} from './../utils'; import {KEY as SEPARATOR} from './separator'; import * as C from './../../../i18n/constants'; export const KEY = 'alignment'; export default function alignmentItem() { return { key: KEY, name() { ret...
define( "dojox/editor/plugins/nls/ro/Breadcrumb", ({ "nodeActions": "${nodeName} Acţiuni", "selectContents": "Selectare conţinut", "selectElement": "Selectare element", "deleteElement": "Ştergere element", "deleteContents": "Ştergere conţinut", "moveStart": "Mutaţi cursorul pentru a porni", "moveEnd": "Mutaţi cu...
from django.db import models from django.contrib.auth.models import AbstractUser from django.conf import settings class User(AbstractUser): ''' Модель для пользователей ''' #role = models.CharField("Роль", max_length=15, default='student') #tel = models.CharField("Телефон", max_length=15, blank=T...
"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function e(e,t){return e(t={exports:{}},t.exports),t.exports}var t=e(function(e,t){e.exports=function(){var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MS...
# -*- coding: utf-8 -*- import click import re import datetime import numpy as np from pprint import pprint from matplotlib import pyplot as plt from matplotlib.dates import DateFormatter, MonthLocator from .utils import git_log, time_title from .charts import heatmap, changebars, pie from .gitstats import changecount...
import React from 'react'; export function Faqs() { return (<div className="col-md-4"> <div class="list-group"> <a href="#" className="list-group-item ">Luke Skywalker has unlimited access.</a> <a href="#" className="list-group-item ">Others will get 15 seacrch in 60 seconds.</a> ...
from pyecharts import options as opts from pyecharts.charts import Bar, Timeline, Pie, Grid import pandas as pd df = pd.read_csv('G:/PythonFIle/appRank/clearData/tabName.csv', encoding='gbk') sep = df.shape l, h = sep[1], sep[0] print(l, h) ys = [] x = [] time = [] head = df.columns for i in range(0, l -...
/*! * Qoopido.js library v3.5.9, 2014-10-27 * https://github.com/dlueth/qoopido.js * (c) 2014 Dirk Lueth * Dual licensed under MIT and GPL */ !function(t){window.qoopido.register("support/css/transition",t,["../../support"])}(function(t){"use strict";return t.support.addTest("/css/transition",function(s){t.support.supp...
/*! * OpenUI5 * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Ensure that sap.ui.unified is loaded before the module dependencies will be required. // Loading it synchronously is the only compatible option and doesn't harm when...
var APP = {}; var GraphQL_Post = 1, GraphQL_Get = 2, Get = 3, Post = 4; var appInfoRequestGQL = { type: GraphQL_Post, url: "/graphql", requestBody: "{applicationInfo{copyright,desc,i18n{lang,translate,},inMaintenance,logoImageURL,title,userId,userInfo,}}", variable: '' }; var appInfoRequest = { type: Get, u...
module.exports = { name: 'Delete Member Data', section: 'Data', subtitle (data) { const members = ['Mentioned User', 'Command Author', 'Temp Variable', 'Server Variable', 'Global Variable'] return `${members[parseInt(data.member)]} - ${data.dataName}` }, fields: ['member', 'varName', 'dataN...
from __future__ import print_function, division, absolute_import from numbers import Number import functools from distutils.version import LooseVersion import warnings import pandas as pd import numpy as np def generate_samples(seed=0, n_samples=10000, n_categories=3, extra_columns=0): """Generate artificial sam...
#!/usr/bin/python3 import shutil import os import base64 import asyncio import threading from confhttpproxy import ProxyRouter from flask import Flask, jsonify, request, abort import flask from flask_cors import CORS, cross_origin import redis import blueprint import yaml from gtmcore.configuration import Configurat...
let canvas; let ctx; let gBArrayHeight = 20; let gBArrayWidth = 12; let startX = 4; let startY = 0; let score = 0; let level = 1; let winOrLose = "Playing"; let coordinateArray = [...Array(gBArrayHeight)].map((e) => Array(gBArrayWidth).fill(0) ); let curTetromino = [ [1, 0], [0, 1], [1, 1],...
const express = require('express'); const { body } = require('express-validator/check'); const User = require('../models/user'); const authController = require('../controllers/auth'); const isAuth = require('../middleware/is-auth'); const router = express.Router(); router.put( '/signup', [ body('email') ...
from tkinter import * from src.classes.main import Main from src.classes.game import Game from src.params import params class Window(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.master = master # Statistics of the game self.game = Game() # M...
#!/usr/bin/env python """ Script containing CIME python regression test suite. This suite should be run to confirm overall CIME correctness. """ import glob, os, re, shutil, signal, sys, tempfile, \ threading, time, logging, unittest, getpass, \ filecmp from xml.etree.ElementTree import ParseError LIB_DIR =...
'use strict' const Indicator = require('./indicator') const EMA = require('./ema') class VO extends Indicator { constructor (args = []) { const [ shortPeriod, longPeriod ] = args super({ args, id: VO.id, name: `VO(${shortPeriod}, ${longPeriod})`, seedPeriod: longPeriod, dataTy...
let handler = async (m, { conn, text }) => { let chats = conn.chats.all().filter(v => v.jid.endsWith('.net')).map(v => v.jid) let cc = conn.serializeM(text ? m : m.quoted ? await m.getQuotedObj() : false || m) let teks = text ? text : cc.text conn.reply(m.chat, `_Mengirim pesan broadcast ke ${chats.length} chat...
import axios from 'axios'; import { API } from '../../config/apiUrl'; const API_URL = API; class ImportServices { getToken = () => { const token = sessionStorage.getItem('token'); return { headers: { Authorization: token } }; }; testConnection = dataSource => axios.post( `${API_URL}/import...
class Solution(object): def rangeBitwiseAnd(self, m, n): """ TODO: RuntimeError :type m: int :type n: int :rtype: int """ if n == m: return n if m == 0: return m res = m for x in range(m, n): print(x...
let mongoose = require('mongoose'); let bcrypt = require('bcrypt'); var userSchema = mongoose.Schema({ userName:{ type: String, required: true }, email:{ type:email, required: true }, firstName: { type: String, required: true }, lastName:{ ...
# -*- coding: utf-8 -*- # Generated by Django 1.11.17 on 2020-02-09 18:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gram', '0007_auto_20200209_1514'), ] operations = [ migrations.AlterField(...
import React from 'react'; import styled from 'styled-components'; import Layout from '../components/layout'; import { Container } from '../components/layoutComponents'; import SEO from '../components/seo'; import Presentation from '../components/presentation'; import SalesManager from '../components/salesManager'; c...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var express = require("express"); var morgan = require("morgan"); var bodyParser = require("body-parser"); var routes_1 = require("./routes/routes"); var handlers_1 = require("./responses/handlers"); var auth_1 = require("../auth"); var Api = ...
import { combineReducers } from 'redux'; import DarkModeReducer from './darkmode'; import UpdateCryptoReducer from './cryptos'; import filterReducer from './filter'; import SortReducer from './sort'; const rootReducer = combineReducers({ darkmode: DarkModeReducer, cryptos: UpdateCryptoReducer, filter: filterRedu...
// 公共工具 // 防抖函数 export function debounce(func, delay) { let timer = null; return function (...args){ if(timer){ clearTimeout(timer) } timer = setTimeout(() => { func.apply(this, args) },delay) } } //时间戳的转化 export function formatDate(date, fmt){ if (/(y+)/.test(fmt)){ fmt = fmt.re...
'use strict'; Main.Component = {}; Main.Component.Message = function () { this._name = 'Message'; this._message = []; this._modeline = ''; this.getMessage = function () { return this._message; }; this.getModeline = function () { return this._modeline; }; this.setModeline = function (text) ...
/******/ (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...
import document from "document"; import {Shared} from "../Shared.js"; let Shr = new Shared(); export function View_AC() { } let LastACData = null; let FirstLoad = true; View_AC.prototype.UpdateState = function(data) { console.log("Data AC : " + JSON.stringify(data.responseData.AC)); LastACData = data.respo...
/*! jQuery UI - v1.9.2 - 2013-01-11 * http://jqueryui.com * Includes: jquery.ui.datepicker-hu.js * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(e){e.datepicker.regional.hu={closeText:"bezár",prevText:"vissza",nextText:"előre",currentText:"ma",monthNames:["Január","Február","M...
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Adrian Sampson. # # 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 t...
////////////////////////////////////////////////////////////////////////////// // Copyright 2013 Esri // // 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/licens...
/** * Module dependencies. */ import { defaults } from 'lodash'; import Client from '../src/index'; import RpcError from '../src/errors/rpc-error'; import config from './config'; import nock from 'nock'; import should from 'should'; /** * Test `Parser`. */ afterEach(() => { if (nock.pendingMocks().length) { ...
/** * Mounting functions, to mount Vue components somewhere in the MapEditor. */ import {createApp} from "vue" import VueComponentLControl from './components/leaflet/VueComponentLControl' // Import everything. // import Antd from 'ant-design-vue'; // import 'ant-design-vue/dist/antd.min.css'; // Import subset. import...
/* globals LivechatVideoCall, cordova, JitsiMeetExternalAPI */ import visitor from '../../imports/client/visitor'; LivechatVideoCall = new (class LivechatVideoCall { constructor() { this.live = new ReactiveVar(false); this.calling = new ReactiveVar(false); if (typeof JitsiMeetExternalAPI === 'undefined') { ...
 theUILang.streamData = "Stream"; theUILang.cantAccessData = "Webserver user can't access the data of this torrent."; thePlugins.get("stream").langLoaded();
""" Utilities handling input changes including data classes and learner mixins. """ from .changemap import ChangeMap from .mixins import InputChangeMixin
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[9],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/user/Index.vue?vue&type=script&lang=js&": /*!************************************************************************************************...
from __future__ import unicode_literals import json from libraries.general_tools import url_utils class TdLanguage(object): language_list = {} def __init__(self, json_obj=None): """ Optionally accepts an object for initialization. :param object json_obj: An object to initialize the i...
export const JuejinImExtractor = { domain: 'juejin.im', title: { selectors: ['.main-area article h1'], }, author: { selectors: [ // enter author selectors ], }, date_published: { selectors: [['.main-area article time.time', 'datetime']], }, dek: { selectors: [ // ente...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withStyles } from 'material-ui/styles'; import List, { ListSubheader } from 'material-ui/List'; import CountryProfileItem from './countryProfileItem'; import { selectCountryId } from '../../../r...
/** * Helper function to create the DOM structure for a time input element. * @param {object} opts - Options relating to the creation of a time input field. * - opts.id: the id for the element * - opts.name: the name attribute for the element * - opts.max: the max numeric value for the field. * @returns inputField -...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/** * Module : neoui-year * Author : liuyk(liuyk@yonyou.com) * Date : 2016-08-11 15:17:07 */ import { on, off, stopEvent } from 'tinper-sparrow/src/event'; import { addClass, makeDOM, showPanelByEle, getZIndex, removeClass } from 'tinper-sparrow/src/dom'; import { extend } fro...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
import { all, spawn } from 'modules-pack/saga/utils' /** * ASYNC TASKS ================================================================= * Actions Orchestration - for subscribing, managing and dispatching actions. * ============================================================================= */ /** * All Tasks ...
// @flow import * as React from 'react' import * as Kb from '../../../../common-adapters' import * as Styles from '../../../../styles' let KeyHandler: any = c => c if (!Styles.isMobile) { KeyHandler = require('../../../../util/key-handler.desktop').default } type Props = { isLoading: boolean, filter: string, ...
module.exports = function Thing(p) { "use strict"; !function(instance, Constructor) { if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); }(this, Thing), this.t = 12 + p; };
const PAYMENT_SERVER_URL = process.env.NODE_ENV === 'production' ? 'https://graceshopper2020mushroom.herokuapp.com/' : 'http://localhost:8080' export default PAYMENT_SERVER_URL
import React, { Component } from 'react' import { connect } from 'react-redux' import * as Actions from '../../store/actions' import { bindActionCreators } from 'redux' import ds from '../../dataspec2' import arenastyle from './arenastyle' // DATASPEC-CENTRIC // Do not try to read db for table/column in...
const Dev = require('../models/Dev'); module.exports = { async store(req, res) { const { devId } = req.params; const { user } = req.headers; const loggedDev = await Dev.findById(user); const targetDev = await Dev.findById(devId); if(!targetDev) { return res.status(400).json({ error: 'Dev ...
const _ = require('lodash') const os = require('os') const path = require('path') const sinon = require('sinon') const mockfs = require('mock-fs') const Promise = require('bluebird') const util = require('../lib/util') const { MockChildProcess } = require('spawn-mock') const _kill = MockChildProcess.prototype.kill con...
from taew.ew import *
//// [trailingCommasInFunctionParametersAndArguments.ts] function f1(x,) {} f1(1,); function f2(...args,) {} f2(...[],); // Not confused by overloads declare function f3(x, ): number; declare function f3(x, y,): string; <number>f3(1,); <string>f3(1, 2,); // Works for constructors too class X { constructor(a,...
$(document).ready(function(){ totaliza(); localStorage.clear(); //localStorage.setItem("taxadesconto", 0); //verificaDesconto(); var myApp = new Framework7({material: true, modalTitle: 'Delivery'}); var texto = $("#subdesc").text(); for (i = 25; i > 1; i++){ var proximoEspaco = texto.sub...
/* global Taggle, $ */ (function() { var faux = ['.net','accounting','acting','adobe creative suite','advertising','aerobatics','aikido','air hockey','air sports','airlines','ajax','algorithms','alpine skiing','alternative medicine','alumni relations','amazon web services','administration','amusement parks','angel inve...
import React, {PureComponent} from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import ClearIcon from '../icons/forms/ClearIcon' import VisibilityAnimation from '../VisibilityAnimation' import OnClickOutside from '../OnClickOutside' import FocusManager from '../FocusManager' import ren...
webpackJsonpCoveo__temporary([32],{ /***/ 305: /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || ...
import React from "react" import Links from "../constants/links" import SocialLinks from "../constants/socialLinks" import { FaTimes } from "react-icons/fa" const Sidebar = ({isOpen, toggleSidebar}) => { return ( <aside className={`sidebar ${isOpen ? "show-sidebar": "" }`}> <button className="close-btn" ...
import ray from railrl.envs.base import RolloutEnv from railrl.envs.wrappers import NormalizedBoxEnv, ProxyEnv from railrl.core.serializable import Serializable import numpy as np import torch import railrl.torch.pytorch_util as ptu import math from torch.multiprocessing import Process, Pipe from multiprocessing.conne...
//snippet-sourcedescription:[sqs_deletequeue.js demonstrates how to delete an Amazon SQS queue.] //snippet-keyword:[JavaScript] //snippet-keyword:[Code Sample] //snippet-keyword:[Amazon Simple Queue Service] //snippet-service:[sqs] //snippet-sourcetype:[full-example] //snippet-sourcedate:[2018-06-02] //snippe...
# Copyright 2022 The TensorFlow 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 applica...
import torch import numpy as np import time from cluster.kmeans import product_quantization, l2_distance, asymmetric_table, data_to_pq, asymmetric_distance def main(): torch.set_num_threads(16) dim = 32 subv_size = 4 num_centers = 256 query_size = 100 db_size = 10000 db = np.random.randn...
// @ts-check // Module core/issues-notes // Manages issues and notes, including marking them up, numbering, inserting the title, // and injecting the style sheet. // These are elements with classes "issue" or "note". // When an issue or note is found, it is reported using the "issue" or "note" event. This can // be use...
import { Contract } from 'ethers'; import ContractSettings from '../../contractSettings'; import abi from '../../../lib/abis/ropsten/ExchangeRates'; /** @constructor * @param contractSettings {ContractSettings} */ function ExchangeRates(contractSettings) { this.contractSettings = contractSettings || new ContractSe...