text
stringlengths
3
1.05M
/** * @license ZOB Angels * (c) 2015 SpruceHill.io GmbH * License: MIT */ (function() { 'use strict'; angular.module('ZOBAngels.controller.NavigationController',[ 'ZOBAngels.service' ]).controller('ZOBAngels.controller.NavigationController',[ '$scope', '$location', 'ZOBA...
"""SunPy configuration file functionality""" from __future__ import absolute_import, division, print_function import os import tempfile from sunpy.extern.six.moves import configparser import sunpy __all__ = ['load_config', 'print_config'] def load_config(): """ Read the sunpyrc configuration file. If one d...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{ /***/ "./node_modules/@ionic/core/dist/esm/legacy lazy recursive ^\\.\\/.*\\.entry\\.js$ include: \\.entry\\.js$ exclude: \\.system\\.entry\\.js$": /*!***********************************************************************************************...
import numpy as np import warnings import scipy.sparse from typing import Any, Text, Union, Optional, Dict from rasa.nlu.training_data import Message from rasa.nlu.components import Component from rasa.nlu.constants import SPARSE_FEATURE_NAMES, DENSE_FEATURE_NAMES, TEXT_ATTRIBUTE def sequence_to_sentence_features( ...
import {expect} from '../test_helper'; import commentReducer from '../../src/reducers/comments'; import {SAVE_COMMENT} from "../../src/actions/types"; describe('Comment reducer',()=>{ it('handles action with unknown type',()=>{ expect(commentReducer(undefined,{})).to.eql([]); }); it('handles actio...
// source: comment.proto /** * @fileoverview * @enhanceable * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! var jspb = require('google-protobuf'); var goog = jspb; var gl...
import { mapState, mapGetters, mapActions } from 'vuex'; import { Breakpoints } from 'paraview-glance/src/constants'; import { ANNOTATIONS, DEFAULT_VIEW_TYPE, VIEW_TYPES, VIEW_TYPES_LPS, VIEW_ORIENTATIONS, } from 'paraview-glance/src/components/core/VtkView/constants'; import PalettePicker from 'paraview-gl...
var mongoose = require("mongoose"); var notificationSchema = new mongoose.Schema({ username: String, campgroundId: String, isRead: { type: Boolean, default: false }, totalRead: Number, readCount: Number, }); module.exports = mongoose.model("Notification", notificationSchema);
import React from 'react'; import {mount} from 'enzyme'; import sinon from 'sinon'; import SlideInRight from '../SlideInRight'; import * as enzyme from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; enzyme.configure({adapter: new Adapter()}); describe('Test Slide in right component', () => { const child...
from tomviz import utils import numpy as np from scipy import ndimage import tomviz.operators class AutoTiltAxisRotationAlignOperator(tomviz.operators.CancelableOperator): def transform_scalars(self, dataset): """ Automatic align the tilt axis to horizontal direction (x-axis) """ ...
import os from django.core.management import call_command from celery import Celery from celery.schedules import crontab os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'crawler.settings') app = Celery('crawler') app.config_from_object('django.conf:settings', namespace='CELERY') app.autodiscover_tasks() @app.task ...
//Requires const fs = require('fs'); const path = require('path'); let xss; //can't be required before the dependency check //const log = (x) => process.stdout.write(JSON.stringify(x, null, 2) + '\n'); //================================================================ /** * txAdmin in ASCII */ let __ascii; function...
/** * cloud.js * (high-level AJAX library) * * > This is now part of `parasails`. It was branched from the old "Cloud SDK" * > library at its v1.0.1 -- but from that point on, its versioning has been * > tied to the version of parasails it's bundled in. (All future development * > of Cloud SDK will be as part ...
import React from "react" import styled from "styled-components" import { Link } from "gatsby" import icons from "../../json/iconpaths.json" import iconpic1 from "../../images/phones.svg" import iconpic2 from "../../images/email.svg" import iconpic3 from "../../images/twitter.svg" import iconpic4 from "../../images/fac...
/*! * Color Thief v2.0 * by Lokesh Dhakar - http://www.lokeshdhakar.com * * Thanks * ------ * Nick Rabinowitz - For creating quantize.js. * John Schulz - For clean up and optimization. @JFSIII * Nathan Spady - For adding drag and drop support to the demo page. * * License * ------- * Copyright 2011, 2015 Lo...
function calcSimpleGraderStats(action) { // start variable declarations var average = 0; // overall average var stddev = 0; // overall stddev var component_averages = []; // average of each component var component_stddevs = []; // stddev of each component va...
import React from "react"; import { Datagrid, List, TextField } from "react-admin"; export const UserTaskList = props => { return ( <List {...props}> <Datagrid> <TextField source="id" /> <TextField source="name" /> </Datagrid> </List> ); };
import numpy as np import math import copy import random from itertools import islice import matplotlib.pyplot as plt import os # Extract the input matrix from the input file: def extract_input_matrix_from_input_file(file_name='q2.txt'): cwd = os.getcwd() # Get the current working directory (cwd) f...
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------ # Name: base.py # Purpose: Music21 base classes and important utilities # # Authors: Michael Scott Cuthbert # Christopher Ariza # # Copyright: Copyright © 2006-2015 Michael Scott Cu...
shadow$provide.module$node_modules$$mui$utils$getDisplayName=function(global,require,module,exports){function getFunctionName(fn){return(fn=`${fn}`.match(fnNameMatchRegex))&&fn[1]||""}function getFunctionComponentName(Component,fallback=""){return Component.displayName||Component.name||getFunctionName(Component)||fallb...
const { expect } = require('chai'); const sinon = require('sinon'); const fs = require('fs'); const jsonfile = require('jsonfile'); const path = require('path'); const { Attribute, PlayerRank } = require(path.join(__dirname, '..', 'src', 'Attributes')); const { itemDb, playerDb } = require(path.join(__dirname, '..', ...
import os import sys sys.path.append('..') import argparse import chainer from datasets.datasets import get_mvmc, get_mvmc_flatten import deepopt.chooser from elaas.elaas import Collection from elaas.family.multi_input_edge_with_dropout import MultiInputEdgeDropoutFamily from visualize import visualize def max_acc(tr...
import { Template } from 'meteor/templating'; import { Meteor } from 'meteor/meteor'; import { Message } from '../../../api/message/MessageCollection.js'; Template.Landing_Page.onCreated(function () { this.subscribe(Message.getPublicationName()); }); Template.Landing_Page.helpers({ userLanding() { return Mete...
const config = { // The name of your project name: "My Project", // An optional subtitle to explain more subtitle: "So long, and thanks for all the fish", // A URL to a blog post or tweet to learn more link: "https://ourincrediblejourney.tumblr.com" // The type of page to render: currently, the only suppo...
//>>built define({fontSize:"Lielums",fontName:"Fonts",formatBlock:"Form\u0101ts",serif:"serif","sans-serif":"sans-serif",monospace:"monospace",cursive:"cursive",fantasy:"fantasy",noFormat:"Nav",p:"Rindkopa",h1:"Virsraksts",h2:"Apak\u0161virsraksts",h3:"Apak\u0161apak\u0161virsraksts",pre:"Iepriek\u0161 format\u0113ts",...
import Vue from 'vue' import Vuex from 'vuex' import app from './modules/app' import errorLog from './modules/errorLog' import permission from './modules/permission' import tagsView from './modules/tagsView' import user from './modules/user' import common from './modules/common' import getters from './getters' Vue.use(...
#!/usr/bin/env node var express = require("express") , app = express() , server = require('http').createServer(app) , io = require('socket.io').listen(server, { log: false }); app.use(express.static('./public')); var participants = {}; var id = 0; io.sockets.on('connection', function(client) { var clientI...
from .toy import SwissRollDataset, HelixDataset from .mnist import MNIST, FashionMNIST, KMNIST, EMNIST, SVHN, CIFAR10, CIFAR100 from .disentangling import dSprites, Shapes3D, MPI3D, CelebA
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var Bookmark = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.createEle...
function intoArray(data) { const populationArray = []; const totalCasesArray = []; const textArray = []; const colorArray = []; for (let i = 0; i < data.length; i++) { populationArray.push(data[i].population); totalCasesArray.push(data[i].totalCases); textArray.push(data[i]....
import typing def main() -> typing.NoReturn: a, b, c, d, k = map(int, input().split()) x = a * 60 + b y = c * 60 + d print(y - x - k) main()
!function(t,i,e){"use strict";function s(t,i){this.element=t,this.layers=t.getElementsByClassName("layer");var e={calibrateX:this.data(this.element,"calibrate-x"),calibrateY:this.data(this.element,"calibrate-y"),invertX:this.data(this.element,"invert-x"),invertY:this.data(this.element,"invert-y"),limitX:this.data(this....
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[69],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=script&lang=js&": /*!************************************************************************************...
from django.conf.urls import url from . import views app_name='lockss' urlpatterns = [ url(r'^search/?$', views.search, name='search'), url(r'^fetch/(?P<path>(?:[A-Za-z0-9]{2}/)+)(?P<guid>.+)\.warc\.gz$', views.fetch_warc, name='fetch_warc'), # LOCKSS config URLs url(r'^permission/$', views.permission...
setInterval(setClock, 1000); const hourHand = document.querySelector('[data-hour-hand]'); const minuteHand = document.querySelector('[data-minute-hand]'); const secondHand = document.querySelector('[data-second-hand]'); function setClock() { const currentDate = new Date(); let secondsRatio = currentDate.getSe...
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1/proto/text_annotation.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import ...
export default function NotFound() { return ( <> <h1>404 Not Found</h1> </> ); }
webpackJsonp([17],{jbja:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mod-log"},[a("el-form",{attrs:{inline:!0,model:e.dataForm},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyC...
let electrumServers = { coqui: { // !estimatefee address: 'electrum1.cipig.net', port: 10011, proto: 'tcp', txfee: 10000, abbr: 'COQUI', serverList: [ 'electrum1.cipig.net:10011', 'electrum2.cipig.net:10011' ], }, revs: { // !estimatefee address: 'electrum1.cipig.net', ...
import os import random from ingestors import Ingestor from models import QuoteModel from meme.meme_engine import MemeEngine def generate_meme(path=None, body=None, author=None): """ Generate a meme given an path and a quote """ if path is None: images_dir = "./_data/Photos/Dog/" images = [] ...
(window["webpackJsonpreact-antd-layout"]=window["webpackJsonpreact-antd-layout"]||[]).push([[0],{295:function(e,t,a){e.exports=a(592)},300:function(e,t,a){},301:function(e,t,a){},579:function(e,t,a){},592:function(e,t,a){"use strict";a.r(t);var n=a(0),o=a.n(n),r=a(9),c=a.n(r),i=(a(300),a(27)),s=a(28),l=a(30),u=a(29),m=...
const express = require('express'); const router = express.Router(); var db = require('../database'); var upload = require('../imgupload'); var path = require("path"); //Edit profile page of logged in user only router.get("/", function (req, res) { var sess = req.session; if (sess.username) { // somone...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=9 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for ...
const getters = { sidebar: state => state.app.sidebar, device: state => state.app.device, avatar: state => state.user.avatar, name: state => state.user.name, } export default getters
module.exports = { moduleFileExtensions: [ 'js', 'jsx', 'json', 'vue', ], transform: { '^.+\\.vue$': 'vue-jest', '.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub', '^.+\\.jsx?$': 'babel-jest', }, moduleNameMapper: ...
#!/usr/bin/env python3 import sys assert sys.version_info >= (3,7), "This script requires at least Python 3.7" print('Greetings!') input("What is my favorite color? ") # I know that it's going to say "Greetings!" in the terminal and on the next line it is going to ask me my favorite color # After I ran python, it wa...
import numpy as np from .utils import extract_face, make_dict import pickle import os import cv2 def generate_triplets(data_dir, triplets_number): if os.path.isfile('./data/face_dict.pkl'): pkl = open('./data/face_dict.pkl', 'rb') face_dict = pickle.load(pkl) pkl.close() else: f...
import { load } from '../' import path from 'path' import fs from 'fs' // Generate fresh babelrc on each run require('../_utils/babelrc')(path.resolve(__dirname, '.storybook')) // Add valid CWD_SRC fro require.context (needs to be literal) const configPath = path.resolve(__dirname, './.storybook/config.js') fs.readFi...
""" Copyright (C) 2018-2020 Intel Corporation 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 i...
#!/usr/bin/env python """ This plugin generates tags file as well as inserts markdown at the beginning of a file that has tags @Adopted from JL Diaz (c) 2019 MIT License """ from collections import defaultdict from pathlib import Path from re import search, DOTALL, MULTILINE from yaml import load, FullLoader, YAMLErr...
const { store } = require(`../../../redux`) const { build } = require(`../..`) const { isDate, looksLikeADate } = require(`../date`) require(`../../../db/__tests__/fixtures/ensure-loki`)() // Timestamps grabbed from https://github.com/moment/moment/blob/2e2a5b35439665d4b0200143d808a7c26d6cd30f/src/test/moment/is_valid...
const opener = require('opener') const ConfigStore = require('configstore') const { Tool } = require('../../../util') const { toolConstant } = require('../../../constant') const defaultConfig = require('../defaultConfig') const config = new ConfigStore(toolConstant.TOOL_CONF, defaultConfig) exports.open = option => {...
#!/usr/bin/env python from __future__ import print_function """ test_split_subdivide_checkpointing.py """ tempdir = "testing_dir/" import os import sys # add grandparent to search path for testing grandparent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")) sys.path.insert(0, grandpa...
// @flow import * as React from 'react'; import autobind from 'autobind-decorator'; import classnames from 'classnames'; import ReactDOM from 'react-dom'; type Props = { children: React.Node, message: React.Node, position: 'bottom' | 'top' | 'right' | 'left', // Optional className?: string, delay?: number...
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[,,,,,function(n,t,e){"use strict";e.r(t);var r=e(6);e.d(t,"run_app",(function(){return r.wb})),e.d(t,"__wbindgen_object_drop_ref",(function(){return r.sb})),e.d(t,"__wbindgen_object_clone_ref",(function(){return r.rb})),e.d(t,"__wbindgen_cb_forget",(function(){re...
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 l...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const clean_context_1 = tslib_1.__importDefault(require("./clean-context")); describe('cleanContext', () => { it('should replace license and projectVersion - and _ characters by -- and __', () => { ...
const router = require('express').Router(); const quotes = require('./service'); /* GET quotes listing. */ router.get('/', async function(req, res, next) { try { res.json(await quotes.getMultiple(req.query.page, req.user.sub)); } catch (err) { console.error(`Error while getting quotes `, err.message); ...
/*! * Bootstrap-select v1.9.3 (http://silviomoreto.github.io/bootstrap-select) * * Copyright 2013-2015 bootstrap-select * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE) */ (function (root, factory) { if (typeof define === 'function' && define.amd) { ...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[11],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/views/page/admin/management/_index.vue?vue&type=script&lang=js&": /*!********************************************************************************...
export { default } from '@fleetbase/storefront-web-engine/routes/storefront/category';
export { default as bladeApi } from './src/blade-api'; export { default as MBlade } from './src/Blade.vue'; export { default as MBladeLayer } from './src/BladeLayer.vue'; export { default as MBladeContent } from './src/BladeContent.vue';
/* Copyright 2019 New Vector 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 agreed to in writing, software ...
import $ from "jquery"; import * as SessionStorage from "../utils/session_storage"; import React from "react"; import Modal from "react-modal"; import Button from "react-bootstrap/lib/Badge"; import DropdownButton from "react-bootstrap/lib/DropdownButton"; import MenuItem from "react-bootstrap/lib/MenuItem"; const cus...
import React, {useEffect} from 'react'; import {Button, Row, Col, ListGroup, Image, Card} from 'react-bootstrap'; import {useDispatch, useSelector } from 'react-redux'; import CheckoutSteps from '../components/CheckoutSteps'; import Message from '../components/Message'; import { Link } from 'react-router-dom'; import {...
import FormVersionString from '../../../src/components/form-version/string.vue'; import FormVersionViewXml from '../../../src/components/form-version/view-xml.vue'; import testData from '../../data'; import { load } from '../../util/http'; import { mockLogin } from '../../util/session'; describe('FormOverview', () =>...
/* * Tencent is pleased to support the open source community by making * 蓝鲸智云-权限中心(BlueKing-IAM) available. * * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * * 蓝鲸智云-权限中心(BlueKing-IAM) is licensed under the MIT License. * * License for 蓝鲸智云-权限中心(BlueKing-IAM): * * -------------...
var socket = io.connect("/"); let login = @find("Log in"); let path = @("#username"); let pass = @("#password"); let encrypt = @("#encrypt"); func notify(text, type="info"){ var notifier = new Notifier({ position: 'top-right', direction: 'top', }); var notification = notifier.notify(type, ...
/* eslint-disable camelcase, no-undef */ // exports.onClientEntry = (_, userPluginOptions) => { // const { nonce } = userPluginOptions // __webpack_nonce__ = nonce // }
jest.mock(`fs`, () => { return { existsSync: jest.fn(), readFileSync: jest.fn(), } }) jest.mock(`recursive-readdir`, () => jest.fn()) jest.mock(`gatsby-cli/lib/reporter`, () => { return { panic: jest.fn(), } }) const fs = require(`fs`) const readdir = require(`recursive-readdir`) const reporter = ...
module.exports={A:{A:{"2":"I F E D A B gB"},B:{"1":"UB IB N","2":"C O T P H J K"},C:{"1":"1 2 3 4 5 6 7 8 9 TB AB FB CB DB BB w R M JB KB LB MB NB OB PB QB RB SB","2":"qB GB G U I F E D A B C O T P H J K V W X Y Z a b c d e f g h i j k l m n o p q r s t nB fB","132":"u v Q","260":"0 x y z"},D:{"1":"8 9 TB AB FB CB DB B...
# Copyright 2009-2015 MongoDB, 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 writi...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
module.exports = function () { var expect = require('expect.js'); this.World = require('../support/world.js').World; this.Given('I go to "$path"', function (path, callback) { this.spooky.thenOpen(this.testUrl + path); callback(); }); this.Given('I go back', function (callback) { ...
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The WeyCoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import WeyCoinTestFramework from test_framework.util import * from bi...
const diagnostics = require('./'); // // Override the existing `debug` call so it will use `diagnostics` instead // of the `debug` module. // try { var key = require.resolve('debug'); require.cache[key] = { exports: diagnostics, filename: key, loaded: true, id: key }; } catch (e) { /* We don't r...
!function(t){"use strict";t.fn.TouchSpin=function(n){var o={min:0,max:100,initval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-defa...
const mongoose = require("mongoose"); const Schema = mongoose.Schema; // Create Schema const ClassAndsecSchema = new Schema({ user: { type: Schema.Types.ObjectId, ref: "users" }, classAndsec: { type: [String], required: true } }); module.exports = ClassAndsec = mongoose.model("classAndsec", Cl...
(window.webpackJsonp=window.webpackJsonp||[]).push([[404],{979:function(s,t,a){"use strict";a.r(t);var n=a(6),r=Object(n.a)({},(function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[a("p",[s._v("译者注:该小结关于错误处理的观点,译者并不完全赞同,关于本小结的部分想法请参考"),a("Ro...
const ioredisMock = jest.genMockFromModule('ioredis'); ioredisMock.prototype.keys = jest.fn().mockReturnValue([]); export default ioredisMock;
# Copyright © 2019 Province of British Columbia # # 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 agr...
import Swal from 'sweetalert2' const _toast = Swal.mixin({ toast: true, position: 'top-end', showConfirmButton: false, timer: 3000 }) const toast = ({ icon = 'success', title = '' }) => { _toast.fire({ icon, title }) } const swal = async ({ title = '', text = '', icon = 'warni...
from paperback import __version__ def test_version(): assert __version__ == "0.1.0"
module.exports = [{ input: [123], output: 321 }, { input: [-123], output: -321 }, { input: [120], output: 21 } ];
/** * @author Toru Nagashima <https://github.com/mysticatea> * @copyright 2017 Toru Nagashima. All rights reserved. * See LICENSE file in root directory for full license. */ "use strict" //------------------------------------------------------------------------------ // Requirements //-----------------------------...
import React from 'react' import { Link as GatsbyLink } from 'gatsby' import { ExternalLink } from 'components/Icons/Icons' export default function Link({ to, children, className = '', onClick, disablePrefetch, external, iconClasses = '', state = {}, ...other }) { const internal...
/** * The data table is a simple widget designed to list crossfilter focused data set (rows being * filtered) in a good old tabular fashion. * * Note: Unlike other charts, the data table (and data grid chart) use the group attribute as a * keying function for {@link https://github.com/mbostock/d3/wiki/Arrays#-nest...
import React, { Component } from 'react' class Failure extends Component { render() { return ( <div className="container text-center"> <h1> Your Payment was Un-successfull</h1> </div> ) } } export default Failure
// @flow import React from 'react'; import log from 'loglevel'; import {action, computed, isArrayLike, observable} from 'mobx'; import Dropzone, {DropzoneRef, FileRejection} from 'react-dropzone'; import symfonyRouting from 'fos-jsrouting/router'; import {translate, transformBytesToReadableString} from '../../../utils'...
var Flag = false; Flag = IsPC(); if(Flag){ var isChrome = window.navigator.userAgent.indexOf("Chrome") !== -1; if(!isChrome) location.href ="../ie.jsp"; } function IsPC() {     var userAgentInfo = navigator.userAgent;     var Agents = ["Android", "iPhone",                 "SymbianOS", "Wind...
const fs = require('fs') const path = require('path') const express = require('express') const bodyParser = require('body-parser') const request = require('./util/request') const packageJSON = require('./package.json') const exec = require('child_process').exec const cache = require('./util/apicache').middleware const ...
const fs = require("fs"); const Path = require('path'); const KaitaiStream = require('kaitai-struct/KaitaiStream'); const { load: loadConfig } = require('./src/helpers/config'); // Loading conf const config = loadConfig(); const { currentGame, games } = config; const currentGameConfig = games[currentGame]; console.log...
import React, { Component } from 'react' import './App.css' import Header from './header/header' import TacosMap from './maps/tacoMap' import MargMap from './maps/margMap' import Spacer from './spacer/spacer' class App extends Component { render() { return ( <div> <Header /> <section> ...
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2021 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
import Engine from "./engine"; import * as G from "@antv/g"; import { Renderer as CanvasRenderer } from "@antv/g-canvas"; class GEngine extends Engine { constructor() { super(); this.app = new G.Canvas({ container: this.content, width: this.width, height: this.height, renderer: new Ca...
/* artifact generator: C:\My\wizzi\v5\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js primary source IttfDocument: c:\my\wizzi\v5\plugins\wizzi-js\src\ittf\lib\artifacts\js\module\gen\codegen\statement.js.ittf */ 'use strict'; var myname = 'wizzi.js.artifacts.module.gen.codegen.statement'; var zvar ...
$(document).ready(function(){ $('#copybutton').click(function() { $('#text-convert').select(); document.execCommand('Copy'); }); $('#clearbutton').click(function() { var chr = $('#text-normal').val(); var head = "s3.console.aws.amazon.com/s3/buckets/" var url = head.concat(chr.slice(5)).toString() $('#...
let file; $('.custom-file-input').on('change', function(e){ file = $(e.target)[0].files[0]; $(this).parent().find('.custom-file-label').text(file.name) }); let submitForm = async function() { console.log(file); let formData = new FormData(); formData.append('photo', file, file.name); try { ...
'use strict'; const rootPrefix = '../..', OSTBase = require('@ostdotcom/base'), BigNumber = require('bignumber.js'), coreConstants = require(rootPrefix + '/config/coreConstants'), kwcConstants = require(rootPrefix + '/lib/globalConstant/kwc'), responseHelper = require(rootPrefix + '/lib/formatter/response');...
import gql from 'graphql-tag'; export default gql` mutation($from:String!,$to:String!,$message:String!){ sendMessage(from:$from,to:$to,message:$message){ id from names messages } } `;