text
stringlengths
3
1.05M
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {ReactNodeList} from 'shared/ReactTypes'; import {Writable, Readable} from 'stream'; import ReactVersion ...
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
require('app/models/transaction'); Balanced.Hold = Balanced.Transaction.extend({ source: Balanced.Model.belongsTo('source', 'Balanced.FundingInstrument'), debit: Balanced.Model.belongsTo('debit', 'Balanced.Debit'), status: function() { if (this.get('debit')) { return 'captured'; } else if (this.get('is_void...
/* global d3 */ // eslint-disable-next-line no-unused-vars class MultiDropdownView { constructor (options = {}) { const getElem = (selector) => document.querySelector(selector); this._buttonGroup = options.buttonGroup ? getElem(options.buttonGroup) : null; this._selectButton = options.selectButton ? get...
import json import os import glob from licenses import dc def dependency(repo_type): if repo_type == 'backend': return dependency_backend() elif repo_type == 'frontend': return dependency_frontend() else: pass def dependency_backend(): license_data = {} volume = {os.path....
export default from './profile'
/*! * AdminLTE v3.0.5 (https://adminlte.io) * Copyright 2014-2020 Colorlib <http://colorlib.com> * Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE) */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"...
# Generated by Django 2.1.7 on 2019-02-25 13:21 import django.core.validators import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
/** @type {import('@docusaurus/types').DocusaurusConfig} */ module.exports = { title: 'parsed-path', tagline: 'Use the best bits of ES6 to parse your path without stress 👋', url: 'https://tseijp.github.io', baseUrl: '/parsed-path/', onBrokenLinks: 'throw', organizationName: 'tseijp', projectName: 'parsed...
(function () { "use strict"; angular.module("edtApp.common.filter") // 소수 둘째자리에서 반올림하여 퍼센트를 구한다. .filter("percent", [function () { return function (num) { num = Number(num); return num.toFixed(2)+'%'; }; }]) //...
const { ethers } = require('hardhat'); const { expect } = require('chai'); describe('[Challenge] Truster', function () { let deployer, attacker; const TOKENS_IN_POOL = ethers.utils.parseEther('1000000'); before(async function () { /** SETUP SCENARIO - NO NEED TO CHANGE ANYTHING HERE */ [d...
import axios from "axios"; import { useState } from "react"; export default ({ url, method, body, onSuccess }) => { const [errors, setErrors] = useState(null); const doRequest = async (props = {}) => { try { setErrors(null); const response = await axios[method](url, { ...body, ...props }); ...
/* @ @licstart The following is the entire license notice for the JavaScript code in this file. Copyright (C) 1997-2017 by Dimitri van Heesch This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _createIcon = _interopRequireDefault(require("./util/createIcon")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _default = (0, _createIcon["defaul...
import React from 'react' const initialValue = { transitioning: false, setTransitioning: () => {} } const context = React.createContext(initialValue) export default context
import Link from "next/link" import Head from 'next/head' import { MDXRemote } from 'next-mdx-remote' import { Meta, Header, Sidebar, Footer, RelatedTags } from "../../src/components" import styles from "../../styles/faq.module.css" import * as faqs from "../../src/faqs" import * as tags from "../../src/tags" import * ...
module.exports = { extends: 'standard', rules: { indent: [2, 'tab'], 'no-tabs': 0 } };
import { __awaiter } from "tslib"; import { Inject, Injectable, InjectionToken, NgZone, Optional, PLATFORM_ID } from '@angular/core'; import { concat, EMPTY, Observable, of } from 'rxjs'; import { catchError, defaultIfEmpty, map, mergeMap, observeOn, switchMap, switchMapTo, shareReplay, subscribeOn } from 'rxjs/operato...
import { mapGetters,mapActions } from 'vuex'; import helpers from '../mixin'; import { domainNameRegex } from "../../../config/config"; const aRecord = '35.154.83.253'; const domainPlaceholder = 'please set a domain'; export default { name: 'dnsDetails', mixins : [helpers], data() { return { updateBtnClicke...
/* ------------------------------------------------------------------------------ * * # Key Table extension for Datatables * * Demo JS code for datatable_extension_key_table.html page * * ---------------------------------------------------------------------------- */ // Setup module // -------------...
import PropTypes from 'prop-types' import Avatar from '../../components/avatar' import React from 'react' const UserToken = (props) => ( <div className="user-token"> <div className="user-token-avatar"> <Avatar user={ props } width="40" presence={ props.presence } /> </div> <div className="user-toke...
import { assign } from 'lodash' import users from './users/zh_CN' import things from './things/zh_CN' const common = { el: { select: { noData: '无匹配数据' } }, config: { title: 'xxx 后台管理系统', description: '描述' }, message: { save: { ok: '已保存!', err: '保存失败!' }, confirm...
import matplotlib.pyplot as plt y = [3067, 2032, 1799, 1662, 1525, 1378] x = [1, 0.9, 0.8, 0.7, 0.6, 0.5] plt.xlim([1, 0.5]) plt.title('#proteins-sequence identity') plt.ylabel('number clusters') plt.xlabel('sequence identity') plt.plot(x, y) plt.savefig("proteins-sequence_id.pdf")
import { DisplayMode, Validate } from '@microsoft/sp-core-library'; import ClientSideWebPartManagerFactory from '../../core/ClientSideWebPartManagerFactory'; var MinimalWebPartContainer = (function () { function MinimalWebPartContainer(props) { this._validateProps(props); this._props = props; ...
$(function() { function t(t) { var e = 0; return $(t).each(function() { e += $(this).outerWidth(!0) }), e } function e(e) { var a = t($(e).prevAll()), i = t($(e).nextAll()), n = t($(".tab").children().not(".J_Tabs")), s = $(".tab").outerWidth(!0) - n, r = 0; if ($(".page-con").outerWidth() <...
"use strict"; export default class Enemy { constructor(game, spawnPositionX,spawnPositionY) { this.game = game; this.width = 25; this.heigth = 25; this.health = 100; this.damage = 5; this.collisionBox; this.hitSpeed = 2; //One hit each 3 seconds this.h...
function diff(input, units, asFloat) { var that, zoneDelta, output; if (!this.isValid()) { return NaN; } that = cloneWithOffset(input, this); if (!that.isValid()) { return NaN; } zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; units = normal...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _SvgContainer = require('./SvgContainer'); var _SvgContainer2 = _interopRequireDefault(_SvgContainer); function _interopRequireDefault(obj) { return obj &...
var M; (function (M) { function f(i) { } M.f = f; f({ salt: 2, pepper: 0 }); })(M || (M = {}));
export default [ { path: '/', redirect: '/home', name: 'app', meta: { title: 'views' }, component: () => import(/* webpackChunkName: "views" */ '../views'), children: [ { path: 'home', name: 'home', meta: { title: 'home' }, component: () => import(/* webpackChunkName: "home...
var express = require('express'); var router = express.Router(); var isLoggedIn = require('../middleware/routeprotectors').userIsLoggedIn; const { getRecentPosts, getPostById, getCommentsByPostId } = require('../middleware/postsmiddleware'); var db = require('../config/database'); /* GET home page. */ //localhost:3000 ...
import { makeStyles } from "@material-ui/styles"; export default makeStyles(theme => ({ main_header: { backgroundColor: "#fff", marginLeft: "-24px", marginTop: "-24px", marginRight: "-24px", padding: "0.5rem", marginBottom: "15px", paddingLeft: "26px", paddingTop: "1.5rem", paddingBottom: "1.5rem" }, mai...
$(document).ready(function () { $('body').on('click', '[data-ma-action]', function (e) { e.preventDefault(); var $this = $(this); var action = $(this).data('ma-action'); switch (action) { /*------------------------------------------- Sidebar & Chat Open...
/* * @Author: sheikirfanbasha@gmail.com * @Date: 2020-01-16 04:50:58 * @Last Modified by: irfan.sheik@imaginea.com * @Last Modified time: 2020-01-16 05:16:43 */ const emailService = require('../../services/core/email_service'); module.exports = function(app) { app.post('/mailtest', function(req, res) { ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import with_statement import sys, os try: from cStringIO import StringIO except ImportError: from StringIO import StringIO try: import json except ImportError: import simplejson as json import _PyV8 __author__ = 'Flier Lu <flier.lu@gmail...
function Dude(spritesheet, col) { var state = { facing: 0, walking: 0 }; this.face = function (dir) { state.facing = dir; } this.walk = function (isWalking) { state.walking = isWalking; } this.render = function (ctx, x, y) { var mod = (Date.now() / 100 | 0) % 2; var row = state...
##################################################################### ####### Dash Plotly with Bootstrap Components ######### ##################################################################### import os import pandas as pd import numpy as np from astropy.convolution import convolve, Gaussian1DKernel i...
const mongodb = require('mongodb'); const getDb = require('./get-db') const ajv = require('ajv')() const elo = require('./elo') async function getCollection(collection) { const db = await getDb return db.collection(collection) } function getAverageElo(docs) { const eloSum = docs.reduce((elo, doc) => elo + doc.elo,...
export default { route: { dashboard: 'Dashboard', introduction: 'Introduction', documentation: 'Documentation', guide: 'Guide', permission: 'Permission', pagePermission: 'Page Permission', directivePermission: 'Directive Permission', icons: 'Icons', components: 'Components', co...
MapRoute.ViewModels.Navbar.Toolbar = function(controller) { this.controller = controller; this.curAction = null; this.buttons = ko.observableArray(); this.setData(); // Set KO binding handler context this.onButtonClick = this.onButtonClick.bind(this); }; MapRoute.ViewModels.Navbar.Toolbar.prototype = { ...
var classtesting_1_1internal_1_1_assert_helper = [ [ "AssertHelper", "classtesting_1_1internal_1_1_assert_helper.html#ac2c9334518fd4087189b4505567a3c90", null ], [ "~AssertHelper", "classtesting_1_1internal_1_1_assert_helper.html#a51c640785d4ed4a0155cc9aa857d8931", null ], [ "AssertHelper", "classtesting_1_...
var obj; if (typeof jsonpatch === 'undefined') { jsonpatch = require('./../../lib/duplex'); } if (typeof _ === 'undefined') { _ = require('./../lib/underscore.min.js'); } describe('jsonpatch.getValueByPointer', function() { it('should retrieve values by JSON pointer from tree - deep object', function() { var...
/* Version: 16.0.9106.1000 */ Type.registerNamespace("Strings"); Strings.OfficeOM = function() { }; Strings.OfficeOM.registerClass("Strings.OfficeOM"); Strings.OfficeOM.L_APICallFailed = "Falha na Chamada à API"; Strings.OfficeOM.L_APINotSupported = "API Não Suportada"; Strings.OfficeOM.L_ActivityLimitReached = "O lim...
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var x = 1; export var r1; var y = { foo: '' }; export var r2; var C = function C() { "use strict"; _classCallCheck(this, C); }; export var...
const mongoose = require("mongoose"); const Schema = mongoose.Schema; //Create schema const SellSchema = new Schema({ user: { type: Schema.Types.ObjectId, ref: "users", required: true }, hinhThuc: { type: String, required: true, enum: ["sell", "rent"] }, loai: { type: String, ...
var NAVTREEINDEX1 = { "classmackey_1_1CombinationGenerator_1_1ConstIterator.html#a606fcaa7fb0db1af76ffdfd823c0740b":[7,0,0,44,0,1], "classmackey_1_1CombinationGenerator_1_1ConstIterator.html#a72ff8adf15af1b6a2547254d25ef4a38":[7,0,0,44,0,0], "classmackey_1_1EquivariantAMT.html":[7,0,0,7], "classmackey_1_1EquivariantAMT...
/** * catalogue-api * NHS Digital GP IT Futures Buying Catalog API * * OpenAPI spec version: 1.0.0-private-beta * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.0-SNAPSHOT * * Do not edit the cl...
import { firebase, FieldValue } from '../lib/firebase'; export async function isUserFollowingProfile(activeUsername, profileUserId) { const result = await firebase .firestore() .collection('users') .where('username', '==', activeUsername) .where('following', 'array-contains', profil...
const gulp = require('gulp'); const del = require('del'); const SystemBuilder = require('systemjs-builder'); const config = require('../config'); const builder = new SystemBuilder(); gulp.task('bundle', () => builder .loadConfig('systemjs.config.js') .then(() => builder.buildStatic(`${config.TMP}main.js`, `...
(function (global, factory) { if (typeof define === "function" && define.amd) { define("my custom module name", ["exports"], factory); } else if (typeof exports !== "undefined") { factory(exports); } else { var mod = { exports: {} }; factory(mod.exports); global.foo = global.foo || {...
$(document).ready(function(){ //Submit form $('#create_tag').validator().on('submit', function(e){ //Validated? if(!e.isDefaultPrevented()){ //Prevent form submit e.preventDefault(); //AJAX request $.ajax({ type : $('#create_tag').attr('method'), url : base_url+'admi...
import { ref } from 'vue' import Axios from 'axios' const getData = (url) => { const data = ref([]) const error = ref(null) const fetchData = async () => { try { const res = await Axios.get(url) if (res.status !== 200) { throw Error("Couldn't get res") } data.value = res.data ...
/* array:map */"use strict" var map = function(self, method, context){ var length = self.length >>> 0, results = Array(length) for (var i = 0, l = length; i < l; i++){ results[i] = method.call(context, self[i], i, self) } return results } module.exports = map
var group__elm__accessibility__group = [ [ "Access", "group__Elm__Access.html", null ], [ "Atspi Accessible", "group__Elm__Interface__Atspi__Accessible.html", null ], [ "Atspi Bridge", "group__Elm__Atspi__Bridge.html", null ] ];
module.exports = { siteMetadata: { title: `Headless Drupal Test Website`, description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`, author: `@gatsbyjs`, }, plugins: [ `gatsby-plugin-reac...
var nutrientes = '[{"id":1,"name":"Colágeno Hidrolizado","description":"El colágeno es una proteína y esta, a su vez, se compone de varios aminoácidos, los cuales son muy importantes para nuestro cuerpo conformando el tejido conectivo","presentation":"polvo","rangeAge":{"min":0,"max":""},"targetAge":{"min":0,"max":""},...
import logging import os from collections import OrderedDict from typing import Union import discord from discord.ext import commands from dotenv import load_dotenv from cogs.utils import i18n, custom_errors load_dotenv() logging.basicConfig() logger = logging.getLogger(__name__) class HelpCenterBot(commands.Bot...
const HtmlWebpackPlugin = require('html-webpack-plugin'); const WebpackPwaManifest = require('webpack-pwa-manifest'); const path = require('path'); const { InjectManifest } = require('workbox-webpack-plugin'); // TODO: Add and configure workbox plugins for a service worker and manifest file. // TODO: Add CSS loaders a...
/* Generated by Opal 0.11.4 */ (function(Opal) { function $rb_le(lhs, rhs) { return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs <= rhs : lhs['$<='](rhs); } function $rb_ge(lhs, rhs) { return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs >= rhs : lhs['$>='](rhs); } funct...
export default { breakpoints: ["660px", "860px", "1380px", "1680px"], sizes: { mobile: "80vw", tablet: "80vw", desktop: "85vw", maxSmall: 850, maxLarge: 1000, outer: 1216, navigation: 1432, }, space: [ "0", "0.25em", "0.5em", "0.75em", "1em", "1.5em", "2em...
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var SPACES = '\t\n\x0B\f\r \xA0\u1680\u180E\u2000...
from __future__ import absolute_import import FWCore.ParameterSet.Config as cms import SimTracker.TrackAssociatorProducers.trackAssociatorByChi2_cfi from SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi import * from SimTracker.TrackAssociation.trackingParticleRecoTrackAsssociation_cfi import * impor...
"use strict";function sampleTime(e,t){return void 0===t&&(t=async_1.async),this.lift(new SampleTimeOperator(e,t))}function dispatchNotification(e){var t=e.subscriber,i=e.period;t.notifyNext(),this.schedule(e,i)}var __extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var s in t)t.hasOwnProp...
import numpy as np from ..utils import nfft_matrix, fourier_sum, inv_fourier_sum from ..kernels import KERNELS from numpy.testing import assert_allclose import pytest kernel_types = sorted(KERNELS.keys()) @pytest.mark.parametrize('N', [50, 100, 200]) @pytest.mark.parametrize('sigma', [2, 3, 4]) @pytest.mark.parame...
/** * @author Mat Groves http://matgroves.com/ @Doormat23 */ PIXI.CrossHatchFilter = function() { PIXI.AbstractFilter.call( this ); this.passes = [this]; // set the uniforms this.uniforms = { blur: {type: '1f', value: 1 / 512} }; this.fragmentSrc = [ 'precision mediump floa...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"widgets/Screening/nls/strings":{_widgetLabel:"Pr\u00fcfung",geometryServicesNotFound:"Geometr...
import Vue from "vue"; import VueRouter from "vue-router"; import Home from "../views/Home.vue"; Vue.use(VueRouter); const routes = [ { path: "/", name: "Home", component: Home, }, { path: "/1/2", name: "Home", component: Home, }, ]; const router = new VueRouter({ mode: "history", ...
/** * Add active/idle buttons to those unit modifiers. */ const { ActiveIdle } = require("../lib/unit/active-idle"); const { UnitModifier } = require("../lib/unit/unit-modifier"); const { Card, globalEvents, world } = require("../wrapper/api"); globalEvents.TI4.onSingletonCardCreated.add((card) => { if (UnitModi...
// THIS FILE IS AUTO GENERATED var GenIcon = require('../lib').GenIcon module.exports.RiPencilRuler2Line = function RiPencilRuler2Line (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"fill":"none","d":"M0 0h24v24H0z"}},{"tag":"path","at...
const modules = require('require-all')(__dirname) delete modules.index const files = Object.values(modules) module.exports = files
/* global $, Actors, ActorSheet, Items, ItemSheet, ChatMessage, CONFIG, game, Hooks, Macro, ui, loadTemplates, Handlebars, EntitySheetConfig, TextEditor */ /** * DCC */ // Import Modules import DCCActor from './actor.js' import DCCActorSheet from './actor-sheet.js' import * as DCCSheets from './actor-sheets-dcc.js' ...
import React from "react"; import { connect } from "react-redux"; import { Button, ModalHeader, ModalBody, ModalFooter, } from "reactstrap"; import { updateSiteCategory } from "../../redux/apiActions"; import ModalInput from "../ModalInput"; class EditCategoryModal extends React.Component { constructor(props) { ...
import booleanCellEditor from "./cell_editor/BooleanCellEditor"; export default { booleanCellEditor, };
import sys,os,string import math # plot an MNvH1D CV and the ratios of its error bands to their CV's. from ROOT import * from PlotUtils import * from array import array def dot(a,b): n = len(a) if len(b)!= n: return None d = 0 for i in range(1,n): d[i] += a[i] * b[i] return d def getvals(h): ...
import './utils/mathExtensions.js'; import { getSimilarityAsPercentage } from './utils/similarity.js'; import { workingCanvas } from './utils/toImg.js'; import { draw } from './utils/draw.js'; import { updateGenerationsDisplay, updateImprovementsDisplay, updateBestSimilarityDisplay, updateScratchSimilarityDispl...
--- --- {%if site.url=="http://localhost:4000"or site.url contains "https"%}{%assign secure="http"%}{%else%}{%assign secure="https"%}{%endif%}$(document).ready(function(){setTimeout(function(){window.location.href="{{""|absolute_url|replace:"http",secure}}";},4000);});
from pathlib import Path import yaml from discord import Color, Embed from discord.ext import commands from bot.constants import WHITELISTED_CHANNELS from bot.utils.decorators import override_in_channel from bot.utils.randomization import RandomCycle SUGGESTION_FORM = 'https://forms.gle/zw6kkJqv8U43Nfjg9' with Path...
/* GridColumn */ function GridColumn(idx, id, boxes){ this.idx = idx; this.element_id = id; this.visible = false; this.init(boxes); } GridColumn.prototype.init = function(boxes){ this.boxes = boxes; this.populate(); } GridColumn.prototype.setVisible = function(visible){ this.visible = visible; ...
const path = require('path'); const process = require('process'); const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); const TSConfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); const webpack = require('webpack'); const rootPath = process.cwd(); const packageName = require(path.reso...
#! /usr/bin/env python """Test hello_world parent workflow""" import pytest @pytest.mark.integration def test_workflow(workflow_data, workflow_runner): """Test the hello_world parent workflow with fixed inputs and outputs.""" inputs = { "input_files": [ workflow_data["test_file"], ...
/* * Copyright (c) 2013 DataTorrent, 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 applicab...
# Generated by Django 3.1.1 on 2020-09-29 14:54 import django.contrib.postgres.fields from django.db import migrations, models import django.db.models.deletion import jobs.models class Migration(migrations.Migration): initial = True dependencies = [ ('accounts', '0001_initial'), ] operatio...
#!/usr/bin/env python import sys ignored_lines = [ "nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingIncludeSystem]\n", "\n" ] if __name__ == "__main__": if len(sys.argv) == 1: print("Missing filename argument") exit(1) file...
// Copy files required require('!!file?name=/texture.jpg!../static-files/texture.jpg') //create the rendering context var GL = require('../../litegl.js'); var glm = GL.glmatrix, mat3=glm.mat3, mat4=glm.mat4, vec2=glm.vec2, vec3=glm.vec3, vec4=glm.vec4, quat=glm.quat; var gl = GL.create({width: window.innerW...
const blacklist = require('metro/src/blacklist') module.exports = { getTransformModulePath() { return require.resolve('./scripts/transformer.js'); }, getSourceExts() { return ['js', 'ts', 'tsx', 'styl']; }, getBlacklistRE() { return blacklist([/react-native\/local-cli\/core\/__fixtures__.*/]) }...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { Redirect } from 'react-router-dom'; import { DEFAULT_ROUTE, LOCK_ROUTE, INITIALIZE_END_OF_FLOW_ROUTE, INITIALIZE_WELCOME_ROUTE, INITIALIZE_UNLOCK_ROUTE, } from '../../../helpers/constants/routes'; export default class ...
"use strict"; /* * Copyright 2016 Palantir Technologies, 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 *...
Camera = function(game){ this.game = game; this.cameraSprite = null; this.speedOfCamera = 6; }; Camera.prototype = { preload: function(){ }, create: function(){ // Sets the camera in the middle this.cameraSprite = this.game.add.sprite(this.game.world.width/2, this.game.world.height/2, null); }, update:...
import React, { useContext, useState, useEffect } from 'react'; import { auth, app } from '../config/firebase'; import { UserDetailsContext } from './UserDetailsContext'; const AuthContext = React.createContext(); export const useAuth = () => { return useContext(AuthContext); }; export const AuthProvider = ({ child...
from keras.optimizers import RMSprop from keras.models import Model from keras.layers import Input, Conv2D, MaxPooling2D, UpSampling2D from sklearn.model_selection import train_test_split from matplotlib import pyplot as plt import numpy as np import gzip from ignored import inputs def extract_data(filename, ima...
from snovault import upgrade_step @upgrade_step('target', '', '2') def target_0_2(value, system): # http://redmine.encodedcc.org/issues/1295 # http://redmine.encodedcc.org/issues/1307 if 'status' in value: value['status'] = value['status'].lower() @upgrade_step('target', '2', '3') def target_2_...
/** * Module dependencies. */ var passport = require('passport-strategy') var url = require('url') var util = require('util') var utils = require('./utils') var OAuth2 = require('./oauth') var async = require('async') function EnterpriseWechatStrategy(options, verify, getAccessToken, saveAccessToken) { options = o...
module.exports = [ { label: 'Utility classes', selectors: [ '[data-backstop="a11y-utilities"]', '[data-backstop="visibility-utilities"]', '[data-backstop="align-utilities"]', '[data-backstop="inline-space-utilities"]', '[data-backstop="inset-space-utilities"]', '[data-backs...
define( [ "helper/defaultSettings", "helper/getSettingsObject", "helper/reduceObjectList", "helper/getQueryString" ], function ( defaultSettings, getSettingsObject, reduceObjectList, getQueryString ) { "use strict"; return function ( userSettings ) { var objectList = [], queryString = getQueryString(); o...
import moment from 'moment'; import { matchPath } from "react-router"; import history from "../components/history"; import api from "../functions/api"; import clone from "clone"; const {getEvents} = api; var now = moment() /* created: "YYYY-MM-DDTHH:mm:SS.mmmz" creator: {email:"", displayName:""} description:"" end:{...
var setData = require('@progress/kendo-angular-intl').setData; setData({ name: "el", identity: { language: "el" }, territory: "GR", numbers: { symbols: { decimal: ",", group: ".", list: ";", percentSign: "%", plusSign: "+", ...
import uuid class RecognitionContext: def __init__(self, src_image): self.__uuid = uuid.uuid1() self.__src_image = src_image self.__detection_result = None self.__recognition_result = None def uuid(self): return self.__uuid def get_detection_result(self): r...
"""Migration Revision ID: a306d9c4421a Revises: 4b7aa7ab2934 Create Date: 2021-08-26 17:00:55.585218 """ # revision identifiers, used by Alembic. revision = 'a306d9c4421a' down_revision = '4b7aa7ab2934' from alembic import op import sqlalchemy as sa def upgrade(): # ### commands auto generated by Alembic - pl...
import { translateTrajCollResponse, translateTrajStationsResp, } from './TrajservAPIUtils'; import API from '../../common/api/api'; /** * Access to the [Realtime service](https://developer.geops.io/apis/5dcbd5c9a256d90001cf1360/). * * @example * import { TrajservAPI } from 'mobility-toolbox-js/api'; * * cons...
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ # ALGORITHMS import allure import unittest from utils.log_func import print_log from kyu_7.growing_plant.growing_plant import growing_plant @allure.epic('7 kyu') @allure.parent_suite('Beginner') @a...