text stringlengths 3 1.05M |
|---|
'use strict';
const puppeteer = require('puppeteer');
const fs = require('fs');
process.env.output = './output';
const outputDir = process.env.output;
if (!fs.existsSync(outputDir)) {
fs.mkdirSync(outputDir);
}
(async() => {
const browser = await puppeteer.launch({
executablePath: 'google-chrome-stable',
... |
const router = require('express').Router();
const { Post } = require('../models/');
const withAuth = require('../utils/auth');
router.get('/', withAuth, async (req, res) => {
try {
// store the results of the db query in a variable called postData. should use something that "finds all" from the Post model. may n... |
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution(object):
def kthSmallest(self, root, k):
"""
:type root: TreeNode
:type k: in... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
import sys
import time
## TODO: we must change all index inside stco (or co64) header at moov
## new_index = current_index + moov_size // because only 'moov' moved before mdat
## https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html
def read_header(data, start = 0):
... |
#! /usr/bin/python
# -*- encoding: utf-8 -*-
|
#!/usr/bin/env python2
# Copyright 2013-present Barefoot Networks, 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 b... |
export const TOGGLE_DEVICE = 'TOGGLE_DEVICE'
export const TOGGLE_PAGE = 'TOGGLE_PAGE'
export const TOGGLE_SIDEBAR = 'TOGGLE_SIDEBAR'
export const CHANGE_MENU_LABEL = 'CHANGE_MENU_LABEL'
export const SWITCH_EFFECT = 'SWITCH_EFFECT'
export const TOGGLE_LANG = 'TOGGLE_LANG'
|
//3、接收
this.onmessage = function(ev){
//console.log(ev.data);
//4、处理
let sum = ev.data.n1 + ev.data.n2;
//5、返回
this.postMessage(sum);
};
|
import socket
import asyncio
import time
import random
import json
import boto3
import botocore
from botocore.config import Config
from walkoff_app_sdk.app_base import AppBase
class AWSS3(AppBase):
__version__ = "1.0.0"
app_name = "AWS S3"
def __init__(self, redis, logger, console_logger=None):
... |
import React from "react";
import { useState, useEffect } from "react";
import PublicSplit from "./Workout/PublicSplit";
import "./Workout/ListSplits.css"
import { SplitButton } from "react-bootstrap";
import compare from "../utils/compare"
export default function ListSplits() {
const [splits, setSplits] = useStat... |
import React from 'react'
import './Home.css'
function Home() {
return (
<div className="home" style={{color:'aliceblue'}}>
{/* MyPal. A step away from all your pals. */}
</div>
)
}
export default Home
|
// jscs:disable requireCamelCaseOrUpperCaseIdentifiers
import React from 'react';
import PropTypes from 'prop-types';
const ExternalIDs = (props) => {
let nodes = null;
if (props.externalIds) {
nodes = props.externalIds.map((id, i) => (
<li key={i}>{id.label_desc}: {id.record_id}</li>
), this);
}
... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import { Button, TextField, FormControl, withStyles, FormGroup, InputLabel, NativeSelect } from '@material-ui/core'
import { Save } from '@material-ui/icons'
import { repositoryActions } fro... |
/*!
* CanJS - 2.3.28
* http://canjs.com/
* Copyright (c) 2016 Bitovi
* Thu, 08 Dec 2016 20:53:50 GMT
* Licensed MIT
*/
/*can@2.3.28#view/callbacks/callbacks*/
steal('can/util', 'can/view', function (can) {
var attr = can.view.attr = function (attributeName, attrHandler) {
if (attrHandler) {
... |
"""
Kubernetes cluster manager module that provides functionality to schedule jobs as well
as manage their state in the cluster.
"""
import shlex
from kubernetes import client as k_client
from kubernetes import config as k_config
from kubernetes.client.rest import ApiException
from .abstractmgr import AbstractManager... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'justify', 'ru', {
block: 'По ширине',
center: 'По центру',
left: 'По левому краю',
right: 'По правому краю'
});
|
import React, {Component} from 'react'
import {connect} from 'react-redux'
import {withRouter, Route, Switch} from 'react-router-dom'
import PropTypes from 'prop-types'
import {Login, Signup, UserHome} from './components'
import {me} from './store'
import Meals from './components/Menu'
import SingleMeal from './compone... |
'use strict'
/** @type {import('@adonisjs/lucid/src/Schema')} */
const Schema = use('Schema')
class OrderStatusSchema extends Schema {
up () {
this.create('order_statuses', (table) => {
table.increments()
table.integer('status_id')
table.string('name')
table.timestamps()
})
}
do... |
const express = require('express');
const router = require('express').Router();
const app = express();
const cors = require("cors");
const PORT = process.env.PORT || 5000;
const connectDB = require('./config/db');
app.use(
cors({
origin: "http://localhost:3000", // <-- location of the react app were connec... |
import MultiHistory from './stats/MultiHistory';
import { lerp } from './math';
export default class QueueSimulator {
constructor(now, modelFactory, solverFactory, visFactories) {
this.now = () => now() * 0.001;
this.modelFactory = modelFactory;
this.solverFactory = solverFactory;
this.visFactories =... |
import { login, logout, getInfo } from '@/api/user'
import { getToken, setToken, removeToken } from '@/utils/auth'
import { resetRouter } from '@/router'
const getDefaultState = () => {
return {
token: getToken(),
name: '',
avatar: ''
}
}
const state = getDefaultState()
const mutation... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route } from 'react-router-dom';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = a... |
import { createAction } from "redux-actions";
export const fetchFilmsInitialRequested = createAction("@FILMS/FETCH_FILMS_INITIAL_REQUESTED");
export const fetchFilmsInitialSucceed = createAction(
"@FILMS/FETCH_FILMS_INITIAL_SUCCEED",
payload => payload
);
export const fetchFilmsInitialFailed = createAction(
"@FI... |
from keras.engine.topology import Layer
import keras.backend as K
if K.backend() == 'tensorflow':
import tensorflow as tf
class RoiPoolingConv(Layer):
'''
ROI pooling layer for 2D inputs.
See Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition,
K. He, X. Zhang, S. Ren, J... |
module.exports = {
presets: ['@babel/env', '@babel/typescript'],
plugins: [
'@babel/plugin-proposal-numeric-separator',
'@babel/proposal-class-properties',
'@babel/proposal-object-rest-spread',
],
};
|
/*!
* Lansare
*
* Eric Mann <eric@eamann.com>
*
* MIT License.
*/
'use strict';
var Dispatcher = function() {
/**
* Stub out the notify interface.
*
* @param {Object} config
*/
this.notify = function( config ) {
config = config.config;
throw 'Subclasses must implement the notify() method.';
};
};... |
module.exports = {
"testnet": {
"NetworkName": "Ethereum",
"ChainId": 5,
"RPC": "https://goerli.infura.io/v3/70645f042c3a409599c60f96f6dd9fbc",
"Explorer": "https://goerli.etherscan.io",
"Contracts": {
"BytesLib": "0xde5807d201788dB32C38a6CE0F11d31b1aeB822a",
"Common": "0x84Dc17F28658B... |
import test from 'tape';
test('A sample test', assert => {
const actual = true;
const expected = true;
const msg = `This is a sample test for about, will always pass!`;
assert.equal(actual, expected, msg);
assert.end();
});
|
from __future__ import annotations
import os
from typing import TYPE_CHECKING, Optional
from ..components import InputText as InputTextComponent
from ..enums import ComponentType, InputTextStyle
from ..utils import MISSING
__all__ = ("InputText",)
if TYPE_CHECKING:
from ..types.components import InputText as In... |
from unittest import TestCase
from cStringIO import StringIO
import json
class TestDump(TestCase):
def test_dump(self):
sio = StringIO()
json.dump({}, sio)
self.assertEquals(sio.getvalue(), '{}')
def test_dumps(self):
self.assertEquals(json.dumps({}), '{}')
|
/*jshint node:true */
'use strict';
module.exports = function (grunt) {
//Load all .js tasks definitions at tasks folder
grunt.loadTasks('./tasks');
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
grunt.loadNpmTasks('grunt-browser-sync');
grunt.loadNpmTasks('grunt-contrib-copy... |
(function () {
'use strict';
angular
.module('thinkster.routes')
.config(config);
config.$inject = ['$routeProvider'];
/**
* @name config
* @desc Define valid application routes
*/
function config($routeProvider) {
$routeProvider.when('/login', {
controller: 'LoginController',
... |
class Stone{
constructor(x, y, w, h){
let options = {
restitution: 0.8
};
this.body = Bodies.rectangle(x, y, w, h, options);
this.w = w;
this.h = h;
World.add(world, this.body);
}
show(){
var pos = this.body.position;
v... |
import stylesDictionary from "../dictionaries/styles";
import aliasesDictionary from "../dictionaries/aliases";
import { hasConstant } from "../utils";
import { DEFAULT_SEPARATOR } from "../constants";
export let separator = DEFAULT_SEPARATOR;
export const hasPath = style => style.indexOf(separator) !== -1;
const ge... |
if (true)
console.log('vai ser executado');
if (false)
console.log('não vai ser executado');
console.log('Fim'); |
import React from "react";
const config = {
ROMS: {
owlia: {
name: "The Legends of Owlia",
url: "https://cdn.jsdelivr.net/gh/bfirsh/jsnes-roms@master/owlia.nes"
},
nomolos: {
name: "Nomolos: Storming the Catsle",
url: "https://cdn.jsdelivr.net/gh/bfirsh/jsnes-roms@master/nomolos.n... |
const HelpStrategy = require('../../../lib/strategy/HelpStrategy');
const expect = require('chai').expect;
describe('Testsuite HelpStrategy', () => {
it('Testcase - isValid', () => {
let strategy = new HelpStrategy();
expect(strategy.isValid()).to.be.true;
});
it('Testcase - isJSONOutput'... |
$(document).ready(function () {
$(document).keydown(function (event) {
if (event.ctrlKey === true && (event.which === '61' || event.which === '107'
||
event.which === '173' || event.which === '109' || event.which === '187'
||
event.which === '189')) {
event.preventDefault();
... |
# Generated by Django 2.2.6 on 2019-10-20 23:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scraper', '0002_auto_20191017_1646'),
]
operations = [
migrations.AlterField(
model_name='post',
name='type',
... |
# Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
from __future__ import absolute_import
import os
from digits.utils import subclass, override
from digits.status import Status
from digits.pretrained_model.tasks import UploadPretrainedModelTask
@subclass
class CaffeUploadTask(UploadPretrainedModelTa... |
export const CodeDecoratorStyles = {
keyword: { //import 关键字
style:{
color: '#008dff'
}
},
plain: { //react
style:{
color: '#008dff'
}
},
punctuation: {//{} ,
style:{
color: '#999'
}
},
string: {
sty... |
import kfp
import logging
import multiprocessing
import uuid
import datetime
import os
from typing import Dict, List
def my_config_init(self, host="http://localhost",
api_key=None, api_key_prefix=None,
username=None, password=None,
discard_unknown_keys=False,
):
"""Constructor
"""
self.host... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Get the opposite placement variation of the given one
* @param {?} variation
* @return {?}
*/
export function getOppositeVariation(variation) {
if ... |
import sinon from "sinon";
import { getJSONWithValidBody, makeActionTypes, makeApiAction, makeFailureActionType } from "./makeApiAction";
import { RSAA, ApiError } from "redux-api-middleware";
const getTestResponse = (extra = {}, contentType = null) => ({
headers: {
"Content-Type": contentType ?? "application/json"... |
"""Download API integration tests."""
import filecmp
import os
import platform
import sys
import tempfile
import responses
import siaskynet as skynet
SKYLINK = "XABvi7JtJbQSMAcDwnUnmp2FKDPjg8_tTTFP4BwMSxVdEg"
client = skynet.SkynetClient()
@responses.activate
def test_download_file():
"""Test downloading a ... |
// flow-typed signature: efaf800dde9f76a4bafd8c265d6eeb47
// flow-typed version: <<STUB>>/electrode-csrf-jwt_v^1.0.0
/**
* This is an autogenerated libdef stub for:
*
* 'electrode-csrf-jwt'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with t... |
import{h,e as extractClass,b as tag,W as WeElement,f as require$$0,g as commonjsGlobal,t as tw,s as sheet}from"./vendor.ee3ef776.js";import"./admin-docs.6268a56a.js";import"./code-demo.034d456f.js";import{M as Masonry}from"./masonry.3490a527.js";import"./___vite-browser-external_commonjs-proxy.6f9fb8ed.js";
/*! *******... |
import config from 'config';
import { omit } from 'lodash';
import Stripe from 'stripe';
import ExpenseStatus from '../../constants/expense_status';
import ExpenseType from '../../constants/expense_type';
import emailLib from '../../lib/email';
import logger from '../../lib/logger';
import { convertToStripeAmount } fr... |
import React, { Component, Fragment, useState, useEffect } from 'react';
import Users from './Users';
import ErrorBoundary from './ErrorBoundary';
import classes from './UserFinder.module.css';
const DUMMY_USERS = [
{ id: 'u1', name: 'Max' },
{ id: 'u2', name: 'Manuel' },
{ id: 'u3', name: 'Julie' },
];
// co... |
export default Vue.component('button-group', {
template: `
<div class="button-group">
<slot></slot>
</div>
`,
})
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/** @suppress {duplicate} */
var remoting = remoting || {};
/** @constructor */
remoting.MessageWindowOptions = function() {
/** @type {... |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @File: uuv.py
"""
综合管理操作类预置库
"""
from envlib.env.envlogging import logger
from envlib.env.globals import current_app as app
from envlib.env.globals import g
from envlib.env.helpers import GetKeysMixin
from envlib.util import Md5
from resources.data import SMB_SHARE_PA... |
define(['modules/proposal/visit_list', 'templates/types/saxs/proposal/visitlinks.html'], function(VisitList, visitlinks) {
return VisitList.extend({
linksTemplate: visitlinks,
clickable: true,
})
}) |
/* * * * * * * * * * * * * * * * * * * * * * * *
* This logs every MIDI event to the console *
* * * * * * * * * * * * * * * * * * * * * * * */
function HandleMIDI(event) {
event.trace();
}
|
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['mk']={"wsc":{"btnIgnore":"Ignore","btnIgnoreAll":"Ignore All","btnReplace":"Replace","btnReplaceAll":"Replace All","btnUndo":"Undo","changeTo":"Change to","erro... |
import { __extends } from "tslib";
import { GetSessionTokenRequest, GetSessionTokenResponse } from "../models/models_0";
import { deserializeAws_queryGetSessionTokenCommand, serializeAws_queryGetSessionTokenCommand, } from "../protocols/Aws_query";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { ge... |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-function-definitions-static-semantics-early-errors
es6id: 14.1.2
description: Parameters may not contain a "super" call
info: >
It is a Syntax Error if FormalParame... |
import path from 'path';
import { pitch } from '../src/cjs';
import { getPool } from '../src/workerPools';
jest.mock('../src/workerPools', () => {
return {
getPool: jest.fn(),
};
});
const runGetPoolMock = (error) => {
getPool.mockImplementationOnce(() => {
return {
isAbleToRun: () => true,
... |
import React from 'react'
const Footer = () => {
return (
<footer
style={{ backgroundColor: '#ee6e73', maxHeight: '200px' }}
className="p-4"
>
<div className="container">
<div className="row">
<div className="col">
<h5 className="text-white">MoviesHub</h5>
... |
# (c) @Unknown
# Original written by @Unknown edit by @sudo_zeref
from telethon import events
import asyncio
from collections import deque
from userbot.events import register
@register(outgoing=True, pattern="^.fook$")
async def fuck(e):
if not e.text[0].isalpha() and e.text[0] not in ("/", "#", "@", "!"):
... |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of so... |
export const TRIM_NUMBER = 5;
|
"""Pythonic command-line interface parser that will make you smile.
* http://docopt.org
* Repository and issue-tracker: https://github.com/docopt/docopt
* Licensed under terms of MIT license (see LICENSE-MIT)
* Copyright (c) 2013 Vladimir Keleshev, vladimir@keleshev.com
"""
import sys
import re
__all__ = ['doco... |
const getters = {
sidebar: state => state.app.sidebar,
size: state => state.app.size,
device: state => state.app.device,
visitedViews: state => state.tagsView.visitedViews,
cachedViews: state => state.tagsView.cachedViews,
token: state => state.user.token,
avatar: state => state.user.avatar,... |
# -*- coding: utf-8 -*-
from copy import deepcopy
from django.contrib import admin
from django.contrib.admin.options import BaseModelAdmin, flatten_fieldsets, InlineModelAdmin
from django import forms
from modeltranslation import settings as mt_settings
from modeltranslation.translator import translator
from modeltra... |
// Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
var $stringCharAt;
var $stringIndexOf;
var $stringSubstring;
(function() {
%CheckIsBootstrapping();
var GlobalRegExp = global.RegExp;
var GlobalStrin... |
/*! For license information please see editor.main.nls.zh-tw.js.LICENSE.txt */
define("vs/editor/editor.main.nls.zh-tw",{"vs/base/browser/ui/actionbar/actionbar":["{0} ({1})"],"vs/base/browser/ui/aria/aria":["{0} (\u518d\u6b21\u51fa\u73fe)","{0} (\u51fa\u73fe {1} \u6b21)"],"vs/base/browser/ui/findinput/findInput":["\u8... |
module.exports = function processPromises() {
return Promise.resolve();
}
|
const path = require("path");
const Router = require("@koa/router");
const dayjs = require("dayjs");
const utc = require("dayjs/plugin/utc"); // dependent on utc plugin
const timezone = require("dayjs/plugin/timezone");
const { nanoid } = require("nanoid");
const { QueryTypes } = require("sequelize");
const ROOT = path... |
function OnEnterInGameState() {
ptwUI.showInGameUI();
ptwUI.showCurrentQuestion();
//register key functions
$('.question-key').on(ptwUI.touchEnd,function (e) {
var emptyKeys = $(this).parents(".question").find(".answer-key[data-key='']");
var emptyKeysCount = emptyKeys.length;
if (... |
"""
WSGI config for TV_shows project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... |
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/ui/model/json/JSONModel",
"sap/ui/model/Filter",
"sap/ui/model/FilterOperator"
], function(Controller, JSONModel, Filter, FilterOperator) {
"use strict";
return Controller.extend("sap.ui.demo.todo.controller.App", {
onInit: function() {
this.aSe... |
const config = require("@ngineer/config-webpack/production");
const {serverRenderer} = require("./lib/server/renderer");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const path = require("path");
const merge = require("webpack-merge");
const {routes} = require("./lib/routes");
module.exports = (env, argv)... |
# -*- coding: utf-8 -*-
# @Time : 2020/11/16 23:41
# @Author : tomtao
# @Email : tp320670258@gmail.com
# @File : views.py
# @Project : db_operation_demo
from django.shortcuts import render
from django.db import connection
def index(request):
cursor = connection.cursor()
cursor.execute("insert into book(id,na... |
const Handler = require('./Handler');
module.exports = class File extends Handler {
get name() {
return 'file';
}
get message() {
return 'logging to a file\n';
}
} |
const Discord = require("discord.js");
const { MessageEmbed, MessageAttachment } = require("discord.js");
const config = require(`${process.cwd()}/botconfig/config.json`);
const canvacord = require("canvacord");
var ee = require(`${process.cwd()}/botconfig/embed.json`);
const request = require("request");
const emoji =... |
for i in range(0, 18):
root = 'chap%2.2d' % i
s = f'pandoc --atx-headers {root}.tex -t markdown > {root}.md'
print(s)
s = f'notedown {root}.md > {root}.ipynb'
print(s)
s = f'python catnote.py header.ipynb {root}.ipynb'
print(s)
print()
|
var classcom_1_1tuya_1_1smart_1_1sdk_1_1bean_1_1_blue_mesh_bean =
[
[ "getCode", "classcom_1_1tuya_1_1smart_1_1sdk_1_1bean_1_1_blue_mesh_bean.html#a3acda4197006079f1d51c9220b99c5cf", null ],
[ "getEndTime", "classcom_1_1tuya_1_1smart_1_1sdk_1_1bean_1_1_blue_mesh_bean.html#a698cf0cbf1144611aba3cc3f0469eef3", nul... |
// Copyright 2015 Google Inc. 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 applicable... |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
# Generated by Django 3.0.4 on 2020-05-27 15:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('products', '0001_initial'),
migrations.swappable_d... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var styled_icon_1 = require("@styled-icons/styled-icon");
exports.ChevronUp = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "curre... |
# Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
# **InsertLicense** code
__author__ = 'gchlebus' |
'use strict';
const path = require('path');
const _ = require('lodash');
const chalk = require('chalk');
const Promise = require('bluebird');
const ReportBuilderFactory = require('../../report-builder-factory');
const EventSource = require('../event-source');
const utils = require('../../server-utils');
const {findTes... |
import { Store, create } from '../index';
import benchmark from './benchmark';
export default benchmark('Number', function(suite) {
suite.add('create(Number)', () => {
create(Number);
})
suite.add('create(Number, 42)', () => {
create(Number, 42);
})
suite.add('create(Number).set(42)', () => {
cre... |
import { createAnimation } from '../../../utils/animation/animation';
import { SwipeToCloseDefaults } from '../gestures/swipe-to-close';
/**
* iOS Modal Enter Animation for the Card presentation style
*/
export const iosEnterAnimation = (baseEl, presentingEl) => {
// The top translate Y for the presenting element... |
const gulp = require('gulp');
const sass = require('gulp-sass');
const browserSync = require('browser-sync');
const useref = require('gulp-useref');
const uglify = require('gulp-uglify');
const gulpIf = require('gulp-if');
const cssnano = require('gulp-cssnano');
const imagemin = require('gulp-imagemin');
const cache =... |
import {default as Sequelize} from "sequelize";
import {UpgradeFile} from "./UpgradeFile.js";
import {SystemController} from "../System/System.js";
import {$Collection} from "../Database/$Collection.js";
import {$CollectionFieldType} from "../Database/$CollectionFieldType.js";
export class CollectionFile extends Upgra... |
notas = sum([float(input('Digite a primeira nota: ')), float(input('Digite a segunda nota: ')),
float(input('Digite a terceira nota: ')), float(input('Digite a quarta nota: '))])
media = notas / 4
print(f'A média aritmética é {media}') |
import { GALLERY_CONSTS } from 'pro-gallery-lib';
import GalleryDriver from '../drivers/reactDriver';
import { expect } from 'chai';
import { mergeNestedObjects } from 'pro-gallery-lib';
import { images2 } from '../drivers/mocks/items';
import { options, container } from '../drivers/mocks/styles';
describe('options - ... |
function add_action(action_name) {
console.log("in add action");
let dropdown_values;
if (action_name == "action") {
dropdown_values = ["read", "write", "list", "tagging", "permissions-management"]
} else {
dropdown_values = ["single-actions", "service-read", "service-write", "service-... |
'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var createClass = require('create-react-class');
var ImagePanoramaHorizontal = createClass({
displayName: 'ImagePanoramaHorizontal',
render: function render() {
return React.createElement(
SvgIcon,... |
import { useKeycloak } from '@react-keycloak/web';
import React from 'react';
import { Navigate } from 'react-router-dom';
export default function PrivateRoute({ children, roles }) {
const {keycloak} = useKeycloak();
const isAuthorized = (roles) => {
if (keycloak && roles) {
return roles.... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... |
import sys
"""
Waveform transfer main entrance, accepting arguments and transfer all waveform data into GridFS.
"""
def usage():
print 'python transfer.py [OPTIONS]\n\
\t -h --help\t\t\tPrint this help screen\n\
\t -i --mongodb_host\t\tMongoDB server host (default: localhost)\n\
\t -p --mongodb_port\t\... |
import express from 'express';
import mongoose from 'mongoose';
import PostMessage from '../models/postMessage.js';
const router = express.Router();
export const getPosts = async (req, res) => {
try {
const postMessages = await PostMessage.find();
res.status(200).json(postMessag... |
/*!
* OpenUI5
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(["sap/m/semantic/SemanticConfiguration","sap/ui/base/ManagedObject","sap/ui/core/Element","sap/ui/thirdparty/jquery"],function(t,e,o,r){"use strict";var n=... |
'use strict';
angular.module('inboxApp.version.interpolate-filter', [])
.filter('interpolate', ['version', function(version) {
return function(text) {
return String(text).replace(/\%VERSION\%/mg, version);
};
}]);
|
// @flow
// Copyright (c) 2018-present, GM Cruise LLC
//
// This source code is licensed under the Apache License, Version 2.0,
// found in the LICENSE file in the root directory of this source tree.
// You may not use this file except in compliance with the License.
import * as React from "react";
import type {... |