text
stringlengths
3
1.05M
// Fonts.js window.slackPluginsAPI = window.slackPluginsAPI || {}; window.slackPluginsAPI.plugins = window.slackPluginsAPI.plugins || {}; class MonoFontsPlugin extends window.slackPluginsAPI.pluginBase { constructor() { super(); // Mandatory this.name = 'monofonts'; this.desc = 'Custom Monospace Font...
import * as React from "react" import { Link } from "gatsby" import { StaticImage } from "gatsby-plugin-image" import Button1 from "../components/button1" import Button2 from "../components/button2" import Button3 from "../components/button3" import Button4 from "../components/button4" import Layout from "../components...
""" 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, software distributed under the License ...
const {execSync} = require('child_process'); const process = require('process'); const path = require('path'); const DIST_PATH = '../dist/'; const folder = process.argv.length > 2 ? process.argv[2] : ''; const pathToSearch = path.join(__dirname, DIST_PATH, folder); console.log(pathToSearch); checkIncorrectImports(pa...
var result = document.getElementById('result'); var count = document.getElementById('count'); //check browser support if(typeof(Storage) !== "undefined"){ // Storage localStorage.setItem("lastname", "Valeta"); //localStorage.removeItem("lastname"); result.innerHTML = localStorage.getItem("lastname"); }else{ resu...
/** * skylark-data-files - The skylark file system library * @author Hudaokeji Co.,Ltd * @version v0.9.0 * @link www.skylarkjs.org * @license MIT */ define(["skylark-langx-paths","../stats","../file-type"],function(t,s,e){"use strict";class r{constructor(t=null){this.data=t,this._ls={}}isFile(){return!1}isDir(){r...
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function, division import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import random from constrains import get_next_word from data_utils import sort_batch_data from models.Seq2seq import RNN from word_emb import e...
/*! * Qoopido.js library v3.3.7, 2014-5-26 * https://github.com/dlueth/qoopido.js * (c) 2014 Dirk Lueth * Dual licensed under MIT and GPL */ !function(o){window.qoopido.register("support/css/rgba",o,["../../support"])}(function(o,r,t,s,e,a){"use strict";var c=o.support;return c.addTest("/css/rgba",function(o){var r=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. * * @flow strict */ // In www, these flags are controlled by GKs. Because most GKs have some // population running in either mode, ...
# Copyright 2014-2016 OpenMarket Ltd # Copyright 2019 The Matrix.org Foundation C.I.C. # # 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 # # U...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.DirectTypeManager = undefined; var _defineProperty = require('babel-runtime/core-js/object/define-property'); var _defineProperty2 = _interopRequireDefault(_defineProperty); var _getOwnPropertyDescriptor = require('babel-runtime/...
import React, { useEffect, useState } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { changeField, initializeForm, login } from '../../modules/auth'; import AuthForm from '../../components/auth/AuthForm'; import { check } from '../../modules/...
from graphene import relay from enroll.models import Offer, Enrollment, StudentRequest class Accepting: @staticmethod def freq_conflicting(a, b): return bool({1, 4} & {a, b}) or a == b @staticmethod def times_conflicting(a, b): return (a.start < b.end and a.end > b.start) or ( ...
# *** REFRESHING SIDEBAR MENU *** # When you change menu/ page tiles. Run `make html` with this line uncommented and again with it commented: #html_sidebars = { '**': ['globaltoc.html'] } # -- Project information ----------------------------------------------------- project = 'AIQC' copyright = '2020, Team AIQC' auth...
var module = angular.mock.module; var uiRouter = require("ui-router"); describe('uiView', function () { 'use strict'; var scope, $compile, elem; beforeEach(function() { var depends = ['ui.router']; try { angular.module('ngAnimate'); depends.push('ngAnimate', 'ngAnimateMock'); } catch(e...
document.addEventListener('click', function() { let sidebar = document.getElementById('sidebar'); sidebar.style.display = 'none'; }); function toggleSidebar(event) { let sidebar = document.getElementById('sidebar'); if(sidebar.style.display == 'block') { sidebar.style.display = 'none'; } else { sideb...
module.exports = d => { const code = d.command.code const inside = d.unpack() const err = d.inside(inside) if (err) return d.error(err) // credits to Mid const gw = d.message.client.giveawaysManager.giveaways.find((u) => u.messageID === inside.inside); let pass = gw ...
import React, { useState } from "react"; import { FaStar } from "react-icons/fa"; const starRating = (props) => { return ( <div> {[...Array(5)].map((star) => { return ( <> <input type="radio" name="rating"></input> <FaStar className="star" size={50} /> </> ); })} </div> ); }; ...
import Vue from 'vue' import Router from 'vue-router' import Home from '@/components/Home' import CastBallot from '@/components/CastBallot' import QueryAll from '@/components/QueryAll' import QueryWithQueryString from '@/components/QueryWithQueryString' import QueryByKey from '@/components/QueryByKey' import GetCurren...
from chalice import Chalice app = Chalice(app_name="helloworld") @app.route("/") def index(): return {"hello": "world"} # The view function above will return {"hello": "world"} # whenever you make an HTTP GET request to '/'. # Here are a few more examples: @app.route("/hello/{name}") def hello_name(name): ...
import config from './../../config.js'; import File_open_class from './open.js'; import Dialog_class from './../../libs/popup.js'; import alertify from './../../../../node_modules/alertifyjs/build/alertify.min.js'; /** * manages iamge search on https://pixabay.com/en/service/about/api/ */ class File_search_media_cl...
'use strict'; var falseExpression = require('./false'); function andOperation(first) { return function(second) { return (first)(second)(falseExpression); }; } module.exports = andOperation;
# Write three functions that compute the sum of the numbers in a list: using a for-loop, a while-loop and recursion. # (Subject to availability of these constructs in your language of choice.) def inputList(n, myList): for i in range(n): x = int(input("nhap phan tu thu " + str(i + 1) + ": ")) ...
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): DEBUG = False TESTING = False CSRF_ENABLED = True SECRET_KEY = 'aptx4869' SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] class ProductionConfig(Config): DEBUG = False class StagingConfig(Config): D...
def getNum(): # 获取用户不定长度的输入 string = input() a = string.split(',') a = list(map(int,a)) #int_list = list(map(int,a)) return a def mean(numbers): # 计算平均值 m = 0.0 for x in numbers: m += x m /= len(numbers) return m def dev(numbers, mean): # 计算标准差 sdev = 0.0 for ...
#!/usr/bin/env node 'use strict' const PORT = process.env.PORT || '3000' const http = require('http') const st = require('st') const chalk = require('chalk') const shelljs = require('shelljs') const yieldCallback = require('yield-callback') const utils = require('../lib/utils') const build = require('./build') co...
import Ember from 'ember'; export default Ember.Component.extend({ page: 1, actions: { next: function() { this.incrementProperty('page'); }, previous: function() { if(this.get('page') > 1) this.decrementProperty('page'); } } });
#!/usr/bin/env python # File: plot_icd_vs_mass.py # Created on: Mon 12 Mar 2012 11:50:09 AM CDT # Last Change: Mon Oct 29 11:08:34 2012 # Purpose of script: <+INSERT+> # Author: Steven Boada import pylab as pyl from mk_galaxy_struc import mk_galaxy_struc def plot_icd_vs_mass(): galaxies = mk_galaxy_struc() #...
export { default } from './try-cilium';
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-04-26 01:31 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
# Licensed under the BSD 3-Clause License # Copyright (C) 2021 GeospaceLab (geospacelab) # Author: Lei Cai, Space Physics and Astronomy, University of Oulu __author__ = "Lei Cai" __copyright__ = "Copyright 2021, GeospaceLab" __license__ = "BSD-3-Clause License" __email__ = "lei.cai@oulu.fi" __docformat__ = "reStructur...
const { Pool } = require('pg'); require('dotenv').config(); const PG_URI = process.env.PG_URI; const pool = new Pool({ connectionString: PG_URI, }); // Adding some notes about the database here will be helpful for future you or other developers. // Schema for the database can be found below: // Pool - a connection...
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1218],{60663:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/touch-action",function(){return c(96608)}])},96608:function(a,b,c){"use strict";c.r(b),c.d(b,{"default":function(){return o}}),c(67294);var d=c(3905);c(41664);var e=c(5679),f=c(83434)...
class Bar { test() {} } class Foo extends Bar { constructor() { const t = () => super.test() t(); super(); } } expect(() => new Foo()).toThrow("this hasn't been initialised");
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ /** * @fileoverview implements a joinPaths routine to merge two paths. */ (function() { /** * @namespace property-common.Strings * @alias property-common.Strings * * Helper function...
angular.module('ssAuth').controller('AccountCtrl', ['$scope', '$location', '$http', '$routeParams', '$window', function($scope, $location, $http, $routeParams, $window) { $scope.registrationComplete = function()...
/*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under the MIT license */ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } +function ($) { 'use strict'; var version = $.fn.jquery.split(' ')[0].split('.'); ...
/** * Clay 3.10.0 * * Copyright 2020, Liferay, Inc. * All rights reserved. * MIT license */ /**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.16.0 * @license * Copyright (c) 2016 Federico Zivolo and contributors * * Permission is hereby granted, free of c...
import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; // Vietnamese locale reference: http://www.localeplanet.com/icu/vi-VN/index.html // Capitalization reference: http://hcmup.edu.vn/index.php?option=com_content&view=article&id=4106%3Avit-hoa-trong-vn-bn-hanh-chinh&catid=2345%3Atham-kho&Itemid=4103&lan...
import React from 'react'; const GithubIcon = () => ( <svg height="25" viewBox="0 0 25 25" width="25" xmlns="http://www.w3.org/2000/svg" > <g fillRule="evenodd"> <path clipRule="evenodd" d="M15.7481 24.9471C24.0901 24.7061 24.9111 22.9501 24.9111 12.9811C24.9111 1.98108 23...
def next_to_each_other(li: list, *args): """ Tests if the elements in args are present in the list in the order that they are given todo: is there an error if len(args) > len(li)? Examples -------- >>> l = [0, 1, 2] >>> print(next_to_each_other(l, 1, 2)) # prints True >>> print(next_to_e...
const { Message, MessageEmbed, MessageAttachment } = require('discord.js'); const Command = require('../../struct/Command'); const Client = require('../../struct/Client'); const { stripIndents } = require('common-tags'); module.exports = class TagCommand extends Command { /** *@param {Client} client */ constr...
'use strict'; const autoprefixer = require('autoprefixer'); const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const ManifestPlugin = require('webpack-manifest-plugin'); const Inte...
from jinja2 import FileSystemLoader, StrictUndefined from jinja2.environment import Environment def main(): env = Environment(undefined=StrictUndefined) env.loader = FileSystemLoader(".") j2_vars = {"vrf_name": "blue", "rd_number": "100:1", "ipv4_af": True, "ipv6_af": True} print() template_file...
/** * @fileoverview Prevent usage of the return value of React.render * @author Dustan Kasten */ 'use strict'; const versionUtil = require('../util/version'); const docsUrl = require('../util/docsUrl'); // ------------------------------------------------------------------------------ // Rule Definition // --------...
///////////////////////////////////////////////////////////////////// // Copyright (c) Autodesk, Inc. All rights reserved // Written by Forge Partner Development // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provide...
'use strict'; var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProp...
(function () { "use strict"; xeogl.renderer.webgl.RenderBuffer = function (canvas, gl, options) { options = options || {}; /** * True as soon as this buffer is allocated and ready to go */ this.allocated = false; /** * The HTMLCanvasElement ...
module.exports = { REGISTER: { value: { ADDRESS: 0x00, IODIR: 0x01, GPPU: 0x02, GPIO: 0x03, OLAT: 0x04, } }, initialize: { value: function() {} }, normalize: { value: function(pin) { return pin; } }, pinMode: { value: function() {} }, digital...
let cheerio = require('cheerio'), loadedImage = 4, placeHolder = '/images/placeholder.png'; function renderImg(source) { let $ = cheerio.load(source, { decodeEntities: false }), gallery = $('.gallery,.banner'), img = $('img'); gallery.each((idx, element) => { ...
'use strict'; const _ = require('lodash'); /** * Extend a WebDriver instance with helpers. **All helpers are on the `helper` property of the returned driver.** * * @example * const webdriver = require('selenium-webdriver'); * const seleniumHelpers = require('@mapbox/selenium-helpers'); * * let driver = new web...
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ 'use strict'; const RelayQuery = require('../query/RelayQuery'); const RelayQueryTransform = require('../query/R...
'use strict'; //initialize and setup the app for the router const express = require('express'); const router = express.Router(); // middleware for the class constructors in the models Clothes const Clothes = require('../models/clothes.js'); //middleware for the new object from the class constructors in the models cl...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = void 0; var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose")); var _extends2 = _interopRequireDefault...
""" Provides the ability to run test on a standalone Django app. """ import sys from optparse import OptionParser from settings import configure_settings # Configure the default settings configure_settings() # Django nose must be imported here since it depends on the settings being configured from django_nose import ...
import iris import iris.plot as iplt import iris.quickplot as qplt import numpy as np import matplotlib.pyplot as plt import fnmatch import os import matplotlib.dates as mdates import sys reload(sys) sys.getdefaultencoding() import numpy.ma as ma import cartopy.crs as ccrs import matplotlib #make sure Python is lookin...
export default { playEpisode ({ commit }, post) { commit('setActivePostInPlayer', { post }) }, updatePlayerState ({ commit }, playerState) { commit('updatePlayerState', playerState) } }
import React from 'react' import { Link } from 'gatsby' import './Footer.scss' const Footer = () => ( <div className="footer"> <span>Coded by </span> <Link to="/">Martin Juzl</Link> </div> ) export default Footer
var SimpleLib = artifacts.require("./SimpleLib.sol"); var SimpleProxy = artifacts.require("./SimpleProxy.sol"); var SimpleCS = artifacts.require("./SimpleSC.sol"); module.exports = function(deployer) { deployer.deploy(SimpleLib, 1) .then(function() { return deployer.deploy(SimpleProxy, SimpleLib.addr...
import random def gen(seed): random.seed(seed) n = 10 ** 5 arr = [random.randint(1, 10 ** 9) for _ in range(n)] return arr
# -*- coding: utf-8 -*- from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class FilerConfig(AppConfig): name = 'filer' verbose_name = _("django filer")
'use strict' const addAll = require('./add-all') const last = require('it-last') const configure = require('../lib/configure') /** * @typedef {import('../types').HTTPClientExtraOptions} HTTPClientExtraOptions * @typedef {import('ipfs-core-types/src/pin').API<HTTPClientExtraOptions>} PinAPI */ /** * @param {impor...
const util = require('./lib/util') const path = require('path') const fs = require('fs-extra') const { spawn } = require('child_process') const os = require('os') const packageTemplate = { name: 'discordinjections-loader', version: '1.0.0', description: 'Injects CSS and JS into the discord client, and piggyb...
import { baseURL } from './../baseURL' export function getBitacora(payload, token) { return axios.post(`${baseURL}/fuel_station/get_bitacora`, payload, { headers: { Authorization: `Bearer ${token}` }}) .then(response => response.data) .catch(error => console.error(error)...
module.exports = { siteMetadata: { title: `my wonderful plant life`, description: `all about plants`, author: `Emma`, }, plugins: [ `gatsby-plugin-react-helmet`, { resolve: `gatsby-source-filesystem`, options: { name: `images`, path: `${__dirname}/src/images`, ...
import React from "react"; import "./Footer.scss"; const Footer = () => ( <footer className="cg-footer"> <div className="container"> <p className="mb-0 h6"> © {new Date().getFullYear()} Creative Group. All right reserved. </p> </div> </footer> ); export default Footer;
import deepExtend from "deep-extend" import System from "core/system" import win from "core/window" import ApisPreset from "core/presets/apis" import * as AllPlugins from "core/plugins/all" import { parseSearch } from "core/utils" if (process.env.NODE_ENV !== "production" && typeof window !== "undefined") { win.Pe...
// Automatically generated file. Do not edit! (function() { var srcs = [ "third-party/goog/base.js", "third-party/goog/string/stringbuffer.js", "third-party/goog/dom/nodetype.js", "third-party/goog/debug/error.js", "third-party/goog/asserts/asserts.js", "third-party/goog/function...
/****************************************************************************** * Copyright (c) 2004 Actuate Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, ...
import * as React from 'react'; import * as PropTypes from 'prop-types'; import { useState, useEffect } from 'react'; import { FormControl, InputLabel, TextField, withStyles, } from '@material-ui/core'; import CustomReactQuill from '../CustomReactQuill/CustomReactQuill'; import style from './IIIFTextField.style...
// @ts-check var gulp = require('gulp'); var util = require("gulp-util"); var replace = require('gulp-replace'); var rename = require('gulp-rename'); const languages = [ { name: 'css', language: 'css', identifiers: ['css', 'css.erb'], source: 'source.css' }, { name: 'basic', language: 'html', identifiers: ['html', ...
export const SET_SINGER = 'SET_SINGER' export const SET_PLAYING_STATE = 'SET_PLAYING_STATE' export const SET_TOP_LIST = 'SET_TOP_LIST'
function getItems() { var html=''; jQuery.ajax({ url:'banner/slider/firenzedigitale.html', type:'get', dataType:'html', success:function(data) { var _html= jQuery(data); rows = _html.find('.3u'); _html.find('div.container > div.row').children().each(function() { ...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import { Provider } from 'react-redux' import store from './stores/store'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( <Provider store={store}> <App /> </Provider>, doc...
/* eslint-disable @typescript-eslint/no-var-requires */ const path = require('path') const glob = require('glob') const debug = process.env.NODE_ENV === 'development' // 配置pages多页面获取当前文件夹下的html和js function getEntry() { const entries = {} const entryFiles = glob.sync(path.join(__dirname, './src/pages/*/index.ts'))...
# Copyright 2020 Huawei Technologies 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 applicable law or agreed to...
'use strict'; var mouseX = 0, mouseY = 0; function getCursorPosition(e) { if (e.pageX != undefined && e.pageY != undefined) { mouseX = e.pageX; mouseY = e.pageY; } else { mouseX = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; mouseY = e.clientY + document....
!function(){var e,t;e=this,t=function(e,t){"use strict";const o={};e.ColorConverter=class{static setHSV(e,o,r,s){return o=t.MathUtils.euclideanModulo(o,1),r=t.MathUtils.clamp(r,0,1),s=t.MathUtils.clamp(s,0,1),e.setHSL(o,r*s/((o=(2-r)*s)<1?o:2-o),.5*o)}static getHSV(e,t){return void 0===t&&(console.warn("THREE.ColorConv...
var get = Ember.get; var run = Ember.run; var Occupation, Person, store; module("unit/model/relationships - DS.Model", { setup: function() { Occupation = DS.Model.extend(); Person = DS.Model.extend({ occupations: DS.hasMany('occupation'), people: DS.hasMany('person', { inverse: 'parent' }), ...
""" Problem Statement: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below N. """ def solution(n: int = 1000) -> int: """Returns the sum of all the multiples of 3 or 5 below n. >>> ...
/* eslint-env node*/ const path = require('path'); module.exports = (config) => { // const puppeteer = require('puppeteer'); // process.env.CHROME_BIN = puppeteer.executablePath(); config.set({ basePath: '', frameworks: ['jasmine', 'lib-tools'], plugins: [ require('kar...
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return ...
/*! * devextreme-angular * Version: 21.2.5 * Build date: Mon Jan 17 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * h...
const sliderImages = document.querySelectorAll('.slide-in'); function debounce(func, wait = 20, immediate = true) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if (!immediate) func.apply(context, args); }; ...
import React, {Component, Fragment} from 'react' import {connect} from 'react-redux' import {withRouter, Route, Switch, Redirect} from 'react-router-dom' import { Login, Signup } from './components/AuthForm'; import Home from './components/Home'; import {me} from './store' import Products from './components/Products' i...
/** * Kendo UI v2018.2.516 (http://www.telerik.com/kendo-ui) * Copyright 2018 Telerik AD. All rights reserved. ...
const yallist = require('yallist'); yallist.prototype.toString = function() { return JSON.stringify(this.toArray()); }; function linkedListFromString(input) { const values = Array.from(input); return yallist.create(values); } function singlyLinkedList(input) { const sll = linkedListFromString(input); let ...
/* global screenReaderText */ /** * Theme functions file. * * Contains handlers for navigation and widget area. */ (function ($, root, undefined) { $( document ).ready( function() { 'use strict'; var touch = $( '#touch-menu' ); var overlaymenu = $( '.overlay-navigation' ); $( touch ).on( ...
// Scripts para carga de pedidos var talles_txt; var medidas_txt; var precios_txt; var tallesid_txt; var cantidadmodal_txt; var nombre_modulo; var descripcion_articulo; var nombre_combinacion;; var tbl_medidas; var medidas=[]; var cantidades=[]; var precios=[]; var dpr=[]; var dlp=[]; var dii=[]; var d...
const cli = require('./lib/cli') const options = { native: false, source: true, color: true } process.on('unhandledRejection', error => cli(error, options)) process.on('uncaughtException', error => cli(error, options))
"use strict"; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError } = require ('./base/errors'); // --------------------------------------------------------------------------- module.exports = class nova extends Exchang...
import request from '@/utils/request' import SOTEMasterContract from '@/services/SOTEMaster' import SOTETokenContract from '@/services/SOTEToken'; import MCRContract from '@/services/MCR'; import wSOTEContract from '@/services/wSOTE'; import { BNB_BYTE8 } from '@/utils/Constants.js' export const getSettings = (vue) =>...
#!/usr/bin/python # Copyright 2020 Makani Technologies LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
/** * STORE & CONTAINER TESTS * * DOCS - How to test Redux store (actions and redux) and containers * - https://redux.js.org/recipes/writing-tests * - https://github.com/arnaudbenard/redux-mock-store * * Examples * - http://enthudrives.com/blog/unit-testing-redux-containers/ * - https://jsramblings.com/201...
"""Training script for the WaveNet network on the VCTK corpus. This script trains a network with the WaveNet using data from the VCTK corpus, which can be freely downloaded at the following site (~10 GB): http://homepages.inf.ed.ac.uk/jyamagis/page3/page58/page58.html """ from __future__ import print_function import...
import Toast from './Toast.vue' const obj = {} obj.install = function(Vue){ const FeatureComponent = Vue.extend(Toast); let el = document.createElement('div') document.body.appendChild(el); let toast = new FeatureComponent() toast.$mount(el); Vue.prototype.$toast = toast; // console.log(T...
#!/usr/bin/env python ''' This script is to take one DT5702 root file and draw the MPPC luminosity. ''' from collections import defaultdict from numpy.typing import _256Bit from scipy.optimize import curve_fit import os, sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../utilities')) import argparse ...
/* eslint-env mocha */ 'use strict' const uint8ArrayFromString = require('uint8arrays/from-string') const { getDescribe, getIt, expect } = require('../utils/mocha') const CID = require('cids') const createShardedDirectory = require('../utils/create-sharded-directory') const all = require('it-all') const drain = requir...
/* global window, document */ // See https://github.com/jupyter-widgets/widget-ts-cookiecutter/blob/master/%7B%7Bcookiecutter.github_project_name%7D%7D/src/extension.ts // Entry point for the Jupyter Notebook bundle containing custom Backbone model and view definitions. // Some static assets may be required by the cu...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _createClass2 = require('babel-runtime/helpers/createClass'); var _createClass3 = _interopReq...