text
stringlengths
3
1.05M
import React from "react"; import PropTypes from "prop-types"; import { Card, CardHeader, CardBody, Form, FormGroup, FormInput, FormTextarea, Button } from "shards-react"; const NewDraft = ({ title }) => ( <Card small className="h-100"> {/* Card Header */} <CardHeader className="border-bottom...
'use strict'; import express from 'express'; import * as ShortenController from '../../controllers/shorten.controller'; import { routes } from '../../common/utils/vars'; const router = express.Router(); router.post(routes.api.shortenLink, ShortenController.createShortenUrl); export default router;
import urlSlug from 'url-slug'; export default class Slug{ create(url){ return url ? urlSlug(url) : null; } }
 // Entity body data // Employee, Address, JobDuty // ######################################## // Employee var ranjan = { "Id": 5, "LastName": "Bhattacharya", "FirstName": "Ranjan" }; var peter = { "Id": 1, "LastName": "McIntyre", "FirstName": "Peter" ...
export default { caption: 'Редактировать агрегацию', 'name-caption': 'Имя связи', 'description-caption': 'Описание связи', 'start-class-caption': 'Агрегатор', 'end-class-caption': 'Детейл', 'start-role-caption': 'Имя роли у агрегатора', 'end-role-caption': 'Имя роли у детейла', 'start-multiplicity-capti...
import React, { Component } from 'react' class NavBurger extends Component { state = { toggle: false } toggle = () => { this.setState({ toggle: !this.state.toggle }) } render() { const { isToggled } = this.props; const menuStatus = isToggled ? 'open' : 'closed' return ( ...
import React from 'react'; import { shallow } from 'enzyme'; import { stubStyles } from 'test/utils'; const styles = stubStyles(['root', 'small']); const Card = proxyquire('common/components/Card', { './styles.less': styles, }); describe('<Card />', () => { const props = { className: 'cool-class', title:...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import * as tslib_1 from "tslib"; import { FormStyle, FormatWidth, NumberSymbol, TranslationWidth, getLocaleDateForma...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["polyfills-core-js"],{ /***/ "t6o4": /*!****************************************************************!*\ !*** ./node_modules/@ionic/core/dist/esm/polyfills/core-js.js ***! \****************************************************************/ /*! no sta...
(function() { var SOURCES = window.TEXT_VARIABLES.sources; var TOC_SELECTOR = window.TEXT_VARIABLES.site.toc.selectors; window.Lazyload.js(SOURCES.jquery, function() { var $window = $(window); var $articleContent = $('.js-article-content'); var $tocRoot = $('.js-toc-root'), $col2 = $('.js-col-aside');...
if (!Array.prototype.less) { Array.prototype.less = function (arr) { var a = [], diff = []; if (arr.length > 0) { //todo handle type of array switch (typeof arr[0]) { default: break; } for (var i = 0; i < this.length; i++) { a[this[i]] = true; } ...
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'selectall', 'mn', { toolbar: 'Бүгдийг нь сонгох' } );
import pos9and10 from './pos9and10'; let pos10 = [ { top: '20%', left: '42%' }, { top: '60%', left: '42%' } ]; for (let i in pos9and10) pos10.push(pos9and10[i]); module.exports = pos10
'use strict'; module.exports = { conditions: [''], name: 'BitwiseXORExpression_In', rules: ['BitwiseANDExpression_In', 'BitwiseXORExpression_In ^ BitwiseANDExpression_In'], handlers: ['$$ = $1;', '$$ = new (require(\'./ast/BitwiseExpression\').BitwiseXORExpressionNode)($2, $1, $3, { loc: this._$, yy })'], su...
/** * Copyright 2016 Google 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 law or agreed to...
var searchData= [ ['inordertraversal_87',['inorderTraversal',['../classSolution.html#a4fc0e11f54643b35c4b16861fdb56168',1,'Solution::inorderTraversal()'],['../generateABST_8c.html#aaddea9d0bfbb1af867df65e0aa2cea7c',1,'inorderTraversal():&#160;generateABST.c']]], ['insert_88',['insert',['../AVL_8cpp.html#ad22a882835...
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foun...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("circle", { cx: "6.18", cy: "17.82", r: "2.18" }), /*#__PURE__*/React.createElement("path", { d: "M4 4.44v2.83c...
/** * SyndRTE Internet Explorer (IE6) api * * @access public * @package synd.rte.ie */ /** * Override area callback initialization */ SyndEditor.lastSelectionAttach = function(oArea, fpFunction) { oArea.attachEvent('onbeforedeactivate', fpFunction); oArea.attachEvent('onkeyup', _callback_ie_onkeyup); } fun...
/* * EaselJS * Visit http://createjs.com/ for documentation, updates and examples. * * Copyright (c) 2011 gskinner.com, inc. * * Distributed under the terms of the MIT license. * http://www.opensource.org/licenses/mit-license.html * * This notice shall be included in all copies or substantial portions of the ...
import { React } from '../dependencies' const ABparagraph = (props) => ( <div className={props.elementClass} dangerouslySetInnerHTML={{ __html: props.paragraph }} ></div> ) export default ABparagraph
var FFA = require('./FFA'); // Base gamemode var Entity = require('../entity'); function Experimental() { FFA.apply(this, Array.prototype.slice.call(arguments)); this.ID = 2; this.name = "Experimental"; this.specByLeaderboard = true; // Gamemode Specific Variables this.nodesMother = []; ...
import Image from 'next/image' import CustomLink from './Link' import ProsCard from '../components/ProsCard' import ConsCard from '../components/ConsCard' const MDXComponents = { Image, a: CustomLink, ConsCard, ProsCard, } export default MDXComponents
var __str = String(); { var __result1 = typeof __str !== "string"; var __expect1 = false; } { var __result2 = __str !== ""; var __expect2 = false; }
import test from 'ava'; import testUtil from './test-util' import gitdou from '../../src/gitdou'; import fs from 'fs' import nodePath from 'path' test.beforeEach(()=> { testUtil.pinDate(); }); test.afterEach(() => { testUtil.unpinDate(); }) test("should mention that there is untrack files", t => { testUti...
'use strict' var fs = require('fs') var path = require('path') const cls = require('cls-hooked') const namespace = cls.createNamespace('....') var Sequelize = require('sequelize') Sequelize.useCLS(namespace) var basename = path.basename(module.filename) var env = process.env.NODE_ENV || 'development' var config = requ...
import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Meta from '../components/Meta'; const NotFoundPage = ({ data, location }) => { const siteTitle = data.site.siteMetadata.title; return ( <Layout location={location} title={siteTitle}> <Meta tit...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); require('../../node_modules/ckeditor4/ckeditor'); window.Vue = require('...
import { StyleSheet } from "react-native" export const globalOptions = { name: "mytest2_34413", url: "https://mytest2_34413.botics.co", api: "https://mytest2_34413.botics.co/api/v1" } export const modulesOptions = { "@modules/app-menu": { copy: "Routes available!" }, "@modules/login": { LOGO_URL: ...
from sys import stderr from .base import BaseActionRunner import subprocess import os import hashlib class ArtifactActionRunner(BaseActionRunner): """This class represents the ArtifactActionRunner. It contains properties and methods that handles Artifact specific action. """ version = "1.0.0" sou...
#!/usr/bin/python # encoding=utf-8 """ @Author : Don @Date : 2021/05/27 21:26 @Desc : """ import datetime from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.triggers.cron import CronTrigger from django.db import connections from django_apscheduler.jobstores import DjangoJobS...
windowPositionCalculationRegistry.registerWindowPositionCalculationWithAction(function (windowRect, visibleFrameOfSourceScreen, visibleFrameOfDestinationScreen) { var calculatedWindowRect = SpectacleCalculationHelpers.copyRect(windowRect); calculatedWindowRect.x = visibleFrameOfDestinationScreen.x; calculat...
"use strict"; const docblock = require("jest-docblock"); function hasPragma(text) { const pragmas = Object.keys(docblock.parse(docblock.extract(text))); return pragmas.indexOf("prettier") !== -1 || pragmas.indexOf("format") !== -1; } function insertPragma(text) { const parsedDocblock = docblock.parseWithCommen...
layui.use(['form', 'jquery', 'layer', 'upload', 'laydate'], function () { var form = layui.form , $ = layui.jquery , layer = layui.layer , upload = layui.upload; var _tripService = abp.services.app.trip; var uploadInst = upload.render({ elem: '#upload' //绑定元素 , url...
# Copyright 2016 AT&T Corp # 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 app...
(function() { "use strict"; var app = angular.module("TendrlModule"); app.controller("homeController", homeController); /*@ngInject*/ function homeController($rootScope, $scope, $state) { var vm = this; vm.importCluster = importCluster; vm.createCluster = createCluster; ...
import React, {useEffect,useState} from "react"; import { Link, useHistory } from "react-router-dom"; import axios from "axios"; export const Login=()=> { const history = useHistory(); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const [loading, setLoading] = useState(f...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import ToolbarButton from '../../../components/ToolbarButton'; import { NewBox, NewCircle, NewLine, Trash } from '../../../icons'; import { TYPES } from '../../../constants/common'; import appActions from '../../../r...
window.__NUXT__=(function(a,b,c,d){return {staticAssetsBase:"\u002Fstatic\u002F1597376630",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"e-AlQur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark",bgColor:"#071e3d",fgColor:"#fff"},se...
""" create an S3 bucket on AWS using boto3 python library pass the name of the bucket as an argument variable when executed """ import sys import boto3 try: def main(): """This is the main function that will call other functions""" create_s3bucket(bucket_name) except Exception as err: print(e...
'use strict'; /** * @author mrdoob / http://mrdoob.com/ */ var THREE = window.THREE || require('three'); var OBJLoader = void 0; OBJLoader = function OBJLoader(manager) { this.manager = manager !== undefined ? manager : THREE.DefaultLoadingManager; this.materials = null; this.regexp = { // v float floa...
from collections import OrderedDict import wx from wx.adv import OwnerDrawnComboBox import wx.dataview as dv import wx.propgrid as pg import wx.lib.colourdb from classes.om import ObjectManager from classes.ui import UIManager from classes.ui import UIControllerObject from classes.ui import UIViewObject from classes....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateAMRadioChannel = exports.AMRadioChannelOrSubClassJoiSchema = exports.AMRadioChannelJoiSchema = void 0; // This file was generated const Joi = require("joi"); const oaValidationError_1 = require("../oaValidationError"); const sc...
from discord.ext import commands from discord.ext import tasks import os import traceback import discord from datetime import datetime token = os.environ['DISCORD_BOT_TOKEN'] CHANNEL_ID =741553045481062461 #チャンネルID # 接続に必要なオブジェクトを生成 client = discord.Client() @client.event async def on_ready(): """起動時に通知してくれる処理...
macDetailCallback("7c6df8000000/24",[{"d":"2014-03-11","t":"add","a":"1 Infinite Loop\nCupertino CA 95014\n\n","c":"UNITED STATES","o":"Apple"},{"d":"2015-09-01","t":"change","a":"1 Infinite Loop Cupertino CA US 95014","c":"US","o":"Apple, Inc."}]);
module.exports = function (grunt) { var _ = grunt.util._; grunt.registerTask('run', 'Run telemetry tests', function () { var args = _.toArray(arguments) , done = this.async() , pkgOptions = grunt.config('telemetry') ; if(args[0] == 'telemetry') { var exec = require('child_process').exec , com...
# coding: utf-8 """ loadbalancer Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from ncloud_loadbalancer.model.server_instance import ServerInstance # noqa: F401,E501 class GetLoadBalancedServerInstanceListResponse(object): ...
/*! * Paper.js v0.12.7 - The Swiss Army Knife of Vector Graphics Scripting. * http://paperjs.org/ * * Copyright (c) 2011 - 2020, Jürg Lehni & Jonathan Puckey * http://juerglehni.com/ & https://puckey.studio/ * * Distributed under the MIT license. See LICENSE file for details. * * All rights reserved. * * Dat...
import networkx as nx from itertools import combinations from dsteiner import directed_steiner_tree import pytest import numpy as np def set_graph(list_of_sets, g=None): if g is None: g = nx.DiGraph() new_nodes = set() for s1 in list_of_sets: if len(s1) == 0: continue s1 = frozenset(s1) g....
define(function (require) { var List = require('../../data/List'); var Graph = require('../../data/Graph'); var linkList = require('../../data/helper/linkList'); var completeDimensions = require('../../data/helper/completeDimensions'); var zrUtil = require('zrender/core/util'); return function...
"use strict"; !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function s(a){var b=!!a&&"length"in a&&a....
const jwt = require("jsonwebtoken"); const verifyToken = async (req, res, next) => { const token = req.cookies.token || ""; if (!token) return res.redirect("/login"); try { req.user = await jwt.verify(token, process.env.JWT_SECRET); next(); } catch (err) { return res.redirect("/login"); } }; m...
/* build: `node build.js modules=animation,easing no-svg-export minifier=uglifyjs` */ /*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */ var fabric = fabric || { version: '3.5.0' }; if (typeof exports !== 'undefined') { exports.fabric = fabric; } /* _AMD_START_ */ else if (typeof define ==...
__NUXT_JSONP__("/amp/27/59", (function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){return {data:[{metaTitle:b,metaDesc:c,verseId:59,surahId:27,currentSurah:{number:"27",name:"النمل",name_latin:"An-Naml",number_of_ayah:"93",text:{"1":"طٰسۤ ۚ تِلْكَ اٰيٰتُ الْقُرْاٰنِ وَكِتَابٍ مُّبِيْنٍ ۙ ","2":"هُدًى وَّبُشْرٰى لِلْمُؤْمِنِيْنَ ۙ ...
#!/usr/bin/env node /* 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 Apac...
var searchData= [ ['code_17',['Code',['../classCode.html#ab060cc77a2e7dbd74df84e7774c51db1',1,'Code']]] ];
# The function BFS was take from https://www.iteramos.com/pregunta/8113/representar-y-resolver-un-laberinto-dado-una-imagen # and modified import pyautogui import numpy as np import matplotlib.pyplot as plt import time import webbrowser import math from queue import Queue from PIL import Image class Agent: ...
# -*- coding: utf-8 -*- """ Created on Fri Oct 25 15:00:00 2019 @author: Victor """ import os import sys import numpy as np import skimage.io from pycocotools.coco import COCO from pycocotools.cocoeval import COCOeval from pycocotools import mask as maskUtils import coco #a slightly modified version from mrcnn.ev...
/** * Tests cube * * Created by johndoe on 03.01.2016. */ var Cube = require('../cube'); var expect = require("chai").expect; describe("Test cube", function () { it("constructor with encoding 2 x 2", function () { var decoded = 'edbb|bacc|fbdd|dcaa|ceee|afff'; var cube = new Cube(decoded); ...
'use strict'; const animation = require('./animation-dadce649.js'); const index = require('./index-a0e14e16.js'); require('./helpers-ab0db03b.js'); require('./index-bc2e4509.js'); const DURATION = 540; const getClonedElement = (tagName) => { return document.querySelector(`${tagName}.ion-cloned-element`); }; con...
'use strict'; const {Options} = require('./options'); const parameters = {}; const areParametersEmpty = () => Object.entries(parameters).length === 0; const isFunction = (obj) => typeof obj === 'function'; const checkStringable = ({toString}) => toString && isFunction(toString); const isStringable = (obj) => notN...
import ArrowBackIcon from "@material-ui/icons/ArrowBack" import ContactSupportIcon from "@material-ui/icons/ContactSupport" import Helmet from "react-helmet" import HomeIcon from "@material-ui/icons/Home" import IconButton from "@material-ui/core/IconButton" import InfoIcon from "@material-ui/icons/Info" import React f...
# Copyright 2020 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS", WIT...
#!/bin/python3 # ================================================== # # Main class for the Mavlink Arbiter process. # # # # Author: David Kroell # # Version: 3.0.0 # # ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ListBucketsCommand = void 0; const models_0_1 = require("../models/models_0"); const Aws_restXml_1 = require("../protocols/Aws_restXml"); const middleware_serde_1 = require("@aws-sdk/middleware-serde"); const smithy_client_1 = require(...
import reportReplace from "../helpers/reportReplacer"; import App from "../app"; import { randomFromList } from "../classes/generic/damageReports/constants"; function shuffleArray(array) { for (let i = array.length - 1; i > 0; i--) { let j = Math.floor(Math.random() * (i + 1)); [array[i], array[j]] = [array[...
class Service { /** * @param client */ constructor(client) { this.client = client; } } module.exports = Service;
/* * Copyright 2020 The Magma Authors. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, *...
# -*- coding: utf-8 -*- # @Time: 2020/1/4 8:45 下午 # @Author: GraceKoo # @File: 28_implement-strstr.py # @Desc:https://leetcode-cn.com/problems/implement-strstr/ class Solution: def strStr(self, haystack: str, needle: str) -> int: # haystack.find(needle) if len(haystack) < len(needle): ...
import { reactive, computed, watch } from 'vue' class ThemeManager { constructor(options) { this.onThemeChangedListener = null; this.ThemeChangerWatcher = null; this.onReadyListener = null; this.theme = reactive({ name: 'default', names: computed(...
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } f...
'use strict' const AWS = require('aws-sdk') /** * Lambda function to enable versioning on an s3 bucket */ module.exports.handler = (event, context, callback) => { console.log('S3BucketVersioning - Received event:', JSON.stringify(event, null, 2)) if (!event || !event.resource) { return handleError('Invali...
import sys from operator import add from types import GeneratorType import pytest from etuples.core import ExpressionTuple, InvalidExpression, KwdPair, etuple def test_ExpressionTuple(capsys): e0 = ExpressionTuple((add, 1, 2)) assert hash(e0) == hash((add, 1, 2)) assert e0 == ExpressionTuple(e0) e...
from ranger.gui.colorscheme import ColorScheme from ranger.gui.color import * class ColorScheme(ColorScheme): def use(self, context): fg, bg, attr = default_colors if context.reset: return default_colors elif context.in_browser: if context.selected: ...
/* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.7 & Bootstrap 4.0.0-Alpha 6 Version: 3.0.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v3.0/admin/html/ */var handleEmailToInput=function(){$("#email-to").tagit({availableTags:["c++","java","php","jav...
var searchData= [ ['cmakelists_2etxt_594',['CMakeLists.txt',['../src_2CMakeLists_8txt.html',1,'(Global Namespace)'],['../examples_2CMakeLists_8txt.html',1,'(Global Namespace)'],['../tests_2CMakeLists_8txt.html',1,'(Global Namespace)']]] ];
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','pl',{devTools:{title:'Informacja o elemencie',dialogName:'Nazwa okna dialogowego',tabName:'Nazwa zakładki',elementId:'ID elementu',elemen...
/* *\ ** ----------------------------------------------- ** ** Calliope - Site Generator ** ** ----------------------------------------------- ** ** Copyright (c) 2020-2021 - Kyle Derby MacInnis ** ** ...
import operator from django.db import InterfaceError from django.db.backends.base.features import BaseDatabaseFeatures from django.utils.functional import cached_property class DatabaseFeatures(BaseDatabaseFeatures): minimum_database_version = (11,) allows_group_by_selected_pks = True can_return_columns_...
import React, { Component } from 'react' import classNames from 'classnames' import { FormattedMessage } from 'react-intl' import _map from 'lodash/map' import _sortBy from 'lodash/sortBy' import _reverse from 'lodash/reverse' import _filter from 'lodash/filter' import { TaskStatus, messagesByStatus } from '../.....
import _find from "lodash-es/find"; import _some from "lodash-es/some"; import { Children } from 'react'; /** * Determine if child by type exists in children. * @param {Object} children The children prop of a component. * @param {string|Function} type An html tag name string or React component. * @returns {Boolean}...
const Mesh = require('./Mesh.js') const MeshType = require('./MeshType.js') const meshIOComponentToJSComponent = require('./meshIOComponentToJSComponent.js') const meshIOPixelTypeToJSPixelType = require('./meshIOPixelTypeToJSPixelType.js') const readMeshEmscriptenFSFile = (module, filePath) => { const meshIO = new ...
(function () { 'use strict'; angular .module('firebasetokens') .controller('FirebasetokensListController', FirebasetokensListController); FirebasetokensListController.$inject = ['FirebasetokensService']; function FirebasetokensListController(FirebasetokensService) { var vm = this; vm.firebas...
//******************************************************************************* // REPORT_CONTROLS object - A report object to display and navigate controls data //******************************************************************************* class Report_Controls extends Report { constructor(o) { super(o); let...
/* Fly4Free Notifications extension. Allows you to get browser notifications whenever Fly4Free posts a new specific deal that matches your request. Created by: David Gouveia Email: david [ . ] gouveia [ at ] gmail.com Web: https://www.davidgouveia.net */ // Initialize cache for the first time. if (!localStora...
from concurrent import futures import time import grpc import face_detection_pb2 import face_detection_pb2_grpc import sys import subprocess from face_detection import DlibFaceDetection _ONE_DAY_IN_SECONDS = 60 * 60 * 24 model = DlibFaceDetection() class FaceDetection(face_detection_pb2_grpc.FaceDetectionServicer):...
const packageVersion = require('../package.json').version; const prevaledNavigationData = require('./navigation-data'); // Groups of sections // - Each section is a top-level folder within the version directory // - The groups of sections are expressed only below, there is no representation of them in the filesystem c...
const { override, fixBabelImports, addLessLoader } = require("customize-cra"); module.exports = override( fixBabelImports("import", { libraryName: "antd", libraryDirectory: "es", style: true }), addLessLoader({ javascriptEnabled: true, modifyVars: { "theme": { "primary-color": "#443850", // primary...
'use strict'; angular.module('cvinApp') .config(function ($stateProvider) { $stateProvider .state('admin', { url: '/admin', templateUrl: 'app/admin/admin.html', controller: 'AdminCtrl' }); });
import React from 'react' import styled from 'styled-components' import { useWeb3React } from '../../../../hooks/useWeb3' import { BEAUTIFIED_CHAINS_BY_CHAIN_ID } from '../../../../constants/network' import { useRpcChangerCallback } from '../../../../hooks/useRpcChangerCallback' const Wrapper = styled.div` display:...
import podcastFinder from 'rss-finder'; import normalizeUrl from 'normalize-url'; import {isURL} from '../utils/validation'; import Podcast from '../models/podcast'; import personalization from '../utils/personalization'; import { ParsePodcast } from '../parsers/feed'; import strip from 'strip'; import search from '../...
import Time from '../../lib/units/Time'; import TestCase from './TestCase'; const tests = [{ from: 's', to: 'min', values: [{ a: 0, b: 0 }, { a: 60, b: 1 }] },{ from: 'week', to: 'd', values: [{ a: 0, b: 0 }, { a: 1, b: 7 }] },{ from: 'year', to: 'min', values: [{ a: 0, b: 0 }, { a: 1, b: 525960 }] }]; Te...
'use strict'; module.exports = function (c) { return { input: { color: c.inputColor, background: c.inputBG, border: 'none', padding: '12px', fontSize: '16px', lineHeight: '16px', width: '100%' } }; };
from __future__ import absolute_import try: from inspect import getfullargspec as _getargspec except ImportError: from inspect import getargspec as _getargspec import os as _os import sys as _sys import six as _six from flytekit.bin import entrypoint as _entrypoint from flytekit.common import constants as _co...
import re from logprog_util import findParens, preparse def solve( phi, W, R, V, w ): return sat( preparse(phi), W, R, V, w ) def satDiamond( phi, W, R, V, w ): i = phi.index('>') agents = phi[1:i:2] if phi[1] != '*' else R.keys() for _ag in agents: for _w in R[_ag][w]: if _w in W and sat( phi[i+1:], W, R, V,...
import { storiesOf } from '@storybook/vue'; import Loader from 'components/Loader'; import Demo from 'stories/demo'; import Content, { Paragraph } from 'stories/content'; const stories = storiesOf('General|Loader', module); stories.add('basic', () => ({ render() { return ( <Demo title="Basic"> <L...
const jwt = require("jsonwebtoken"); const { JWT_SECRET_KEY } = require("../config"); /** return signed JWT from user data. */ function createToken(email, id, user_type) { let payload = { email, id, user_type, }; return jwt.sign(payload, JWT_SECRET_KEY); } module.exports = createToken;
/* global QUnit */ QUnit.config.autostart = false; sap.ui.getCore().attachInit(function () { "use strict"; sap.ui.require([ "opensap/movies/test/unit/AllTests" ], function () { QUnit.start(); }); });
const mongoose = require('mongoose') const bcrypt = require('bcrypt-nodejs') const Schema = mongoose.Schema const UserSchema = new Schema({ email: { type: String, unique: true, required: true }, username: { type: String, unique: true, required: true }, password: { type: String, required: true }, admin: { type: ...
module.exports = { pageTitle: 'Account', training: 'Training', links: { manageTraining: 'Manage training', emailPreferences: 'Email alerts and newsletters' } };