text
stringlengths
3
1.05M
var searchData= [ ['get_5fparameter',['get_parameter',['../namespacextd.html#classxtd_1_1get__parameter',1,'xtd']]], ['get_5fparameter_3c_200_2c_20_5freturnt_28_5fheadt_2c_20_5ftailt_2e_2e_2e_29_3e',['get_parameter< 0, _return_t(_head_t, _tail_t...)>',['../classxtd_1_1get__parameter_3_010_00_01___return_t_07_...
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), #turno path('nuevo_turno', views.nuevo_turno, name='nuevo_turno'), path('modificar_turno/<int:id>', views.modificar_turno, name='modificar_turno'), path('eliminar_turno/<int:id>', views.eliminar_turno, name='eli...
/** * Main application file: */ // Info about current and allowed environments. const environments = require('#configs/envinorments'); // Middleware for parsing requests bodies. const bodyParser = require('body-parser'); // Express. const express = require('express'); const http = require('http'); // Mild security. ...
import React, { useEffect } from 'react'; import queryString from 'query-string'; import io from 'socket.io-client'; import Rules from './Gamecomponents/Rules.js'; import PointDisplay from './Gamecomponents/PointDisplay.js'; import Playbutton from './Gamecomponents/PlayButton.js'; import Scoreboard from './Gamecompone...
# -*- coding: utf-8 -*- import codecs from datetime import date import sys from config_cwr.accessor import CWRConfiguration from cwr.acknowledgement import AcknowledgementRecord, MessageRecord from cwr.file import CWRFile, FileTag from cwr.group import Group, GroupHeader, GroupTrailer from cwr.interested_party import ...
import math import navx class NavX: """Wrapper around RobotPy NavX to match our coordinate system.""" def __init__(self): self.ahrs = navx.AHRS.create_spi(update_rate_hz=50) self.pidsource = self.PIDSourceType.kDisplacement def getAngle(self) -> float: """Get the current yaw in ...
#include "./dequeue.h" int main(){ node *front, *rear; front = rear = NULL; addq_at_end(&front, &rear, 1); addq_at_end(&front, &rear, 2); addq_at_end(&front, &rear, 3); addq_at_end(&front, &rear, 4); displayq(front); addq_at_start(&front, &rear, 5); addq_at_start(&front, &rear, 6);...
/** * sso.service.js * Single Sign On Service */ import AWSSPMetadata from '@/assets/saml/aws-metadata.xml'; import IDPMetadata from '@/assets/saml/ccu-metadata.xml'; import { IDPApi } from '@/utils/api'; import Logger from '@/utils/log'; import axios from 'axios'; import * as saml from 'samlify'; const Log = Logg...
# -*- coding: utf-8 -*- from collections import OrderedDict # Sorted Dict, OrderedDict是alphabetical,这道题要key sort by numerical class MyCalendarThree(object): def __init__(self): self.calendar = OrderedDict() def book(self, start, end): self.calendar[start] = self.calendar.get(start, 0) + 1 ...
/* * The MIT License (MIT) * * Copyright (c) 2015 Kevin Schuetz * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
imports.gi.versions.Gtk = imports.gi.GLib.getenv("GTK"); (function (GLib, Gio) { 'use strict'; const connection = Gio.DBus.session; const serviceName = 'org.freedesktop.portal.Desktop'; const interfaceName = 'org.freedesktop.portal.Request'; const objectPath = '/org/freedesktop/portal/desktop'; ...
import React from "react"; import { View, Text, StyleSheet, Image, StatusBar, TouchableOpacity, Animated, Easing, PanResponder, ScrollView, Dimensions, Platform, Permissions } from "react-native"; // import { MapView, LinearGradient, Location, Permissions } from "expo"; if (Platform.OS != "d...
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"/8Fb":function(e,t,n){var r=n("XKFU"),a=n("UExd")(!0);r(r.S,"Object",{entries:function(e){return a(e)}})},"0mN4":function(e,t,n){"use strict";n("OGtf")("fixed",(function(e){return function(){return e(this,"tt","","")}}))},"1KeF":function(e,t,n){"use strict";n.d(...
import { createCss } from '@stitches/css' import { createStyled } from '@stitches/styled' export const css = createCss({ tokens: { colors: { RED: 'tomato', }, }, }) export const styled = createStyled(css)
from objects.modulebase import ModuleBase from objects.permissions import PermissionBotOwner from copy import copy from utils.funcs import find_user, get_local_prefix class Module(ModuleBase): usage_doc = '{prefix}{aliases} <user> <command>' short_doc = 'Replace message author and run command' long_doc...
''' Tree-Matching implementation Based on BURS (Bottom-Up Rewrite System) Extension to the table_full version, with a smaller table The table is compressed (fewer states needed) during the construction This is because some states may never the i-th children of some specific op, so it's useless to keep a specific entry ...
# Generated by Django 2.2.6 on 2021-10-31 13:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('departments', '0004_employee_department'), ] operations = [ migrations.AddField( model_name='em...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:53:08 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/Stocks/StocksUI.framework/StocksUI * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by...
# # 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 # di...
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
// Copyright (c) 2018-2019 The Dash Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef XNK_QUORUMS_DKGSESSION_H #define XNK_QUORUMS_DKGSESSION_H #include "consensus/params.h" #include "net.h" #include "...
# Copyright 2020 Lorna 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 applicable l...
# -*- coding: utf-8 -*- import logging import math from typing import List from zvt.api import get_kdata from zvt.api.business import get_trader_info from zvt.api.quote import decode_entity_id, get_kdata_schema from zvt.contract import IntervalLevel, EntityMixin from zvt.contract.api import get_db_session from zvt.do...
// Appel des variables d'environnement require('dotenv').config(); // Appel des models const models = require('../models'); /** * Enregistre une nouvelle classe * @param {*} req * @param {*} res */ module.exports.createClasse = (req, res) => { // Récupération des informations de la classe var nom = re...
from typing import Sequence import torch from torch.nn import functional as F from pytorch_lightning.metrics.functional.reduction import reduce def mse( pred: torch.Tensor, target: torch.Tensor, reduction: str = 'elementwise_mean' ) -> torch.Tensor: """ Computes mean squared error ...
# functions for preprocessing import numpy as np def filter_genes(data, min_counts=0, min_cells=0, min_counts_uniq=0, min_cells_uniq=0, min_MIF_uniq=0.001, uniq_layers=['isoform1', 'isoform2'], ambg_layers=['ambiguous'], copy=False): """Filter genes based on nu...
"use strict"; /* //bare bone helloworld world with no URL route or method specification import Koa from 'koa'; //let us import the types that we need import {Context} from 'koa'; const app:Koa = new Koa(); //declare app type as Koa. Instantiate Koa. const port:number = 3001;//port number for the http server to listen o...
import argparse import os import numpy as np from tqdm import tqdm import torch from utils.parallel import DataParallelModel, DataParallelCriterion from apex import amp from apex.parallel import DistributedDataParallel from dataloaders import make_data_loader from utils.loss import SegmentationLosses, SegmentationCELos...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
module.exports = function toReadable (number) { const units = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']; const dozen = ['ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen']; const dozens = ['', '', 'twenty', 'th...
from django.core.management.base import BaseCommand from django.conf import settings import subprocess import os from datetime import datetime from commercialoperator.utils.migration_utils import OrganisationReader, check_parks import itertools import logging logger = logging.getLogger(__name__) class Command(BaseCo...
module.exports["react-jsx-parser"]=(()=>{var t={977:(t,e,i)=>{"use strict";const s=i(325),r=/^[\da-fA-F]+$/,a=/^\d+$/,n=new WeakMap;function o(t){t=t.Parser.acorn||t;let e=n.get(t);if(!e){const i=t.tokTypes,s=t.TokContext,r=t.TokenType,a=new s("<tag",!1),o=new s("</tag",!1),h=new s("<tag>...</tag>",!0,!0),p={tc_oTag:a,...
#ifndef RT_CONFIG_H__ #define RT_CONFIG_H__ /* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */ /* RT-Thread Kernel */ #define RT_NAME_MAX 8 #define RT_USING_SMP #define RT_CPUS_NR 4 #define RT_ALIGN_SIZE 4 #define RT_THREAD_PRIORITY_32 #define RT_THREAD_PRIORITY_MAX 32 #define RT_TICK_PER_SECOND...
const deleteAddress = (params) => ({ type: "DELETE_ADDRESS", params, }); const deleteAddressSucceeded = (message) => ({ type: "DELETE_ADDRESS_SUCCEEDED", message, }); const deleteAddressFailed = (error) => ({ type: "DELETE_ADDRESS_FAILED", error, }); export { deleteAddress, deleteAddressSucce...
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @providesModule getNodeForCharacterOffset */ 'use strict'; /** * Given any node return the first leaf node without children. * * ...
class Cursor{ constructor(x, y, height, maxX, maxY) { this.x = x; this.y = y; this.height = height; this.max = { x: maxX, y: maxY }; } reset() { this.x = 1; this.y = 0; } plus(x) { if (this.x + x <= this.max.x) { this.x += x; } else { this.line(); } } minus(x) { if (this.x ...
// Copyright (c) 2010 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. #ifndef CHROME_BROWSER_UI_COCOA_ANIMATABLE_IMAGE_H_ #define CHROME_BROWSER_UI_COCOA_ANIMATABLE_IMAGE_H_ #pragma once #import <Cocoa/Cocoa.h> #import ...
#********************************************************************************# # # # нεℓℓσ,вαтεs! #...
from django.contrib import admin from nautobot.core.admin import admin_site from .models import DummyModel @admin.register(DummyModel, site=admin_site) class DummyModelAdmin(admin.ModelAdmin): list_display = ("name", "number")
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot...
const { Pool } = require('pg'); const config = require('@app/config'); const Logger = require('@app/loaders/logger'); const pool = new Pool(config.db); let queryCounter = 0; module.exports = { executeQuery: async (text, ...params) => { if (typeof pool === 'undefined') { return unde...
from flask import Flask app = Flask(__name__) @app.route("/") def hello_world(): return "<p>Hello, World! Public</p>"
#pragma once #include <limits> #include "DrawableGameComponent.h" #include "NormalMappingEffect.h" #include "ShadowcastedDirectionalEffect.h" #include "DepthPass.h" #include "FogEffect.h" #include "ColorHelper.h" #include "TextureProjector.h" #include "RenderedMesh.h" #include "ProjectingLight.h" #include "DeferredScr...
from .base import AuthenticationBase class Passwordless(AuthenticationBase): """Passwordless connections endpoints. Args: domain (str): Your auth0 domain (e.g: username.auth0.com) """ def __init__(self, domain): self.domain = domain def email(self, client_id, email, send='link'...
import React, {useEffect} from 'react' import {useHttp} from '../hooks/http.hook' import {useMessage} from '../hooks/message.hook' import {SignInCard} from "../components/SignIn/SignInCard"; import {SignUpCard} from "../components/SignUp/SignUpCard"; import {Navbar} from "../components/Navbar/Navbar"; import {Navigati...
Search.setIndex({docnames:["appendix","bind_paths_and_mounts","build_a_container","build_env","cgroups","checkpoint","cli","cli/apptainer","cli/apptainer_build","cli/apptainer_cache","cli/apptainer_cache_clean","cli/apptainer_cache_list","cli/apptainer_capability","cli/apptainer_capability_add","cli/apptainer_capabilit...
import fileinput from './fileinput'; import extend from 'lodash/extend'; import { dataComponentId, formControlFile, formControlSm, draggableComponent, defaultInputWidth } from '../common'; import { bootstrapfileinputid } from './ids'; const bootstrapfileinput = extend({}, fileinput, { html: `<input type="file" ${d...
# -*- coding: utf8 -*- # Copyright 1999-2017 Tencent 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 l...
""" The models module defines custom bokeh models which extend upon the functionality that is provided in bokeh by default. The models are defined as pairs of Python classes and TypeScript models defined in .ts files. """ from .datetime_picker import DatetimePicker # noqa from .idom import IDOM # noqa from .ipywidget...
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
// 1275. Find Winner on a Tic Tac Toe Game // https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game/ // Runtime: 0 ms, faster than 100.00% of C++ online submissions for Find Winner on a Tic Tac Toe Game. // Memory Usage: 8.8 MB, less than 74.72% of C++ online submissions for Find Winner on a Tic Tac Toe Game...
#!pip install deepface from deepface.basemodels import VGGFace, OpenFace, Facenet, FbDeepFace from deepface.commons import functions import matplotlib.pyplot as plt import numpy as np #---------------------------------------------- #build face recognition model model = VGGFace.loadModel() #model = Facenet...
/*========================================================================= Program: ParaView Module: vtkSMReaderReloadHelper.h Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY W...
""" A permission has to be defined first (using grok.Permission for example) before it can be used in grok.require() in an XMLRPC class. However, this is *not* the the case for a default permission that is never used. >>> grok.testing.grok(__name__) """ import grok import zope.interface class Foo(grok.Permission...
let posX; let posY; let velX; let velY; let radius; let circleClr; //UI let sliderHue; let clickCounter; function setup(){ let myCanvas = createCanvas(800, 600); myCanvas.parent('canvasParent'); colorMode(HSB, 360, 100, 100); sliderHue = createSlider(0, 360, 0, 15); sliderHue.parent('canvasUI')...
/*!@license * Infragistics.Web.ClientUI Dialog localization resources 13.2.20132.2157 * * Copyright (c) 2011-2014 Infragistics Inc. * * http://www.infragistics.com/ * */ (function($){$.ig=$.ig||{};if(!$.ig.Dialog){$.ig.Dialog={locale:{closeButtonTitle:"Close",minimizeButtonTitle:"Minimize",maximizeButtonTitle:"Maximiz...
export default class Animate { constructor() { this.timer = null; } start(fn){ if (!fn) { throw new Error('需要执行函数'); } if (this.timer) { this.stop(); } this.timer = requestAnimationFrame(fn); } stop(){ if (!this.timer) { return; } cancelAnimationFrame(this.timer); this.timer = null; }...
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * NaCl Service Runtime. IMC API. */ #ifndef EXPORT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_NACL_SYSCALLS_H_ #define EXPORT_SRC_TRUS...
from datetime import timedelta import json from django.conf import settings from django.utils import timezone from django.template import RequestContext from django.template.loader import render_to_string from django.views import generic from django.contrib.admin.views.decorators import staff_member_required from jsonv...
import Text from "./Text.js"; export default function ActivityMeta({post}) { const date = new Date(post.properties.Date.date.start).toLocaleString( "de-DE", post.properties.Date.date.start.length > 10 ? { month: "long", day: "2-digit", year: "numeric", hour: ...
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this f...
$(document).ready(function(){ // Write your Javascript! });
(function(e){const i=e["el"]=e["el"]||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"",Aquamarine:"",Black:"","Block quote":"Περιοχή παράθεσης",Blue:"",Bold:"Έντονη","Break text":"","Bulleted List":"Λίστα κουκκίδων","Bulleted list styles toolbar":"",Cancel:"Ακύρωση","Centered image":"","Change image text a...
from collections import deque # Initializing a Queue object Q = deque() # Inserting to the Queue Q.append(1) Q.append(2) Q.append(3) # Printing the Queue print(list(Q)) # Popping an element from the created Queue (i.e., which pops from the front) Q.popleft() print(list(Q))
class GithubGraphqlQuery { // Override this if you need a custom accept header // for example for API previews. Otherwise the default // is fine. static accept() { return ""; } static query(org_name, repo_name, after_clause) { // this query is a placeholder, a kind of ...
/** * lib/bcs.js ~ 2013/05/11 19:14:35 * @author leeight(liyubei@baidu.com) * @ignore * 静态资源上传的功能 **/ var edp = require( 'edp-core' ); /** * @param {Object} opts 命令行参数. * @return {number} */ exports.getMaxSize = function( opts ) { var maxSize = opts[ 'max-size' ]; if ( !maxSize ) { maxSize = 10...
import React from 'react'; import reactCSS from '../helpers/reactcss'; export const Swatch = ({ color, style, onClick, title = color }) => { const styles = reactCSS( { default: { swatch: { background: color, height: '100%', width: '100%', cursor: 'pointer', ...
/* ticksToWig - Convert tab-delimited file of Unix time ticks, and possibly also numerical values to wig file(s).. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "apacheLog.h" int tickCol = 0; int valCol = 1; void usage() /* Explain usage and exit. */ { errAbort( "tick...
if __name__ == '__main__': start_list = [34, -203.4, 44.9, 68.3, -12.2, 44.6, 12.7] sorted_list_ascending = sorted(start_list) print("sorted: ", sorted_list_ascending) sorted_list_descending = sorted(start_list, reverse=True) sorted_list_descending = sorted(start_list)[::-1] print("sor...
""" Utility functions. """ import os from collections import Counter import random import json import unicodedata import torch import numpy as np from classla.models.common.constant import lcode2lang import classla.models.common.seq2seq_constant as constant import classla.utils.conll18_ud_eval as ud_eval # filenames ...
# SPDX-License-Identifier: BSD-3-Clause # Copyright Contributors to the OpenColorIO Project. import unittest import PyOpenColorIO as OCIO class FixedFunctionTransformTest(unittest.TestCase): TEST_STYLE = OCIO.FIXED_FUNCTION_ACES_GLOW_03 TEST_PARAMS = [0, 1, 2] TEST_DIRECTION = OCIO.TRANSFORM_DIR_INVERSE...
import React from 'react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Row, Col, CardBody, Card } from 'reactstrap'; export default function LivePreviewExample() { return ( <> <Row> <Col xl="3" md="6"> <Card className="mb-5 card-box card-box-border-bottom b...
#ifndef KMTERM_FONT_BASIC_H #define KMTERM_FONT_BASIC_H #include <linux/types.h> extern const u8 kmterm_font_basic[0xFF][14]; #endif // KMTERM_FONT_BASIC_H
"""A setuptools based setup module. See: https://packaging.python.org/guides/distributing-packages-using-setuptools/ https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages from os import path from io import open REQUIRED = [ 'requests', 'feedparser', ] here = path.abspath(path.dir...
var annotated_dup = [ [ "bigint", "namespacebigint.html", "namespacebigint" ], [ "combinatorics", "namespacecombinatorics.html", null ], [ "convex_hull_trick", "namespaceconvex__hull__trick.html", "namespaceconvex__hull__trick" ], [ "coroutine", "namespacecoroutine.html", null ], [ "dsu_ds", "namesp...
import testUtils import p2p_test_peers import random RemoteCmd = p2p_test_peers.P2PTestPeers class ImpairedNetwork: cmd="tc qdisc add dev {dev} root tbf limit 65536 burst 65536 rate" args=["1mbps","500kbps","100kbps","10kbps","1kbps"] #,"1bps"] resetcmd="tc qdisc del dev {dev} root" def maxIndex(sel...
'use strict'; const controller = require('..'); describe('controller', () => { it('needs tests'); });
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:49:06 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/Frameworks/CoreLocation.framework/CoreLocation * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias ...
/** * @fileoverview Tests for JSON reporter. * @author Chris Meyer */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const assert = require("chai").assert, formatter...
/** * @flow */ import React from 'react'; import {storiesOf} from '@kadira/storybook'; import Card, {CardItem} from './Card'; storiesOf('<Card />', module) .add('Basic', () => ( <Card> Card content </Card> )) .add('Basic with padding', () => ( <Card padding={10}> Card content </Car...
# -*- coding: utf-8 -*- # Copyright 2013 Mirantis, 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 requi...
from __future__ import unicode_literals import warnings from django.conf import settings from django.utils.html import format_html, format_html_join from django.utils.encoding import force_text, python_2_unicode_compatible from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from ...
import { OrderSync } from 'sphere-node-sdk' const buildOrderMethods = { customLineItems: (order, existingOrder) => order.customLineItems.reduce((actions, lineItem) => { if (lineItem.state) actions.push( ...lineItem.state.reduce((stateActions, state) => { if (state.fromState &&...
/*! ========================================================= * Argon Design System React - v1.1.0 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-design-system-react * Copyright 2020 Creative Tim (https://www.creative-tim.com) * Licensed under MIT ...
from django.apps import AppConfig class AvdbConfig(AppConfig): name = 'avdb'
# Copyright (c) 2012 OpenStack Foundation # 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 ...
/* ========================================================================== * ./src/shared/actions/blurbs.js * * Blurbs Actions * ========================================================================== */ import { getBlurbs } from 'src/shared/api/blurbs'; export const GET_BLURBS = 'GET_BLURBS'; export funct...
module.exports = async (req,res,next) => { const { role } = req // console.log(`time period middleware`,req) //set values for freePeriod/paidPeriod in milliseconds const freePeriod = Number(604800000) const paidPeriod = Number(63072000000) if (role === 'freeUser'){ req.allowableTim...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2007, 2012 Red Hat, Inc # Michael DeHaan <michael.dehaan@gmail.com> # Seth Vidal <skvidal@fedoraproject.org> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_f...
/* * Copyright (C) 2013 salesforce.com, 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 by applicable ...
// @flow import R from 'ramda' import parseFilter from '../parseFilter' import getEntities from './getEntities' import getPagingInfo from './getPagingInfo' import getProjection from './getProjection' import { appCode } from '../config' const debug = require('debug')(`${appCode}:create-query`) const mixedProjection =...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of...
import time import discord import os import typing from queue import Queue from discord.ext import commands from base.modules.access_checks import has_mod_role, check_channel_permissions from datetime import datetime, timezone from base.modules.serializable_object import MessageCache, MessageSchedule, CommandSchedule, ...
# -*- coding: utf-8 -*- """ Common use sicd_elements methods. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Tuple import numpy from ...general.utils import get_seconds def _get_center_frequency(RadarCollection, ImageFormation): """ Helper method. Paramete...
from tornado import websocket from tornado import escape import datetime as dt import pickle clients = [] descriptors = {} class TaskDescriptor: STATUS_NEW = 0 STATUS_INITED = 1 STATUS_RESETED = 2 STATUS_STARTED = 3 STATUS_STOPED = 4 def __init__(self, task_name, ext='.pkl', path='./task_de...
# # Copyright (c) 2008-2015 Citrix Systems, 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 by applicable l...
/* RSI Bull and Bear + ADX modifier 1. Use different RSI-strategies depending on a longer trend 2. But modify this slighly if shorter BULL/BEAR is detected - (CC-BY-SA 4.0) Tommie Hansen https://creativecommons.org/licenses/by-sa/4.0/ */ // req's // var config = require('../../../core/util.js').getConfig(); // ...
({ testStartEndIndexDefaultValues: { attributes: {items: "a,b,c,d,e", setIndexesInInit: "false"}, test: function(cmp) { var expected = "0:a,"; var iteration = cmp.find("iteration"); var actual = $A.test.getTextByComponent(iteration); $A.test.assertEq...
define([ 'angular', 'kbn' ], function (angular, kbn) { 'use strict'; angular .module('grafana.directives') .directive('tip', function($compile) { return { restrict: 'E', link: function(scope, elem, attrs) { var _t = '<i class="grafana-tip fa fa-'+(attrs.icon||'question-c...
import pytest from msys.core import Connectable, Type, Connection @pytest.mark.core @pytest.mark.connection def test_connect_input_output(): in0 = Connectable(Type([12.90, 14])) output = Connectable(Type([1, 3])) def test_disconect(ins, outs): Connection.disconnect(outs, ins) ins.set_valu...