text
stringlengths
2
1.04M
import "./shared1"; import "./shared2"; import "./common1"; import "./common2"; import "./common3";
let newsList = []; const apiKey = "2dc86bcdc7184b17b45b74b30858f75a" let page = 1; let pageSize = 6; let sourceList = []; let sourcePage = 0; let categoryList = ['business', 'entertainment', 'general', 'health', 'science', 'sports', 'technology'] let q = "corona"; let filteredNews = [] const loadNews = async(page, cat...
import React from "react"; import SNETFooter from "shared/dist/components/SNETFooter"; import Header from "../Components/Header"; import { FooterData } from "./footerContent"; const withDarkHeaderAndFooter = Component => { return props => ( <div> <Header /> <Component {...props} /> <SNETFooter...
#!/usr/bin/env node var cli = require('../lib/cli').init().then( function(results) { if (results.EXIT_WITH_FAILURE === true) { process.exitCode = 1; } } );
import addons from '../node_modules/@storybook/addons'; /** @see https://storybook.js.org/docs/react/configure/features-and-behavior */ addons.setConfig({ isFullscreen: false, showNav: true, showPanel: true, panelPosition: 'bottom', enableShortcuts: true, isToolshown: true, theme: undefined, selectedPa...
chrome.runtime.onInstalled.addListener(function (object) { /** * install時にページを開く */ chrome.tabs.create({ url: "https://d-party.net/usage" }, function (tab) {}); });
"use strict"; const mongoose = require("mongoose"); const bcrypt = require("bcrypt-nodejs"); /** * Defines user schema * {username, password, email, firstname, lastname} * @param {Object} **/ const UserSchema = new mongoose.Schema({ username: { type: String, lowercase: true, trim: true, required: ...
/* * Editor client script for DB Table cd_interface */ /*global $, pc295 */ pc295.cd_interface = ( function($) { var table, editor, // use a global for the submit and return data rendering fieldType, filterColumn, emptyModuleSelect, emptyTableSelect, populateModuleSelect, populateTa...
var gulp = require('gulp') var standard = require('../') gulp.task('standard', function () { return gulp.src(['./app.js']) .pipe(standard()) .pipe(standard.reporter('default', { quiet: true })) }) gulp.task('default', ['standard'])
/** * Copyright (c) 2017-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. */ import React from 'react'; import classnames from 'classnames'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '...
import styled from 'styled-components'; import { Button, FilterIcon as Filter } from 'strapi-helper-plugin'; import RemoveIcon from '../../assets/images/icon-cross-blue.svg'; const Wrapper = styled.div` padding-top: 1px; `; const FilterIcon = styled(Filter)` padding: 0 !important; margin: auto !important; > g...
({ bar: function (){ } })
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = _interopDefault(require('react')); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (v...
({ 'statusCodes':function(){ switch(code){ case 400: return 'Solicitud erronea'; case 403: return 'No tienes las credenciales necesarias para acceder a este recurso'; case 404: return 'La página no existe'; case 406: return 'Codificación incompatible'; case 408: return 'Tiempo de s...
import React, { Component } from 'react' import { Layout } from 'mk-component' export default class Example1 extends Component { render() { return ( <Layout height={200}> <Layout height={50} justifyContent='center' alignItems='center' style={{ backgroundColor: '#eee' }}>header</Layout> <Layout justifyCon...
export class ContaCorrente { agencia; _saldo = 0; sacar(valor) { if(this._saldo >= valor){ this._saldo -= valor; return valor; } } depositar(valor) { if(valor <= 0 ){ return; } this._saldo += valor; ...
var DemoApp = angular.module('DemoApp', ['dx']); DemoApp.controller('DemoController', function DemoController($scope) { $scope.chartOptions = { title: "Australian Olympic Medal Count", dataSource: dataSource, commonSeriesSettings: { type: "stepline", argumentField: "...
const tools = require('./tools'); const fetch = require('./fetch'); //TODO: PATCH routes // This is a helper function for making requests // It should be bound to an instance of the Tiltify class function _request(path, domain){ return new Promise((resolve, reject) => { fetch(`${domain}/api/v3/${path}`, { ...
import { combineReducers } from 'redux'; import auth from './auth'; const RootReducer = combineReducers({ auth }); export default RootReducer;
import React from 'react'; import PropTypes from 'prop-types'; import Link from './Link'; const ExternalLink = ({ href, ...props }) => { return <Link to={href} {...props} />; }; ExternalLink.propTypes = { href: PropTypes.string, }; export default ExternalLink;
import React from 'react'; import ContactList from './ContactList'; import Adapter from 'enzyme-adapter-react-16'; import { shallow, configure,mount } from 'enzyme'; configure({adapter: new Adapter()}); describe("should adjust keywords and trigger onSearch correctly", () => { test('Render element',()=>{ ...
const htmlEntities = { nbsp: ' ', lt: '<', gt: '>', quot: '"', amp: '&', apos: '\'' } export default function unescapeHTML (str) { if (!str) return '' return str.replace(/&([^;]+);/g, function (entity, entityCode) { let match if (entityCode in htmlEntities) { return htmlEntities[entityCo...
const path = require('path'); module.exports = function(RED) { module.ID = path.basename(__filename, '.js'); function nomosObject(config) { RED.nodes.createNode(this, config); var node = this; this.nomosHub = RED.nodes.getNode(config.config); if(this.nomosHub) { th...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
import React from "react"; import { withStyles } from "@material-ui/core/styles/index"; import { Typography, Toolbar, AppBar, List, ListItem, Divider, SwipeableDrawer, IconButton } from "@material-ui/core"; import MenuIcon from "@material-ui/icons/Menu"; import { Link } from "react-route...
'use strict'; erp.config(['$routeProvider', function ($routeProvider) { $routeProvider.when('/storage', { templateUrl: 'angular/views/storage/index.html', controller: 'StorageCtrl' }).when('/storage/:id', { templateUrl: 'angular/views/storage/edit.html', controller: 'StorageEditCtrl' }); }]); erp.controlle...
import React from "react"; import UserInfo from "./UserInfo"; import Theme from "./Theme"; import "./styles.css"; const Header = () => { return ( <div className="header"> <UserInfo /> <Theme /> </div> ); }; export default Header;
/** * WordPress dependencies */ import { SVG, Path } from '@wordpress/primitives'; const desktop = ( <SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <Path d="M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6...
/* * Copyright 2019 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 ...
/** FUNCIONES PARA SMARTSOL ****/ function _activaTab(tab){ $('.nav-tabs a[href="#' + tab + '"]').tab('show'); } function comboselect(id,ruta,frase,id_valor,id_muestra,form,campodestino) { //alert(ruta); //console.log(id+' '+id_valor); var lista='<option value=""> '+frase+' </option>'; var selected=''; $.ge...
#!/usr/bin/env node 'use strict'; var path = require('path'); var fs = require('fs'); var gmp = require('global-modules-path'); var yarnModulesPath = require('yarn-global-modules'); var chalk = require('chalk'); var mergeConfigs = require('./merge-configs'); var getCustomWebpackConfig = require('./get-custom-webpack-c...
import { create } from 'react-test-renderer'; import ButtonPanel from '../../components/buttonPanel'; it('Should render correctly', () => { const elem = create(<ButtonPanel clickHandler={() => 'data'} />); expect(elem).toMatchSnapshot(); });
// @flow const inBound = (num: number, max: number, min: number = 0) => { if (num > max) { return max; } if (num < min) { return min; } }; export default inBound;
import Koa from 'koa'; import bodyParser from 'koa-bodyparser'; import helmet from 'koa-helmet'; import Sentry from './lib/sentry'; import baseRouter from './routes/baseRouter'; const app = new Koa(); app.on('error', (err, ctx) => { Sentry.withScope((scope) => { scope.addEventProcessor((event) => Sentry.Handlers...
var searchData= [ ['initial_5fcost',['initial_cost',['../structpallas_1_1_basinhopping_1_1_summary.html#a8e382e9992c2a2edd5bf28af3d562b69',1,'pallas::Basinhopping::Summary::initial_cost()'],['../structpallas_1_1_simulated_annealing_1_1_summary.html#a344d68b7565a38347b95d20b80263d8d',1,'pallas::SimulatedAnnealing::Sum...
/* Nokia Connected Device Platform NBI API Demos (Node.js) * * DELETE: /rest/device/{deviceId} * * Description: This URI allows you to delete a device from the CDP Server. * * 204 - OK/Deleted - Successfully deleted the specified device * 500 - Internal Server Error - Malformed JSON payload * * @author Oli...
/* Copyright © 2011-2013 MLstate This file is part of Opa. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
'use strict'; function RunnerController($scope, $element) { var name = $element.attr('id').split('-').slice(1).join('-'); $scope.saving = false; $scope.$watch('runnerConfigs[branch.name]["' + name + '"]', function (value) { // console.debug('Runner config', name, value, $scope.runnerConfigs); $scope.conf...
var msg = 'Hello World'; console.log(msg);
let VinylShop = (function () { function hello() { console.log('The Vinyl Shop JavaScript works! 🙂'); } /** * Show a Noty toast. * @param {object} obj * @param {string} [obj.type='success'] - background color ('success' | 'error '| 'info' | 'warning') * @param {string} [obj.tex...
/* setup.js */ const {JSDOM} = require('jsdom'); const {window} = new JSDOM('<!doctype html><html><body></body></html>'); const {document, Element, HTMLElement, location, history} = window; // allows to add tests for the Carousel window.matchMedia = window.matchMedia || function () { return { matches: false, ...
async function upcoming_calendar_events(vm, params){ //You have to make sure to close dialogflow querying. vm.openDialogQuery = false; //Extracting the variables from dialogflow var number = params.fields.number.numberValue; //querying and checking if there is a response var response = await cal...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetBucketAccelerateConfigurationCommand = void 0; const models_0_1 = require("../models/models_0"); const Aws_restXml_1 = require("../protocols/Aws_restXml"); const middleware_bucket_endpoint_1 = require("@aws-sdk/middleware-bucket-end...
require('should') const CONFIG = require('config') const addQualifier = require('../../lib/qualifier/add')(CONFIG) const removeQualifier = require('../../lib/qualifier/remove')(CONFIG) const { getClaimPromise } = require('../../lib/tests_utils') var claimPromise describe('qualifier remove', function () { this.timeo...
if ("__addLocaleData" in Intl.ListFormat) { Intl.ListFormat.__addLocaleData({ locale: "mzn-IR", data: { formats: { conjunction: { 'long': { Pair: '{0}, {1}', Start: '{0}, {1}', Mid...
import React from "react" import Layout from "../components/Layout" import { graphql } from "gatsby" import Image from "gatsby-image" const NekretnineTemplate = ({ data }) => { const { naslov, vrijediDo, kontakt, opis: { opis }, } = data.contentfulNekretnine const fluid = data.file.childImageSharp...
import api from './instance' // 首页轮播图 const getBanner = () => { return api.get('/banner', {}) } // 搜索 const search = ({ keywords = '' }) => { return api.get(`/search?keywords=${keywords}`, {}) } // 搜索类型;默认为 1 即单曲 , 取值意义 : 1: 单曲, 10: 专辑, 100: 歌手, 1000: 歌单, 1002: 用户, 1004: MV, 1006: 歌词, 1009: 电台, 1014: 视频, 1018:综合 const ...
/* * Copyright (c) 2015-2025 Industrial Technology Research Institute. * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file ...
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the ri...
/*! * Vue.js v2.6.14 * (c) 2014-2021 Evan You * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = global || self, global.Vue...
'use strict'; angular.module('user', [ 'ionic', 'ngCordova', 'ui.router', // Dependencies '_Mocifire' ]).config(function ($stateProvider) { $stateProvider.state('user', { abstract: true, url: '/user' }); $stateProvider.state('register', { url: '/register', templateUrl: 'user/templates/...
'use strict'; module.exports = require('./async').mapValues;
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; import _inherits from "@babe...
/** * @file gulpfile.js * * Defines tasks that can be run on gulp. * * Summary: <ul> * <li> `test` - runs all the tests on node and the browser (mocha and karma) * <ul> * <li> `test:node` * <li> `test:node:nofail` - internally used for watching (due to bug on gulp-mocha) * <li> `test:browser` * </ul>` * <li...
import gitlab from './gitlab' import GitAPI from './git' import EsAPI from './esGateway' import { lesson } from './lesson' import { keepwork } from './keepwork' import skyDrive from './skyDrive' import sensitiveWord from './sensitiveWord' export { EsAPI, GitAPI, gitlab, keepwork, lesson, skyDrive, sensit...
$(document).ready(function(){ /*DECLARACION DE VARIABLES GLOBALES*/ var Global_idUltimaPublicacion; var Global_ContadorCargaPublicaciones; var Global_Control = true; var Refresh = 100; /*DECLARACION DE VARIABLES GLOBALES*/ /*MÉTODOS CONSTRUCTORES*/ CargarEstados(); //LimpiarEstados(); $(function(){ setIn...
/** * @author mrdoob / http://mrdoob.com/ * @author schteppe / https://github.com/schteppe */ var PointerLockControls = function ( camera, client, MOBILE ) { var cannonBody = null; var velocity = new THREE.Vector3; var eyeYPos = 2; // eyes are 2 meters above the ground var velocityFactor = 0.2; ...
//# sourceMappingURL=pkg-open_with.min.js-vfl5s3fOf.map
// thanks for angular && mootools for some concise&cross-platform implemention // ===================================== // The MIT License // Copyright (c) 2010-2014 Google, Inc. http://angularjs.org // --- // license: MIT-style license. http://mootools.net var dom = module.exports; var env = require("./env"); va...
import React, { Component } from 'react' import { drizzleConnect } from 'drizzle-react' import PropTypes from 'prop-types' import { withRouter } from 'react-router-dom' import { Link } from 'react-router-dom' import { getMultihash } from '../../util/multihash' import {formatGroupInfo, formatGroupData, combineGroupData...
// alert("helloworld"); // console.log('helloworld'); // console.log(123); // console.log(true); // console.log([1,2,3,4,5]); // console.log({a:1, b:2}); // console.table({a:1, b:2, c:3, d:4}); // console.error('this is an error'); // console.warn("this is a warning"); //VARIABLES // let, let const let name = 'jo...
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from '../../util/reactIntl'; import classNames from 'classnames'; import { ACCOUNT_SETTINGS_PAGES } from '../../routing/routeConfiguration'; import { LinkTabNavHorizontal } from '../../components'; import css from './UserNav.mod...
import React from 'react'; import { shallow } from 'enzyme'; import Alert from './alert.component'; describe('Component: Alert', () => { it('renders', () => { const component = shallow(<Alert alert={false} closeAlert={jest.fn()} />); const alert = component.find('.content'); expect(alert.exists()).toBe(t...
// Test next-on-netlify when config is set from a function in next.config.js // See: https://github.com/netlify/next-on-netlify/issues/25 const { parse, join } = require("path"); const buildNextApp = require("./helpers/buildNextApp"); // The name of this test file (without extension) const FILENAME = parse(__filename...
let data = { "body": "<path d=\"M16 20H8V6h8m.67-2H15V2H9v2H7.33C6.6 4 6 4.6 6 5.33v15.34C6 21.4 6.6 22 7.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C18 4.6 17.4 4 16.67 4M15 16H9v3h6v-3\" fill=\"currentColor\"/>", "width": 24, "height": 24 }; export default data;
var struct_event = [ [ "Event", "struct_event.html#a5a40dd4708297f7031e29b39e039ae10", null ], [ "contactCount", "struct_event.html#a0f32ebe68e3e1b93ba32a9cc791093bd", null ], [ "getContact", "struct_event.html#a155496be31d1c4a5d78cc63a98f7c44a", null ], [ "contacts", "struct_event.html#aa45276014f6cdd0...
/*! * jQuery clip-path-polygon Plugin v0.1.13 (2018-05-12) * jQuery plugin that makes easy to use clip-path on whatever tag under different browsers * https://github.com/andrusieczko/clip-path-polygon * * Copyright 2018 Karol Andrusieczko * Released under MIT license */
/** * Archiver Core * * @ignore * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ var fs = require('fs'); var glob = require('glob'); var async = require('async'); var path = require('path'); var util = require('ar...
/** * * You can modify and use this source freely * only for the development of application related Live2D. * * (c) Live2D Inc. All rights reserved. */ //============================================================ //============================================================ // class L2DBaseModel /...
import React from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux' /** * A display for donating to the cause * @props : */ class DonateBar extends React.Component { render() { return ( <div className="donate-us center p-5" style={{backgroundColor: ""}}>...
// Copyright 2016 Erik Neumann. 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...
'use strict'; // Karma configuration // Generated on Fri Aug 09 2013 14:14:35 GMT-0500 (CDT) module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', frameworks: ["jasmine"], // list of files / patterns to load i...
import React, { Fragment } from 'react'; import { formatMessage, FormattedMessage } from 'umi'; import { CloseCircleOutlined, RightOutlined } from '@ant-design/icons'; import { Button, Card } from 'antd'; import Result from '@/components/Result'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; const ex...
import React, { useEffect } from 'react'; import ProductCard from './ProductCard'; import { makeStyles } from '@material-ui/core/styles'; import GridList from '@material-ui/core/GridList'; import GridListTile from '@material-ui/core/GridListTile'; import ListSubheader from '@material-ui/core/ListSubheader'; import { bi...
const test = require('tape'); const toggleClass = require('./toggleClass.js'); test('Testing toggleClass', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof toggleClass === 'function', 'toggleClass is a Function'); //t.deepEqual(t...
/** * 作者: dailc * 创建时间: 2017/03/28 * 版本: [1.0, 2017/05/26 ] * 版权: dailc * 描述: 这个皮肤是ejs或钉钉下的下拉刷新,使用了他们自带提供的原生下拉刷新,以及自定义生成上拉加载 * 注意:分别在ejs下或者钉钉下依赖对应的库文件 */ (function(exports, CommonTools) { var isSupportTouch = "ontouchend" in document ? true : false; //默认的下拉刷新每一个页面只支持一个,所以是单例模式 var instance; //这里...
import uniqid from 'uniqid'; import {createPackedStruct} from '@pkg/struct-pack'; export default class MapElement { constructor(type, params, id = uniqid()) { this.type = type; this.id = id; if (params) this.params = params; } static binarySnapshotSerializer = createPackedStruct( { ...
class GcGridBlock { get behaviors() { return [...GrowCss.ScreenSizeBehavior]; } beforeRegister() { this.is = 'grid-block'; } } /*eslint-disable */ Polymer(GcGridBlock); /*eslint-enable */
//# sourceMappingURL=polyfills.90211f28c8e02efedeab.js.map
// COPYRIGHT © 2021 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
import React, { useEffect } from 'react'; import { withStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import ChatMessage from './ChatMessage'; import classnames from 'classnames' import { ChatActions } from '../../actions/chat.actions'; import { connect } from 'react-redux' const...
/** Model for the whole Queue with all it's items **/ function QueueListModel(parent) { // Internal var's var self = this; self.parent = parent; self.dragging = false; self.rawCatList = []; self.rawScriptList = []; // Because SABNZB returns the name // But when you want to set Prior...
/* * Copyright 2016 Edify Software Consulting. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
import React from 'react' import {Link} from 'react-router' export default () => ( <div className="module-ctn" style={{background: 'green'}}> <Link className="topbar-link" to="/wander" activeClassName="active">返回</Link> 来注册把 </div> )
import React from 'react'; import { Route } from 'react-router-dom'; export default class NotFound extends React.Component { render() { const { code, children } = this.props; return (<Route render={({ staticContext }) => { if (staticContext) staticContext.status = code; return children; }} />...
"use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["fonts/free-solid-svg-icons-faCloudMoon-js"],{ /***/ "./node_modules/@fortawesome/free-solid-svg-icons/faCloudMoon.js": /*!***********************************************************************!*\ !*** ./node_modules/@fortawesome/free-solid-sv...
'use strict' const fs = require('fs-extra') const path = require('path') const mock = require('../mock/env') const gitInit = require('../mock/git-init') const getStagedFileContent = require('../../../src/utils/get-staged-file-content') const { getBaseDir } = require('../../../src/env') const deepEqualInAnyOrder = req...
const discoverReducer = (state = { discover: [], discoverTv: [] }, action) => { switch (action.type) { case "ADD_DISCOVER": return { ...state, discover: action.payload, }; case "ADD_DISCOVER_TV": return { ...state, discoverTv: action.payload, }; default: return state; } }; export...
import CommonSort from './common'; import StringSort from './string'; import { ReadySortedList, SameItemList, DuplicateItemsListUnsort, DuplicateItemsListSort } from './special'; export default (ctx) => { ctx.common = ctx.direct(CommonSort); ctx.stringSort = ctx.direct(StringSort); ctx.special = { readySorte...
"use strict"; const path = require("path"); const isLocal = typeof process.pkg === "undefined"; const basePath = isLocal ? process.cwd() : path.dirname(process.execPath); const fs = require("fs"); const sha1 = require(path.join(basePath, "/node_modules/sha1")); const { createCanvas, loadImage } = require(path.join(bas...
const speechkit = require('../src.js') speechkit({apikey: 'valid_api_key'}).then(async speak => { await speak('hello') await speak('пока', { speaker: 'zahar', emotion: 'neutral', speed: 1.9, lang: 'ru-RU' }) })
import Ember from 'ember' const component = Ember.Component.extend({ done: Ember.computed('model.isLoaded', 'model.content.isLoaded', function() { return this.model && this.model.length === 0 || this.model && this.model.isLoaded || this.model.content && this.model.content.isLoaded }) }) component.reopenClass({ p...
const Shape = { public: { width: 10, height: 10, name: '', position: { x: 0, y: 0 }, move: function () { this.public.position.x++; }, checkID: function () { return this.private.id; }, getMatrix: function () { ...
/* * Copyright © 2016-2017 The Thingsboard 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 applicabl...
/** * Copyright IBM Corp. 2016, 2022 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React, { useState } from 'react'; import { ButtonGroup } from '../ButtonGroup'; import CTALogic from './CTALogic'; import PropTypes fro...
import Heap from './HeapQueue' let heap = new Heap(); heap.generateHeap(12); export function getDataStructer() { return heap; } export function getMaxNum(){ return 31; } let refresher = null; export function getRefresher(o) { console.log('getRefresher'); if (refresher) { console.log('refresher changed'...
import React, { useState } from 'react'; import { makeStyles } from '@material-ui/styles'; import { BackDrop } from 'components'; import { UsersToolbar, UsersTable } from './components'; import * as firebase from 'firebase'; const useStyles = makeStyles(theme => ({ root: { padding: theme.spacing(3) }, cont...
// 站点配置 window.config = { communityName: 'easyj-projects', // 社区名称/项目组名称 projectName: 'easyj-projects.github.io', // 项目名 branchName: 'docsify' // 项目分支名 }; // 插件:Gitalk(评论系统)配置 window.gitalkConfig = { clientID: '21bffd940d486618132b', clientSecret: '5b51c3a75de223a4ce17664320d8243689b3da9f', repo: config.projectN...
"use strict"; require("../src"); const assert = require("assert"); const path = require("path"); const os = require("os"); const fs = require("fs-extra"); const isWin32 = process.platform === "win32"; const isWSL = process.platform === "linux" && /\bMicrosoft\b/.test(os.release()); const gitWin = (isWin32 || isWSL) && ...
import { useContext, useState } from 'react' import Link from 'next/link' import { motion, AnimatePresence } from 'framer-motion' import { ChevronDown, ChevronUp } from 'react-feather' import useBreakpoint from '../hooks/useBreakpoint' import { LanguageContext } from './LanguageSelector' const content = { restauran...