text
stringlengths
3
1.05M
/******/ (function() { // webpackBootstrap /*!*****************************************************!*\ !*** ./resources/js/pages/table-responsive.init.js ***! \*****************************************************/ /* Template Name: Skote - Admin & Dashboard Template Author: Themesbrand Website: https://themesbrand...
module.exports = { siteMetadata: { title: `Gatsby Starter Blog`, author: { name: `Mragang Jain`, summary: `who lives in Gwalior building useful things.` }, description: `A starter blog demonstrating what Gatsby can do.`, siteUrl: `https://some-jsfunction.netlify.app/`, social: { ...
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json import os.path as osp import time from glob import glob import pytest import habitat import habitat.datase...
/** * @file The event processor test spec * 缺少随机数分支的测试,无法预知会取出的随机数,因此覆盖率未达到100%。 * * @author Sharon_zd@qq.com */ 'use strict'; const assert = require('assert'); const {fakeProcessorOptions, getTemplateEventPlugin} = require('test/helper'); const templateProcessor = require('okam/processor/template/index'); desc...
""" These tools help you identify, quantify, and visualize spatial patterns in your data. calculate_density takes known quantities of some phenomenon and spreads these quantities across the map. find_hot_spots identifies statistically significant clustering in the spatial pattern of your data. """ import json as _json...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jul 12 01:33:57 2019 @author: jianlongyuan Function: set wanted event's longitude and latitude """ #%% import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib as mpl import os from obspy import read from obspy.core...
webpackJsonp([3,8],{197:function(t,e){t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDUxMiA1MTIiIGlkPSJMYXllcl8xIiB2ZXJzaW9uP...
const { CleanWebpackPlugin } = require("clean-webpack-plugin"); module.exports = { publicPath: "static/", configureWebpack: { devServer: { writeToDisk: true }, plugins: [new CleanWebpackPlugin()] } };
import React, {Component} from 'react'; import {Button, Table} from 'reactstrap'; import TimeAgo from 'react-timeago'; import {Line} from 'react-chartjs-2'; class mltraining extends Component { constructor(props){ super(props); this.state = { statusCheck: false } } onC...
"""Utility methods for flake8.""" import collections import fnmatch as _fnmatch import inspect import io import os import platform import re import sys import tokenize DIFF_HUNK_REGEXP = re.compile(r'^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@.*$') COMMA_SEPARATED_LIST_RE = re.compile(r'[,\s]') LOCAL_PLUGIN_LIST_RE = re.c...
import React from "react"; import "./ProfileSelectAvatarBackgroundRecentPhotos.css"; export const ProfileSelectAvatarBackgroundRecentPhotos = (props) => { return ( <div className={"profile-select-avatar-background-recent-photos-wrapper"} > <div className={"profile-select-avatar-background...
import { gql } from 'apollo-server-express'; const enumTypes = gql` enum Enum_UserRoles { ADMINISTRADOR USUARIO } `; export { enumTypes }
import React from 'react'; import {useTable, usePagination} from 'react-table'; const DefaultTableV7 = (props) => { };
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("language","uk",{button:"Установити мову",remove:"Вилучити мову"});
import React from 'react'; import styled from 'styled-components'; import TechIcons from '../../../SharedUI/TechIcons/TechIconsContainer'; import ControlBtns from '../../../SharedUI/Modal/ControlBtns/ControlBtns'; const Header = styled.h5` margin: 10px; margin-left: 1px; `; const Para = styled.p` margin: 1px; ...
"use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["client-project-create"],{ /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/client/views/project/CreateComponent.vue?vue&type=script&lang...
const crypto = require('crypto'), config = require('./config'), NodeCache = require( "node-cache" ), rp = require('request-promise'); var mycache = new NodeCache(); //steps 1,2,3 module.exports.home = async (req,res,next)=>{ let token = req.session.token; if(token){ try{ const { images, folders ...
const { RandomRedditPostCommand } = require('../../') module.exports = class Yiff extends RandomRedditPostCommand { constructor (client) { super(client, { name: 'yiff', subreddit: 'yiff', category: 'nsfw', requirements: { nsfwOnly: true } }) } }
__all__ = ('list_from', 'random_from', 'list_all', 'random') import bisect import csv import itertools import os import random _DATASET = None DATASET_FILENAME = 'dataset_en.csv' def get_dataset(): global _DATASET if _DATASET is None: _DATASET = sorted(set(load())) return _DATASET def load(): ...
import extract from "../../lib/img-extract" import replaceColors from "../../lib/canvas-replace" export default function disasmVs(image, palette) { let oldColors = [ [ 255, 255, 255, 255 ], [ 204, 204, 204, 255 ], [ 102, 102, 102, 255 ], [ 51, 51, 51, 255 ], [ 0, 0, 0, 255 ], ] let newColors = [ ...
import React, { Component } from 'react'; import { render } from 'react-dom'; import MapGL from 'react-map-gl'; import ScreenGridOverlay from './ScreenGridOverlay'; import NoisePollutionOverlay from './NoisePollutionOverlay'; import { json as requestJson } from 'd3-request'; const DATA_URL = 'istanbul_noise_pollution....
"use strict"; /** * Visit Creator * @type {{init: Window.visit_creator.init, populate: {doctor: Window.visit_creator.populate.doctor, patient: Window.visit_creator.populate.patient, report: Window.visit_creator.populate.report}, v: *, isDefined: (function(): boolean), check: Window.visit_creator.check}} * @author C...
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
var Space = { "free": 0, "max": 0, "used": 0, "freePercentage": 0, "saved": 0 } _SpaceUpdate(); function _SpaceGetMax() { let storage = 0; for (let app in _applications) { app = _applications[app]; if (app.protected) continue; storage += app.size; } re...
var Target = require("montage/core/target").Target, Promise = require("montage/core/promise").Promise; var ExtensionController = exports.ExtensionController = Target.specialize({ init: { value: function () { return this; } }, loadExtensions: { value: function () { ...
'use strict'; var panelMod = angular.module('mdwPanel', ['mdw']); // device-specific wrap panelMod.directive('mdwPanelCollapse', [function() { return { restrict: 'E', templateUrl: 'ui/panel-collapse.html', scope: { isCollapsed: '=mdwCollapsed' } }; }]);
import BinanceSmartHero from '../../Assets/articles/binance-smart.png'; import BinanceSmartSlice from '../../Assets/articlesSlice/binance-smart-slice.png'; export const BinanceSmart = { // id acts as route -> '/articles/:id' id: 'BinanceSmart', title: 'Binance Smart Chain', level: 'Beginner', heroImage: Bina...
/** * Symbol : @file * * Yaga symbol objects. */ 'use strict'; let _ = undefined; var Yaga = require('../core'); var Common = require('./Common').Common; var Mach, SymList, SymAssign; let Symbol = Yaga.Influence({ name: 'yaga.machine.Symbol', composition: [{ prototype: { thisArg_: {...
import weatherApi from "./weather"; export { weatherApi };
var pageComponent = webpackJsonppageComponent([37],{ /***/ 296: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _metalComponent = __webpack_require__(0); var _metalComponent2 = _interopRequireDefault(_metalComponent); var ...
import axios from 'axios'; import { useState, useEffect } from 'react'; function ApiCall() { const [loading, setLoading] = useState(false); const [payload, setPayload] = useState(null); const [error, setError] = useState(null); const fetchData = async () => { setLoading(true); try { const respon...
from ._abstract import AbstractScraper from ._utils import normalize_string class Abril(AbstractScraper): @classmethod def host(cls): return "claudia.abril.com.br" def title(self): return self.schema.title() def total_time(self): return self.schema.total_time() ...
#!/usr/bin/python import binascii import hashlib import os import re import shutil import subprocess import sys import tempfile import unittest TOR = "./src/or/tor" TOP_SRCDIR = "." if len(sys.argv) > 1: TOR = sys.argv[1] del sys.argv[1] if len(sys.argv) > 1: TOP_SRCDIR = sys.argv[1] del sys.argv[1]...
import React, { useState } from "react"; import { create as ipfsHttpClient } from "ipfs-http-client"; const client = ipfsHttpClient("https://ipfs.infura.io:5001/api/v0"); function Create() { const [fileUrl, setFileUrl] = useState(null); async function onChange(e) { // init NFTstorage Client const file = ...
""" This tutorial shows you how to train a reaching policy using rlpyt with SAC. """ from rlpyt.samplers.serial.sampler import SerialSampler from rlpyt.samplers.parallel.cpu.sampler import CpuSampler from rlpyt.algos.qpg.sac import SAC from rlpyt.agents.qpg.sac_agent import SacAgent from rlpyt.runners.minibatch_rl impo...
export default function diff(text1, text2) { //console.log(text1,text2); let table = ''; let acc = []; function make_result(x, y, type, text){ let result = { lineNumber1: y, lineNumber2: x, type: type, text: text }; acc.push(result); } function get_diff(make_row, matrix...
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var ArrowNarrowDown = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.cr...
var posts=4, num=2, previous="&#171;", next="&#187;"; eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c...
import React, { useState } from "react" import { Link, graphql } from "gatsby" import Img from "gatsby-image" import styled from "styled-components" import Layout from "../components/layout" import SEO from "../components/seo" import bottomFlower from "../images/product-flower-bottom.png" const Container = styled.div`...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import useStyles from 'isomorphic-style-loader/useStyle...
import Vue from 'vue' import Router from 'vue-router' import firebase from 'firebase' import Login from '@/components/Login' const routerOptions = [ // { path: '*', redirect: '/', component: 'Landing' }, { path: '/', component: 'Landing' }, { path: '/home', component: 'Home', meta: { requiresAuth: true } }, { path...
import { Command } from "mason.cli"; import KnexUtil from "../knex-util"; import Knex from "knex"; import path from "path"; export default class MigrateResetCommand extends Command { static help() { console.log(` Reset your knex database. Options: --exclude ...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides class sap.ui.dt.AggregationOverlay. sap.ui.define([ 'jquery.sap.global', 'sap/ui/dt/Overlay' ], function(jQuery, Overla...
import domParser from '../src/dom-parser'; import removeSetOfNodes from '../src/remove-set-of-nodes'; describe('removeSetOfNodes', () => { it('TypeError is thrown if nodes is not an Array', () => { expect(() => removeSetOfNodes(1)).toThrowError(TypeError); }); it('TypeError is thrown if one of nodes is not ...
/** * The OWASP CSRFGuard Project, BSD License * Eric Sheridan (eric@infraredsecurity.com), Copyright (c) 2011 * 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 o...
let handler = async (m, { conn }) => { let api-hyzer = 'https://api.zacros.my.id/asupan/vietnam' conn.sendButtonImg(m.chat, api-hyzer, 'Nih', wm2, 'NEXT', '.vietnam', m) } handler.help = ['vietnam'] handler.tags = ['asupan'] handler.command = /^(vietnam)$/i module.exports = handler
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const autoprefixer = require('autoprefixer'); const safeParser = require('postcss-safe-parser'); const path = require('path'); /** * * Common Production Config * * @param ...
if (!a) { console.log('xxx'); }
class SuperAccess { prop = {}; method() {} } class Access extends SuperAccess {} Access.prototype.doesNoExist.throws; Access.prototype.method.doesNoExist.throws; Access.prototype.prop.throws;
# flake8: noqa E501 # ============================================================================= # Copyright (c) 2021 SeisSpark (https://github.com/kdeyev/SeisSpark). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtai...
'use strict'; const fs = require('fs'); const path = require('path'); const webpack = require('webpack'); const resolve = require('resolve'); const PnpWebpackPlugin = require('pnp-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CaseSensitivePathsPlugin = require('case-sensitive-paths-...
(function () { angular.module('managerApp').component('telephonyNumberRedirect', { templateUrl: 'components/telecom/telephony/group/number/feature/redirect/telephony-group-number-feature-redirect.html', require: { numberCtrl: '^telephonyNumber', }, controller: 'TelephonyNumberRedirectCtrl', })...
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
import styled from 'styled-components' export default styled.button` color: #fff; cursor: pointer; font-size: 0.7em; padding: 1em 3em; margin-bottom: 1em; border-radius: 3px; transition: 0.3s ease; border: 3px solid #fff; background: transparent; &:hover { color: #3023ae; background: #fff; ...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.0.3-master-e1c07ec */ goog.provide("ng.material.components.fabToolbar"),goog.require("ng.material.components.fabActions"),goog.require("ng.material.components.fabShared"),goog.require("ng.material.components.fabTrigger"),goog.r...
'use strict'; var is = require('bpmn-js/lib/util/ModelUtil').is, getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject; var extensionElementsEntry = require('./ExtensionElements'), extensionElementsHelper = require('../../../../helper/ExtensionElementsHelper'), cmdHelper = require('....
const remoteComponentPath = (moduleName, path) => { let component = null; switch (moduleName) { case "egov-tradelicence": if (path === "ui-atoms-local") { component = import("egov-tradelicence/ui-atoms-local"); } else if (path === "ui-molecules-local") { component = import("egov-trad...
import os import numpy import toughio hybrid_mesh = toughio.Mesh( points=numpy.array( [ [0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [1.0, 1.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0], [1.0, 0.0, 1.0], [1.0, 1.0, 1.0], [0...
import { actionTypes } from '../_actions/actionTypes'; let user = JSON.parse(localStorage.getItem('user')); const initialState = user ? { loggedIn: true, user } : {}; export function authentication(state = initialState, action) { switch (action.type) { case actionTypes.LOGIN_REQUEST: return { logg...
// dependencies const webpackMerge = require('webpack-merge') // Webpack configuration const commonConfig = require('./webpack.config.common') // Configuration const { context, entry, externals, name, output, optimization, plugins, stats, target } = require('./configuration') // Type of configuration ...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["page-sekolah-login"],{"00d8":function(t,a){(function(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(t,a){return t<<a|t>>>32-a},rotr:function(t,a){return t<<32-a|t>>>a},endian:function(t){if(t.constructor==Number)ret...
import numpy as np import torch from torch.utils.data import Dataset from torchvision import transforms import copy import scipy.io from scipy.sparse import csc_matrix, coo_matrix, csr_matrix class simulatedData(Dataset): def __init__(self, dataset_path, time_points = 5): self.data = torch.from_numpy(np.f...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Perform a functional test for demo purposes.""" import os import shutil import subprocess import tempfile from collections import defaultdict import numpy import pytest import yaml import orion.core.cli import orion.core.io.experiment_builder as experiment_builder from...
// Write a function which calculates the average of the numbers in a given list. // Note: Empty arrays should return 0. function find_average(array) { return array.reduce((a,b)=>a+b)/array.length } console.log(find_average([1,1,1])) console.log(find_average([1,2,3])) console.log(find_average([1,2,3,4]))
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: | It is permissible but not necessary to have one argument for each formal parameter to be specified es5id: 15.3.2.1_A2_T3 description: > Values of the function co...
var byteArray = require('../lib/bytearray'); var expect = require('chai').expect; describe('Test bytearray tranisitions', function() { it('should create arrays and compare it', function() { var a1 = new byteArray([1,2,3,4]); var a2 = new byteArray([1,2,3,4]); var b1 = new byteArray([4,3,2,1]); expec...
module.exports={A:{A:{"1":"A B","2":"I F E D hB"},B:{"1":"C O P H J K L T U M UB"},C:{"1":"0 1 2 3 4 5 6 7 8 9 m n o p q r s t u v w Q y z WB BB HB DB EB FB CB AB S N IB JB KB LB MB NB OB GB QB RB T U","2":"fB PB G V I F E D A B C O P H J K L W X Y Z a b c d e f g h gB oB","194":"i j k l"},D:{"1":"0 1 2 3 4 5 6 7 8 9 c...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[19],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vuetify-loader/lib/loader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/Profile.vue?vue&type=script&lang=js&": /*!*****************************************************...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/3.38/esri/copyright.txt for details. //>>built define("esri/dijit/metadata/types/arcgis/base/conditionals/INSPIRE_UseLimitation","dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/topic dojo/has ../../.....
import { log } from './functions'; import Callback from './callback'; export default class Async { constructor() { this.__asyncStatus = 0; this.__asyncList = []; this.__asyncProgress = null; this.__asyncRefresh = null; this.__asyncReady = 0; this.__asyncPer...
import { kebabCase } from "lodash" import React from "react" import { Link } from "gatsby" const Tag = ({ tag }) => ( <Link to={`/tags/${kebabCase(tag)}`} className="underline text-sm text-blue-500 mr-4">#{kebabCase(tag)}</Link> ) export default Tag;
/** * Created by amandaghassaei on 2/25/17. */ function initPattern(globals){ var FOLD = require('fold'); var foldData = {}; var rawFold = {}; function clearFold(){ foldData.vertices_coords = []; foldData.edges_vertices = []; foldData.edges_assignment = [];//B = boundary, M...
// import produce from 'immer'; import exchangeReducer from '../reducer'; // import { someAction } from '../actions'; /* eslint-disable default-case, no-param-reassign */ describe('exchangeReducer', () => { let state; beforeEach(() => { state = { // default state params here }; }); it('returns t...
define('Lib/StickyHeader/StickyHeaderManager/StickyHeaderManager', [ 'Env/Env', 'Core/deprecated', 'Env/Event', // 'Core/helpers/Function/debounce', 'css!Lib/StickyHeader/StickyHeaderManager/StickyHeaderManager' ], function(Env, deprecated, EnvEvent/*, debounce*/) { 'use strict'; /* jshint maxcompl...
'use strict'; const assert = require('assert'); const Chrome = require('../'); describe('registering event', function () { describe('with callback', function () { describe('"event"', function () { it('should give the raw message', function (done) { Chrome(function (chrome) { ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[]]);!function(t){function e(e){for(var r,a,s=e[0],c=e[1],u=e[2],f=0,p=[];f<s.length;f++)a=s[f],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(t[r]=c[r]);for(l&&l(e);p.length;)p.shift(...
const mongoose = require('mongoose') mongoose.connect('mongodb://127.0.0.1:27017/exam', { useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true, useFindAndModify: false })
import Ember from 'ember'; export default Ember.Mixin.create({ model: function(params) { return Ember.Object.create({ resource: this.getResource(params), service: this.getService(params), uiState: this.defaultUiState() }); }, defaultUiState: function() { return Ember.Object.create(...
import React, {Component} from 'react'; import {RadioGroup, Radio} from 'react-mdl'; class PreferencesIndex extends Component { state = { selected: 'true', }; toggleChange = () => { this.setState ({ selected: !this.state.selected, }); }; render () { console.log("preferences"); re...
import argparse import os import sys import glob import math import time import keras import random import socket import subprocess import numpy as np import tensorflow as tf import keras.backend as K from collections import Counter from tensorflow import set_random_seed from keras.models import Sequential from keras.l...
var coords = new Array( new Array(48.2990917,17.0153056,'1 Bratislava - Brno - Objednajte si ECOBOARD','showPrevadzka'), new Array(48.2990917,17.0153056,'2 Brno - Bratislava - Objednajte si ECOBOARD','showPrevadzka'), new Array(48.3085444,17.0161444,'3 Brno - Bratislava - Objednajte si ECOBOARD','showPrevad...
import React, { useContext } from "react"; import { Layout, Seo } from "components/common"; import { Container } from 'components/common'; import { ThemeContext } from 'providers/ThemeProvider'; import { PeopleWelcome } from "../components/landing"; import { Wrapper, PersonGrid, Item, Content } from '../components/land...
#!/usr/bin/env node require('@babel/register')({ extensions: ['.js', '.jsx', '.ts', '.tsx'], presets: [ ['@babel/preset-env', { targets: { node: '6.9.0' }, useBuiltIns: 'usage', corejs: 3 }], '@babel/preset-typescript', ], plugins: ['@babel/plugin-syntax-dynamic-import'], cache: false, }) const { run...
const { offlineFallback, warmStrategyCache } = require('workbox-recipes'); const { CacheFirst, StaleWhileRevalidate } = require('workbox-strategies'); const { registerRoute } = require('workbox-routing'); const { CacheableResponsePlugin } = require('workbox-cacheable-response'); const { ExpirationPlugin } = require('wo...
'use strict'; class Example extends React.Component { constructor(props) { super(props); this.state = { count: 0 }; } componentDidMount() { document.title = `You clicked ${this.state.count} times`; } componentDidUpdate() { document.title = `You clicked ${thi...
/** * Level * * Allowed children: AtCenter, AtLeft, AtRight */ import React from 'react' import PropTypes from 'prop-types' import invariant from 'invariant' import { styled, propTypeBreakpoint, propTypeAlignItems } from '../../utils' import { breakpoint } from '../../mixins' import AtCenter from '../AtCenter'...
from django.contrib import admin from .models import Tip @admin.register(Tip) class TipsAdmin(admin.ModelAdmin): list_display = ('slug', 'title', 'create_date')
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=3 # total number=44 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...
export const pdp = (url) => { const u = new URL(url); return ` <section class="pdp"> <h1>Product #${u.searchParams.get('product')}</h1> Ima Fake PDP <button type="button" class="pdp__back-btn" onclick="history.back()">&lt;&lt;Go Back</button> </section> `; }; export const LOAD_MORE_SELE...
import React from 'react' export const Title = ({title}) => <div className='page-header'> <h1>{title}</h1> </div> export default Title
var config = { client_id: top.gpClientId, scope: ['https://www.googleapis.com/auth/plus.me','https://www.googleapis.com/auth/userinfo.email','https://www.googleapis.com/auth/userinfo.profile'], immediate: false }; $(document).ready(function() {gpLoad();}); function gpLoad(){ $.getScript("https://apis.google.com/js/...
var loadScript = require('../loader'); describe('loadScript', function() { /** * Load 10 instances of jQuery in parallel. (There won't actually be 10 * in-flight requests due to the browser's per-domain connection limit, but * the point is just to have several scripts loading at the same time.) Load * th...
export { default } from './utils/resolve-asset'; export * from './utils/resolve-asset'; export { load } from './-private/asset-map-loader';
_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[28],{"2l/u":function(e,t,n){"use strict";n.r(t);var i=n("q1tI"),a=n.n(i),r=n("YFqc"),o=n.n(r),l=n("RKUm"),s=a.a.createElement;t.default=function(){return s(l.a,{title:"About | Next.js + TypeScript Example"},s("h1",null,"About"),s("p",null,"This is the ab...
import { store } from "store/index"; export const userDispatch = (data) => { store.dispatch({ type: "CS_USER_LOGIN", data }); }; export const userLogoutDispatch = () => { store.dispatch({ type: "CS_USER_LOGOUT" }); }; export const alertDispatch = (type, msg) => { store.dispatch({ type: "SHOW_ALERT", options: {...
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Welsh language. */ /**#@+ @type String @example */ /** * Contains the dictionary of langu...
var DatatablesExtensionsScroller = function() { var initTable1 = function() { var table = $('#m_table_1'); // begin first table table.DataTable({ responsive: true, ajax: 'https://keenthemes.com/metronic/themes/themes/metronic/dist/preview/inc/api/datatables/demos/server.php', deferRender: tru...
# -*- coding: utf-8 -*- import unittest from cwr.parser.encoder.dictionary import NonRomanAlphabetWorkDictionaryEncoder from cwr.non_roman_alphabet import NonRomanAlphabetWorkRecord """ NRAWorkRecord to dictionary encoding tests. The following cases are tested: """ __author__ = 'Bernardo Martínez Garrido' __licens...
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark...
import csv import glob import math import os import torch from astropy.io import fits from six.moves import urllib def load_GG2_images(images): images = [fits.open(file, memmap=False)[0].data for file in images] images = [torch.from_numpy(x.byteswap().newbyteorder()) for x in images] # normalize the sec...