text
stringlengths
3
1.05M
const static2HAAS = '2HAAS-cache-v1'; const assets = [ '/' ]; self.addEventListener('install', evt => { evt.waitUntil( caches.open(static2HAAS).then((cache) => { console.log('caching shell assets'); cache.addAll(assets); }) ); }); // activate event self.addEventListener('activate', evt => { ...
import {useView, inject} from 'aurelia-framework'; import {Registry} from 'shared/registry'; @useView('shared/showcase.html') @inject(Registry) export class Index { constructor(registry) { this.registry = registry; } configureRouter(config, router) { this.router = router; return this.registry.load(...
import numpy as np import pandas as pd from skimage.morphology import label def rle_to_mask(rle_list, SHAPE): tmp_flat = np.zeros(SHAPE[0]*SHAPE[1]) if len(rle_list) == 1: mask = np.reshape(tmp_flat, SHAPE).T else: strt = rle_list[::2] length = rle_list[1::2] for i,v in zip(...
""" Copyright 2019 Goldman Sachs. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
var q = require('q') var api = require('browserstack') var BrowserStackTunnel = require('browserstacktunnel-wrapper') var os = require('os') var workerManager = require('./worker-manager') var BrowserStackReporter = require('./browserstack-reporter') var createBrowserStackTunnel = function (logger, config, emitter) { ...
/* JS Document */ /****************************** [Table of Contents] 1. Vars and Inits 2. Set Header 3. Init Menu 4. Init Date Picker 5. Init Time Picker 6. Init Google Map ******************************/ $(document).ready(function() { "use strict"; /* 1. Vars and Inits */ var header = $('.header'); v...
import platform # pylint: disable=unused-import from RPA.core.windows.helpers import ( # noqa: F401 IS_WINDOWS, get_process_list, is_numeric, ) def call_attribute_if_available(object_name, attribute_name): if hasattr(object_name, attribute_name): return getattr(object_name, attribute_name)()...
/// Begin with the module name const moduleName = 'notifications' const moduleEmoji = '📌' const moduleHooks = { subscribe: `${moduleName}:subscribe`, unsubscribe: `${moduleName}:unsubscribe`, notify: `${moduleName}:notify`, subscribers: `${moduleName}:subscribers`, } /// Name the module init method w...
/*- * Copyright (c) 2017, 2018, 2021, 2022 Ryo ONODERA <ryo@tetera.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyri...
import unittest from lambdata.my_mod import enlarge class TestMyMod(unittest.TestCase): def test_enlarge(self): self.assertEqual(enlarge(5), 500) if __name__ == "__main__": unittest.main()
#!/usr/bin/env python import os, sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "stackshare.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
import { svg } from 'lit'; export const file = svg`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path d="M9.83 8.79L8 9.456V13H6V8.05h.015l5.268-1.918c.244-.093.51-.14.782-.131a2.616 2.616 0 0 1 2.427 1.82c.186.583.356.977.51 1.182A4.992 4.99...
/* * Copyright 2020 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 ...
import Head from 'next/head'; import { useRouter } from 'next/router'; import EditForm from "../../components/editForm"; export default function edit(props) { const router = useRouter() const { id } = router.query; if(!id) return `loading...`; console.log("PJ-LOG: edit -> id", id) return ( ...
// function that returns a license badge based on which license is passed in // If there is no license, return an empty string const renderLicenseBadge = (license) => { if (license === "none") { return ""; } else { return `![License](https://img.shields.io/badge/License-${license}-<blue>)`; } }; // funct...
/** * WordPress dependencies */ import {__} from '@wordpress/i18n'; import {Component} from '@wordpress/element'; import css from './style.css'; class OfflineMessage extends Component { render () { return ( <article className="message is-warning"> <div className="message-body"> {__( 'Could not connec...
from __future__ import annotations import math from typing import TYPE_CHECKING from typing import Union from objects import Vector3 if TYPE_CHECKING: from hive import MyHivemind from objects import CarObject, BoostObject from routines import AerialShot, JumpShot, Aerial # This file is for small utiliti...
""" Wrapper around fhirclient FHIR server to perform queries. The fhirclient library seems to be unable to handle paginated results. This module implements a wrapper that will request the additional pages that are tied to the results. """ import logging from typing import Iterable from fhirclient.models.bundle import...
''' Created on Nov 13, 2017 @author: Salim ''' from msgpackstream.defs import FormatType, TemplateType, EventType class FormatUtil(): def __init__(self): self._typelist = list(FormatType) self._templatemap = {} templist = list(TemplateType) for t in...
export default { mode: 'universal', /* ** Headers of the page */ router: { linkActiveClass: "text-orange-400", }, head: { title: 'Padjadjaran Lab' || '', meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'desc...
function sortCourses(orderBy) { let order = ["intoMarketDate", "DESC"]; if (orderBy === "評價由高到低") { order = ["ratingAverage", "DESC"]; } if (orderBy === "學生人數由多到少") { order = ["studentCount", "DESC"]; } if (orderBy === "評價人數由多到少") { order = ["ratingCount", "DESC"]; } if (orderBy === "課程時數由多到...
/** * 物流平台模块服务 */ define('WLS/service', ['WLS/init'], function () { angular.module('manageApp.WLS'); });
import React, { Component } from 'react'; class Resume extends Component { render() { if(this.props.data){ var education = this.props.data.education.map(function(education){ return <div key={education.school}><h3>{education.school}</h3> <p className="info">{education.degree} <span>&bull;</...
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: __init__.py import dsz import dsz.cmd import dsz.data import dsz.lp class Services(dsz.data.Task): def __init__(self, cmd=None): dsz.da...
import Component from 'metal-component'; import Soy from 'metal-soy'; import templates from './Test.soy'; import {Config} from 'metal-state'; class Test extendz Component { } Test.STATE = { name: Config.string().required(), }; Soy.register(Test, templates); export default Test;
import {addReadOnlyProperty} from './internals/add-read-only-property.js'; import {deepClone} from './internals/deep-clone.js'; import {forEachSync} from './internals/for-each-sync.js'; import {forEach} from './internals/for-each.js'; import {getKeys} from './internals/get-keys.js'; import {getLength} from './internals...
# -*- coding: utf-8 -*- # Copyright 2012 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. import logging from http.client import HTTPException from urllib3.exceptions import MaxRetryError from selenium.common.exceptions im...
'use strict'; /** * Module dependencies, required for ALL Twy'r modules * @ignore */ /** * Module dependencies, required for this module * @ignore */ exports.strategy = function() { const auth = this.Interface; auth.serializeUser(async (request, user, callback) => { try { const tenant = JSON.parse(requ...
import React, { useEffect, useContext } from "react"; import SiteContext from "../../context/siteContext"; import { Link } from "react-router-dom"; import Aos from "aos"; import "aos/dist/aos.css"; import Header from "../layout/Header"; const Menu = () => { const siteContext = useContext(SiteContext); useEffect(...
/*const Calendar = require("@fullcalendar/core"); const dayGridPlugin = require("@fullcalendar/daygrid"); const timeGridPlugin = require("@fullcalendar/timegrid"); const listPlugin = require("@fullcalendar/list"); const timelinePlugin = require("@fullcalendar/timeline"); const bootstrapPlugin = require("@fullcalen...
class Dasha { constructor(scene, world, grid, cursorKeys) { this.scene_ = scene; this.world_ = world; this.grid_ = grid; this.cursorKeys_ = cursorKeys; this.sprite_ = scene.physics.add.sprite(0, 0, 'girl'); this.sprite_.displayWidth = Config.DASHA_SPRITE_WIDTH * Config.DASHA_SCALE; this.s...
export const RESET_STORE = 'StrapiAdmin/RBACProvider/RESET_STORE'; export const SET_PERMISSIONS = 'StrapiAdmin/RBACProvider/SET_PERMISSIONS';
# Copyright 1999-2018 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
const path = require('path') const merge = require('deepmerge') const { emit } = require('./emitter.js') /** * should pry rewrite this to use Promise.all * and only render the successful promsies */ module.exports = function loadRoutes (routes) { return routes.map(route => { return () => { return Promis...
from .BadgerLpMetaFarmMiniDeploy import BadgerLpMetaFarmMiniDeploy from .BadgerRewardsMiniDeploy import BadgerRewardsMiniDeploy from .CurveGaugeRenBtcMiniDeploy import CurveGaugeRenBtcMiniDeploy from .CurveGaugeSBtcMiniDeploy import CurveGaugeSBtcMiniDeploy from .CurveGaugeTBtcMiniDeploy import CurveGaugeTBtcMiniDeploy...
# PyTorch StudioGAN: https://github.com/POSTECH-CVLab/PyTorch-StudioGAN # The MIT License (MIT) # See license file or visit https://github.com/POSTECH-CVLab/PyTorch-StudioGAN for details # src/worker.py from os.path import join import sys import glob import random import string from torch.nn import DataParallel from...
# # XDMC # Copyright (C) Michael Hutcheon (email mjh261@cam.ac.uk) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your opti...
'use strict'; module.exports = exports = {}; exports.existsSync = (path) => { return ( path === `${__dirname}/../models/products/products-collection.js` || path === `${__dirname}/../models/categories/categories-collection.js` ); };
module.exports={A:{A:{"2":"I F E D hB","129":"A B"},B:{"1":"U UB L HB","129":"C N","1025":"R O H J K"},C:{"2":"aB OB G V I F E D A B C N R O H J K W X Y Z a b c d e f gB oB","513":"0 1 2 3 4 5 6 7 8 9 g h i j k l m n o p q r s t u v w P y z WB BB GB DB EB CB AB T S M IB JB KB LB MB NB FB PB QB RB U"},D:{"1":"0 1 2 3 4 ...
# -*- coding: utf-8 -*- #@+leo-ver=5-thin #@+node:ekr.20150514041209.1: * @file ../commands/editFileCommands.py #@@first '''Leo's file-editing commands.''' #@+<< imports >> #@+node:ekr.20170806094317.4: ** << imports >> (editFileCommands.py) import difflib import os import leo.core.leoGlobals as g import leo.core.leoCo...
import styled from 'styled-components' import { ButtonStrip, Card } from '@dhis2/ui-core' export const Container = styled.main` flex: 1; ` export const StyledCard = styled(Card)` display: block !important; height: unset !important; width: unset !important; margin: 1rem; padding: 1rem; ` expor...
import React from 'react'; import PropTypes from 'prop-types'; import { FlatList } from 'react-native'; import { connect } from 'react-redux'; import { SafeAreaView, NavigationActions } from 'react-navigation'; import RocketChat from '../../lib/rocketchat'; import I18n from '../../i18n'; import Loading from '../../con...
// // Analytics for the main layout. This includes buttons in the header, footer // or any other actions that occur on each page. // import { data as sd } from "sharify" import { reportLoadTimeToVolley } from "lib/volley" // Track pageview const pageType = window.sd.PAGE_TYPE || window.location.pathname.split("/")[1]...
/** * @typedef {import('mdast').Link} Link * @typedef {import('../types.js').Context} Context */ import {toString} from '../../../mdast-util-to-string' /** * @param {Link} node * @param {Context} context * @returns {boolean} */ export function formatLinkAsAutolink(node, context) { const raw = toString(node) ...
// EXAMPLE d'utilisation des fonctions de pontage et d'extrusion // Gilbert Duval 03/06/2019 function creePoly (p) { // cree un polygone avec le contenu de p [Vector3D] return new CSG.Polygon(p.map(v=>new CSG.Vertex(new CSG.Vector3D(v)))); } function extrudeBetweenFaces(f1, f2){ var r, i, i2, tmp; ...
/** * ToC, Table of Contents,递归的文档 Heading 树插件 * 提供 parse(div, lev = 0), render(gs, f=tocTree.renderf) 对外接口 * 内部使用 parseRec(div, i0, lev), isHeading(e), headingDepth(e) * 内部辅助 asLI (list item), makeLink(t, href) * * Sample: * var p = tocTree.parse(document.body) * document.body.appendChild(tocTree.render(p...
import Vue from 'vue' import Router from 'vue-router' import Hello from '@/pages/Hello' import World from '@/pages/World' Vue.use(Router) export default new Router({ routes: [ { path: '/', name: 'Hello', component: Hello }, { path: '/world', name: 'World', component: ...
let clients = [] exports.subscribe = res => { console.log('subscribe'); clients.push(res) res.on('close', () => { clients.splice(clients.indexOf(res), 1) }) } exports.publish = message => { console.error(message); clients.forEach(res => { res.end(message) ...
/*eslint-env node*/ /* eslint-disable @typescript-eslint/no-var-requires */ // *********************************************************** // This example plugins/index.js can be used to load plugins // // You can change the location of this file or turn off loading // the plugins file with the 'pluginsFile' configura...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
var MdTimePicker_1; import { __decorate, __metadata } from "tslib"; import * as au from "../aurelia"; let MdTimePicker = MdTimePicker_1 = class MdTimePicker { constructor(element, taskQueue) { this.element = element; this.taskQueue = taskQueue; this.controlId = `md-timepicker-${MdTime...
# The MIT License (MIT) # # Copyright (c) 2015 Numenta, 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 rights # to use, copy, mod...
import psycopg2 from psycopg2 import sql def create_database_connection(db_params): """ Establish database connection to postgres """ connection = psycopg2.connect("dbname=%s user=%s port=%s host=%s password=%s" %(db_params['database_name'], db_params['user'], db_params['port'], db_params['h...
# -*- coding:utf-8 -*- # By Llf0703 import sys from l2u.face import face from l2u.upload import push from l2u.file import make_dir from l2u.testdata import testdata if __name__ == '__main__': n = len(sys.argv) for i in range(1, n): pid = sys.argv[i] make_dir(pid) # 创建目录 testdata(pid)...
'use strict' /** @type {import('@adonisjs/lucid/src/Schema')} */ const Schema = use('Schema') class UserSchema extends Schema { up() { this.create('users', (table) => { table.increments() table.string('name', 80) table.string('surname', 200) table.string('email', 254).notNullable().uniqu...
# -*- coding: utf-8 -*- """ Class which describeds RBN object which consists of nodes and connections between nodes, class has methods which desrcibed the dynamics of the RBN """ import Node_v4 as node import Spike_v4 as spike from numpy import * from scipy.stats import mode class RBN: def _...
from objective_functions.recon import recon_weighted_sum, sigmloss1dcentercrop from unimodals.MVAE import LeNetEncoder, DeLeNet from training_structures.MFM import train_MFM, test_MFM from datasets.avmnist.get_data_robust import get_dataloader import torch from torch import nn from unimodals.common_models import MLP fr...
var should = require('should'); var plumper = require('../lib/plumper'); /*global describe, it */ describe('plumper', function() { it('should return nothing for invalid input', function() { should.not.exist(plumper()); should.not.exist(plumper(4)); should.not.exist(plumper(4, [])); }); it('should ...
'use strict'; const { extname } = require('path'); module.exports = (stats, modules) => { const { entryFiles, vendorFiles, moduleFileMap } = stats; const moduleFiles = modules.reduce( (result, module) => [...result, ...moduleFileMap[module]], [] ); return [...vendorFiles, ...moduleFiles, ...entryFiles...
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ var NbToastrModule_1; import { __decorate } from "tslib"; import { NgModule } from '@angular/core'; import { NbOverlayModule } from '../cdk/overlay/overlay.module'...
from tor.strings.urls import ToR_link from tor_core.helpers import get_parent_post_id from tor_core.helpers import send_to_modchat from praw.models import Comment def _author_check(original_post, claimant_post): return original_post.author == claimant_post.author def _footer_check(reply, config, tor_link=ToR_li...
n = int(input()) s = input() slimes = list(s) i = 0 while i < n - 1: s = slimes[i] while s == slimes[i + 1]: slimes.pop(i + 1) n -= 1 i += 1 print(n)
var searchData= [ ['incompatible',['INCOMPATIBLE',['../interfacepdumodel_1_1Controller__4__0__1.html#aa86cdb2df83907eee7a241b92fbee75ba2b69c70d8137060bb5101d12f2a6917e',1,'pdumodel::Controller_4_0_1']]], ['incomplete',['INCOMPLETE',['../namespacefirmware.html#ac86db60b316e30e5487f06c7d9363f60a2a5252731c34e06c75a8b5...
# -*- coding: utf-8 -*- ''' Mounting of filesystems ======================= Mount any type of mountable filesystem with the mounted function: .. code-block:: yaml /mnt/sdb: mount.mounted: - device: /dev/sdb1 - fstype: ext4 - mkmnt: True - opts: - defaults /srv...
# -*- coding: utf-8 -*- '''VGG16-places365 model for Keras # Reference: - [Places: A 10 million Image Database for Scene Recognition](http://places2.csail.mit.edu/PAMI_places.pdf) ''' from __future__ import division, print_function import os import warnings import numpy as np from keras import backend as K from ker...
'use strict'; module.exports = { up: async (queryInterface, Sequelize) => { await queryInterface.createTable('Products', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, name: { allowNull: false, type: Seq...
/*========================================================================================= File Name: components-collapse.js ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template Author: Pixinvent ...
import Ledger from "@rnssolution/color-ledger" import { signWithPrivateKey, getStoredWallet, signWithPrivateKeywallet } from "@rnssolution/color-keys" import { signWithExtension } from "src/scripts/extension-utils" export function getSigner(config, submitType = "", { address, password }) { if (submitType === `...
"use strict"; // 设置默认环境变量 process.env.NODE_ENV = process.env.NODE_ENV || 'development'; // const path = require('path'); const fs = require('fs'); // 加载koa和配置 const app = require('koa')(); const config = require('./config/'); // 加载核心 const kernel = require('./kernel/'); kernel.initial(app, config); // 加载应用池 const a...
import React, { Component } from 'react'; import styled from 'styled-components'; import { intersectionObserver } from 'utils/intersectionObserver'; const Wrapper = styled.div` width: 100%; overflow: hidden; `; export const withLazyLoad = (WrappedComponent) => { const subscriber = intersectionObserver(); re...
'set' in Reflect
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _DribbbleSquareOutlined = _interopRequireDefault(require('./lib/icons/DribbbleSquareOutlined')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; ...
(function() { "use strict"; var OPTION_HIGHLIGHT = "highlighted"; Neo.Classes.TagAutocomplete = Neo.Classes.Input.extend({ init: function(config) { this.tags = []; this.textbox = null; this.optionContainer = null; this.typingTimer = null; this.highlightIndex = -1; this._o...
const Joi = require('joi'); module.exports = (schemaObject, data) => { if (!schemaObject) return false; let errors = ''; let isValid = true; let schema = Joi.object().keys(schemaObject); let validationResult = Joi.validate(data, schema, {presence:'optional'}); if (validationResult.error) { ...
# coding: utf-8 import inspect from czsc.analyze import * from czsc.utils.log import create_logger from scripts_gm.gm_utils import * from scripts_gm.strategy import get_signals_share_f15_v1 as get_user_signals from scripts_gm.strategy import get_events_share_f15_v1 as get_user_events from scripts_gm.strategy import fre...
describe('Handsontable.Dom', function () { describe('offset', function () { var $window = $(window), $forceScrollbar = $('<div id="forceScrollbar"></div>').css({ position: 'absolute', height: '4000px', width: '4000px', top: 0, left: 0 }); beforeEach(functi...
/** * @requires projCode/longlat.js */ Proj4js.defs["IGNF:MOOREA87GEO"]="+title=Moorea 1987 +proj=longlat +towgs84=215.9820,149.5930,176.2290,3.2624,1.6920,1.1571,10.477300 +a=6378388.0000 +rf=297.0000000000000 +units=m +no_defs";
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; const propTypes = { actions: PropTypes.object, player: PropTypes.object, position: PropTypes.string, className: PropTypes.string }; const defaultProps = { position: 'left' }; export default cl...
(function() { 'use strict'; angular .module('licitacaoWebApp') .controller('TbServicoController', TbServicoController); TbServicoController.$inject = ['TbServico', 'TbServicoSearch']; function TbServicoController(TbServico, TbServicoSearch) { var vm = this; vm.tbServ...
const colors = { primary: '#DF1E02', primaryHover: '#FD2B0C', primaryPressed: '#FD4E34', primaryAccent: '#F6D4CF', secondary: '#1A4958', secondaryHover: '#2D7D97', secondaryPressed: '#236377', subtle: '#707E86', subtleHover: '#4D5B64', subtlePressed: '#384248', disabled: '#C1CCD0', success: '#06...
define("ace/mode/doc_comment_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text_highlight_rules"], function (require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCo...
(function (wHandle, wjQuery) { var CONNECTION_URL = "agar.emupedia.net:443/ws/"; /** * Enter path to the skin image folder * To take skins from the official server enter: "http://agar.io/skins/" */ var SKIN_URL = "./images/skins/";//skins folder var touchX, touchY, // is this running in a touch capable en...
(function(d){d['af']=Object.assign(d['af']||{},{a:"Onderstreep",b:"Dropdown toolbar",c:"Editor toolbar",d:"Show more items",e:"Undo",f:"Redo",g:"Rich Text Editor, %0",h:"image widget",i:"Insert image",j:"Upload failed",k:"Upload in progress",l:"Change image text alternative",m:"Berg",n:"Kanselleer",o:"Text alternative"...
(window.webpackJsonp=window.webpackJsonp||[]).push([[228],{4270:function(t,e,n){"use strict";n.r(e),n.d(e,"icon",(function(){return c}));n(12),n(2),n(4),n(8),n(3),n(10);var r=n(0),l=n.n(r);function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.proto...
# -*- coding: utf-8 -*- """Metrics These functions are for metrics. """ from configs.supported_info import SUPPORTED_METRIC from metrics.classification_metric import ClassificationMetric def get_metric(cfg: object) -> object: """Get metric This is function to get criterion. Args: cfg: Config....
var variable = { }; variable.a = 0; var C = function() { "use strict"; !function(instance, Constructor) { if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); }(this, C), this.initializedMember = { }, this.member = { }, this.member.a = 0; }, obj =...
import React, { Component, PropTypes } from 'react'; import { Link } from 'react-router'; import { Picker, List, InputItem, NavBar, WingBlank, WhiteSpace, Icon, Button, Popup, Menu, Modal, Toast } from 'antd-mobile'; //import { schoolList } from '../../data/schoolList'; import { toastFail } from '../../utils/func'...
const { getModalWidth, getVideoIdFromUrl, stampUrl, trims, } = require('../lib/universal') describe('Universal Client+Server helper utils', () => { describe('getEventTimeDisplay()', () => { it('Gets event datetime display', () => { // expect(getEventTimeDisplay(when)).toContain() }) }) describ...
import React, { useEffect } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import Box from '@material-ui/core/Box'; import Typography from '@material-ui/core/Typography'; import Alert from '@material-ui/lab/Alert'; import AlertTitle from '@material-ui/lab/AlertTitle'; impo...
var name1;var name2;var name3;var name4; var freq = [0,0,0,0]; //310 function person3101(data){ if(freq[0]%2 === 0){ var change = document.getElementById("person3101"); change.style.backgroundColor = "#6495ed"; freq[0] += 1; name1 = data.value; } else{ var ...
/* eslint-disable import/no-extraneous-dependencies */ import path from 'path'; import { fileURLToPath } from 'url'; import chai from 'chai'; import unified from 'unified'; import markdown from 'remark-parse'; import mdStringify from 'remark-html'; import { remarkUrlToLocal } from '../src/remarkUrlToLocal.js'; const ...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Armor Schema */ var ArmorSchema = new Schema({ name: { type: String, default: '', required: 'Please fill Armor name', trim: true }, created: { type: Date, default: Date.n...
import app from './app'; app.listen(3003);
$(document).ready(function(){ if($("#errorModal").length){ $("#errorModal").modal('show'); } if($("#createTicketSuccessfully").length){ $("#createTicketSuccessfully").modal('show'); } $('.sign-in-button').on("click",function(){ $("#signIn").modal('show') }); $('.sign-u...
import fs from 'fs' import path from 'path' import {terser} from 'rollup-plugin-terser' import babel from 'rollup-plugin-babel' import commonjs from 'rollup-plugin-commonjs' import json from 'rollup-plugin-json' const files = fs.readdirSync('./src/locale/translations') const config = files.map(file => { return { ...
function insertionSort(object, func=null){ if (object.length === 0) { return object; } if (func !== null) { if (object[0].name !== undefined) { return hashInsertSort(object, func); } else { return stringInsertSort(object, fun...
import React from "react" // import Layout from "../components/Layout/" import SEO from "../components/seo" const NotFoundPage = ({ language }) => ( // <Layout language={language}> <> <SEO title="404: Not found" /> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadne...
_magic_methods = ['__subclasscheck__', '__hex__', '__rmul__', '__float__', '__idiv__', '__setattr__', '__div__', '__invert__', '__nonzero__', '__rshift__', '__eq__', '__pos__', '__round__', '__rand__', '__or__', '__complex__', '__divmod__', ...
const path = require('path'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const environment = process.env.NODE_ENV; module.exports = { mode: environment, entry: './src/main.ts', output: { path: path.resolve(__dirname, 'dist'), file...
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource f...