text
stringlengths
3
1.05M
!function(a){var t={};function r(n){if(t[n])return t[n].exports;var e=t[n]={i:n,l:!1,exports:{}};return a[n].call(e.exports,e,e.exports,r),e.l=!0,e.exports}r.m=a,r.c=t,r.d=function(a,t,n){r.o(a,t)||Object.defineProperty(a,t,{enumerable:!0,get:n})},r.r=function(a){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
#!/usr/bin/env node "use strict"; var setupThrobber = require("../../throbber") , throbber = setupThrobber(process.stdout.write.bind(process.stdout), 200); process.stdout.write("START"); throbber.start(); setTimeout(throbber.stop, 1100);
'use strict'; module.exports = new Symbol('star');
/** @type {import('@sveltejs/kit').Config} */ import adapter from '@sveltejs/adapter-static'; import preprocess from 'svelte-preprocess'; const config = { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: preprocess(), kit: { // hydrate the <div id=...
(function() { 'use strict'; angular .module('app.arena') .run(appRun); appRun.$inject = ['routerHelper']; /* @ngInject */ function appRun(routerHelper) { routerHelper.configureStatesAuthenticated(getStates()); } function getStates() { return [ { ...
from __future__ import unicode_literals from django_core.utils.api import get_json_api_contents from django_core.utils.date_parsers import parse_datetime def get_bookmarks(delicious_username, tag=None): """ Returns a list of recent bookmarks from delicious @see http://feeds.delicious.com/v2/json/troygro...
import os import pytest from datadog_checks.dev import docker_run, get_docker_hostname, get_here URL = 'http://{}:8000/apcu-dd-handler.php'.format(get_docker_hostname()) INSTANCE = {'url': URL} @pytest.fixture(scope='session') def dd_environment(): compose_file = os.path.join(get_here(), 'docker-compose.yml') ...
/** * Auto-generated action file for "Compute Engine" API. * * Generated at: 2019-05-23T09:13:11.453Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / googleapis-com-compute-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector are ...
'use strict'; const RN = require('react-native'); exports.platformVersion = RN.Platform.Version; exports.platformSelect = RN.Platform.select exports.platformOSImpl = RN.Platform.OS
// Copyright (c) 2015 Titanium I.T. LLC. All rights reserved. For license, see "README" or "LICENSE" file. // Example Quixote unit tests. We're using Mocha as our test framework and Chai for assertions. // These tests check the our media object CSS, which is defined in `assignment2.css`. (function () { "use strict";...
/**========================================================= * Module: play-animation.js * Provides a simple way to run animation with a trigger * Targeted elements must have * [data-animate"] * [data-target="Target element affected by the animation"] * [data-play="Animation name (http://daneden.github.io/a...
/** * Kendo UI v2016.2.909 (http://www.telerik.com/kendo-ui) * Copyright 2016 Telerik AD. All rights reserved. ...
# # -*- coding: utf-8 -*- # Copyright 2019 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ############################################# # WARNING # ############################################# # # This file is auto generated by ...
/** * @license Highcharts JS v9.1.0 (2021-05-03) * @module highcharts/modules/histogram-bellcurve * @requires highcharts * * (c) 2010-2021 Highsoft AS * Author: Sebastian Domas * * License: www.highcharts.com/license */ 'use strict'; import '../../Series/Histogram/HistogramSeries.js'; import '../../Series/Bell...
#!/usr/bin/python import json import os import re import subprocess as subp # for shell commands import math from operator import itemgetter # for sorting lists by dict value from lxml import etree as et try: # Python 3 import html.parser as HTMLParser except: # Python 2 import HTMLParser from pkg_re...
""" Steenrod algebra bases AUTHORS: - John H. Palmieri (2008-07-30): version 0.9 - John H. Palmieri (2010-06-30): version 1.0 - Simon King (2011-10-25): Fix the use of cached functions This package defines functions for computing various bases of the Steenrod algebra, and for converting between the Milnor basis and ...
/*! * Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file. */ import {assert} from '@ciscospark/test-helper-chai'; import testUsers from '@ciscospark/test-helper-test-users'; import sinon from '@ciscospark/test-helper-sinon'; import CiscoSpark from 'ciscospark'; import pkg from '../../../package'; describe...
# -*- coding: utf-8 -*- from __future__ import print_function from twisted.python import log from bordercamp.routing import RelayedEvent from bordercamp import force_unicode from . import BCRelay import itertools as it, operator as op, functools as ft import re class HtmlProcess(BCRelay): def lxml_soup(self, str...
describe('Package docs home page tests', () => { beforeEach(() => { cy.visit('/packages/mock-package1/docs'); }); it('has the correct page title', () => { cy.title().should('eq', 'Dummy Data Docs - Documents'); }); });
import axios from './index' export const enterRoom = (params) => { return axios.request({ url: '/room', method: 'post', data:params }) } // 离开 export const leaveRoom = (params) => { return axios.request({ url: '/room', method: 'delete', data:params }) } // 更新 export const updateRoomSo...
(function($) { "use strict"; $(window).scroll(function() { var scroll = $(window).scrollTop(); if (scroll > 100) { $(".menu_parent").addClass("menu_affix"); // you don't need to add a "." in before your class name } else { $(".menu_p...
import _ from 'underscore'; import Onyx from 'react-native-onyx'; import CONFIG from '../CONFIG'; import ONYXKEYS from '../ONYXKEYS'; import redirectToSignIn from './actions/SignInRedirect'; import * as Network from './Network'; let isAuthenticating; let credentials; Onyx.connect({ key: ONYXKEYS.CREDENTIALS, ...
import _ from 'lodash'; export const getAuthErrorData = (error) => { const code = error.code; let message = error.message; let messageKey; switch (code) { case 'UsernameExistsException': messageKey = 'error:authErrorUserAlreadyExists'; break; case 'UserNotFoundException': messageKey ...
from django.db import models class SettingBoard(models.Model): schoolname = models.CharField(default="University",max_length=100) ojname = models.CharField(default="LPOJ",max_length=100) openwiki = models.BooleanField(default=True) openlanguage = models.CharField(max_length=500, default="C++|C|Py...
/** * lodash 3.0.1 (Custom Build) <https://lodash.com/> * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigat...
# Copyright 2020 The Pigweed 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
export default class GitHubHelper { static validGitHubRepoURL(url) { return new RegExp("^https://(www.){0,1}github.com/(\\w|\\-){1,}/(\\w|\\-){1,}(\\.git|\/){0,1}$", "g").test(url); } }
import React, { Component } from "react"; import axios from "axios"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; export default class Login extends Component { constructor(props) { super(props); this.state = { email: "", password: "", errorText: "" }; this.ha...
import React from "react"; import ReactDOM from "react-dom"; import { ThemeProvider } from "@material-ui/styles"; import { CssBaseline } from "@material-ui/core"; import Themes from "./themes"; import App from "./components/App"; import * as serviceWorker from "./serviceWorker"; import { LayoutProvider } from "./conte...
// Class definition var KTSelect2 = function() { // Private functions var demos = function() { // basic $('#kt_select2_1, #kt_select2_1_validate').select2({ placeholder: 'Select a state' }); // nested $('#kt_select2_2, #kt_select2_2_validate').select2({ ...
"use strict"; exports.__esModule = true; exports.calculateInterestRate = exports.calculateConventionalLoanPayment = exports.calculateInterestOnlyLoanPayment = void 0; /* TODO Update the calculateInterestOnlyLoanPayment function. */ function calculateInterestOnlyLoanPayment(loanTerms) { var payment; payment = l...
import React from "react" import { graphql, Link } from "gatsby" import 'normalize.css' import '../styles/global.css' export default ({ data }) => { return ( <div> {/* { data.site.siteMetadata.title } */} <header className = "header"> <h1 className = "header__title"> CSS Evangelists </h1>...
import './asyncModules' import exclaimify from './exclaimify' const button = document.getElementById('button') const alertAsyncMessage = function() { // CommonJS async syntax webpack magic require.ensure([], function() { const message = require("./asyncMessage") alert(exclaimify(message)) }) } console....
// Global Variables var generateBtn = document.querySelector("#generate"); var lowercase = "abcdefghijklmnopqrstuvwxyz"; var uppercase = lowercase.toUpperCase(); var numbers = "1234567890"; var special = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"; var eachChoice = []; var charTypes = ""; // Generates a password that meets c...
"""Root package info.""" __version__ = '1.0.4' __author__ = 'William Falcon et al.' __author_email__ = 'waf2107@columbia.edu' __license__ = 'Apache-2.0' __copyright__ = 'Copyright (c) 2018-2020, %s.' % __author__ __homepage__ = 'https://github.com/PyTorchLightning/pytorch-lightning' # this has to be simple string, see...
'use strict' import { app, BrowserWindow } from 'electron' /** * Set `__static` path to static files in production * https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-static-assets.html */ if (process.env.NODE_ENV !== 'development') { global.__static = require('path').join(__dirname, '/static').rep...
// // Simulate a button press from the IotButton device. // var g_serviceUrl = "http://iotbutton.azurewebsites.net"; var g_buttonMessage = '{"device_id": "123", "button_state": "1 pressed", "battery_level": "90"}'; //var g_serviceUrl = "http://192.168.1.7:8080"; //var g_buttonMessage = '{"device_id": "123", "button...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate...
import React, { Component } from 'react'; export default class GoogleMap extends Component { componentDidMount() { const { lat, lng } = this.props; new google.maps.Map(this.refs.map, { zoom: 12, center: { lat, lng } }) ...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.less'; import App from './pages/App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to reg...
!function(){"use strict";function e(e,t,n,a){e.state("app.issues",{"abstract":!0,url:"/issues"}).state("app.issues.boards",{url:"/boards",views:{"content@app":{templateUrl:"app/main/issues/views/boards/boards-view.html",controller:"BoardsViewController as vm"}}}).state("app.issues.boards.board",{url:":id/:uri",views:{"...
import openSocket from 'socket.io-client'; export default openSocket('', {path: '/api/socket'});
import React, { Component } from 'react'; import shortid from 'shortid'; import { Notyf } from 'notyf'; import 'notyf/notyf.min.css'; import ContactForm from './Components/ContactForm/ContactForm'; import ContactList from './Components/ContactList/ContactList'; import Filter from './Components/Filter/Filter'; ...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @module * @description * Entry point for all public APIs of this package. */ export * from './src/animation...
import React from "react"; import { useStaticQuery, graphql } from "gatsby"; import Typography from "@material-ui/core/Typography"; import { Grid } from "@material-ui/core"; import Img from "gatsby-image"; const Posters = () => { const data = useStaticQuery(graphql` query { file(relativePath: { eq: "poste...
(function (app) { 'use strict'; app.controller('indexCtrl', indexCtrl); indexCtrl.$inject = ['$scope','apiService', 'notificationService']; function indexCtrl($scope, apiService, notificationService) { $scope.pageClass = 'page-home'; $scope.loadingMovies = true; $scope.loadin...
'use strict'; const FormField = require('dw/web/FormField'); const FormGroup = require('dw/web/FormGroup'); /** * @description parse FormField element, create context and apply inputfield template to generate form field markup * @param {dw.web.FormField} field * @param {Object} fieldData extra data that contains c...
#!/usr/bin/env python3 # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. from basecls.configs import ResNetConfig _cfg = dict( batch_size=64, model=dict( name="resnet50d", ), solver=dict( basic_lr=0.05, ), model_ema=dict( enabled=True, momentum=0.99996, ...
'use strict'; /** * Serverless Module: Lambda Handler * - Your lambda functions should be a thin wrapper around your own separate * modules, to keep your code testable, reusable and AWS independent * - 'serverless-helpers-js' module is required for Serverless ENV var support. Hopefully, AWS will add ENV support t...
const React = require('react'); const shallowEqual = require('shallowequal'); const BaseHeaderCell = require('./HeaderCell'); const getScrollbarSize = require('./getScrollbarSize'); const columnUtils = require('./ColumnUtils'); const SortableHeaderCell = require('common/cells/headerCells/SortableHeaderCell'); const Fil...
jest.dontMock('../CipherKeyGenerator.es6'); const CipherKeyGenerator = require('../CipherKeyGenerator.es6').default; describe('CipherKeyGenerator', function() { it('should be a class', function() { expect(typeof CipherKeyGenerator).toBe('function'); expect((new CipherKeyGenerator) instanceof CipherKeyGen...
from .filters import zscore, exp_wgh_avg, beta_from_days
import tinycolor from 'tinycolor2'; export const lighten = (color, percent = 10) => tinycolor(color).lighten(percent).toString(); export const darken = (color, percent = 10) => tinycolor(color).darken(percent).toString();
const toCamelCase = (str) => str.replace(/(?:^\w|[A-Z]|\b\w)/g, (ltr, idx) => idx === 0 ? ltr.toLowerCase() : ltr.toUpperCase()).replace(/[\W_\s]+/g, ''); export { toCamelCase };
from flask import Flask, render_template, request, redirect from flask_bootstrap import Bootstrap from flask_nav import Nav from flask_nav.elements import Navbar, View from redistimeseries.client import Client as RedisTimeseries from redisbloom.client import Client as RedisBloom # From our local file from load_data i...
import * as React from 'react'; import { iconType } from '../types'; import createIcon from '../helpers/createIcon'; const Grid4 = ({ color, strokeWidth, set }) => { const Broken = () => ( <g> <path d="M3.5 3.5H10.5V10.5H3.5V3.5Z" stroke={color} strokeWidth={strokeWidth} strokeLinecap="round" stroke...
#!/usr/bin/env python # -*- coding: utf-8 -*- import pyOSC3 client = pyOSC3.OSCClient() client.connect(('127.0.0.1', 57120)) def renormalize(px, py): if abs(py - 0.5) < 1e-5: return px x_shift = 0.5 - abs(py - 0.5) return (px - x_shift) / (1 - 2 * x_shift) def send_msg(px, py): try: ...
"use strict"; /** * Created by user on 2019/5/19. */ Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=tsconfig-json.js.map
// @flow import { connect } from 'react-redux'; import { translate } from '../../../../base/i18n'; import AbstractRecordButton, { _mapStateToProps, type Props } from '../AbstractRecordButton'; /** * An implementation of a button for starting and stopping recording. */ class RecordButton extends AbstractRe...
const path = require('path'); const fs = require('fs'); const babel = require('babel-core'); const less = require('less'); const chokidar = require('chokidar'); const path_join = path.resolve; // for file watcher const app = require('express')(); const http = require('http').Server(app); const io = require('socket.io'...
define( //begin v1.x content { "months-format-narrow": [ "正", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二" ], "field-second-relative+0": "今すぐ", "field-weekday": "曜日", "field-wed-relative+0": "今週の水曜日", "dateFormatItem-GyMMMEd": "U年MMMd日(E)", "dateFormatItem-MMMEd": "MMMd日(E)", ...
$(document).ready(function(){ function save_menu_tree(tree, force){ var new_positions = tree.nestedSortable('toArray'); if(force || tree.data("old_positions")!=tree.nestedSortable('serialize')){ $.ajax({ url:tree.attr("data-url"), type:"put", dataType:"html", data:$.para...
Ext.define('ExtModules.Layouts.Portal.PortalDropZone', { extend: 'Ext.dd.DropTarget', constructor: function(portal, cfg) { this.portal = portal; Ext.dd.ScrollManager.register(portal.body); ExtModules.Layouts.Portal.PortalDropZone.superclass.constructor.call(this, portal.body, cfg); ...
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
const fs = require('fs'); const path = require('path'); const webpack = require('webpack'); const resolve = require('resolve'); const PnpWebpackPlugin = require('pnp-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'...
module.exports={A:{A:{"1":"A B","2":"H D G E GB"},B:{"1":"C p z J L N I"},C:{"1":"0 3 4 6 8 9 e f g h i j k l m n o M q r s t u v w x y DB AB BB","2":"5 bB F K H D G E A B C p z J L N I O P Q R S T U V W X Y Z ZB TB","194":"2 a c d"},D:{"1":"0 2 3 4 6 8 9 U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y DB A...
///********************************************************************* //* #### Twitter Post Fetcher v10.0 #### //* Coded by Jason Mayes 2013. A present to all the developers out there. //* www.jasonmayes.com //* Please keep this disclaimer with my code if you use it. Thanks. :-) //* Got feedback or questio...
(function( curl ) { var config = { baseUrl: 'app', paths: { theme: '../theme', curl: '../lib/curl/src/curl' }, pluginPath: 'curl/plugin', packages: [ { name: 'wire', location: '../lib/wire', main: 'wire' }, { name: 'when', location: '../lib/when', main: 'when' }, { name: 'aop', location: '.....
const {shiphold} = require('../../dist/bundle'); const createService = () => shiphold() .service({name: 'Users', table: 'users', primaryKey: 'id'}); export default ({test}) => { test('bind query to proper table', t => { const query = createService() .select() .build() ...
!function(e){const t=e.zh=e.zh||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0/%1","Align cell text to the bottom":"向下對齊","Align cell text to the center":"置中對齊","Align cell text to the left":"靠左對齊","Align cell text to the middle":"置中對齊","Align cell text to the right":"靠右對齊","Align cell text to the top":...
var searchData= [ ['blue_712',['blue',['../structGLFWgammaramp.html#acf0c836d0efe29c392fe8d1a1042744b',1,'GLFWgammaramp']]], ['bluebits_713',['blueBits',['../structGLFWvidmode.html#af310977f58d2e3b188175b6e3d314047',1,'GLFWvidmode']]], ['buttons_714',['buttons',['../structGLFWgamepadstate.html#a27e9896b51c65df15f...
/** * Inline development version. Only to be used while developing since it uses document.write to load scripts. */ /*jshint smarttabs:true, undef:true, latedef:true, curly:true, bitwise:true, camelcase:true */ /*globals $code */ (function(exports) { "use strict"; var html = "", baseDir; var modules = {}, expos...
ready(function () { require(['system/menu/MenuConfig'], function ({MenuConfig}) { var menu = new MenuConfig() menu.init() }) })
'use strict'; const express = require('express'); //const SSEChannel = require('../index'); const SSEChannel = require('sse-pubsub'); const PORT = process.env.PORT || 3101; const randomIntInRange = (low, high) => Math.floor(Math.random() * high) + low; const app = express(); // Create SSE channels. Non-default opt...
import { Meteor } from 'meteor/meteor'; import { Match, check } from 'meteor/check'; import { settings } from '../../../settings'; import { callbacks } from '../../../callbacks'; import { Messages } from '../../../models'; import { Apps } from '../../../apps/server'; import { Markdown } from '../../../markdown/server'...
Package.describe({ name: "telescope:settings", summary: "Telescope settings package", version: "0.25.2", git: "https://github.com/TelescopeJS/Telescope.git" }); Package.onUse(function(api) { var both = ['server', 'client']; api.versionsFrom(['METEOR@1.0']); api.use([ 'telescope:lib@0.25.2', 't...
import React from 'react'; import VideoListItem from './video-list-item'; const VideoList = (props) => { //const videos = props.videos; //an array of videos // if inside of html {props.videos.length} //length of the array of videos const videoItems = props.videos.map((video) => { return ( <VideoListItem on...
# import argparse # # # class aaa: # # def __init__(self): # self.parser = argparse.ArgumentParser() # self.parser.add_argument("square", help="display a square of a given number", type=int) # self.parser.add_argument("-v", "--verbose", help="increase output verbosity") # self.args =...
(function(d){d['eu']=Object.assign(d['eu']||{},{a:"Lodia",b:"Etzana",c:"Aukeratu izenburua",d:"Izenburua",e:"Zenbakidun zerrenda",f:"Buletdun zerrenda",g:"Esteka",h:"Paragrafoa",i:"Izenburua 1",j:"Izenburua 2",k:"Izenburua 3",l:"Heading 4",m:"Heading 5",n:"Heading 6",o:"Dropdown toolbar",p:"Open in a new tab",q:"Downlo...
import React, { Component } from 'react' import PullElement from '../../../' export default class VerticalSwiper extends Component { componentDidMount() { let component = this let { target } = this.refs let clientHeight = target.clientHeight let activeIndex = 0 let handlePullEnd = function({ translateY }) {...
import functools from types import SimpleNamespace timedelta = SimpleNamespace(small=5, medium=10, big=20, super_big=40) def execute_in_storage(storage): """Move main code being executed from discord.commands to my own code sections, which can be much easily tested """ def decorator_repeat(func): ...
import React from 'react' import { storiesOf } from '@storybook/react' import { Provider } from 'react-redux' import Buttons from '../../components/interface/buttons/lock' import createUnlockStore from '../../createUnlockStore' import { ConfigContext } from '../../utils/withConfig' import configure from '../../config'...
/** * Remove any trailing slashes from ui-router URLs */ angular.module('edgefolio.common-components.routes.stateParamsWatcher', ['ui.router']).run(function( $timeout, $rootScope, $state, $stateParams ) { var lastStateParams = {}; $rootScope.$watch(function() { return [$state.params, $stateParams]; }, _.debou...
import React from 'react'; import Home from '../components/Home'; import { create } from 'react-test-renderer' describe('Pizzas home Test',()=>{ test('should render Home component', () => { let tree = create(<Home />) expect(tree.toJSON()).toMatchSnapshot(); }) })
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Python script parsing the MISP taxonomies expressed in Machine Tags (Triple # Tags) to list all valid tags from a specific taxonomy. # # Copyright (c) 2015-2017 Alexandre Dulaunoy - a@foo.be # # Redistribution and use in source and binary forms, with or without modifica...
// Copyright 2017-2021 @axia-js/app-society authors & contributors // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; import Defender from "./Defender.js"; import Members from "./Members.js"; import Summary from "./Summary.js"; import { jsx as _jsx } from "react/js...
/*! * imagesLoaded PACKAGED v4.1.4 * JavaScript is all like "You images are done yet or what?" * MIT License */ !(function (e, t) { "function" == typeof define && define.amd ? define("ev-emitter/ev-emitter", t) : "object" == typeof module && module.exports ? (module.exports = t()) : (e.EvEmitter = t()); })("un...
/* eslint-env jest */ import { renderViaHTTP } from 'next-test-utils' export default (context) => { describe('Public folder', () => { it('should allow access to public files', async () => { const data = await renderViaHTTP(context.appPort, '/data/data.txt') expect(data).toBe('data') c...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
const fs = require('fs'); const {join} = require('path'); const {replaceInHtml} = require("./replace"); const mock = require("mock-fs"); const HTML = ` <html> <head> <link media="screen" href= "foo.css" rel="stylesheet"> </head> <body> </body> </html>`; const HTML_REPLACED = ` <html> ...
jQuery(document).ready(function ($) { 'use strict'; 'esversion: 6'; // Функция отправки форм. $('.wplb_holder').on('submit', 'form', function (ev) { // Определяем какую форму пользователь заполнил. let this_is = $(this); // Определяем кнопку. let button = $(this).find('input[type="submit"]'); // Оп...
import App from '@/App.vue' import { createApp } from 'vue' import InstantSearch from 'vue-instantsearch/vue3/es' import VueCookies from 'vue3-cookies' import { createPinia } from 'pinia' import axios from '@/shared/config/axios.config' import { emitter } from '@/shared/modules/emitter' import { i18n } from '@/shar...
#!/usr/bin/env python3 # 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. """Generates a pytorch data file from the training data; for use in the PytorchDataTeacher. Note that with our given imp...
//// [ExportAssignment8.ts] export = B; export class C { } //// [ExportAssignment8.js] "use strict"; var C = (function () { function C() { } return C; }()); exports.C = C; module.exports = B;
/** * Created by info@lucamele.ch */ define([ 'backbone', 'marionette', 'underscore', 'app', 'text!../../templates/bar/index.html' ], function (Backbone, Marionette, _, App, tplBar) { "use strict"; // MODULE var Bar = App.module('Bar'); /** * MODELS ------------------------...
#!/usr/bin/python # -*- coding: UTF-8 -*- # 给本地数据库删除一些不要的数据和给股票查询出相应的行业代码 import pymysql import datetime from jqdatasdk import * # 平台给的包,务必加载,地址:https://github.com/JoinQuant/jqdatasdk/archive/master.zip # from jqDataFinance.jqdata.china.common.jqDataLogin import login from jqdatadir.china.common.jqDataLogin import lo...
import { View, Image } from "react-native"; import React from "react"; import { Ionicons } from "@expo/vector-icons"; import { TouchableOpacity } from "react-native-gesture-handler"; import Overlay from "../../shared/Overlay"; import { NavigationActions, StackActions } from "react-navigation"; export default function ...
import assert from 'assert'; import lodashStable from 'lodash'; import { empties, stubOne, falsey, args, LARGE_ARRAY_SIZE, square, identity } from './utils.js'; import at from '../at.js'; describe('at', function() { var array = ['a', 'b', 'c'], object = { 'a': [{ 'b': { 'c': 3 } }, 4] }; it('should return t...
const express = require("express") const path = require("path") const app = express(); const server = require("http").createServer(app).listen(3000, '127.0.0.1', () => console.log('servidor rodando')); const io = require("socket.io")(server); app.use(express.static(path.join(__dirname, "public"))); app.set("views", p...
// TypeScript file var TileMap = (function (_super) { __extends(TileMap, _super); function TileMap() { _super.call(this); this.size = 2; this.TextruesSize = 64; // this.width = this.size * this.TextruesSize; // this.height = this.size * this.TextruesSize; this.til...