text stringlengths 3 1.05M |
|---|
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Header from './Header';
import styles from './style/10.11';
class Section extends Component {
static propTypes = {
header: PropTypes.oneOfType([
PropTypes.string,
PropTypes.element,
PropTypes.array
])
};
... |
# coding=utf-8
# Copyright 2021 TF.Text 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 applicable law or ag... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{372:function(e,t,o){"use strict";o.r(t);var a=o(44),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[o("h1",{attrs:{id:"going-global-lessons-about-startup-growth... |
(function(module) {
jashboard.model = _.extend(module, {
inputOptions: {
createMode: "create",
updateMode: "update"
}
});
}(jashboard.model || {}));
|
# coding=utf-8
# Copyright 2021 The Google Research 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 applicab... |
'''
Bisection
Monthly interest rate = (Annual interest rate) / 12.0
Monthly payment lower bound = Balance / 12
Monthly payment upper bound = (Balance x (1 + Monthly interest rate)**12) / 12.0
Test Case 1:
balance = 320000
annualInterestRate = 0.2
Result Your Code Should Generate:
---... |
const Listing = artifacts.require("./Listing.sol")
const Purchase = artifacts.require("./Purchase.sol")
// Used to assert error cases
const isEVMError = function(err) {
let str = err.toString()
return str.includes("revert")
}
const timetravel = async function(seconds) {
var transaction = await web3.currentProvi... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{207:function(A,a,e){"use strict";e.r(a);var c=e(3),t=e(0),b=e.n(t),n=e(213),i=e(233),f=function(){return i.data.allMdx.nodes.map(function(A){return{title:A.frontmatter.title,author:A.frontmatter.author,slug:A.frontmatter.slug,image:A.frontmatter.image,excerpt:A.e... |
$(document).ready(function () {
setTimeout(function() {
addModalBoxEveryScreen()
}, 2000);
addLogicForCategoryCheckBox();
});
function addModalBoxEveryScreen() {
$("#exampleModal").modal('show');
}
// Function for Category Check Box
function addLogicForCategoryCheckBox(){
let isChecked = [... |
import { getParameters } from "codesandbox/lib/api/define";
const indexHtml = `<!DOCTYPE html>
<html lang="en">
<head>
<title>Yoga UI Demo</title>
<style>
body {
padding: 24px;
}
</style>
</head>
<body>
<div id="app"></div>
</body>
</html>
`;
const appVue = `<template>
<d... |
/*
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( 'save', 'az', {
toolbar: 'Yadda saxla'
} );
|
from __future__ import absolute_import
from proteus import *
try:
from .twp_navier_stokes_p import *
from .risingBubble import *
except:
from twp_navier_stokes_p import *
from risingBubble import *
if timeDiscretization=='vbdf':
timeIntegration = VBDF
timeOrder=2
stepController = Min_dt_cfl... |
# Copyright 2019 Huawei Technologies Co., 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... |
import React from "react";
export function Loader() {
return <p>Loading...</p>;
}
|
'use strict';
/**
* Module dependencies.
*/
var _ = require('lodash'),
path = require('path'),
config = require(path.resolve('./config/config')),
mongoose = require('mongoose'),
Contact = mongoose.model('Contact'),
User = mongoose.model('User'),
nodemailer = require('nodemailer'),
async =... |
import { settings } from 'meteor/rocketchat:settings';
settings.addGroup('Logs', function() {
this.add('Log_Exceptions_to_Channel', '', { type: 'string' });
});
|
var path = require('path'),
spawn = require('child_process').spawn,
phantomProxy = require('phantom-proxy'),
ROOT = path.resolve(__dirname + '/../') + '/',
LIB = ROOT + 'lib/',
TEST = ROOT + 'test/';
module.exports = {
ROOT: ROOT,
LIB: LIB,
TEST: TEST,
check: check,
withLuxRunni... |
// @version 1.8.0
// @package hecMailing for Joomla
// @module views.form.tmpl.default.php (associated javascript module)
// @subpackage : View Form (Sending mail form)
// @copyright Copyright (C) 2008-2013 Hecsoft All rights reserved.
// @license GNU/GPL
//
// This program is free software; you can redistribute it and... |
// load the things we need
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
var Schema = mongoose.Schema;
// define the schema for our user model
var userSchema = new Schema({
// _id : Schema.ObjectId,
local : {
email : String,
... |
module.exports = function(application){
application.get('/', function(request, response) {
application.app.controllers.index.home(application, request, response);
});
} |
from dbt.model import Csv
import dbt.clients.system
class Source(object):
def __init__(self, project, own_project=None):
self.project = project
self.project_root = project['project-root']
self.project_name = project['name']
self.own_project = (own_project if own_project is not No... |
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# 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 appli... |
<link rel="stylesheet" class="aplayer-secondary-style-marker" href="\assets\css\APlayer.min.css"><script src="\assets\js\APlayer.min.js" class="aplayer-secondary-script-marker"></script>/*! jQuery v3.0.0 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"use strict";"object"==typeof module&&"object"==typeo... |
//// [unaryPlus.ts]
// allowed per spec
var a = +1;
var b = +(<any>"");
enum E { some, thing };
var c = +E.some;
// also allowed, used to be errors
var x = +"3"; //should be valid
var y = -"3"; // should be valid
var z = ~"3"; // should be valid
//// [unaryPlus.js]
// allowed per spec
var a = +1;
var b = +"";
... |
// @flow
/* eslint-disable no-undef */
declare type APIPictureResponseType = {
source_url: string,
}[];
|
// @flow
import React, { useState } from "react";
import {
StyleSheet,
View,
TouchableWithoutFeedback,
Platform,
} from "react-native";
import Animated from "react-native-reanimated";
import type AnimatedValue from "react-native/Libraries/Animated/src/nodes/AnimatedValue";
import { useSafeArea } from "react-na... |
import React from 'react';
import {Table,Button} from 'semantic-ui-react';
export default class RemoveRow extends React.Component {
render() {
return (
<Table.Row>
<Table.Cell>{this.props.item.type}</Table.Cell>
<Table.Cell>{this.props.item.count}</Table.Cell>
<Table.Cell>{this.props.item.price}</T... |
class Food:
def __init__(self, nutrition):
self.nutrition = nutrition
|
/**
* Copyright (c) 2014, 2016, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
"use strict";
define(['./DvtToolkit', './DvtSubcomponent'], function(dvt) {
// Internal use only. All APIs and functionality are subject to change at any time.
(function(dvt) {
/**
* The base c... |
import React from 'react';
import { render } from '@testing-library/react';
import App from './index';
test('renders learn react link', () => {
const { getByText } = render(<App />);
const linkElement = getByText(/OrderReport/i);
expect(linkElement).toBeInTheDocument();
});
|
const S = require("sequelize");
const sequelize = require("../config/db");
const bcrypt = require("bcrypt");
class User extends S.Model {
hash(password, salt) {
return bcrypt.hash(password, salt);
}
}
User.init(
{
name: {
type: S.STRING,
allowNull: false,
},
email: {
ty... |
from flask_wtf import FlaskForm
from wtforms import SelectField, TextField, SubmitField
class QlikmeForm(FlaskForm):
name = TextField("Name")
color = TextField("Favorite Color")
pet = SelectField("Favorite Pet", choices=[('Cat', 'Cats'), ('Dog', 'Dogs')])
submit = SubmitField("Submit")
|
"use strict";
//helpers.js
const readline = require("readline"),
csv = require("csvtojson"),
{ DateTime } = require("luxon");
let s3Metadata = null;
function startQueryExecution(config) {
const params = {
QueryString: config.sql,
WorkGroup: config.workgroup,
ResultConfiguration: {... |
import React from 'react';
import Anchor from '../../components/Anchor';
import Container from '../../components/Container';
import Text from '../../components/Text';
import Title from '../../components/Title';
import withPrism from '../../utils/withPrism';
const Options = () => (
<Container className="content" st... |
/*
* @Author: shylocks https://github.com/shylocks
* @Date: 2021-01-27 16:25:41
* @Last Modified by: shylocks
* @Last Modified time: 2021-01-27 21:25:41
*/
/*
京东超级盒子
活动时间:未知
更新地址:https://gitee.com/lxk0301/jd_scripts/raw/master/jd_super_box.js
活动入口:https://prodev.m.jd.com/mall/active/21uMxFV5yiP4ivdSbmHqv5f2aXFK/... |
'use strict';
const helpers = require('../rest/mockServer');
const stubTransport = require('nodemailer-stub-transport');
const resetpassword = require('../../../modules/emails/resetpassword');
const pendingapproval = require('../../../modules/emails/pendingapproval');
const requestaccepted = require('../../../modul... |
/**
* Copyright JS Foundation and other contributors, http://js.foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... |
import { buildMessage, ValidateBy } from "../common/ValidateBy";
import validator from "validator";
export const IS_EAN = "isEAN";
/**
* Check if the string is an EAN (European Article Number).
* If given value is not a string, then it returns false.
*/
export function isEAN(value) {
return typeof value === "str... |
import logging
import time
from typing import Any, Optional
from .boto3_proxy import SessionProxy
from .utils import HandlerRequest
class ProviderFilter(logging.Filter):
def __init__(self, provider: str):
super().__init__()
self.provider = provider
def filter(self, record: logging.LogRecord)... |
# -*- coding: utf-8 -*-
import os
from flask import Flask, Blueprint
from flask_restplus import Api
from common import COMMON_DIRECTORY
from common.helpers.operationResults import OperationResults
CONFIGURE_FILE = f'{COMMON_DIRECTORY}/config.json'
CONFIGURE_HASH = os.environ.get("CONFIG_HASH", default="b17913cc95df7a2... |
Template.book.helpers({
log: function(device) {
console.log(device);
//TODO new collection key -> Device._id
}
}); |
import * as React from 'react'
import Link from 'next/link'
import CarbonAds from './CarbonAds'
import BytesForm from './BytesForm'
export const Footer = props => {
return (
<div className="bg-gray-50 border-t border-gray-200">
<div className="container mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8">
... |
import { ObjectMap } from '@ringcentral-integration/core/lib/ObjectMap';
import { baseActionTypes } from '../../lib/DataFetcher/baseActionTypes';
export const actionTypes = ObjectMap.prefixKeys(
[
...ObjectMap.keys(baseActionTypes),
'delete',
'upsert',
'setShowDisabled',
'setShowNotActivated',
... |
import React from 'react';
import { Link } from 'gatsby';
import PropTypes from 'prop-types';
import { Helmet } from 'react-helmet';
import styled from 'styled-components';
import { Icon } from '@components/icons';
const StyledHeader = styled.div`
text-align: center;
margin-bottom: 30px;
`;
const StyledText = sty... |
define([ 'require', 'exports', 'log', 'util', 'message', 'comm', 'configuration.model', 'blockly', 'jquery', 'bootstrap-table' ], function(require, exports,
LOG, UTIL, MSG, COMM, CONFIGURATION, Blockly, $) {
function init() {
// initView();
initEvents();
}
exports.init = init;
f... |
function setCookie(name,value,days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
}
function getCooki... |
// ..........................................................
// COPYABLE TESTS
//
Ember.CopyableTests.extend({
name: 'Ember.Set Copyable',
newObject: function() {
var set = new Ember.Set();
set.addObject(Ember.generateGuid());
return set;
},
isEqual: function(a,b) {
if (!(a instanceof Ember.S... |
mycallback( {"CONTRIBUTOR OCCUPATION": "SENIOR VICE PRESIDENT", "CONTRIBUTION AMOUNT (F3L Bundled)": "153.90", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "MASSACHUSETTS MUTUAL LIFE INS.", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "18 ANNA MARIE LN", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CA... |
import phina from 'phina.js'
import { FONT } from '../constants'
import TitleScene from './TitleScene'
export default phina.define('mc.scene.PauseScene', {
superClass: phina.display.DisplayScene,
init(options) {
this.superInit(options)
this.backgroundColor = '#eee'
phina.display
.Label({
... |
# You will be given an integer n for the size of the snake territory with square shape. On the next n lines,
# you will receive the rows of the territory. The snake will be placed on a random position, marked with the letter 'S'.
# On random positions there will be food, marked with '*'. There might also be a lair on t... |
var searchData=
[
['amqp_20data_20types',['AMQP data types',['../group__amqp__types.html',1,'']]],
['api_20data_20types',['API data types',['../group__api__types.html',1,'']]],
['advanced_20topics',['Advanced topics',['../md__tmp_rgemmell_transom_qpid-proton-0_826_80_c_docs_advanced.html',1,'']]]
];
|
import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
import numpy as np
import random
def expr_reducers():
data = [[random.uniform(-10000,10000) for r in range(10)] for c in range(10)]
h2o_data_1 = h2o.H2OFrame(zip(*data))
np_data = np.array(data)
row, col = h2o_dat... |
/* @flow */
import React, { PropTypes } from 'react'
import ReactDOM from 'react-dom'
import { connect } from 'react-redux'
import { Link } from 'react-router'
// import { setPlacename } from '../../system/reducers/placename'
import Mainpanel1Pill from './../../system/components/Mainpanel1Pill'
class Mainpanel1 extend... |
var searchData=
[
['radiobox_2eh',['radiobox.h',['../radiobox_8h.html',1,'']]],
['radiobut_2eh',['radiobut.h',['../radiobut_8h.html',1,'']]],
['rawbmp_2eh',['rawbmp.h',['../rawbmp_8h.html',1,'']]],
['rearrangectrl_2eh',['rearrangectrl.h',['../rearrangectrl_8h.html',1,'']]],
['recguard_2eh',['recguard.h',['../... |
import './App.css';
const App = () => {
return (
<div>
<h1>Hello</h1>
</div>
);
};
export default App;
|
// if you develop locally you can influence the executed tests as follows:
// `process.env.TAGS = ' @some-tag'`
// IMPORTANT: never forget to delete it again, otherwise only those tests will run in CI/CD environment!
// common options also apply to live-mode
const common = [
'src/features',
'--require-module ts-no... |
import Query, { QUERY_REGISTRY } from "../query/Query.js";
import AccountId from "./AccountId.js";
import TransactionRecord from "../transaction/TransactionRecord.js";
/**
* @namespace proto
* @typedef {import("@hashgraph/proto").IQuery} proto.IQuery
* @typedef {import("@hashgraph/proto").IQueryHeader} proto.IQuery... |
import serial
ser = serial.Serial('/dev/ttyUSB0', 9600)
while 1:
if(ser.in_waiting >0):
line = ser.readline()
print(line)
|
import { selectPrimaryWalletByAccountId } from './selector'
describe('selectors wallet', () => {
test('should select primary wallet of current account', () => {
const state = {
accounts: { 'a': { id: 'a' } },
wallets: {
b: {
account_id: 'a',
identifier: 'primary'
}... |
import React from "react";
import { Link } from "react-router-dom";
function Header(props) {
return (
<nav className="navbar navbar-expand-lg navbar-light bg-warning px-2 font-weight-bold ">
<button
className="navbar-toggler px-2"
type="button"
data-toggle="collapse"
data-target="#... |
/* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.*/
(function(a){var b={"function":!0,object:!0},c=b[typeof exports]&&exports&&!exports.nodeType&&exports,d=b[typeof self]&&self.Object&&self,e=b[typeof window]&&window&&window.Object&&wind... |
'use strict';
const config = require('config');
const _ = require('lodash');
const telegramBot = require('./lib/telegram');
const telegramUtils = require('./lib/telegram/utils');
const botCommands = require('./lib/telegram/commands');
if (_.isObject(config.hapi)) {
const hapiServer = require('./lib/hapi');
}
teleg... |
import pytest
from subprocrunner.retry import Retry
class Test_Retry_repr:
def test_normal(self):
assert (
str(Retry(backoff_factor=0.5, jitter=0.5))
== "Retry(total=3, backoff-factor=0.5, jitter=0.5)"
)
class Test_Retry_calc_backoff_time:
@pytest.mark.parametrize(
... |
const {
READY_FOR_REVIEW,
REJECTED,
REVIEW_REQUESTED,
IN_PROGRESS,
SECURITY
} = require('./utils/constants')
module.exports = async (github, owner, repo, payload) => {
const labels = {
[READY_FOR_REVIEW]: 'fef2c0',
[REJECTED]: 'e11d21',
[REVIEW_REQUESTED]: 'fef2c0',
[IN_PROGRESS]: 'fef2c0',... |
function goToIncorectWord() {
//Fase 1A
document.getElementById('incorrectoDiv').style.display = '';
document.getElementById('incorrectoDivB').style.display = 'none';
document.getElementById('instructivoUno').style.display = 'none';
document.getElementById('preguntaUno').style.display = 'none';
... |
import os
import sys
import numpy as np
from skimage import io
from skimage import transform as transf
import tensorflow as tf
import time
VGG_MEAN = [103.939, 116.779, 123.68]
class Zoomout_Vgg16:
def __init__(self, vgg16_npy_path=None,zlayers=["conv1_1","conv1_2","conv2_1","conv2_2","conv3_1","conv3_2","conv3... |
import request from '@/utils/request'
export function getRoleInfo(data) {
return request({
url: '/sys/role/list',
method: 'GET',
params:data
})
}
export function getRoleById(data) {
return request({
url: '/sys/role/roleInf',
method: 'GET',
params:data
})
}
export function getRole() {
... |
const http = require('http');
const fs = require('fs');
const port = 3000;
const server = http.createServer((req, res) => {
res.writeHead(200, {"Content-Type": "text/html"});
fs.readFile("./index.html", (err, data) => {
if (err) {
res.writeHead(404);
res.write(`Page not found (404)\n${err}... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.lang['pl']={"editor":"Edytor tekstu sformatowanego","editorPanel":"Panel edytora tekstu sformatowanego","common":{"editorHelp":"W celu uzyskania pomocy naciśnij ALT 0",... |
# Copyright (c) 2010-2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... |
var _ = require('lodash');
module.exports = {
improve: 'apostrophe-global',
beforeConstruct: function (self, options) {
// If grouping configuration is passed, group the fields together for coherent sets of controls
// There is a max depth of 2 groups
// TODO this recursive grouping could be refactor... |
while (0);
for (; 1; );
if (1);
|
import React, { Fragment } from 'react';
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
import PropTypes from 'prop-types';
import { Popover, Grid, Input, TextField, MenuItem, InputAdornment, FormControl, FormGroup, FormControlLabel, Checkbox, Icon } from '@material-ui/core';
import { withStyles... |
import { Box3, Box4, ContentWrapper } from '../globalStyles'
const SignIn = ({ shifted }) => {
return (
<ContentWrapper shifted={shifted}>
<Box4>
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
Accusantium vitae corrupti aperiam velit, beatae dolore impedit.
Neque temporibus pariatu... |
"""TcEx Framework Redis Module"""
# standard library
from typing import Optional
# third-party
import redis
# first-party
from tcex.backports import cached_property
class RedisClient:
"""A shared REDIS client connection using a Connection Pool.
Initialize a single shared redis.connection.ConnectionPool.
... |
/**
* @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
//-----------------------------... |
/*A herança das classes são baseadas em prototype*/
class Avo{
constructor(sobrenome){
this.sobrenome = sobrenome
}
}
//
class Pai extends Avo{
constructor(sobrenome, profissao = 'comerciante'){
super(sobrenome) //chama a funçao construtora da superclasse
this.profissao = profissao
... |
$(document).ready(function(){
// -----------------------------Blog-------------------------
$('.da_content_ar img').resizecrop({
width:320,
height:260,
vertical:"top"
});
$('.slider').slick({
slidesToShow: 4,
slidesToScroll: 4,
});
// -------------------banner---------------
$('.da_image').cl... |
import React, { Component, Fragment } from 'react';
import { formatMessage, FormattedMessage } from 'umi/locale';
import { Form, Input, Upload, Select, Button } from 'antd';
import { connect } from 'dva';
import styles from './BaseView.less';
import GeographicView from './GeographicView';
import PhoneView from './Phone... |
import pathlib
import setuptools
current_dir = pathlib.Path(__file__).parent.absolute()
def get_version():
with open(current_dir / "atmosphere" / "VERSION") as version_file:
return version_file.readlines()[1].strip()
setuptools.setup(
name="atmosphere",
author="Ambiata",
description="The a... |
/*
* Copyright IBM Corp. All Rights Reserved.
*
*
* SPDX-License-Identifier: Apache-2.0
*/
'use strict';
const CC = require('./lib/asset_transfer_ledger_chaincode.js');
module.exports.CC = CC;
module.exports.contracts = [ CC ];
|
{
'variables': {
'sseutils_root': '../..',
},
'includes': [
'common.gypi',
'config.gypi',
'../../sseutils.gypi',
],
'targets': [
# your M2M/IoT application
{
'target_name': '<(package_name)',
'sources': [
'<@(sseutils_src)',
'src/<(package_name).cc',
]... |
"use strict";
var TextEncoder = require("text-encoding").TextEncoder;
var configureLogError = require("../configure-logger");
var sinonEvent = require("../event");
var extend = require("just-extend");
function getWorkingXHR(globalScope) {
var supportsXHR = typeof globalScope.XMLHttpRequest !== "undefined";
i... |
// import R from 'ramda'
import { buildLog } from '@utils'
/* eslint-disable no-unused-vars */
const log = buildLog('L:ApiLayout')
/* eslint-enable no-unused-vars */
let apiLayout = null
export function someMethod() {}
export function init(selectedStore) {
log(apiLayout)
apiLayout = selectedStore
}
|
/*
*
* Contents actions
*
*/
import { DEFAULT_ACTION } from './constants';
export function defaultAction() {
return {
type: DEFAULT_ACTION,
};
}
|
/**
* Super simple wysiwyg editor v0.8.10
* https://summernote.org
*
* Copyright 2013- Alan Hong. and other contributors
* summernote may be freely distributed under the MIT license.
*
* Date: 2018-02-20T00:34Z
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? fac... |
/**
* Test dependencies.
*/
var start = require('./common')
, assert = require('assert')
, mongoose = start.mongoose
, utils = require('../lib/utils')
, random = utils.random
, Schema = mongoose.Schema
, ObjectId = Schema.ObjectId
, DocObjectId = mongoose.Types.ObjectId;
/**
* Setup.
*/
/**
* Use... |
var callbackArguments = [];
var argument1 = function callback(){callbackArguments.push(arguments)};
var argument2 = function callback(){callbackArguments.push(arguments)};
var argument3 = r_1;
var argument4 = function callback(){callbackArguments.push(arguments)};
var argument5 = null;
var argument6 = function ca... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayFundJointaccountTradeQueryModel import AlipayFundJointaccountTradeQueryModel
class AlipayFundJointaccountTradeQueryRequest(obj... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _enhancer = _interopRequireDefault(require("./enhancer"));
var _types = require("./... |
chrome.tabs.onUpdated.addListener( function ( tabId, changeInfo, tab ) {
const sites = {
0: { "domain": "globo.com", "selector": "#boxComentarios" },
1: { "domain": "noticias.band", "selector": "#disqus_thread" },
2: { "domain": "abril.com.br", "selector": ".comments" },
3: { "domain": "otempo.com.br", "s... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00de":function(t,e,n){"use strict";n.r(e);var r=n("5445"),i=n("d25e");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a... |
#!/usr/bin/env python
#
# Copyright (c) ZeroC, Inc. All rights reserved.
#
import os, sys, getopt, tempfile, getpass, shutil, socket, uuid, IceCertUtils
def usage():
print("usage: " + sys.argv[0] + " [--verbose --help --capass <pass>] init create list show export")
print("")
print("The iceca command manag... |
import React from 'react'
function OutOfStockTable() {
return (
<div className="out-of-stock-table">
<table class="table" style={{
color: 'black',
backgroundColor: '#4CCCC0',
marginBottom: '0px',
fontFamily: 'source sans pro',
... |
"""Fetch App Details from Playstore.
.app <app_name> to fetch app details.
.appr <app_name> to fetch app details with Xpl0iter request link.
"""
# Ported by Poco Poco
import requests
import bs4
import re
from telethon import *
from userbot import CMD_HELP
from userbot.events import register
@register(pa... |
(function () {
'use strict';
describe('Showcases List Controller Tests', function () {
// Initialize global variables
var ShowcasesListController,
$scope,
$httpBackend,
$state,
Authentication,
ShowcasesService,
mockShowcase;
// The $resource service augments the res... |
const mongoose = require('mongoose');
const bcrypt = require('bcrypt');
const SALT_ROUNDS = 6;
const userSchema = new mongoose.Schema({
username: String,
email: {type: String, required: true, lowercase: true, unique: true},
password: String,
bio: String
}, {
timestamps: true
});
userSchema.set('toJSON', {... |
"""
Fixtures and markers for testing.
`buvar_plugins` mark
.. code-block::
@pytest.mark.buvar_plugins("buvar.config")
"""
import pytest
PLUGINS_MARK = "buvar_plugins"
def pytest_configure(config):
config.addinivalue_line(
"markers", f"{PLUGINS_MARK}(*plugins): run the test in buvar plugin context"... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
/**
* Copyright (c) 2006-2012, JGraph Ltd
*/
/**
* Constructs a new graph editor
*/
EditorUi = function(editor, container, lightbox)
{
mxEventSource.call(this);
this.destroyFunctions = [];
this.editor = editor || new Editor();
this.container = container || document.body;
var graph = this.editor.graph;
gra... |