text
stringlengths
3
1.05M
/** * */ MBL.Stops = Class.create({ /* * */ initialize: function(config) { this.config = Object.extend({ inside: window.document.body, }, config || {}); this.render(); }, /** * */ render: function() { var h = this; h.material = new E...
import config from '../../utils/config.js' var Api = require('../../utils/api.js'); var util = require('../../utils/util.js'); var auth = require('../../utils/auth.js'); var WxParse = require('../../wxParse/wxParse.js'); var wxApi = require('../../utils/wxApi.js') var wxRequest = require('../../utils/wxRequest.js'); v...
// jscs:disable maximumLineLength 'use strict';var Node=require('../node/basic-node');var NodeType=require('../node/node-types');var TokenType=require('../token-types');var tokens=undefined;var tokensLength=undefined;var pos=undefined;var contexts={'arguments':function(){return checkArguments(pos) && getArguments();},'...
(function () { 'use strict'; // Authentication service for user variables angular .module('users.services') .factory('Authentication', Authentication); Authentication.$inject = ['$window']; function Authentication($window) { var auth = { user: $window.user }; return auth; } ...
import React from "react"; import {connect} from "react-redux"; import {toggle} from "./reducer"; // const modify = connect( state=> ({ // tasks: state.tasks // }), // // ) class TaskList extends React.Component { static propTypes = { text: React.PropTypes.string.isRequired, tasks: React.PropT...
from django import forms from .models import Problem class ProblemForm(forms.ModelForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['file'].required = False class Meta: model = Problem fields = ('title', 'description', 'file') ...
/* eslint-disable */ /** * AnchorJS - v4.1.0 - 2017-09-20 * https://github.com/bryanbraun/anchorjs * Copyright (c) 2017 Bryan Braun; Licensed MIT */ !function(A,e){"use strict";"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():(A.AnchorJS=e(),A.anchors=new...
import React from "react"; import { Card, Icon } from "@mui/material"; import VuiBox from "components/VuiBox"; import VuiTypography from "components/VuiTypography"; const WelcomeMark = () => { return ( <Card sx={{ height: "340px" }}> <VuiBox height="100%" display="flex" flexDirection="column" justifyConte...
'use strict'; import { getInput, filterMap, getLocations, isTree } from './util.js'; function main() { const stepsH = 3; const stepsV = 1; console.log( getLocations(filterMap(getInput(), stepsV), stepsH).filter(isTree).length ); } main();
//proceso depreacdo function displayText() { try { let xhttp = new XMLHttpRequest(); let fileName = aux(document.getElementById("readFile-btn").value); xhttp.onreadystatechange = function () { console.log(fileName); if (this.readyState == 4 && this.status == 200) { window - a...
"use strict"; /** * @see {@link https://stackoverflow.com/questions/8758340/regex-to-detect-locales} */ Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeLocale = void 0; function normalizeLocale(locale) { var _a; const match = /^(?<lang>[A-Za-z]{2,4})([-_](?<variant>[A-Za-z]{4}|...
define({ "common": { "apply": "Прилагане", "ok": "Ок", "cancel": "Отказ", "yes": "Да", "no": "Не", "next": "Напред", "previous": "Предишна", "back": "Назад", "selected": "избрани", "selectAll": "Избиране на всички", "name": "Име", "usage": "Употреба", "settings": "Н...
importScripts('/VAADIN/static/server/workbox/workbox-sw.js'); importScripts('https://www.gstatic.com/firebasejs/8.3.1/firebase-app.js'); importScripts('https://www.gstatic.com/firebasejs/8.3.1/firebase-messaging.js'); /* csácsaá*/ console.log('szeva'); var app = firebase.initializeApp({ apiKey: "AIzaSyD_ClZV4paPW-Dk...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; // Resources import 'font-awesome/css/font-awesome.min.css'; import { Alert, Button, Form, FormGroup, Label, Input } from 'reactstrap'; import '../registrationStyle.css'; import logo from '../img/logo.jpg'; //import { auth } from '../....
Ext.regModel('namevalue', { fields: [ {name: 'id' } , {name: 'name' } ] }); Ext.regModel('namevalue1', { fields: [ {name: 'id' } , {name: 'name' }, {name: 'other' } ] }); Ext.regModel('groupByDivision',{ fields : [ {name : 'division'}, {name : 'allBudget...
/** * Painter绘图模块 * @module zrender/Painter * @author Kener (@Kener-林峰, kener.linfeng@gmail.com) * errorrik (errorrik@gmail.com) * pissang (https://www.github.com/pissang) */ define( function (require) { 'use strict'; var config = require('./config'); var util = requi...
(function() { var EME_spec_url = "https://www.w3.org/TR/encrypted-media/"; var HTML_spec_url = "https://www.w3.org/TR/html51/semantics-embedded-content.html"; var DOM_spec_url = "https://www.w3.org/TR/dom/"; var IDL_spec_url = "https://www.w3.org/TR/WebIDL-1/"; function url_helper(doc, url) { if (url[0] ...
class Solution: def findDuplicate(self, paths: List[str]) -> List[List[str]]: # build a map from content to list of paths d = collections.defaultdict(list) for path in paths: parent, *files = path.split() for item in files: idx = item.rfind('(') ...
import express from 'express'; import base from 'base'; import httpServer from './httpServer'; import applyStaticsPaths from './statics'; import applyServerRouting from './routing'; import applyEnvMiddleWare from './middleware'; const app = express(); const launchServer = () => { applyEnvMiddleWare(app) .then(...
// Columns for anomalies table export default [ { propertyName: 'start', template: 'custom/anomalies-table/start-duration', title: 'Start/Duration', className: 'anomalies-table__column anomalies-table__column--med-width', disableFiltering: true }, { propertyName: 'dimensions', template...
var a01102 = [ [ "test_underline", "a01102.html#a1b548029a83d9ac05ecb47cb177c69fb", null ], [ "textord_underline_threshold", "a01102.html#a1cb0deabd2c5a114d01553973c68301c", null ] ];
var express = require("express"); var router = express.Router(); var objectId = require("mongodb").ObjectID; function connect(callback) { var MongoClient = require("mongodb").MongoClient; var dbURI = process.env.MONGODB_URI || require("../config/keys.js") || "mongodb://localhost:27017"; var client = new Mon...
import React from "react"; import Grid from "@skatteetaten/frontend-components/Grid"; import { graphql } from "gatsby"; import { renderAst } from '../components/renderAst'; import TableOfContents from "starter/components/TableOfContents"; import styles from "./documentation-template.module.css"; const mainGrid = { ...
'use strict'; const getChannelURL = require('ember-source-channel-url'); const bootstrapVersion = process.env.BOOTSTRAPVERSION === '3' ? '^3.4.1' : '^4.3.1'; module.exports = function() { return Promise.all([ getChannelURL('release'), getChannelURL('beta'), getChannelURL('canary') ]).then((urls) => { ...
from rest_framework import viewsets from home.models import DanOne from .serializers import DanOneSerializer from rest_framework import authentication from rest_framework.authtoken.serializers import AuthTokenSerializer from rest_framework.viewsets import ModelViewSet, ViewSet from rest_framework.authtoken.models impor...
const express = require("express"); const router = express.Router(); const CustomerController = require("../controllers/customers.controller"); router.get("/", CustomerController.getCustomers); router.get("/:id/order", CustomerController.createOrder); router.get("/:id", CustomerController.getOneCustomer); module.e...
describe("", function() { var rootEl; beforeEach(function() { rootEl = browser.rootEl; browser.get("build/docs/examples/example-example88/index-jquery.html"); }); it('should check ng-non-bindable', function() { expect(element(by.binding('1 + 2')).getText()).toContain('3'); expect(element.all(by.css...
Game.Screen = {}; // Define our initial start screen Game.Screen.startScreen = { enter: function() { console.log("Entered start screen."); }, exit: function() { console.log("Exited start screen."); }, render: function(display) { // Render our prompt to the screen display.drawText(1, 1, "%c{ye...
var classmarlincdm_1_1_marlin_cdm_interface = [ [ "AddKey", "classmarlincdm_1_1_marlin_cdm_interface.html#aef50bbd1491a65c46e440cd7dc641d1c", null ], [ "AddKeyReleaseCommit", "classmarlincdm_1_1_marlin_cdm_interface.html#a4768f94d985e25d0d7047e29850c633f", null ], [ "CancelKeyRequest", "classmarlincdm_1_1_m...
// directive to data communication with bootstrap selectors (function (window, angular, undefined) { 'use strict'; angular .module('angular-bootstrap-select', []) .directive('bootstrapSelect', bootstrapSelect); bootstrapSelect.$inject = []; function bootstrapSelect() { return ...
from Utils.recursiveDeleteArticles import recursiveDeleteArticles fromt Utils.countFilesInSubDirs import txtFileCountInSubdirectories txtFileCountInSubdirectories() recursiveDeleteArticles(600) txtFileCountInSubdirectories()
import { Random, browserCrypto } from "random-js"; const random = new Random(browserCrypto); export default random; export const cinteger = (min, max) => { return Math.round(random.real(min, max)); };
from . import number_patterns as npa # NUMBERS ones_zip = [(npa.einn, ' einn', "1"), (npa.einum, ' einum', "1"), (npa.eins, ' eins', "1"), (npa.ein, ' ein', "1"), (npa.eina, ' eina', "1"), (npa.einni, ' einni', "1"), (npa.einnar, ' einnar', "1"), (npa.eitt, ' eitt', "1"), (npa.einu, ' einu', "1"...
"""Repositories module.""" from contextlib import AbstractContextManager from typing import Callable, Iterator import datetime from models import UserOrm class Repository(): def __init__(self, session_factory: Callable) -> None: self.session_factory = session_factory class UserRepository(Repository): ...
from django.shortcuts import render def landing_page(request): return render(request, 'templates/landing_page.html')
//const connect = require("connect"); const query = require("qs-middleware"); const ApiBuilder = require("./lib/ApiBuilder"); const { jwtAuthentication } = require("./lib/Authentication"); const DB = require("./lib/DB"); const bodyParser = require('body-parser'); const express = require('express'); const path = require...
var assert = require('assert'); var token = require('../constants'); var codec = require('../codec'); var record = require('../record_epicenter'); describe('Test suite for record module', function() { describe('ToTestCase', function() { it('termination_record_toASTM', function() { v...
import React, { Component } from 'react'; class Header extends Component { render() { if(this.props.data){ var name = this.props.data.name; var occupation= this.props.data.occupation; var description= this.props.data.description; var city= this.props.data.address.city; var networks...
# Copyright (c) 2017 VMware Inc # # 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...
module.exports = { root: true, extends: '../.eslintrc.js', rules: { 'no-useless-escape': 'off', // TODO: turn this back on when we figure out switching from window.Ember to imports 'ember/new-module-imports': 'off' } };
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _createIcon = require('./util/createIcon'); var _createIcon2 = _interopRequireDefault(_createIcon); function _interopRequireDefault(obj) { return obj && o...
{ class DedicatedServerOVHTasks { constructor( $http, constants, ) { this.$http = $http; this.constants = constants; } fetchingTasks() { return this.$http .get(`${this.constants.aapiRootPath}working-status/dedicated_server`, { params: { aff...
""" useful_rdkit_utils Some useful RDKit functions """ import sys from setuptools import setup, find_packages import versioneer short_description = "Some useful RDKit functions".split("\n")[0] # from https://github.com/pytest-dev/pytest-runner#conditional-requirement needs_pytest = {'pytest', 'test', 'ptr'}.intersect...
import Main from '@/components/main'; // 基础设置 export const employee = [ { path: '/employee', component: Main, name: 'Employee', meta: { title: '人员管理', icon: 'icon iconfont iconrenyuanguanli' }, children: [ // 角色管理页面路由 { path: '/employee/role', name: 'Ro...
exports.model = (id, element) => ({ id, element, choiceMode: 'checkbox', choicePrefix: 'numbers', choices: [ { correct: true, value: 'sweden', label: 'Sweden', feedback: { type: 'none', value: '' } }, { value: 'iceland', label: 'Iceland', ...
import React, { Component, Fragment } from 'react'; import { connect } from 'dva'; import { Form, Button, Modal, Input, DatePicker, Row, Col } from 'antd'; import { editGutter, } from '@/utils/constans'; import router from 'umi/router'; import moment from 'moment'; import { formatMessage, formatDate } from 'umi-plugin-...
""" T: O(N) S: O(N) The result is bounded by two variables. Firstly, the kid can not get more than half of all candy. Secondly, they can not get more kinds of candies that are present. The minimum of those constraints is the answer. """ from typing import List class Solution: def distributeCandies(self, candie...
"use strict"; /** * @license * Copyright 2018 Palantir Technologies, Inc. * * 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 * * Unle...
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
import React, {useState, useEffect} from 'react' import ReactMapGL, {Marker, FlyToInterpolator, NavigationControl, LinearInterpolator} from 'react-map-gl' import {Form, Button, Modal, OverlayTrigger, Tooltip, Dropdown, DropdownButton} from 'react-bootstrap' import MarkerImg from './markerImgAdvisor' import Team from '....
const util = require('util'); const EventEmitter = require('events').EventEmitter; const httpMonitor = require('./HttpMonitor'); const tcpMonitor = require('./TcpMonitor'); const utils = require('./Utlis'); function Monitor(opts, state) { EventEmitter.call(this); // Setting up constructor this.id = null; this...
define([ 'materialnote/base/core/key' ], function (key) { var ImageDialog = function (context) { var self = this; var ui = $.materialnote.ui; var $editor = context.layoutInfo.editor; var options = context.options; var lang = options.langInfo; var data; t...
import { html, LitElement, property } from 'lit-element'; import { routerSubject$ } from '../../../../settings/util/page-router'; import '../../../components/footer'; import '../../../components/header'; import '../../../components/sidebar'; import './gift/add'; import './gift/edit'; import { getGiftcard, deletegiftCar...
import * as tf from '../index'; import { describeWithFlags } from '../jasmine_util'; import { CPU_ENVS } from '../test_util'; import { arrayBufferToBase64String, base64StringToArrayBuffer } from './io_utils'; import { browserLocalStorage, BrowserLocalStorage, BrowserLocalStorageManager, localStorageRouter, purgeLocalSt...
const config = require('../../jest.config.js') module.exports = { ...config, testPathIgnorePatterns: [ '<rootDir>/test/utils/distTags.ts', '<rootDir>/test/utils/index.ts', '<rootDir>/test/utils/testDefaults.ts', '<rootDir>/test/fixtures/.+', ], }
import React from 'react'; import { Link, graphql } from 'gatsby'; import styled from 'styled-components'; import Layout from '../components/layout/Layout'; import SEO from '../components/seo'; import SideMenu from '../components/layout/SideMenu'; import { DisqusCommentCount } from '../components/Disqus'; const Grid ...
import React, { useEffect, useState, useRef, useCallback } from "react"; import PropTypes from "prop-types"; import { useEditable } from "use-editable"; import Highlight, { Prism } from "prism-react-renderer"; import { theme as liveTheme } from "../../constants/theme"; const CodeEditor = (props) => { const editorRef...
/** * Dark blue theme for Highcharts JS * @author Torstein Honsi */ Highcharts.theme = { colors: ["#DDDF0D", "#55BF3B", "#DF5353", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee", "#55BF3B", "#DF5353", "#7798BF", "#aaeeee"], chart: { backgroundColor: { linearGradient: [0, 0, 250, 500]...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createIcon = require('../createIcon'); var _createIcon2 = _interopRequireDefault(_createIcon); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var HeadphonesIcon = (0, _createIcon2.de...
from random import gauss from math import cos, sin, radians, sqrt from models.asteroid.Asteroid import Asteroid from models.asteroid.SmallAsteroid import SmallAsteroid from assets.sfx.Sounds import Sounds class MediumAsteroid(Asteroid): MEDIUM_ASTEROID_MAX_SPEED = 2.5 def __init__(self, screen, x=None, y=Non...
/** * Created by JetBrains PhpStorm. * User: dongyancen * Date: 12-4-12 * Time: 下午4:46 * To change this template use File | Settings | File Templates. */ module( 'ui.toolbar' ); test( 'toolbar显示', function() { var editor = new baidu.editor.ui.Editor(); var toolbar =[ 'link','unlink','|']; baidu.editor.ui['l...
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Copyright (c) 2017 The Alphacon Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Utilities for manipulating blocks and transactions.""...
webpackHotUpdate("static/development/pages/index.js",{ /***/ "./components/Intro.js": /*!*****************************!*\ !*** ./components/Intro.js ***! \*****************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_req...
import fs from 'fs-extra' import path from 'path' import cheerio from 'cheerio' import Promise from 'bluebird' import _ from 'lodash' import { spawn as spawnNative } from 'child_process' const remove = Promise.promisify(fs.remove) const gatsbyCli = path.resolve('..', '..', 'lib', 'bin', 'cli.js') const babel = path.res...
const should = require('should'), PluginOAuth = require('../lib'), sinon = require('sinon'); describe('#getById', () => { let pluginOauth, pluginContext = require('./mock/pluginContext.mock.js'); beforeEach(() => { sinon.restore(); pluginOauth = new PluginOAuth(); pluginOauth.getProvider...
var classblfwk_1_1_glob_matcher = [ [ "GlobMatcher", "classblfwk_1_1_glob_matcher.html#a2b79bd9a72c831090e338970f7f4661b", null ], [ "globMatch", "classblfwk_1_1_glob_matcher.html#acee3e2a63d6ddf3eebc02c9136c50743", null ], [ "match", "classblfwk_1_1_glob_matcher.html#a5c2c9b8d4514b85ddea0267246b59ceb", nul...
/** * Copyright 2015 Telerik AD * * 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 grecaptcha = {}; grecaptcha.render = function() {}; grecaptcha.reset = function() {};
# # 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 # to you under the Apache License, Version 2.0 (the # "License"); you may not...
from os.path import abspath, dirname from os.path import join as pjoin import h5py import numpy as np import pytest from cfelpyutils.crystfel_utils import load_crystfel_geometry from matplotlib.axes import Axes from testpath import assert_isfile from extra_geom import LPD_1MGeometry from extra_geom.detectors import i...
exports.onCreateWebpackConfig = ({ actions }) => { actions.setWebpackConfig({ module: { rules: [ { test: /\.md$/, use: 'raw-loader' }, ], }, }) } const path = require("path") exports.createPages = ({ actions, graphql }) => { const { createPage } = actions ...
export { default } from './intro-section-component';
module.exports = require('./').plural_IT
// Carousel Auto-Cycle $(document).ready(function() { $('.carousel').carousel({ interval: 1000 }) });
/* global angular */ (function() { var app = angular.module('controllers', ['services']); app.controller('mainController', function($scope, searchService) { $scope.initialize = function() {}; }); app.controller('searchController', function($scope, $timeout, searchService) { // Private var searchD...
# -*- coding: utf-8 -*- from ....Classes.MeshMat import MeshMat from ....Classes.NodeMat import NodeMat from ....Classes.CellMat import CellMat from ....Classes.Interpolation import Interpolation from ....Classes.FPGNSeg import FPGNSeg from ....Classes.FPGNTri import FPGNTri from ....Classes.ScalarProductL2 import Sca...
const express = require("express"); const router = express.Router(); const multer = require("multer"); const productController = require("../controllers/ProductController"); const productSchema = require("../models/productModal"); const storage = multer.memoryStorage({ destination: function (req, file, callBack) { ...
/** * The MAC-48 address is six groups of two hexadecimal digits (0 to 9 or A to F), * separated by hyphens. * * Your task is to check by given string inputString * whether it's a MAC-48 address or not. * * @param {Number} inputString * @return {Number} * * @example * For 00-1B-63-84-45-E6, the output should...
import torch from collections import OrderedDict from torch.optim import Optimizer from torch.nn import Module from typing import Dict, List, Callable, Union from few_shot.core import create_nshot_task_label from few_shot.losses import IdentityTransformLoss from few_shot.stn import STNv0 stnidentityloss = IdentityTra...
/** @module GraphDatabase */ 'use strict'; require('file-loader?name=[name].[ext]!../node_modules/neo4j-driver/lib/browser/neo4j-web.min.js'); import { Graph, Node, Link } from './models/Graph.js'; var _ = require('lodash'); export class GraphDatabaseSchema { constructor(schema) { this._schema = schema } /** ...
window._ = require('lodash'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ // try { // window.$ = window.jQuery = require('jquery'...
"use strict"; /** * Copyright 2018, OpenCensus 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 appl...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _ = require("lodash"); var assert = require("assert"); var bignumber_js_1 = require("bignumber.js"); var utils = require("./utils"); var validate = utils.common.validate; var AccountFlagIndices = utils.common.constants.AccountFlagIndices; ...
/* ******************************************************************************************* * * * Plese read the following tutorial before implementing tasks: * * https://developer.mozilla.org/en...
import getGoogleUrl from "./get-google-url"; describe("get-google-url", () => { it("throws an error on no argument", () => { expect(() => getGoogleUrl()).toThrow(); }); it("throws an error when there is an empty string as argument", () => { expect(() => getGoogleUrl("")).toThrow(); }); it("returns ...
# # calculation of synthetic accessibility score as described in: # # Estimation of Synthetic Accessibility Score of Drug-like Molecules # based on Molecular Complexity and Fragment Contributions # Peter Ertl and Ansgar Schuffenhauer # Journal of Cheminformatics 1:8 (2009) # http://www.jcheminf.com/content/1/1/8 # # se...
import Documentation from "./Documentation"; export default Documentation;
from django.contrib import admin # Register your models here. from .models import Bookmark, Tag class BookmarkAdmin(admin.ModelAdmin): list_display = ('url', 'title', 'owner', 'is_public', 'date_updated') list_editable = ('is_public',) list_filter = ('is_public', 'owner__username') search_fields = [...
/* -*- js-indent-level: 8 -*- */ /* * Document permission handler */ /* global app $ _ vex */ L.Map.include({ readonlyStartingFormats: { 'txt': { canEdit: true, odfFormat: 'odt' }, 'csv': { canEdit: true, odfFormat: 'ods' }, 'xlsb': { canEdit: false, odfFormat: 'ods' } }, setPermission: function (perm) { ...
import Petitions from './petitions'; import Endpoints from '../endpoints/endpoints'; const data_key = 'calendario-matcom-user'; export default { data: {}, saveMinData() { localStorage.setItem(data_key, JSON.stringify(this.data)); }, loadMinData() { let stored = localStorage.getItem(dat...
var gmail; function refresh(f) { if( (/in/.test(document.readyState)) || (typeof Gmail === undefined) ) { setTimeout('refresh(' + f + ')', 10); } else { f(); } } var playShredSound = function() { console.log("delete something"); var a = document.getElementById("sound"); if (!a.paused ...
/* Author : Dreamguys Template Name: Doccure - Bootstrap Template Version : 1.0 */ (function($) { "use strict"; // Stick Sidebar if ($(window).width() > 767) { if($('.theiaStickySidebar').length > 0) { $('.theiaStickySidebar').theiaStickySidebar({ // Settings additionalMarginTop: 30...
/* eslint-env node */ const { module: QUnitModule, test } = require('qunit'); const setup = require('./setup'); const IPHONE_UA = 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B137 Safari/601.1'; const DESKTOP_UA = 'Mozilla/5.0 (Macintosh; Int...
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var Eye = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.createElement(...
const mongoose = require('mongoose'); const { toJSON, paginate } = require('./plugins'); const programmeSchema = mongoose.Schema( { title: String, description: String, notes: String, image: String, admins: [ { type: mongoose.Schema.Types.ObjectId, ref: 'User', }, ]...
/*! P2_KEEN_VERSION: 2.0.23 */ var Keen = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(in...
import * as utils from '../src/utils'; import { registerBidder } from '../src/adapters/bidderFactory'; const BIDDER_CODE = 'consumable'; const BASE_URI = 'https://e.serverbid.com/api/v2' let siteId = 0; let bidder = 'consumable'; export const spec = { code: BIDDER_CODE, /** * Determines whether or not the g...
from .gaussian import *
const path = require('path'); const webpack = require('webpack'); const merge = require('webpack-merge'); const commonConfig = require('./webpack.base.conf.js'); module.exports = merge(commonConfig, { mode: 'development', devtool: 'cheap-module-eval-source-map', entry: { //实现刷新浏览器webpack-hot-middleware/clien...
import { Flex, Heading } from 'components/atoms' import { withPrefix } from 'gatsby' import PropTypes from 'prop-types' import React from 'react' import styles from './styles.module.scss' export const Speaker = props => { const { photo, name, title } = props.data return ( <Flex justify="flex-start"> <img s...