text
stringlengths
3
1.05M
!function(e){var t="(?:\"(?:\"\"|[^\"])*\"(?!\")|'(?:''|[^'])*'(?!'))",a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,n={pattern:RegExp(t+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},r={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENG...
/** * @fileoverview Entry point for editor * @author NHN FE Development Lab <dl_javascript@nhn.com> */ import $ from 'jquery'; import Editor from '@toast-ui/editor'; $.fn.toastuiEditor = function(...args) { let options, instance; const el = this.get(0); if (el) { options = args[0] || {}; instance =...
require('./test/count-cats.test'); require('./test/carbon-dating.test'); require('./test/dream-team.test'); /* require('./test/extended-repeater.test'); */ require('./test/what-season.test'); /* require('./test/vigenere-cipher.test'); */ require('./test/hanoi-tower.test'); /* require('./test/transform-array.test'); req...
a = 0 b = 0 maiorAluno = 0 menorAluno = 1000 for i in range(1, 11): num = int(input("Digite o número do aluno: ")) altura = int(input("Digite a altura do aluno em centímetros: ")) if (altura > maiorAluno): maiorAluno = altura a = num if (altura < menorAluno): menorAluno = al...
var webpack = require('webpack'); var WebpackDevServer = require('webpack-dev-server'); var config = require('./webpack.config.dev'); //代理服务器 var proxy = [{ path: '/abj/*', //必须得有一个文件地址,如果顶层文件夹名字不同,则用/*代替 target: 'http://localhost:8080', host: 'localhost', secure: false }]; var server = new WebpackDevServer(webpac...
/* Copyright 2012 Mozilla Foundation * * 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...
export default { name: 'ui-slider-item', props: { item: String, height: Number, index: Number, scopedFunc: Function }, data: function data() { return { loaded: true }; }, computed: { styleItemImage: function styleItemImage() { return { height: this.height + '...
function evalAlias(dest, d2) { var result = dest.roll * 5; return result; } var src = { text: "UTD", roll: 23 }; var test = evalAlias(src);
dojo.provide("dojox.data.tests.stores.FlickrRestStore"); dojo.require("dojox.data.FlickrRestStore"); dojo.require("dojo.data.api.Read"); dojox.data.tests.stores.FlickrRestStore.error = function(t, d, errData){ // summary: // The error callback function to be used for all of the tests. d.errback(errData); }; doh....
module.exports={C:{"52":0.01866,"61":0.01244,"65":0.00622,"78":0.08086,"91":0.01244,"92":0.00622,"93":0.05598,"95":0.01866,"96":0.32966,"97":1.72294,"98":3.0478,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57...
import logGamma from '../special/log-gamma' import PreComputed from './_pre-computed' import Distribution from './_distribution' /** * Generator for the [Borel distribution]{@link https://en.wikipedia.org/wiki/Borel_distribution}: * * $$f(k; \mu) = \frac{e^{-\mu k} (\mu k)^{k - 1}}{k!},$$ * * where $\mu \in \[0, ...
# -*- coding: utf-8 -*- ''' The static grains, these are the core, or built in grains. When grains are loaded they are not loaded in the same way that modules are loaded, grain functions are detected and executed, the functions MUST return a dict which will be applied to the main grains dict. This module will always b...
require(`dotenv`).config({ path: `.env`, }) const shouldAnalyseBundle = process.env.ANALYSE_BUNDLE module.exports = { siteMetadata: { siteTitle: `Kanishkar J`, siteAuthor: `Kanishkar J`, siteTitleAlt: `Kanishkar J`, siteHeadline: `Kanishkar J`, siteUrl: `https://kanishkarj.github.io/`, sit...
/* ======================================================================== * Bootstrap: button.js v3.1.0 * http://getbootstrap.com/javascript/#buttons * ======================================================================== * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootst...
const { Server } = require("socket.io"); const { Socket } = require("socket.io"); const User = require("../models/User"); const Game = require("./game"); const { RandomAlphabet, Logger, MongoObjID } = require("../tools/utils"); module.exports = class MatchManager { constructor(/** @type {Server} */ io) { this.io ...
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...
const REG_SPACE = /\s+/g; const REG_OBJ = /^\{(.+?)\}$/; const REG_ARR = /^\[(.+?)\]$/; const REG_UPPERCASE = /([A-Z])/g; import './main.scss'; function isObject (val) { return Object.prototype.toString.call(val) === '[object Object]'; } function transformToKebab (k) { return k.replace(REG_UPPERCASE, '-$1').toLo...
!function(){"use strict";var e,t,n,r,o,a,c,s={},i={};function f(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return s[e].call(n.exports,n,n.exports,f),n.loaded=!0,n.exports}f.m=s,e=[],f.O=function(t,n,r,o){if(!n){var a=1/0;for(u=0;u<e.length;u++){n=e[u][0],r=e[u][1],o=e[u][2];for(...
from glob import iglob import os.path as path from typing import Dict import ruamel.yaml as yaml locales: Dict[str, Dict[str, str]] = {} default = 'en' def format(loc: str, key: str, **kwargs: str) -> str: locale = locales.get(loc, locales[default]) return locale.get(key, locales[default][key]).format(**kwa...
export const mapData = { color: 'get', }
import Vue from "vue"; import App from "./App.vue"; import router from "./router"; import { test } from "@vassily/h5-utils"; import { log } from "@vassily/h5-utils/log"; test(); log("this is log from H5-utils"); Vue.config.productionTip = false; new Vue({ router, render: (h) => h(App), }).$mount("#app");
'use strict'; /** * Let's test Messenger. * We have to make sure that it returns correct messages to Robot. * We take messages from config.js file. */ const config = require('./../app/config'); const Messenger = require('./../app/messenger'); describe('The Messenger', () => { let messenger, x, y, f; let { me...
import React, { Component } from 'react'; class GoogleMap extends Component { componentDidMount() { new google.maps.Map(this.refs.map, { zoom: 12, center: { lat: this.props.lat, lng: this.props.lon } }); } render() { return <div ref="map" />; } } export default Googl...
var should = require('should'), assert = require('assert'), request = require('supertest'), expect = require('expect'), debug = require('debug')('test'), input = require('./testData'), constant = require('../constant'), config = require('../config')(), md5 = require('md5'), models = ...
""" This module contains the Location class. """ # Will Holmgren, University of Arizona, 2014-2016. import datetime import warnings import pandas as pd import pytz from pvlib import solarposition, clearsky, atmosphere, irradiance from pvlib._deprecation import pvlibDeprecationWarning class Location: """ L...
import BoundingSphere from './BoundingSphere.js'; import buildModuleUrl from './buildModuleUrl.js'; import Cartesian2 from './Cartesian2.js'; import Cartesian3 from './Cartesian3.js'; import Cartographic from './Cartographic.js'; import Check from './Check.js'; import defaultValue from './defaultValue.js'; import defin...
import AbstractView from "./AbstractView.js"; export default class extends AbstractView { constructor(){ super(); this.setTitle("Home"); } async getHtml() { return ` <h1>Welcome back, Ankush</h1> <p> This is Home page ...
import { Template } from 'meteor/templating'; import { _ } from 'meteor/erasaur:meteor-lodash'; import { Slugs } from '../../../api/slug/SlugCollection'; import * as RouteNames from '../../../startup/client/router'; import { opportunitySemesters } from '../../utilities/template-helpers'; import { Semesters } from '../...
const templateUrl = require('./geosearch.html'); /** * @module rvGeosearch * @memberof app.ui * @restrict E * @description * * The `rvGeosearch` directive let user enter text for a geolocation search. * */ angular .module('app.ui') .directive('rvGeosearch', rvGeosearch); /** * `rvGeosearch` directive...
import functools from flask_sqlalchemy import BaseQuery, SQLAlchemy from sqlalchemy.orm import object_session from sqlalchemy.pool import NullPool from sqlalchemy_searchable import make_searchable, vectorizer, SearchQueryMixin from redash import settings from redash.utils import json_dumps class RedashSQLAlchemy(SQ...
import asyncio import logging import multiprocessing as mp import os import warnings from pathlib import Path from tempfile import TemporaryDirectory os.environ["PYPPETEER_CHROMIUM_REVISION"] = "782078" from .http.proxy_launcher import ProxyLauncher from .pool import scrape_resources_pool async def scrape_resource...
import React, { useState, useEffect, useContext } from "react"; import { useShop } from "./shop"; let TokenContext; let { Provider } = (TokenContext = React.createContext()) export const useToken = () => React.useContext(TokenContext); const TokenProvider = ({index, children}) => { const { contract: shop, state...
import {Alert} from 'react-native'; import {BackAndroid} from 'react-native'; import {setJSExceptionHandler} from 'react-native-exception-handler'; const reporter = (error) => { // Logic for reporting to devs // Example : Log issues to github issues using github apis. console.log(error); // sample }; const erro...
(function (root, factory) { if ( typeof exports === 'object' && typeof module === 'object' ) module.exports = factory(); else if ( typeof define === 'function' && define.amd ) define('Coordinator', [], factory); else if ( typeof exports === 'object' ) exports['Coordinator'] = factory(); ...
// https://github.com/christianalfoni/webpack-example var webpack = require('webpack'); var path = require('path'); var bower_dir = path.join(__dirname, 'bower_components'); var node_modules_dir = path.join(__dirname, 'node_modules'); var config = { addVendor: function (name, path) { this.resolve.alias...
import matplotlib from matplotlib import pyplot import matplotlib.colors from matplotlib.colors import ColorConverter from matplotlib.font_manager import FontProperties from matplotlib.patches import Rectangle from matplotlib.pyplot import (clf, draw, figure, gca, gcf, grid,...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
'use strict' const Model = use('Model') class User extends Model { accesses () { return this.hasMany('App/Models/Access') } } module.exports = User
// @flow type Validator = (value: any) => void | string; export const isRequired: Validator = value => (value && `${value}`.length > 0 ? undefined : 'Value is required'); export const isPositiveInt: Validator = value => (value && /^[1-9][0-9]*$/.test(value) ? undefined : 'Value has to be a positive integer'); export co...
import React from 'react' import Layout from 'components/App/Layout' import Navbar from 'components/App/Navbar' import PageBanner from 'components/Common/PageBanner' import Footer from 'components/App/Footer' import PlayersCard from 'components/Players/PlayersCard' const PlayersPage = () => { return ( <Layout t...
/** * @class Oskari.sample.bundle.mysecondbundle.ModuleHelloWorldBundleInstance * * This bundle demonstrates how bundle can react to events by * registering itself to sandbox as a module. * * Add this to startupsequence to get this bundle started { bundlename : 'mysecondbundle', bundleinstance...
import posixpath from random import randint from tests.common.utils import randstring from seahub.test_utils import BaseTestCase from seahub.utils import normalize_dir_path class NormalizeDirPathTest(BaseTestCase): def test_normalize_dir_path(self): slash = '/' folder_1 = randstring(3) f...
/*! UIkit 2.11.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ !function(t){var e;jQuery&&jQuery.UIkit&&(e=t(jQuery,jQuery.UIkit)),"function"==typeof define&&define.amd&&define("uikit-autocomplete",["uikit"],function(){return e||t(jQuery,jQuery.UIkit)})}(function(t,e){var i;return e.component("autocomp...
from os import remove import shlex from os.path import isfile, join, split, splitext from prody.tests import TestCase, skipIf, skipUnless from numpy.testing import * from prody.tests.datafiles import TEMPDIR, pathDatafile from prody.apps import prody_parser from prody.tests import MATPLOTLIB, NOPRODYCMD, WINDOWS ...
import formsetRowSnippet from "./snippets/tabular_formset_row.html"; export function loadFormsetRow( formsetPrefix, formIndex, objectId, objectName, objectChangeUrl, objectRepr, parentObjectName, parentObjectId ) { let template = formsetRowSnippet; const variablesMapping = { formsetPrefix, ...
module.exports = [ "Zhou ","Ji ","Yi ","Hui ","Hui ","Zui ","Cheng ","Yin ","Wei ","Hou ","Jian ","Yang ","Lie ","Si ","Ji ","Er ","Xing ","Fu ","Sa ","Suo ","Zhi ","Yin ","Wu ","Xi ","Kao ","Zhu ","Jiang ","Luo ","[?] ","An ","Dong ","Yi ","Mou ","Lei ","Yi ","Mi ","Quan ","Jin ","Mo ","Wei ","Xiao ","Xie ","Hong ","X...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Logo extends Component { render() { const size = { height: this.props.size ? this.props.size : 105, weight: this.props.size ? this.props.size : 105 } return ( <div className="logo-main"> ...
export const bytesToSize = (bytes) => { const sizes = ['B', 'KB', 'MB', 'GB', 'TB']; if (bytes == 0) return `0 ${sizes[0]}`; const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024))); return Math.round((bytes / Math.pow(1024, i)) * 100) / 100 + ' ' + sizes[i]; } export const formatNumber = (numb...
module.exports = function(config) { var testWebpackConfig = require('./webpack.test.js'); var configuration = { basePath: '', frameworks: ['jasmine'], // list of files to exclude exclude: [], /* * list of files / patterns to load in the browser * ...
/*global describe, it */ var partty = require('../'); var assert = require('assert'); var tests = [ { name: 'should be correctly setup', command: [ 'children/void.js' ], options: { cwd: __dirname }, test: function() { assert.equal(this.file, process.execPath); } }, { name: 'should su...
import pytest from django.contrib.auth.models import AnonymousUser from api.tests.helper.node_helper import assert_node_field, assert_node_id @pytest.mark.django_db def test_query(query_job_requirements, job_requirement_objects): data, errors = query_job_requirements(AnonymousUser()) assert errors is None ...
exports.TJ = require('./lib/core'); exports.BoolQueryType = require('./lib/const/boolQueryType'); exports.ColumnReturnType = require('./lib/const/columnReturnType'); exports.Direction = require('./lib/const/direction'); exports.FieldType = require('./lib/const/fieldType'); exports.INF = require('./lib/const/inf'); exp...
const DEFAULT_SECRET = require('crypto').randomBytes(16).toString('hex') import URL from 'url' const name = require('../package.json').name.split('.')[0] const config = { name, env: process.env.NODE_ENV || 'development', version: require('../package').version, origins: process.env.ORIGINS || '*', sessionAg...
module.exports = function(RED) { var ui = require('../ui')(RED); function TemplateNode(config) { RED.nodes.createNode(this, config); var node = this; var group = RED.nodes.getNode(config.group); if (!group && config.templateScope !== 'global') { return; } var tab = null...
'use strict'; var util = require('../../../util/index'); var DimensionError = require('../../../error/DimensionError'); var string = util.string, isString = string.isString; function factory (type, config, load, typed) { var equalScalar = load(require('../../../function/relational/equalScalar')); var Spar...
'use strict'; var util = require('util'), path = require('path'), yeoman = require('yeoman-generator'), childProcess = require('child_process'), chalk = require('chalk'), _s = require('underscore.string'), scriptBase = require('../script-base'); var exec = childProcess.exec; var spawn = childProcess.spawn; var Opensh...
!function (e, t, n) { "use strict"; !function o(e, t, n) { function a(s, l) { if (!t[s]) { if (!e[s]) { var i = "function" == typeof require && require; if (!l && i) return i(s, !0); if (r) return r(s, !0); var u = new Error("Cannot find module '" + s + "'"); throw u.code = "MODULE_NOT_FOUND", u } var c = t[s] = { expo...
import React from 'react'; import ListActivityEvent from './list-activity-event'; import ListActivityError from './list-activity-error'; export default class ContainerActivity extends React.Component { constructor(props) { super(props); } render() { return ( <> <nav> <div classN...
#!/usr/bin/python # -*- coding: utf-8 -*- import wx import wx.lib.ogl as ogl class Tooltip(ogl.DrawnShape): def __init__(self): ogl.DrawnShape.__init__(self) self.SetDrawnPen(wx.BLACK_PEN) self.SetDrawnBrush(wx.WHITE_BRUSH) self.DrawPolygon([(-100, -12), (100,-12),(100,12),(80,12),(75,30),(70,12),(-100,12...
import React from 'react'; import _ from 'underscore'; import PropTypes from 'prop-types'; import {createDrawerNavigator} from '@react-navigation/drawer'; import styles, {getNavigationDrawerStyle, getNavigationDrawerType} from '../../../styles/styles'; import withWindowDimensions, {windowDimensionsPropTypes} from '../....
module.exports = { productionSourceMap: false, chainWebpack(config) { const cdn = { css: [ '//fonts.googleapis.com/css?family=Noto+Serif+SC', '//cdn.jsdelivr.net/npm/lightgallery.js@1.1.2/dist/css/lightgallery.min.css' ], js: [ '//cdn.jsdelivr.net/npm/lightgallery.js@1....
const presets = [ [ '@babel/preset-env' ] ]; const plugins = [ '@babel/plugin-transform-runtime' ]; module.exports = {presets, plugins};
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
/** * This file is part of the Unit.js testing framework. * * (c) Nicolas Tallefourtane <dev@nicolab.net> * * For the full copyright and license information, please view * the LICENSE file distributed with this source code * or visit http://unitjs.com. * * @author Nicolas Tallefourtane <dev@nicolab.net> */ '...
/** * @namespace cam * @description Common camera module * @author Andrew D.Laptev <a.d.laptev@gmail.com> * @licence MIT */ const http = require('http') , crypto = require('crypto') , util = require('util') , events = require('events') , url = require('url') , linerase = require('./utils').linerase , parseS...
from pypkgs_sb import __version__ from pypkgs_sb import pypkgs_sb import pandas as pd def test_version(): assert __version__ == '0.1.0' def test_catbind(): a = pd.Categorical(["character", "hits", "your", "eyeballs"]) b = pd.Categorical(["but", "integer", "where it", "counts"]) assert ((pypkgs_sb....
import BLOG from '@/blog.config' // import Vercel from '@/components/Vercel' import Switcher from '@/lib/redux/switcher/Switcher' // 切换暗黑模式 const Footer = ({ fullWidth }) => { const d = new Date() const y = d.getFullYear() const from = +BLOG.since return ( <div className={`mt-6 shrink-0 m-auto w-full...
define("arale/cookie/1.0.2/cookie-debug", [], function(require, exports) { // Cookie // ------------- // Thanks to: // - http://www.nczonline.net/blog/2009/05/05/http-cookies-explained/ // - http://developer.yahoo.com/yui/3/cookie/ var Cookie = exports; var decode = decodeURIComponent;...
import os os.sys.path.append(r"C:\Users\Administrator\Desktop\full-stack-fastapi-postgresql\{{cookiecutter.project_slug}}\backend\app") from .crud_item import item from .crud_user import user # For a new basic set of CRUD operations you could just do # from .base import CRUDBase # from app.models.item import Item # ...
from django.shortcuts import render # Create your views here. import os import datetime from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.conf import settings from django import forms from django.http import HttpResponse, HttpResponseRedirect, HttpResponseFor...
const {Socket} = require('net'); const tls = require('tls'); const Promise = require('bluebird'); const Connector = require('./base'); class Active extends Connector { constructor(connection) { super(connection); this.type = 'active'; } waitForConnection({timeout = 5000, delay = 250} = {}) { const c...
const data = require('../data/zoo_data'); function getAnimalsOlderThan(animal, age) { return data.species.some( (nameAnimal) => nameAnimal.name === animal && nameAnimal.residents.every((animalAge) => animalAge.age > age), ); } module.exports = getAnimalsOlderThan;
export { default as MyButton } from './src/index.vue' export { default } from './src/index.vue'
ajax_url='' //active $('#lesson').addClass('active') //lessons datatable var table=$('#lessons_table').DataTable({ // "processing": true, "serverSide": true, "bSort" : true, "ajax": { url: ajax_url }, // orderCellsTop: true, fixedHeader: true, "columns": [ {data:"checkbo...
import { useMemo, useRef, useContext, useCallback } from 'react' import { MergingConfigProvider, Source, ConfigContext, Pinnable, styles } from '../../src' import { MultiLineChartContext, KEYBOARD, KEY_DOWN, MOUSE_MOVE, COPY } from './multiLineChartReducer' import CurveTipWrapper from './CurveTipWra...
var rights = require('../lib/rights'); exports.stringToInt = function(test) { test.equal(rights.toInt('--xrwx-wx'), 173); test.equal(rights.toInt('-rwxr-xrw-'), 756); test.done(); } exports.stringOctalToInt = function(test) { test.equal(rights.toInt('0744'), 744); test.done(); } exports.intToInt = function(...
const path = require("path"); // const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const { BundleAnalyzerPlugin } = require('webpack-bundle-analyze...
# Copyright (c) 2016-2017 Adobe Systems Incorporated. All rights reserved. # # 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...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { r...
import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Ionicons.ttf'; import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Ionicons.json'; export default createIconSet(glyphMap, 'ionicons', font); //# sourceMappingURL=Ionicons.js.map
import warnings import itertools from tofnet.models.blocks import create_cba, get_all_blocks, SEModule from tofnet.models.model_wrapper import ModelWrapper from tofnet.models.unet import SubIdentity, ConvBlock, UpSampling import numpy as np import torch import torch.nn as nn import torch.nn.functional as F class Fu...
# Clean up these imports. I don't think half of them need to run. import httplib2 import logging import pprint import webapp2 import os import jinja2 from apiclient.discovery import build from google.appengine.ext import webapp from oauth2client.file import Storage from oauth2client.appengine import OAut...
#!/usr/bin/env python # # Copyright 2014 Matthew Wall # See the file LICENSE.txt for your rights. # Modified by Yann Chemin for IWMI MWS station # March 2015 Public Domain if previous copyright allows. # Building Manual for the Mobile Weather Station is here: # http://www.iwmi.cgiar.org/resources/mobile-weather-station...
// The MIT License (MIT) // // Copyright (c) 2016-2021 Camptocamp SA // // 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 // u...
import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) /* Layout */ import Layout from '@/layout' /** * Note: sub-menu only appear when route children.length >= 1 * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html * * hidden: true ...
define("data/lang", [], function() { var _dict = { test : 'with space before colon', 'singlequote': 'some dummy translation', 'singlequote with whitespace': 'some dummy translation', "doublequote": 'some dummy translation', "doublequote with whitespace": 'some dummy translati...
import { Animation, ChildProperty, Collection, Complex, Component, Event, EventHandler, KeyboardEvents, NotifyPropertyChanges, Property, SanitizeHtmlHelper, addClass, attributes, classList, closest, createElement, deleteObject, detach, extend, getInstance, getUniqueID, getValue, isBlazor, isNullOrUndefined, remove, rem...
# coding: utf-8 """ Xero Payroll UK This is the Xero Payroll API for orgs in the UK region. # noqa: E501 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel class EmployeeOpeningBalancesObject(BaseModel): ""...
import { Grid, Icon } from 'semantic-ui-react'; import React from 'react'; import shortid from 'shortid'; import { ButtonHighlights, CardHighlights } from './generic'; import { bold, c, color, colors, emOneTwo, emTwo } from './styles'; import { educationType } from '../../person'; const Education = ({ education }) =>...
import { useContext, useEffect, useState } from 'react' import notificationContext from '@context/notificationContext' import { ipcRenderer } from 'electron' export const usePatients = () => { const { setNotification } = useContext(notificationContext) const [ patients, setPatients ] = useState([]) const [ loading,...
// @flow weak import { commitMutation, graphql } from 'react-relay' const mutation = graphql` mutation ToDoUpdateRenameMutation($input: ToDoUpdateRenameInput!) { ToDoUpdateRename(input: $input) { ToDo { id ToDo_Text } } } ` function commit( environment, aToDo, ToDo_Text ) { ...
import React, { Component } from 'react'; class GoogleMap extends Component { componentDidMount() { new google.maps.Map(this.refs.map, { zoom: 12, center: { lat: this.props.lat, lng: this.props.lon } }); } render() { ...
"use strict"; var ajaxify = ajaxify || {}; $(document).ready(function() { /*global app, templates, socket, config, RELATIVE_PATH*/ var location = document.location || window.location; var rootUrl = location.protocol + '//' + (location.hostname || location.host) + (location.port ? ':' + location.port : ''); var ...
//创建一个音乐播放器的类 单例模式 class Player { constructor() { //类的构造函数 //如果类已经有实例了,就返回这个实例 if (Player.instance) return Player.instance; //如果没有实例化,就去构造一个实例 return this.getInstance(...arguments); } //构建实例 getInstance() { let instance = new PlayerCreator(...arguments...
import React from 'react'; import { Icon } from '@iconify/react'; import TextField from '@mui/material/TextField'; import plusFill from '@iconify/icons-eva/plus-fill'; import { Link as RouterLink } from 'react-router-dom'; // material import { Grid, Button, Container, Stack, Typography } from '@mui/material'; // compon...
from asm.mediagallery.interfaces import IMediaGalleryAdditionalInfo import Image import ImageFile import StringIO import ZODB.blob import asm.cms.page import asm.cms.utils import asm.mediagallery.externalasset import os.path import re import sys import transaction import urllib import zope.app.component.hooks # Workar...
import React, { Component } from 'react' import axios from 'axios'; import { Table, Spinner } from 'react-bootstrap'; import { useTable } from 'react-table' function ReactTable({ columns, data }) { // Use the state and functions returned from useTable to build your UI const { getTableProps, headerGroups, rows, pr...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ var NodeTreeSplit = /** @class */ (function () { function NodeTreeSplit(root, targetElement, // text node offset) { this.root = root; thi...
# coding: utf-8 # PYTHON IMPORTS import os import re import sys # DJANGO IMPORTS from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.utils.six.moves import input # FILEBROWSER IMPORTS from filebrowser.settings import EXCLUDE, EXTENSIONS class Command(BaseC...
const mongoose = require('mongoose') const schema = mongoose.Schema({ username:{type:String}, password:{type:String} }) module.exports = mongoose.model('User',schema)