text stringlengths 3 1.05M |
|---|
import React, { Fragment } from 'react';
import { formatMessage } from 'umi/locale';
import Link from 'umi/link';
import { Icon } from 'antd';
import GlobalFooter from '@/components/GlobalFooter';
import SelectLang from '@/components/SelectLang';
import styles from './UserLayout.less';
import logo from '../../public/bg... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Popper = factory());
}(this, (function () {
'use strict';
Object.assign || Object.defineProper... |
'use strict';
const expect = require('chai').expect;
const filters = require('../src/common-filters');
describe('toNumber', function() {
it('object transform to number', function() {
expect(filters.toNumber({a:1, b:2})).to.be.NaN;
});
it('array transform to number', function() {
expect(fi... |
#!/usr/bin/env python
# coding: utf-8
from django.urls import path
from . import views
urlpatterns = [
path('callback', views.callback)
]
# from django.urls import path
# from .views import callback
# urlpatterns = [
# path('callback', callback)
# ]
|
/* eslint-env mocha */
const Tail = require('./Tail.js');
const chai = require('chai');
const _ = require('lodash');
describe('Tail is equal to _.tail', () => {
it('Tail is a function', () => {
chai.assert.isFunction(Tail, 'Tail is not a function');
});
it('expected input', () => {
var input = [ 0, 1, 2, 3, 4, ... |
window.onload = function(){
// Ciclo For: Iterar numeros
console.log("Primer For: Imprime los numeros del 0 al 10")
for(var i = 0; i <= 10 ; i++ ){
console.log(i);
}
// Ciclo For: Iterar un array
console.log("Segundo For: Imprime las palabras del array")
var arreglo = ["Hola", "mun... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(t,e,n){t.exports=n("56d7")},"028b":function(t,e,n){"use strict";var a=n("3f4d"),o=n.n(a);o.a},"18d5":function(t,e){t.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLE... |
from twisted.trial import unittest
import formal
class TestForm(unittest.TestCase):
def test_fieldName(self):
form = formal.Form()
form.addField('foo', formal.String())
self.assertRaises(ValueError, form.addField, 'spaceAtTheEnd ', formal.String())
self.assertRaises(ValueError, fo... |
# Import
from ..namespaces.migrations import api_migration
from flask_restx import fields
# List of models
access_key = api_migration.model('migrations access key', {
"access_key": fields.String(description="expected access key")
})
# Create database model
create_database = api_migration.inherit('creating databas... |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-08-19 10:24
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependen... |
p = loadEverything("2022");
p.then(() => {
document.getElementsByClassName("today-btn")[0].addEventListener("click", function() {
scrollToTodayAnimated();
});
document.getElementById("switch-btn").addEventListener("click", function() {
showYearPicker();
});
document.addEventListene... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { styled } from '@storybook/theming';
import { Formik } from 'formik';
import { Button, Input, styles } from '@storybook/design-system';
const MailingListFormUIWrapper = styled.div`
display: flex;
flex-direction: row;
`;
const Ema... |
import React, { Component } from 'react';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import { Provider } from 'react-redux';
import store from './store';
import Navbar from './components/layout/Navbar';
import Footer from './components/layout/Footer';
import Landing from './components/layout/La... |
'use strict';
var $ = require('preconditions').singleton();
var _ = require('lodash');
var util = require('util');
var Uuid = require('uuid');
var sjcl = require('sjcl');
var Address = require('./address');
var AddressManager = require('./addressmanager');
var Bitcore = require('litecore-lib');
var Constants = requi... |
webpackJsonp([1,0],[,function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(53),i... |
from all_args import *
from anonymize import *
from parse_audit import *
from traverse_files import *
import os
import pwd
import sys
import platform
import time
import subprocess
import getpass
import signal
def signal_handler(sig, frame):
subprocess.run(['auditctl', '-D'], stdout=subprocess.PIPE)
pr... |
# encoding: UTF-8
import json
import csv
import os
from collections import OrderedDict
from PyQt4 import QtGui, QtCore
from eventEngine import *
from vtFunction import *
from vtGateway import *
#----------------------------------------------------------------------
def loadFont():
"""载入字体设置"""
fileName = '... |
"""
ADMM Lasso
@Authors: Aleksandar Armacki and Lidija Fodor
@Affiliation: Faculty of Sciences, University of Novi Sad, Serbia
This work is supported by the I-BiDaaS project, funded by the European
Commission under Grant Agreement No. 780787.
"""
try:
import cvxpy as cp
except ImportError:
import warnings
... |
"""
Synchronization primitives:
- reader-writer lock (preference to writers)
(Contributed to Django by eugene@lazutkin.com)
"""
import contextlib
try:
import threading
except ImportError:
import dummy_threading as threading
class RWLock(object):
"""
Classic implementation of reader-writer lock wi... |
'use strict';
exports.find = function(req, res, next){
var outcome = {};
var userid = '';
if(req.user){
userid = req.user.id;
}
req.app.db.models.Wine.findAll({
where: { createdById: userid },
attributes: ['id', 'varietal', 'producer', 'wineName', 'vintage', 'quantity', 'myNotes',... |
// Copyright (c) 2021, omar jaber and contributors
// For license information, please see license.txt
frappe.ui.form.on('Onboard Employee', {
refresh: function(frm) {
set_progress_html(frm);
if (frm.doc.employee) {
frm.add_custom_button(__('Employee'), function() {
frappe.set_route("Form", "Employee", frm.... |
class SegiEmpat:
def __init__(self, panjang, lebar):
self.panjang = panjang
self.lebar = lebar
def hitung_luas(self):
"""
metode ini akan mengembalikan luas bangun menggunakan
hasil perkalian panjang dan lebar
"""
return self.panjang * self.lebar
@cl... |
import Vue from 'vue'
import axios from 'axios'
import VueSweetalert2 from 'vue-sweetalert2';
Vue.filter('currency', function (money) {
return accounting.formatMoney(money, "Rp ", 2, ".", ",")
})
Vue.use(VueSweetalert2);
new Vue({
el: '#dw',
data: {
product: {
id: '',
price:... |
/**
* dojox - A version of dojox.js framework that ported to running on skylarkjs.
* @author Hudaokeji, Inc.
* @version v0.9.0
* @link https://github.com/skylark-integration/dojox/
* @license MIT
*/
define({pageBreak:"Бет үзілімі"});
//# sourceMappingURL=../../../../sourcemaps/editor/plugins/nls/kk/PageBreak.js.m... |
from __future__ import print_function
from unittest import TestCase
import visioncpp as vp
from visioncpp import codegen
class test_codegen(TestCase):
def test_bad_device(self):
node_in = vp.Image("examples/lena.jpg")
node_out = vp.show(node_in)
with self.assertRaises(vp.VisionCppExceptio... |
var class_ext_1_1_net_1_1_mobile_1_1_resources_strategy =
[
[ "GetUrl", "de/d82/class_ext_1_1_net_1_1_mobile_1_1_resources_strategy.html#ab142f39d4ade3a5c954cae6375a10cc6", null ]
]; |
# system configuration generated and used by the sysconfig module
build_time_vars = {'ABIFLAGS': 'm',
'AC_APPLE_UNIVERSAL_BUILD': 0,
'AIX_GENUINE_CPLUSPLUS': 0,
'AR': 'ar',
'ARFLAGS': 'rc',
'ASDLGEN': 'python3.5 ./Parser/asdl_c.py',
'ASDLGEN_FILES': './Parser/asdl.py ./Parser/asdl_c.py',
'AST_ASDL': './Parser/Py... |
#
# 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
# ... |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var routes = require('./routes/index');
var users = require('./routes/users');
var app = express();... |
import '../colors/colors.js';
import '../../helpers/requestIdleCallback.js';
import { css, html, LitElement } from 'lit-element/lit-element.js';
import { getBoundingAncestor, getComposedParent } from '../../helpers/dom.js';
import { RtlMixin } from '../../mixins/rtl-mixin.js';
import { styleMap } from 'lit-html/directi... |
/*!
* Boosted v4.5.3 (https://boosted.orange.com)
* Copyright 2014-2020 The Boosted Authors
* Copyright 2014-2020 Orange
* Licensed under MIT (https://github.com/orange-opensource/orange-boosted-bootstrap/blob/master/LICENSE)
* This a fork of Bootstrap : Initial license below
* Bootstrap button.js v4.5.3 (h... |
const Joi = require('joi')
const transactions = require('../../utils/transactions.js')
exports.register = function (server, options, next) {
server.route({
method: 'GET',
path: '/transaction/{id}',
handler: function (request, reply) {
transactions.getTransaction(request.params.id, function (err, da... |
const router = require('koa-router')();
const { getComments, postComment } = require('../apis/Comments')
const { nologin, successCode } = require('../apis/config')
router.get('/getComments', async function (ctx) {
const userInfo = ctx.session.userInfo || {}
let params = {
key: ctx.request.query.no,
... |
import pulumi
from pulumi_azure import core, storage, servicebus, appservice, appinsights
from isodate import Duration, duration_isoformat
# Create an Azure Resource Group
resource_group = core.ResourceGroup('serverless-scheduler',
name='serverless-scheduler',
... |
import { PureComponent } from 'react';
import PropTypes from 'prop-types';
import './index.less';
export default function ResInfo(props) {
let [dataMain, dataSub] = props.data || [];
return (
<div className="res-info">
<span className={`cl ${props.iconCls} res-info--icon`} />
<div className="res-... |
/*
* Generated on 2016-08-30
* generator-assemble v0.5.0
* https://github.com/assemble/generator-assemble
*
* Copyright (c) 2016 Hariadi Hinta
* Licensed under the MIT license.
*/
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// '<%= config.src %>/templates/pages/{,... |
'''
Python code for Binary Search Tree
'''
class Node:
left = right = None
# initialization function
def __init__(self, value):
self.value = value
# A function to insert a new node with given value.
def insert(root, value):
if root is None:
root = Node(value)
else:
if v... |
import { h } from 'vue'
export default {
name: "ContactsBook2Line",
vendor: "Rx",
type: "",
tags: ["contacts","book","2","line"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"rx-contacts-book-2-line"... |
/* PL_edit
var choosing_pop_spec = false; */
var choosing_pop_spec = false;
/* PL_edit
var switching_allowed = true; */
var switching_allowed = false;
var switching_button_txt = "Switch to Plants";
var switch_to = "plants.htm?tetrapods.htm"; // add ./ to this
/* screen saver options*/
var screen_saver = {
... |
const codeTextJq = $("#code-in-jq");
const demoConsoleContainerJq = $("#demo-console-jq");
function jQueryScript(id) {
let number = id;
let btn = $("<button>");
let demoText = $("<p>");
btn.addClass("demo-btn");
if (demoConsoleContainerJq.children().length > 0) {
demoConsoleContainerJq.empty();
}
swi... |
"use strict";
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
function _asyncToGenerator(fn) { retur... |
import createMuiTheme from '@material-ui/core/styles/createMuiTheme';
import CssBaseline from '@material-ui/core/CssBaseline';
import ThemeProvider from '@material-ui/styles/ThemeProvider';
import AppContext from './AppContext';
import DashboardLayout from 'app/layouts/DashboardLayout';
import { theme } from 'app/cons... |
const SingleStepRunner = {};
SingleStepRunner.execute = (props, store) =>
new Promise((resolve) => {
const { actionCreator, gameFunction } = props;
if (R.isNil(actionCreator)) {
throw new Error("actionCreator undefined");
}
if (R.isNil(gameFunction)) {
throw new Error("gameFunction undef... |
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CloudWaveEffect = exports.SpaceEffect = exports.SnowFallSlowEffect = exports.SnowFallEffect = exports.SeaWaveEffect = exports.RainEffect = exports.OceanEffect = exports.MosaicGroundEffect = exports.TravelerEffect = void 0;
var _tra... |
import numpy as np
from skimage.measure import shannon_entropy
cifar10_names = [
"airplane",
"automobile",
"bird",
"cat",
"deer",
"dog",
"frog",
"horse",
"ship",
"truck",
]
# cifar10_labels = []
# cifar10_labels.append([1.2977, -0.29922, 0.66154, -0.20133, -0.02502, 0.28... |
angular.module( 'App.Forms.Dashboard' ).directive( 'gjFormDashboardFinancialsManagedAccountAddress', function()
{
return {
scope: true,
templateUrl: '/app/components/forms/dashboard/financials/managed-account/address.html',
controllerAs: '$ctrl',
controller: function( $scope, $attrs, Geo )
{
$scope.Geo = ... |
/* eslint-disable react/sort-comp */
import React, {Component, PropTypes} from "react";
import {connect} from "react-redux";
import {bindActionCreators} from "redux";
import * as searchActions from "../../actions/searchAction";
import SearchForm from "./SearchForm";
import SearchList from "./SearchList";
class SearchP... |
var
$userimage = $('#userimage .inner'),
$coverimage = $('#coverimage .inner'),
$dragger = $('#dragger'),
$draggerBorder = $('#dragger-border'),
$sizer = $('#size-slider'),
$loading = $('#loading');
$uploading = $('#uploading');
var $originSize = $coverimage.width();
var $exportSize = 500;
function resetUserImage(pos)... |
const notificationsService = require('../services/notificationsService');
const validator = require('../utils/validator');
const errorHandler = require('../utils/errorHandler');
const { HTTP_STATUSCODES, ERROR_INPUTINVALID } = require('../config/index');
exports.sendEmail = async (req, res, next) => {
try {
cons... |
import re
from pyhive import hive
class Client:
_conn = None
def __init__(self, host, port=10000, auth="KERBEROS", service_name="hive", version=1):
"""
:param host: Name of hive server.
:param port: Thrift port of hiveserver
:param auth: Authentication method, only kerberos ... |
/* global BaseModule */
/* global MockAudioChannelController */
'use strict';
requireApp('system/test/unit/mock_audio_channel_controller.js');
requireApp('system/js/base_module.js');
requireApp('system/js/audio_channel_service.js');
suite('system/AudioChannelService', function() {
var subject;
setup(function() {... |
# List a remote app's widget tree (names and classes only)
import sys
import string
from Tkinter import *
def listtree(master, app):
list = Listbox(master, name='list')
list.pack(expand=1, fill=BOTH)
listnodes(list, app, '.', 0)
return list
def listnodes(list, app, widget, level):
klass = list.s... |
"""eclguba: flagnk naq frznagvpf bs clguba, fcrrq bs p, erfgevpgvbaf bs wnin naq pbzcvyre reebe zrffntrf nf crargenoyr nf ZHZCF
pglcrf unf n fcva bs 1/3
' ' vf n fcnpr gbb
Clguba 2.k rfg cerfdhr zbeg, ivir Clguba!
Clguba 2.k vf abg qrnq
Riregvzr fbzrbar nethrf jvgu "Fznyygnyx unf nyjnlf qbar K", vg vf nyjnlf n tbbq uv... |
#!/usr/bin/env python3
"""
Read BAM file, split each line into columns, build nested dict of transcript ids.
"""
import argparse
import os
import re
import sys
def main():
parser = argparse.ArgumentParser( description='Groups transcripts by mapped read pairs')
parser.add_argument('-i', '--input_sam_file... |
__docformat__='reStructuredText'
"""
This is a dummy module that imports the likelihoods from pymc.
Epydoc parses and introspect this file, and spits out the docstrings of the functions in __all__.
"""
from pymc import *
__all__=['arlognormal_like', 'bernoulli_like', 'beta_like', 'binomial_like', 'categorical_like',... |
import React, { useState } from 'react'
import Grid from 'react-bootstrap/lib/Grid'
import Row from 'react-bootstrap/lib/Row'
import FormControl from 'react-bootstrap/lib/FormControl'
import Col from 'react-bootstrap/lib/Col'
import styled from 'styled-components'
import Jumbotron from '../../components/Jumbotron'
imp... |
from django.conf.urls import url, include
from django.contrib.auth.views import LoginView, LogoutView
from rest_framework import routers
from uploads.users import views
from uploads.users.forms import Login
router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)
router.register(r'groups', views.G... |
'use strict';var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Ref... |
"use strict";
var _ = require('underscorem')
var fparse = require('fparse')
var olbuf = require('./olbuf')
var CACHE_SIZE = 10//MUST BE AT LEAST 2?
/*
olcache implements a cache of the CACHE_SIZE most recent objects, so as to avoid serializing objects undergoing ongoing editing repeatedly.
It uses a ring buffer of... |
export const actionTypes = {
getGlobeData: 'globe/getGlobeData',
setCountriesGeo: 'globe/setCountriesGeo',
setCountryEntities: 'globe/setCountryEntities',
setSelectedEntity: 'globe/setSelectedEntity',
setInitialEntity: 'globe/setInitialEntity',
setWorldInfo: 'globe/setWorldInfo',
};
export cons... |
/**
* Auto-generated action file for "Gitlab" API.
*
* Generated at: 2019-05-07T14:41:02.359Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / gitlab-com-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed under the A... |
// x = (accX * 0.5 * 0.01) + x° + (v°*0.1)
// y = (accY * 0.5 * 0.01) + y° + (v°*0.1)
// z = (accZ * 0.5 * 0.01) + z° + (v°*0.1)
function position(acc) {
for (let x = 0; x < length; x++) {
x = (acc * 0.5 * 0.01) + x + (acc * 0.1)
}
}
|
from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \
PermissionsMixin
class UserManager(BaseUserManager):
def create_user(self, email, password=None, **extra_fields):
"""Created and saves a new user"""
if... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const string_1 = require("../utils/string");
class CommandMap extends Map {
getAliases() {
const cmdAliases = new Map();
const cmdMapContents = Array.from(this.entries());
const aliasToCmd = cmdMapContents.filter((v... |
const mongoose = require('mongoose');
const orderSchema = new mongoose.Schema({
user: {
type: mongoose.Schema.ObjectId,
ref: 'User',
required: [true, 'order requires a object Id!'],
},
total: {
type: Number,
required: [true, 'order requires a total price!'],
},
quantity: {
type: Numbe... |
var $graph_type_dropdown = $('#graph-type-dropdown')
var $rank_column_select = $('#rank-column-select')
$graph_type_dropdown.on('change', function() {
if (this.value == 'bar-graph') {
$rank_column_select.show()
} else {
$rank_column_select.hide()
}
}).trigger('change');
|
'use strict';
// Register `naviBar` directive, along with its associated controller and template
angular.module('navigationTabs').directive('naviBar', ['$rootScope', '$location', function($rootScope, $location) {
return {
templateUrl: 'app/navigation-tabs/navigation-tabs-template.html',
controller: 'na... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireWildcard(require("react"));
var _reactDom = _interopRequireDefault(require("react-dom"));
var _reactEasySwipe = _interopRequireDefault(require("react-easy-swipe"));
var _cssClasses =... |
'use strict';
import { core } from 'metal';
import dom from 'metal-dom';
import Surface from '../../src/surface/Surface';
describe('Surface', function() {
describe('Constructor', () => {
it('should throws error when surface id not specified', () => {
assert.throws(() => {
new Surface();
}, Error);
});... |
import React from 'react'
import Layout from "../components/Layout";
import SEO from '../components/SEO';
const Error = () => {
return (
<Layout>
<SEO title={'Error'} />
<main className='error-page'>
<section>
<h1>404</h1>
<h... |
/**
* Cesium - https://github.com/AnalyticalGraphicsInc/cesium
*
* Copyright 2011-2017 Cesium Contributors
*
* 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/l... |
import React from 'react';
import { Redirect, Route, Switch } from 'react-router-dom';
import { MainPlate, ContentPlate, Nav } from '../components';
import { ProtectedRoute } from '../shared/components';
import { Auth } from './auth';
import { Properties } from './properties';
import { healthdata } from './healthdata'... |
import { render, screen } from '@testing-library/react';
import App from './App';
import ReducerBookForm from './components/contextHooks/reducerBookForm'
test('renders learn react link', () => {
// render(<App />);
// const linkElement = screen.getByText(/learn react/i);
// expect(linkElement).toBeInTheDocument(... |
// Setup is based on the following article:
// https://www.codefeetime.com/post/tree-shaking-a-react-component-library-in-rollup/
import commonjs from '@rollup/plugin-commonjs';
import typescript from '@rollup/plugin-typescript';
import postcss from 'rollup-plugin-postcss';
import { nodeResolve } from '@rollup/plugin-... |
const {test} = require('@alexbosworth/tap');
const method = require('./../../display/is_matching_filters');
const tests = [
{
args: {filters: [], variables: {}},
description: 'No filters matches all results',
expected: {is_matching: true},
},
{
args: {filters: ['foo'], variables: {}},
descri... |
import unittest
import warnings
import numpy
import pytest
import cupy
import cupy.core._accelerator as _acc
from cupy import testing
_all_interpolations = (
'lower',
'higher',
'midpoint',
# 'nearest', # TODO(hvy): Not implemented
'linear')
def for_all_interpolations(name='interpolation'):
... |
"""Tests for static URL modifications in :class:`.Base`."""
from unittest import TestCase, mock
from flask import Flask, url_for
from .. import Base
class TestAppWithStaticFiles(TestCase):
"""We are using :class:`.Base` on a Flask app."""
def setUp(self):
"""Set up an app with static files."""
... |
from discord.ext.commands import errors
class BotError(errors.CommandError):
"""Base error class for the bot."""
def __init__(self, message=''):
self.message = message
class MissingDataError(BotError):
"""Raised if data required for the execution of a command is unavailable.
Should be rais... |
export const updateTiming = time => {
return {
type: 'UPDATE_TIMING',
time,
};
};
export const setIsRunning = isRunning => {
return {
type: 'SET_IS_RUNNING',
isRunning,
};
};
|
import { clearInput, typeInput } from './common.js'
const dimButtonEl = 'dimensions-panel-list-dimension-item-button'
const dimContextMenuButtonEl = 'dimensions-panel-list-dimension-item-menu'
const dimContextMenuRemoveOptionEl =
'dimensions-panel-dimension-menu-item-remove'
const dimContextMenuActionOptionEl =
... |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'smiley', 'fi', {
options: 'Hymiön ominaisuudet',
title: 'Lisää hymiö',
toolbar: 'Hymiö'
});
|
import React from 'react';
import Dropdown from './Dropdown';
import Select from 'react-select';
import WebFont from 'webfontloader';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faCaretDown, faCaretUp, faCaretSquareDown } from '@fortawesome/free-solid-svg-icons'
const gradients = [
{... |
# Copyright (c) 2011 OpenStack, LLC
# 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 requir... |
import React from 'react';
import styles from "./loadingpopup.module.css"
import CardWrapper from "../cardWrapper";
import {Spinner} from "react-bootstrap";
function LoadingPopup({headerTitle="",loadingTitle = "loading...",className="",...props}) {
return (
<CardWrapper className={`capitalize ${styles.comp... |
/*
* bootstrap-table - v1.12.2 - 2018-11-29
* https://github.com/wenzhixin/bootstrap-table
* Copyright (c) 2018 zhixin wen
* Licensed MIT License
*/
!function(a){"use strict";a.fn.bootstrapTable.locales["uz-Latn-UZ"]={formatLoadingMessage:function(){return"Yuklanyapti, iltimos kuting..."},formatRecordsPerPage:function(... |
import time
from stadium.envs import HybridLander
NUM_EPISODES = 5
if __name__ == '__main__':
env = HybridLander()
s = env.reset()
total_reward = 0.0
done = False
for episode in range(NUM_EPISODES):
while not done:
a = env.action_space.sample()
state, reward, do... |
use('contactData');
// Insert two documents in 'customer' collection
db.customers.insertMany([{ name: 'Momchil', age: 37, salary: 3000 }, { name: 'Angelina', age: 29, salary: 3500 }]);
// Create an index
db.customers.createIndex({ name: 1 });
// Check the result
db.customers.explain('executionStats').find({ name: 'M... |
import gql from 'graphql-tag'
import { showSuccessAlert } from '../../lib/alerts'
export const NEW_COMMENT_SUB = gql`
subscription newComment {
newComment {
_id
createdAt
text
post {
_id
}
commentedBy {
_id
name
}
}
}
`
export const newComm... |
importScripts('/__/firebase/8.3.1/firebase-app.js');
importScripts('/__/firebase/8.3.1/firebase-messaging.js');
importScripts('/__/firebase/init.js');
firebase.messaging();
|
_base_ = [
'../_base_/models/resnet50.py', '../_base_/datasets/imagenet_bs32.py',
'../_base_/schedules/imagenet_bs256.py', '../_base_/default_runtime.py'
] |
Ext.define('Admin.view.chart.Visitors', {
extend: 'Ext.chart.CartesianChart',
xtype: 'chartvisitors',
requires: [
'Ext.chart.axis.Category',
'Ext.chart.axis.Numeric',
'Ext.chart.series.Area',
'Ext.chart.interactions.PanZoom'
],
animation : !Ext.isIE9m && Ext.os.is.D... |
const mix = require('laravel-mix')
mix.browserSync('kuragram.test')
.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.version() |
import {Event} from "./Event.js";
const API_URL = `https://techheaven-general.appspot.com`;
export async function fetchEvents() {
const response = await fetch(`${API_URL}/events/TechHeavenCZ`);
return (await response.json()).data.map(eventData => new Event(eventData));
} |
from __future__ import (
unicode_literals,
absolute_import,
print_function,
division,
)
import sys
from uuid import UUID
from io import BytesIO
from . import core
from . import properties
from .mobid import MobID
from .rational import AAFRational
from .exceptions import AAFPropertyError
import dat... |
import path from 'path';
import readdir from '@mrmlnc/readdir-enhanced';
import fs from 'fs';
import JSZip from 'jszip';
export default function zip(dir, output) {
return new Promise((resolve, reject) => {
var archive = new JSZip();
readdir.stream(dir, {deep: true})
.on('data', data => {})
.on('file... |
'use strict';
const taskBtn = document.querySelector(".addTaskBtn");
let taskInputBox = document.querySelector(".taskInput");
let submitInputBtn = document.querySelector("[type='submit']");
let dateInput = document.querySelector("#taskDate");
let tasks = document.querySelector(".taskList");
let taskContainer = documen... |
import request from '@/utils/request';
/**
* 创建模板
* @param {*} params
*/
export async function create(params) {
return request('/admin/movie/templateAdd', {
method: 'POST',
headers: { 'Content-Type': '' },
body: params
});
}
/**
* 编辑模板
* @param {*} params
*/
export async function patch(params)... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _trimEnd2 = _interopRequireDefault(require("lodash/trimEnd"));
var _pickBy2 = _interopRequireDefault(require("lodash/pickBy"));
var _urlHelper = require("../../../lib/urlHelper");
function _interopRequireDe... |
var util = require('util');
var webutil = require('../util/web');
var Tab = require('../client/tab').Tab;
var Amount = ripple.Amount;
var Currency = ripple.Currency;
var TrustTab = function ()
{
Tab.call(this);
};
util.inherits(TrustTab, Tab);
TrustTab.prototype.tabName = 'trust';
TrustTab.prototype.mainMenu = 'f... |