text
stringlengths
3
1.05M
'use strict'; const {server}=require('../src/server'); const supergoose = require('@code-fellows/supergoose'); const mockRequest = supergoose(server); describe('server.js', () => { it('ROUTE ===> signup ', async() => { let theUser = { 'username': 'esraaMamoun', 'password': 'esraaMamoun.1234' }; m...
/** * @name user-data-v1-api * @description This module packages the User-data API. */ 'use strict'; const hydraExpress = require('hydra-express'); const hydra = hydraExpress.getHydra(); const express = hydraExpress.getExpress(); const ServerResponse = require('fwsp-server-response'); let serverResponse = new Serv...
/**************************************************************************** Copyright (c) 2008-2010 Ricardo Quesada Copyright (c) 2011-2012 cocos2d-x.org Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of t...
/*global describe, it, beforeEach, inject, expect, angular*/ (function () { beforeEach(module('todo')); it('should test everything works.', function(){ expect(true).toBeTruthy(); }); /*describe('todoFocus directive', function () { var scope, compile, browser; beforeEach(inject(function ($rootScope, $comp...
import request from "@/utils/request"; /** * * @param {number} pageSize * @param {number} currentPage * @param {string} currentPage */ export function getList(pageSize, currentPage, filterText = null) { var url = `/trainingProgram/program?size=${pageSize}&page=${currentPage}`; if (filterText) url += `&filter...
$(function() { $("#shortenURL input,#shortenURL textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { // additional error messages or events }, submitSuccess: function($form, event) { // Prevent spam click and de...
const request = require('supertest'); const app = require('../app.js'); describe('GET /', () => { it('should return 200 OK', (done) => { request(app) .get('/api/v1/characters/') .expect(200, done); }); }); describe('GET /random-url', () => { it('should return 404', (done) => { request(app) ...
import { uniq } from 'lodash'; import { automatedTasks, nonAutomatedTasksToHide, calculateEvidenceSubmissionEndDate, filterTasks, prepTaskDataForUi, shouldAutoSelect, shouldDisable, shouldHideBasedOnPoa, shouldHide, shouldShowBasedOnOtherTasks, shouldDisableBasedOnTaskType, disabledTasksBasedOnSele...
import React from 'react'; import './Slide.css' import Home from './pages/Home.js'; import About from './pages/About.js'; import Portfolio from './pages/Portfolio.js'; import Contact from './pages/Contact.js'; export default function Slide(props) { return ( <div className="Slide"> <Home {...p...
var config = { capabilities: { 'browserName': 'chrome' }, baseUrl: 'http://127.0.0.1:3006/', framework: 'jasmine', specs: ['**/*.spec.js'], jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000, isVerbose : true, includeStackTrace : true }...
import React from "react"; import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; import { Home } from "../Home/Home"; export const Root = () => { return ( <Router> <Switch> <Route component={Home} path="/" /> </Switch> </Router> ); };
// === Egal à // !== Différent de // < Inférieur à // <= Inférieur ou égal à // > Supérieur à // >= Supérieur ou égal à // Cours Variable openclassroom // // // var nombre1 = 5; // // var nombre2 = 3; // // console.log(nombre1 - 2); // Doit afficher 3 // // console.log(nombre...
let userBox = document.getElementById("user"); let userPic = document.getElementById("img"); let button = document.getElementById("button"); let bio = document.getElementById("bio"); button.addEventListener("click", function() { userBox.classList = "d-flex"; fetch("https://www.randomuser.me/api") .then((respo...
import React from "react"; import ReactDOM from "react-dom"; import "./styles/index.css"; import App from "./components/App.js"; import * as serviceWorker from "./serviceWorker"; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById("root") ); // If you want your app to wor...
import React from 'react'; export default [ { style_id:1, label: <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M15.25,11.8h0A3.68,3.68,0,0,0,17,9a3.93,3.93,0,0,0-3.86-4H6.65V19h7a3.74,3.74,0,0,0,3.7-3.78V15.1A3.64,3.64,0,0,0,15.25,11.8ZM8.65,7h4.2a2.09,...
const mapRequestBody = ({propertyPrice, downPayment, interestRate, amortizationPeriod, paymentSchedule, province}) => { return { propertyPrice, downPayment: downPayment/100 * propertyPrice, interestRate: interestRate/100, amortizationPeriod, paymentSchedule, ...
function skinChanger() { $(".right-sidebar .choose-skin li").on("click", function () { var a = $("body"), b = $(this), c = $(".right-sidebar .choose-skin li.active").data("theme"); $(".right-sidebar .choose-skin li").removeClass("active"), a.removeClass("theme-" +...
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async.base.exchange import Exchange from ccxt.base.errors import NotSupported class bitlish (Exchange): def describe(self)...
// @flow import React from 'react'; import { render } from '@testing-library/react'; import { isDragging } from '../../util/helpers'; import App from '../../util/app'; import { forEachSensor, type Control, simpleLift } from '../../util/controls'; forEachSensor((control: Control) => { it('should be able to start a dr...
const pluginName = document.currentScript.src.match(/^.*\/(.*).js$/)[1]; const { autoSaveMode, enableAutoSaveAfterBattle, disableAutoSaveFlag } = PluginManager.parameters(pluginName); let prevMapId = 0; PluginManager.registerCommand(pluginName, "autosave", () => { Scene_Map.prototype.requestAutosave(); }); Scene...
import { promiseToFlyTo } from 'lib/map' const LOCATION = { lat: 38.9072, lng: -77.0369 } const CENTER = [LOCATION.lat, LOCATION.lng] describe('lib::map', () => { describe('promiseToFlyTo', () => { it('should reject the promise with an invalid map', async () => { const flyToSettings = { zoom:...
/* eslint-disable no-nested-ternary */ /* eslint-disable no-shadow */ import React, { Component } from 'react'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { FlatList, View, ScrollView } from 'react-native'; import { ButtonGroup, Card...
const webpack = require('webpack') const merge = require('webpack-merge') const commonConfig = require('./webpack.config.common') const webpackConfig = merge(commonConfig, { mode: 'development', output: { path: '/dist', publicPath: '/', filename: 'js/[name].bundle.js', chunkFilename: 'js/[id].chunk...
#!/usr/bin/env python3 import sys import socket import traceback import urllib.parse import struct #### ## To bypass the none execution stack with return-to-libc. ## the lab not use accidentally function as ROP gadget. ## ROP means Return Oriented Programming. ## So accidentally function in zookd.c is not used in thi...
assert 2 + 3 == 6, "Wrong!"
'use strict'; module.exports.create = function (opts) { return require('cluster-rpc/worker').create({ name: 'memstore.' + (opts.name || '') , worker: opts.worker }); };
//# sourceMappingURL=swagger-typings.js.map
import Vditor from '../src/index' import '../src/assets/scss/index.scss' window.vditor = new Vditor('vditor', { debugger: true, typewriterMode: true, placeholder: 'placeholder', preview: { markdown: { toc: true, }, }, counter: 100, height: 500, hint: { emojiPath: 'https://cdn.jsdelivr...
/* Highcharts JS v8.0.2 (2020-03-03) Exporting module (c) 2010-2019 Torstein Honsi License: www.highcharts.com/license */ (function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/export-data",["highcharts","highchart...
;(function($){ $(function () { var url = window.location.href, file = url.match("(.+/.*?)([\?#;].*)?$")[1], param = url.match("(.+/.*?)([\?#;].*)?$")[2], dateArray = [new Date().getFullYear(), ('0' + (new Date().getMonth() + 1)).slice(-2), ('0' + new Date().getDate()).sl...
import pandas as pd from datetime import datetime from poshc2.Colours import Colours from poshc2.server.database.Model import C2, Implant, NewTask, HostedFile from poshc2.server.database.DBType import DBType from poshc2.server.Config import Database, DatabaseType, PoshProjectDirectory if DatabaseType == DBType.Postg...
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from .models import Project, Profile, Score class ProjectForm(forms.ModelForm): class Meta: model = Project exclude = ['user', 'pub_date', 'profile'] class ProfileForm(forms....
const Discord = require("discord.js"); const db = require("quick.db") exports.run = async (client, message, args) => { if(!args[0]) return message.reply('Bir seçenek belirt, belirtebileceğin seçenekler: <ayarla> <mesaj>/<sıfırla>') if(args[0]) { if(args[0] !== "ayarla" && args[0] !== "sıfırla") { return message...
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * 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 ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _iconComponent = require('./icon-component'); var _iconComponent2 = _interopRequireDefault(_iconComponent); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _iconCompo...
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Integration'] , ['MovingAverage'] , ['Seasonal_Second'] , ['ARX'] );
// Functions console.log('Working with functions!'); console.log(); // Greet a person, given a first name as a string: const greet = firstName => console.log(`Hello, ${firstName}!`); console.log('Running the greet function: ') greet('Will'); console.log(); // Tell whether a temperature is "hot", "correct", or "cold":...
import torch import numpy as np import pandas as pd import transformers from sklearn.metrics import precision_recall_fscore_support from sklearn.metrics import accuracy_score from sklearn.metrics import balanced_accuracy_score from BERT_STEM.Encode import * from BERT_STEM.TrainBERT4PT import * class BertSTEM: ...
class AlreadyExistsError extends Error { constructor(message) { super(message); this.constructor = AlreadyExistsError; this.message = message; this.name = "AlreadyExistsError"; } } class NotFoundError extends Error { constructor(message) { super(message); this.constructor = AlreadyExist...
""" Daemon API. """ from sia.constants import daemon as daemon_constants from sia.mixins.http import Http class Daemon: """ Implement daemon-API for Sia storage. """ def __init__(self): self.http = Http() def get_constants(self): """ Returns set of constants in use. ...
/*! jQuery Validation Plugin - v1.14.0 - 6/30/2015 * http://jqueryvalidation.org/ * Copyright (c) 2015 Jörn Zaefferer; Licensed MIT */ !function (a) { "function" == typeof define && define.amd ? define(["jquery"], a) : a(jQuery) }(function (a) { a.extend(a.fn, { validate: function (b) { if (!this.length) return void...
import React, { useState } from 'react'; import PropTypes from 'prop-types'; export const Counter = ({ value = 10 }) => { const [counter, setCounter] = useState(value); const handleUp = () => setCounter((counterPref) => counterPref + 1); const handleDown = () => setCounter((counterPref) => counterPref - 1); c...
import React, { useState, useEffect } from 'react' import api from '../../lib/api' import Username from '../../components/Username' import { buildingsList } from 'shared-lib/buildingsUtils' export default function Monopolies() { const [monopolies, setMonopolies] = useState([]) const [error, setError] = useState(fa...
import React from 'react' import ReactDOM from 'react-dom' import DoiSearch from './DoiSearch' const targetContainerId = `DoiSearch` export default { init: config => { if(document.getElementById(targetContainerId)){ ReactDOM.render( <DoiSearch api={config.api}/>, document.getEleme...
/** * Copyright (c) 2017, Árpád Poprádi * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ const isMobilDevice = ()=> { return navigator.userAgent.includes('Mobi'); } const isDesktopDevice = ()=> { ...
console.log("Sentença de código") { { console.log("Olá"); console.log('Mundo!') // Padrão do curso } }
var $schema = "http://json-schema.org/draft-07/schema#"; var $id = "https://uniswap.org/tokenlist.schema.json"; var title = "Uniswap Token List"; var description = "Schema for lists of tokens compatible with the Uniswap Interface"; var definitions = { Version: { type: "object", description: "The version of the lis...
import React, { Component } from "react"; import { PropTypes } from "prop-types"; import { cancelIcon } from "./Icons"; import { humanFileSize } from "../../common/utils/listing"; const ProgressBar = props => ( <div className="progress-bar"> <Filler percentage={props.percentage} /> </div> ); const Filler = props...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'preview', 'sr', { preview: 'Изглед странице' } );
import React from "react"; import { Container } from "react-bootstrap"; import Icon, { iconNames } from "../components/icon/"; import cliImg from "../images/screen-demo.gif"; import { Footer, IndexSubNav, Layout, Link, MainContent } from "../components"; const IndexCard = ({ iconName, headingText, children }) => ( <...
__author__ = 'feng' # https://github.com/dowski/misc/blob/master/varints.py def encode_varint(value): """Encodes a single Python integer to a VARINT.""" return "".join(encode_varint_stream([value])) def decode_varint(value): """Decodes a single Python integer from a VARINT. Note that `value` may be ...
from flask import Flask, render_template, abort, request import sys from twython import Twython import nltk from dictionary import Dictionary APP_KEY = 'Pv6e78hu62e9bKRlRwgx81hSQ' APP_SECRET = 'TN6ap3v7rbVITmA6fW24AqcACOftac5S3dYPHP0IhruJjjj9Hv' twitter = Twython(APP_KEY, APP_SECRET, oauth_version=2) ACCESS_TOKEN = t...
import DetailFeeling from '../components/DetailFeeling' import { connect } from 'react-redux' const mapStateToProps = (state) => { return { 'showingFeeling' : state.feelings.showingFeeling } } const mapDispatchToProps = (dispatch) => { return { } } const DetailFeelingContainer = connect( mapStateToPr...
// 资源管理 import request from '@/utils/request' // 获取资源列表 export function getAssetList(query) { return request({ url: '/back/asset/list', method: 'get', params: query }) } // 创建资源 export function createAsset(params) { return request({ url: '/back/asset/add', method: 'post', data: params ...
import styled from 'styled-components'; const Wrapper = styled.footer` // position: absolute; // right: 0; // bottom: 0; // left: 0; // padding: 1rem; // text-align: center; // bottom:0; // width:100%; // height:60px; /* Height of the footer */ // background:#6cf; // padding-top: 0em; // tex...
'use strict'; module.exports = (sequelize, DataTypes) => { const Sessions = sequelize.define('Sessions', { sid: { type: DataTypes.STRING(36), primaryKey: true }, expires: DataTypes.DATE, data: DataTypes.TEXT }, {}); Sessions.associate = function(models) { // associations can be def...
describe('Ext.grid.feature.GroupingSummary', function () { var data, grid, store, groupingSummary, columns, params, selector; function createGrid(gridCfg, groupingSummaryCfg, columns, storeCfg) { data = [{ student: 'Student 1', subject: 'Math', mark: 84, ...
/** * VexFlow 1.2.36 built on 2016-02-04. * Copyright (c) 2010 Mohit Muthanna Cheppudira <mohit@muthanna.com> * * http://www.vexflow.com http://github.com/0xfe/vexflow */ /** * VexFlow Test Support Library * Copyright Mohit Muthanna 2010 <mohit@muthanna.com> */ var VF = Vex.Flow; VF.Test = (function() { var...
import os import cv2 import numpy as np from datasets.DOTA_devkit.ResultMerge_multi_process import mergebypoly from datasets.rs_detect.base import BaseDataset class Railway(BaseDataset): def __init__(self, data_dir, phase, input_h=None, input_w=None, down_ratio=None): """ :param data_dir...
// Copyright 2015 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. import 'chrome://resources/cr_components/managed_dialog/managed_dialog.js'; import 'chrome://resources/cr_elements/cr_button/cr_button.m.js'; import 'chro...
from sklearn.model_selection import train_test_split from sklearn.metrics import classification_report from sklearn.pipeline import make_pipeline from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer from sklearn.svm import SVC from sklearn.ensemble import RandomForestClassifier, AdaBoostClassif...
import React from 'react'; import '../styles/output.css'; import logo_with_name from '../images/footer/LogoNegativaWithName.svg' function Footer() { return ( <footer className=" bg-second h-auto " > <div id="logo-m...
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; export const KuiEventBody = ({ children, className, ...rest }) => { const classes = classNames('kuiEventBody', className); return <div className={classes} {...rest} >{children}</div>; }; KuiEventBody.propTypes = { ...
/** * Creates a copy of the given matrix. * * @param {mat4} out - receiving matrix * @param {mat4} matrix - matrix to copy * @returns {mat4} out * @alias module:modeling/maths/mat4.copy */ const copy = (out, matrix) => { out[0] = matrix[0] out[1] = matrix[1] out[2] = matrix[2] out[3] = matrix[3] out[4]...
import EntityProxy from 'src/core/data/EntityProxy'; import CriteriaFactory from 'src/core/factory/criteria.factory'; import template from './sw-category-detail.html.twig'; import './sw-category-detail.scss'; const { Component, Mixin, State } = Shopware; const { cloneDeep, merge } = Shopware.Utils.object; const { warn...
from utils.marco import snt_mark, funcDict_frame from utils.io_file import read_file from .word_parser.jieba import jieba_parser def sentence_length_count(text): sents = text.split(snt_mark) sent_len = [len(i) for i in sents] len_max = max(sent_len) # cnt_len_lst[10] = 34 # 34 sentences in text h...
#!/usr/bin/python3 """ *********************************************************************************** Takes Caddy log data (in JSON format) as input (provided in the form of either an existing Caddy log file, or alternatively streamed over a network using TCP/IP sockets) and converts it into a format suitable f...
'use strict'; angular.module('core.tank', []) // .run(function() { alert('run') })
import * as assert from "assert"; const compare = function (x) { assert.deepStrictEqual(x, { name: "foo" }); };
/* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ import {SuperMap} from '../../SuperMap'; import...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/admin/reader-form.vue?vue&type=script&lang=js&": /*!*****************************************************************************************...
"use strict"; const { getFieldsEnum } = require(`./sort`); const { distinct, group } = require(`../resolvers`); const getPageInfo = ({ schemaComposer }) => schemaComposer.getOrCreateOTC(`PageInfo`, tc => { tc.addFields({ currentPage: `Int!`, hasPreviousPage: `Boolean!`, hasNextPage: `Boolean!`,...
import User from '../models/userModel.js'; import asyncHandler from 'express-async-handler'; import generateToken from '../utilis/generateToken.js'; // in order to handle exceptions insted of try catch, using expressasynchandler //@desc Auth User and get token //@route POST/api/users/login //@access public cons...
function log_action (action) { switch (action) { case "stop": websockets_unsubscribe_event("dhcp_log_subscription"); notification('Log watch stopped'); break; case "start": killed_connection = 0; console.log('start readystate is ' + socket.readyStat...
/* global View, Sanitizer, LazyLoader */ 'use strict'; var HomeView = View.extend(function HomeView() { View.call(this); // super(); this.thumbnailCache = {}; this.tiles = document.getElementById('tiles'); this.tiles.addEventListener('click', (evt) => { var link = evt.target.closest('a[data-file-path]')...
import signal from abc import abstractmethod from typing import List class SignalHandler: """ Since 0.2.8 If you use multi-threads, sub-processes inside shovel, you may need to catch the signal SIGTERM(15), which would be sent by Daemon to let all children die as soon as possible. By default,...
$(function() { var sid = []; function show(index) { $.getJSON("/api/", { id: index }, function(data) { sid.forEach(function(id) { clearInterval(id); }); sid = []; $(".inbox").css("left", 0); var html = ""; ...
/** * DevExtreme (cjs/ui/drop_down_button.js) * Version: 21.2.5 * Build date: Mon Jan 17 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; exports.default = void 0; var _renderer = ...
import React from "react" import Appbar from "../components/appbar" import { graphql } from "gatsby" import Card from "../components/card" import { Helmet } from "react-helmet" function Projects({ data }) { const projectList = data.allProjectsYaml.edges return ( <div className="container-fluid" style={{ margi...
// ../common/drawing.mjs var Drawing = class { constructor(canvas) { this.canvas = canvas; this.ctx = this.canvas.getContext("2d"); } drawImage(image) { this.ctx.drawImage(image, 0, 0, image.width, image.height, 0, 0, this.canvas.width, this.canvas.height); } drawSprite(pos, spriteMap, spriteGeo, ...
/* @flow */ import config from 'core/config' import { warn, cached } from 'core/util/index' import { mark, measure } from 'core/util/perf' import Vue from './runtime/index' import { query } from './util/index' import { compileToFunctions } from './compiler/index' import { shouldDecodeNewlines, shouldDecodeNewlinesFor...
/** * Created by raynald on 4/12/15. */ // Google Analytics: change UA-XXXXX-X to be your site's ID. (function(b,o,i,l,e,r){ b.GoogleAnalyticsObject = l; b[l] || (b[l] = function() { (b[l].q=b[l].q||[]).push(arguments) }); b[l].l=+new Date; e=o.createElement(i);r=o.getElementsByTagName(i)[0]; ...
//#include include/takeable.js var label = "Musicblock SB-1"; var version = "1354427262"; var name_single = "Musicblock SB-1"; var name_plural = "Musicblock SB-1"; var article = "a"; var description = "This is the rare original recording of the song the Giants were humming when they were imagining the world."; var is_...
import { h, render, Component } from '../../src/preact'; /** @jsx h */ // gives call count and argument errors names (otherwise sinon just uses "spy"): let spy = (name, ...args) => { let spy = sinon.spy(...args); spy.displayName = `spy('${name}')`; return spy; }; describe('refs', () => { let scratch; before( ()...
import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import AceEditor from 'react-ace'; import 'brace/mode/sql'; import Modal from '../../../Common/Modal/Modal'; import Button from '../../../Common/Button/Button'; import Tooltip from '../../../Commo...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var React = _interopRequireWildcard(r...
const joi = require('@hapi/joi'); const centerIdSchema = joi.string().regex(/^[0-9a-fA-F]{24}$/); const centerNameSchema = joi.string().max(140); const centerDescriptionSchema = joi.string(); const createCenterSchema = { name: centerNameSchema.required(), description: centerDescriptionSchema.required() }; const ...
import Route from '@ember/routing/route'; import { get, set } from '@ember/object'; import { inject as service } from '@ember/service'; import { on } from '@ember/object/evented'; import C from 'ui/utils/constants'; import { hash } from 'rsvp'; export default Route.extend({ session: service(), scope: ser...
'use strict'; var angular = require('camunda-commons-ui/vendor/angular'), camCockpitResources = require('./directives/cam-cockpit-resources'); var resourcesModule = angular.module('cam.cockpit.repository.resources', []); /* directives */ resourcesModule.directive('camResources', camCockpitResources); mo...
// Use Morris.Area instead of Morris.Line /*Morris.Donut({ element: 'graph-donut', data: [ {value: 40, label: 'New Visit', formatted: 'at least 70%' }, {value: 30, label: 'Unique Visits', formatted: 'approx. 15%' }, {value: 20, label: 'Bounce Rate', formatted: 'approx. 10%' }, {v...
/** * Module dependencies. */ var assert = require('assert'); var Parser = require('stream-parser'); var inherits = require('util').inherits; var Transform = require('stream').Transform; // node v0.8.x compat if (!Transform) Transform = require('readable-stream/transform'); /** * Module exports. */ module.expo...
/** * This error is thrown when user role is not having permission to perform any action */ function PermissionError(message, userName, actionKey) { this.name = "PermissionError"; this.message = message || (userName && actionKey) ? "Permission Error. User " + userName + " is not authorized to " + actionKey :...
const { User } = require('../types') const { UnknownError } = require('../errors') const { EventType } = require('../constants') class GetMeRequest { constructor(context) { this.endpoint = GetMeRequest.endpoint this.authRequired = GetMeRequest.authRequired this.setContext(context) } setContext(conte...
# -*- coding: utf-8 -*- """=== Pose Analyzer => Module : Pose Author : Saifeddine ALOUI (ParisNeo) Licence : MIT Description : Pose data holder (landmarks, posture ...). Allows the extraction of multiple facial features out of landmarks. <================""" import re from typing import NamedT...
var searchData= [ ['_5finfoplikow_264',['_InfoPlikow',['../class_pz_g_1_1_lacze_do_g_n_u_plota.html#a1916c5a6fecfb3554e9d5204b2f2086c',1,'PzG::LaczeDoGNUPlota']]], ['_5fnazwapliku_265',['_NazwaPliku',['../class_pz_g_1_1_info_pliku_do_rysowania.html#a07ab06c56b9c3179e566a4123ab2a037',1,'PzG::InfoPlikuDoRysowania']]]...
import {createGlobalStyle} from 'styled-components'; import {setColor, setFont} from '../../styles' const Globals = createGlobalStyle` @import url('https://fonts.googleapis.com/css2?family=Martel:wght@800&family=Montserrat:wght@900&family=Open+Sans:ital,wght@0,400;1,700&display=swap'); *{ box-sizing: border-box; ...
import React, { useEffect } from "react"; import { Routes, Route, useLocation } from "react-router-dom"; import { ToastContainer } from "react-toastify"; import { Signin, Signup, Dashboard } from "./pages"; import { Main, Footer, GlobalStyles, Header, RequireAuth, NotFound, } from "./components"; import { P...
#! /usr/bin/env python import os import glob import h5py import sys def_file=sys.argv[1] region=sys.argv[2] thedir=os.path.dirname(def_file) count=0 if not os.path.isdir(region+'_sigma_calc'): os.mkdir(region+'_sigma_calc') os.mkdir(region+'_sigma_calc'+'/queue') os.mkdir(region+'_sigma_calc'+'/runnin...
"use strict"; var jwt = require("jsonwebtoken"); var sharedSecret = "shh"; var issuer = "my-awesome-website.com"; //Here we setup the security checks for the endpoints //that need it (in our case, only /protected). This //function will be called every time a request to a protected //endpoint is received exports.verif...
// @flow const tupleVar: [any] = [null]; const tupleConst: [string, number] = ['string', 1]; type TupleType = [number, number, boolean]; type TupleWithUnion = [number, number | null]; type TupleWithMaybe = [number, number, ?null];