text
stringlengths
3
1.05M
######## ######## # Copyright (c) 2018-2022 Cloudify Platform Ltd. 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 # ...
const knex = require('knex')(require('../knexfile').development) const uuid = require('uuid/v1') const moment = require('moment') module.exports = { addOrUpdateContact, } function addOrUpdateContact (name, conversation, participant, senderId) { return knex .select('senderId') .from('contacts') .where({...
"use strict"; // Extend the object var extend = function(template, fields) { var object = {}; for(var name in template) { object[name] = template[name]; } for(var name in fields) { object[name] = fields[name]; } return object; } exports['Successfully handle buffering store execution for primary s...
const path = require('path'); const gulp = require('gulp'); const $ = require('gulp-load-plugins')(); const extractMediaQuery = require('postcss-extract-media-query'); function clean() { return gulp.src(path.join(__dirname, 'dist/*')).pipe( $.deleteFile({ deleteMatch: true, }) ); } function css() { ...
module.exports = require("npm:axios@0.5.4/index");
const webpack = require('webpack'); const { merge } = require('webpack-merge'); const WebpackNotifierPlugin = require('webpack-notifier'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const commonConfig = require('./webpack.common'); const { ENV, dir } = require('./helpers'); module.exports = function(op...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.25/esri/copyright.txt for details. //>>built define("esri/layers/vectorTiles/layers/support/Field",["require","exports","../../core/JSONSupport"],function(d,e,c){return function(a){function b(){return null!==a...
"use strict"; const express = require('express'); const router = express.Router(); const ctrl = require('./home.ctrl'); router.get('/', ctrl.output.hello); router.get('/login', ctrl.output.login); router.post('/login', ctrl.process.login); module.exports = router;
# Generated by Django 3.2.8 on 2022-03-01 09:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data', '0050_alter_organization_classification'), ] operations = [ migrations.AlterField( model_name='billdocument', ...
"""ProtoTorch datasets test suite""" import os import shutil import unittest import numpy as np import torch import prototorch as pt from prototorch.datasets.abstract import Dataset, ProtoDataset class TestAbstract(unittest.TestCase): def setUp(self): self.ds = Dataset("./artifacts") def test_geti...
/** * @ngdoc service * @name customerDisplayBuilder * * @description * A utility service that builds CustomerDisplay models */ angular.module('merchello.models').factory('customerDisplayBuilder', ['genericModelBuilder', 'customerAddressDisplayBuilder', 'extendedDataDisplayB...
def extractPlantTranslation(item): """ 'Plant Translation' """ vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol or frag) or 'preview' in item['title'].lower(): return None tagmap = [ ('cultutral inavsion in different world', 'cultutral inavsion in differ...
# # PySNMP MIB module ZHONE-COM-CES-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZHONE-COM-CES-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:46:57 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
describe("The GamePlayService", function() { beforeEach(module('tictactoe')); var GamePlayService, GameConst, $q, $rootScope; beforeEach(inject(function(_GamePlayService_, _GameConst_, _$q_, _$rootScope_){ GamePlayService = _GamePlayService_; GameConst = _GameConst_; $q = _$q_; $roo...
import React from "react"; import { Card, CardTitle, CardSubtitle, CardText, Container, Row, Col, Alert, Collapse, Table, } from "reactstrap"; import { Button, Modal } from "react-bootstrap"; import { Bar } from "react-chartjs-2"; import "chartjs-plugin-datalabels"; import Axios from 'axios'; clas...
import { withStyles } from "@material-ui/core/styles"; import { connect } from "react-redux"; import compose from "recompose/compose"; import { signInError, signInIsLoading, signInSuccess } from "../../redux/actions/authentication.actions"; import { signIn } from "../../services/user.service"; import { styles } from "....
module.exports = function() { switch(process.env.NODE_ENV){ case 'development': return { databaseURL: "postgres://localhost:5432/lunchwith", linkedin: { clientID: "78b3ua1u1ptbbj", clientSecret: "TN6C4QGvwiY5mIS1", callbackURL: "/auth/linkedin/callback" } }; ...
/** * Created by gaoletian on 17/2/9. */ process.env.DEBUG = 'vuefix'; const recursive = require('recursive-readdir'); const parser = require('parse5'); const eslint = require('eslint'); const fs = require('fs'); const debug = require('debug')('vuefix'); function eslintfixer(input) { let CLIEngine; let cliEngi...
"use strict"; class AsignacionC3D extends Codigo3d { constructor(tipo, id, valor, linea, columna) { super(linea, columna); this.tipo = tipo; this.id = id; this.valor = valor; this._valorCasteo = null; this._valorAcceso = null; } optimizarCodigo() { } r...
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), tslint: { options: { configuration: 'tslint.json', force: true, }, files: { src: [ 'src/rest.ts', ...
# Copyright (C) 2018-2020 Intel Corporation # # SPDX-License-Identifier: MIT import argparse from bench import ( parse_args, measure_function_time, load_data, print_output ) import numpy as np from sklearn.linear_model import LogisticRegression from sklearn.metrics import accuracy_score parser = argparse.ArgumentP...
// Bosnian (bs) plupload.addI18n({"Stop Upload":"Prekini dodavanje","Upload URL might be wrong or doesn't exist.":"URL za dodavanje je neispravan ili ne postoji.","tb":"tb","Size":"Veličina","Close":"Zatvori","Init error.":"Inicijalizacijska greška.","Add files to the upload queue and click the start button.":"Dodajte...
/**** efw4.X Copyright 2019 efwGrp ****/ var elfinder_paste = {}; elfinder_paste.name = "elfinder_paste"; elfinder_paste.paramsFormat = {};// elfinder_paste.fire = function(params) { var risk=elfinder_checkRisk(params);if(risk)return risk; var volumeId="EFW_"; var readonly=params["readonly"];//参照のみかどうか,true,false /...
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been cal...
function Sprite(image, params) { params = params || {}; this.image = image; this.x = params.x || 0; this.y = params.y || 0; this.pivotX = params.pivotX || 0; this.pivotY = params.pivotY || 0; this.rotation = params.rotation || 0; this.scale = params.scale || 1; thi...
#This one is for number-type, nothing different in the algorithm from random import shuffle # Creating list x = list(range(1,37)) #generate list of number from 1 to 36 (you can change this) #removing certain element is also possible if you want to... num_of_group = int(input("Input > Number of Group(s) : ")) num_of_m...
import loremIpsum from './lorem-ipsum'; import _ from 'lodash'; import { getPublicUrl } from '../utils/common'; import courses from './courses'; export default [{ name: 'University of Waterloo', location: 'Waterloo, ON', imageUrl: getPublicUrl('/images/institutions/uw.jpg'), }, { name: 'McGill Univers...
const Validator = require("validator"); const isEmpty = require("is-empty"); module.exports = function validateRegisterInput(data) { let errors = {}; // Convert empty fields to an empty string so we can use validator functions data.name = !isEmpty(data.name) ? data.name : ""; data.email = !isEmpty(data.email) ?...
module.exports = require('@leanup/stack-svelte/webpack.config');
/** * * Returns a list of previous called commands + their arguments. * * <example> :getCommandHistoryAsync.js client .init() .url('http://www.google.com') .click('#username') .addValue('#password', 'text') .pause(2000) .getCommandHistory().then(function(histo...
export default (ctx, width, height, color, borderSize) => { ctx.fillStyle = color; ctx.fillRect( borderSize, borderSize, width - 2 * borderSize, // width height - 2 * borderSize // height ); };
import json, subprocess from .... pyaz_utils import get_cli_name, get_params def create(hub_name, route_name, source_type, endpoint_name, enabled=None, condition=None, resource_group=None): params = get_params(locals()) command = "az iot hub route create " + params print(command) output = subproces...
// { "framework": "Vue"} !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n...
export default class CreateBehavior { store = null; constructor(store) { this.store = store } load() { this.store.dispatch('draft/fill', { id: 'new', name: 'New Footprint', output_unit_id: 9, type: { id: 1, ...
import React from "react"; import PropTypes from "prop-types"; import "./Display.css"; export default class Display extends React.Component { static propTypes = { value: PropTypes.string, }; render() { return ( <div className="component-display"> <div>{this.pro...
#!/usr/bin/python # $LicenseInfo:firstyear=2010&license=mit$ # Copyright (c) 2010, Linden Research, Inc. # # 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 with...
// 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. cr.define('downloads.layout_tests', function() { function registerTests() { suite('LayoutTests', function() { /** @type {!downloads.Manager} *...
//~ name a375 alert(a375); //~ component a376.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{212:function(e,a,o){"use strict";o.r(a);var s=o(0),t=Object(s.a)({},function(){var e=this,a=e.$createElement,o=e._self._c||a;return o("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[o("h1",{attrs:{id:"interseccao"}},[e._v("Intersecção")]),e._v(...
/*! showdown 19-08-2016 */ var showdown = require('showdown.js'); var HtmlToJson = require('html2json.js'); //type 'json','html','markdown'/'md' function wxParse(type,data){ var wxParseData = []; if(type == 'json'){ var json = HtmlToJson(html); // console.log(JSON.stringify(json, ' ', ' ')); wxParseData...
# Copyright IBM Corp, All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # import logging import os import sys from flask import Blueprint, render_template from flask import request as r sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..')) from common import log_handler, LOG_LEVEL, \ re...
'''Escreva a função n_primos que recebe como argumento um número inteiro maior ou igual a 2 como parâmetro e devolve a quantidade de números primos que existem entre 2 e n (incluindo 2 e, se for o caso, n).''' def n_primos(n): cont = total = 0 div = 1 contotal = n while contotal >= 2: cont = ...
/** * @fileoverview An update to the require-jsdoc that catches more function expressions and declarations. * @author Jonathan S. Collins Leon */ 'use strict'; //------------------------------------------------------------------------------ // Plugin Definition //----------------------------------------------------...
// // thanks electron-vue // process.env.NODE_ENV = 'development'; const path = require('path'); const { spawn } = require('child_process'); const chalk = require('chalk'); const webpack = require('webpack'); const electron = require('electron'); const WebpackDevServer = require('webpack-dev-server'); const webpackHotM...
import { dirname, resolve } from 'path'; import commonjs from '@rollup/plugin-commonjs'; import { nodeResolve } from '@rollup/plugin-node-resolve'; import { dualBuild } from '@knodes/dev-utils/build/rollup'; export default dualBuild( 'src', 'dist', { plugins: ( { libRoot, buildTs } ) => [ nodeResolve(), commonj...
import os import threading import tkinter as tk import keyboard_handler import game # Default field parameters CELL_SIZE = 24 # In pixels, this is base size for all CELL_INTERNAL_BORDER = 4 FIELD_HEIGHT = 20 # In cells FIELD_HIDDEN_TOP_ROWS_NUMBER = 4 FIELD_WIDTH = 10 # In cells COLOR_BACKGROUND = "#FF00FF" def ...
var server_ip_address = process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1'; var app = require('../app'); app.set('port', process.env.OPENSHIFT_NODEJS_PORT || 8080); var server = app.listen(app.get('port'),server_ip_address, function() { console.log('Express server listening on port ' + server.address().port); });
(function() { /* setModeEventListener(); */ setAboutEventListener(); })(); /* Dark Mode Toggler function setModeEventListener() { let list = document.body.classList; document.getElementById('toggler').addEventListener('change', event => { event.target.checked ? list.add('dark-mode') : list.re...
if(_area_jsonp_530681){_area_jsonp_530681({"530681001":"云富街道","530681101":"向家坝镇","530681102":"太平镇","530681103":"两碗镇"})}
(function(factory){if(typeof module==="object"&&typeof module.exports!=="undefined"){module.exports=factory}else{factory(FusionCharts)}})(function(FusionCharts){(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var ...
import os import math import json import time import shutil import heroku3 import requests from pyrogram import filters from pyrogram import Client as trojanz from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton if bool(os.environ.get("WEBHOOK", False)): from sample_config import Config else: ...
/* * Paper.js - The Swiss Army Knife of Vector Graphics Scripting. * http://paperjs.org/ * * Copyright (c) 2011 - 2019, Juerg Lehni & Jonathan Puckey * http://scratchdisk.com/ & https://puckey.studio/ * * Distributed under the MIT license. See LICENSE file for details. * * All rights reserved. */ /** * @nam...
import { shallowMount } from '@vue/test-utils'; import MediaElement from '../MediaElement.vue'; describe('MediaElement', () => { it('should be defined', () => { const propsData = {}; const wrapper = shallowMount(MediaElement, { propsData }); expect(wrapper.exists()).toBe(true); }); });
var fs = require('fs-extra'); var path = require('path'); var chalk = require('chalk'); var EmberRouterGenerator = require('ember-router-generator'); /* eslint-env node */ /*jshint node:true*/ module.exports = { description: '', normalizeEntityName: function() {}, // to install important packages afterInstal...
export default {"name":"--pf-c-app-launcher__menu-item--m-link--hover--BackgroundColor","value":"transparent","var":"var(--pf-c-app-launcher__menu-item--m-link--hover--BackgroundColor)"}
'use strict'; import Chart from 'chart.js'; var helpers = Chart.helpers; // Element models are always reset when hovering in Chart.js 2.7.2 or earlier var hoverReset = Chart.DatasetController.prototype.removeHoverStyle.length === 2; var EXPANDO_KEY = '$colorschemes'; // pluginBase snippet fixes the chartjs 3 incom...
import { Link, routes } from '@redwoodjs/router' import BlogPost from 'src/components/BlogPost' export const QUERY = gql` query BlogPostsQuery { posts { id title author body createdAt } } ` export const Loading = () => <div>Loading...</div> export const Empty = () => <div>Em...
const { dialog, BrowserWindow } = require('electron') const { autoUpdater } = require('electron-updater') class Updater { /** * 构造函数 * @param {String} checkUrl 更新地址 */ constructor (checkUrl) { this.url = checkUrl this.updateWindow = null this.menu = null } /** * 初始化 */ init () { ...
'use strict'; function init() { renderGallery(); initCanvas() } function renderGallery() { var images = getImgs(); var strHtmls = images.map(image => { return ` <div class="img-container" onclick="onImgSelect(${image.id})"> <img class="meme-img" src="${image.url}"> <di...
/** * Created by jefer on 15/05/2017. */ //Exercicio_1 function subtracao () { var numer1 = document.getElementById("numer1").value; var numer2 = document.getElementById("numer2").value; var sub = numer1 - numer2; document.getElementById("calcu").innerHTML = "A Sub. dos dois números é: " + sub; } /...
with open('cowbell.txt') as fh: for line in fh: print(line) import webbrowser url = "https://youtu.be/cVsQLlk-T0s" webbrowser.get().open(url)
webpackHotUpdate(0,{119:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&...
import MockAdapter from 'axios-mock-adapter'; import testAction from 'helpers/vuex_action_helper'; import { backoffMockImplementation } from 'jest/helpers/backoff_helper'; import Tracking from '~/tracking'; import axios from '~/lib/utils/axios_utils'; import statusCodes from '~/lib/utils/http_status'; import * as commo...
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown copyright. The Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are me...
''' Created on Dec 27, 2019 @author: ballance ''' import cocotb import cocotb.triggers from cocotb import scheduler from cocotb.scheduler import _debug import logging import sys from cocotb.simulator_base import SimulatorBase from cocotb.info import Info try: import unittest from unittest.case import TestCase...
# Copyright 2017-2020 The GPflow Contributors. 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 appli...
# Copyright (c) 2017 Sony Corporation. 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 applicabl...
// This is modified from Mozilla Reflect.parse test suite (the file is located // at js/src/tests/js1_8_5/extensions/reflect-parse.js in the source tree). // // Some notable changes: // * Removed unsupported features (destructuring, let, comprehensions...). // * Removed tests for E4X (ECMAScript for XML). // * Re...
mycallback( {"ELECTION CODE": "G2008", "EXPENDITURE PURPOSE DESCRIP": "Online Contribution Fee", "BENEFICIARY CANDIDATE OFFICE": "", "PAYEE ZIP": "200031164", "MEMO CODE": "", "PAYEE STATE": "DC", "PAYEE LAST NAME": "", "PAYEE CITY": "Washington", "PAYEE SUFFIX": "", "CONDUIT STREET 2": "", "CONDUIT STREET 1": "", "PAY...
from pony.orm import * from datetime import datetime from model.group import Group from model.contact import Contact from pymysql.converters import decoders class ORMFixture: db = Database() class ORMGroup(db.Entity): _table_ = 'group_list' id = PrimaryKey(int, column='group_id') nam...
import unittest from pymodbus3.register_write_message import * from pymodbus3.pdu import ModbusExceptions from .modbus_mocks import MockContext #---------------------------------------------------------------------------# # Fixture #---------------------------------------------------------------------------# class W...
const Compiler = require('./src/carto_compiler'); const express = require('express'); const fs = require('fs'); const logger = require('morgan'); const MapnikStyle = require('./src/mapnik_style'); const path = require('path'); const WMS = require('./src/wms111'); let app = express()...
# -*- coding: utf-8 -*- from typing import Any, Dict, List, Mapping, Optional, Sequence, Set from django.conf import settings from django.http import HttpRequest, HttpResponse from django.test import override_settings from django.utils.timezone import now as timezone_now from zerver.lib import cache from zerver.lib...
const path = require(`path`) const { createFilePath } = require(`gatsby-source-filesystem`) exports.onCreateNode = ({ node, actions, getNode }) => { const { createNodeField } = actions if (node.internal.type === `MarkdownRemark`) { const value = createFilePath({ node, getNode }) createNodeField(...
const { globalPrefix: prefix4g, compPrefix: prefix4c, } = require('../../../utils/globalConfig'); module.exports = { // padding: { value: `0.75rem 1.25rem` }, // 'border-width': { value: `{${prefix4g}.size.base.border-width.value}` }, // 'border-radius': { value: `{${prefix4g}.size.base.border-radius.v...
module.exports = function(_this, db, store, payload, response, createBucketFiles){ var collection = db.collection('orders'); var socketID = payload.socketID; collection.find( {orderSequence: payload.id}, {} ).toArray(function(err, docs){ if(err){ console.log(err); } else{ response({ order: do...
module.exports = { get: () => 'returned-value', };
var game = new Phaser.Game(420,660,Phaser.AUTO,'game'); var TankGame = function(game){ this.tank = null; this.map = null; this.layer = null; this.cursors = null; this.keycode = null; this.bulletTime = 0; this.bullet = null; this.bullets = null; this.direction = null; this.bullet...
from datetime import datetime import pytest from stock_indicators import indicators from stock_indicators.indicators.common.enums import CandlePart class TestSMA: def test_standard(self, quotes): results = indicators.get_sma(quotes, 20) # proper quantities # should always be the same n...
(()=>{var e={988:e=>{"use strict";e.exports=require("next/dist/compiled/acorn")},749:e=>{"use strict";e.exports=require("next/dist/compiled/source-map")},405:function(e,t,n){(function(e,r){true?r(t,n(749)):0})(this,(function(e,t){"use strict";function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in ...
'use strict'; const e = React.createElement; class counterButton extends React.Component { constructor(props) { super(props); this.state = { counter: 0 }; } render() { /* if (this.state.counter) { return React.createElement("button", {className: "counter"},React.createElement("span"),this.s...
class dependency: """Annotation for dependencies.""" def __init__(self, name): self.name = name
#!/root/saleor/myenv/bin/python2 # $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing LaTeX. """ try: import locale locale.setlocale(locale...
import { SET_IS_LOOPING, SET_IS_LOOP_BREAK } from '../../../constants/actionTypes'; //////////////////////////////////// const defaultState = { isLooping: false, isLoopBreak: false }; export default (state = defaultState, action = {}) => { const {type, payload} = action; switch (type) { case SET_IS_L...
#!/usr/bin/python2 #coding: utf-8 from __future__ import division from selector import select from trader import trader import time class smallCapStock: def __init__(self, target_num=10): ''' 当日全部股票 ''' self.trader = trader() holding_stocks = self.trader.holding.keys() self.sell_...
import * as Yup from "yup"; const addEmployeeSchema = Yup.object().shape({ fullName: Yup.string() .required("The name is required") .min(2, "This name is too short!") .max(50, "This name is too long!") .matches(/^[A-Za-zÑñÁáÉéÍíÓóÚúÜü\s]+$/, "Only letters accepted"), email: Yup.string() .email(...
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1Containe...
(function() { 'use strict'; angular .module('downloaderApp') .controller('AuditsController', AuditsController); AuditsController.$inject = ['$filter', 'AuditsService', 'ParseLinks']; function AuditsController ($filter, AuditsService, ParseLinks) { var vm = this; vm.au...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
export const OPEN_MODAL = 'OPEN_MODAL';
import React from 'react'; import Form from 'react-bootstrap/Form'; import Button from 'react-bootstrap/Button'; import axios from 'axios'; class AddNewBook extends React.Component{ sendBookToDB = async (event) => { event.preventDefault(); const queryParams = { params:{ bookName: event.target.boo...
define({main:{"he-IL":{identity:{version:{_number:"$Revision: 11914 $",_cldrVersion:"29"},language:"he",territory:"IL"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"ינו׳",2:"פבר׳",3:"מרץ",4:"אפר׳",5:"מאי",6:"יוני",7:"יולי",8:"אוג׳",9:"ספט׳",10:"אוק׳",11:"נוב׳",12:"דצמ׳"},narrow:{1:"1",2:"2",3:"3",4:"4",...
let newsList = []; const apiKey = "2dc86bcdc7184b17b45b74b30858f75a" let page = 1; let pageSize = 6; let sourceList = []; let sourcePage = 0; let categoryList = ['business', 'entertainment', 'general', 'health', 'science', 'sports', 'technology'] let q = "corona"; let filteredNews = [] const loadNews = async(page, cat...
// install-stats v1.0.6 // Copyright (C) 2018 Andrew Nesbitt // https://github.com/andrew/install-stats // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the Licen...
module.exports = { root: true, parserOptions: { ecmaVersion: 8 }, extends: 'eslint:recommended', env: { browser: false, node: true, es6: true, }, globals: { }, rules: { /*** Possible Errors ***/ 'no-console': 0, 'no-template-curly-in-string': 2, 'no-unsafe-negation': 2...
// @flow import React from 'react'; import Select from '@atlaskit/select'; const styles = { container: base => ({ ...base, margin: '8px', width: '160px', display: 'inline-block', }), }; const options = [ { label: '0', value: 0 }, { label: '1', value: 1 }, { label: '2', value: 2 }, { label:...
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/LICENSE /** * Smarty 2 and 3 mode. */ (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typ...
(() => { const passport = require('passport'); const knex = require('../db/connection'); module.exports = () => { passport.serializeUser((user, done) => { done(null, user.id); }); passport.deserializeUser((id, done) => { return knex('users').select('*').where({ id }) .then((user) => { done(n...
_base_ = [ '../../../_base_/schedules/cosine.py', '../../../_base_/default_runtime.py' ] # model settings voxel_size = [0.05, 0.05, 0.1] point_cloud_range = [0, -40, -3, 70.4, 40, 1] model = dict( type='ParallelMVXMono3D', loss_pts_w=1., loss_img_w=0.125, use_li_fusion_layer=True, aux_pts_loss...
const mongoose = require('mongoose'); const streamerSchema = new mongoose.Schema( { name: { type: String, required: true, trim: true }, img: { type: String, trim: true }, canal: { type: String, trim: true }, viwers: { type: Number, trim: true }, }, { timestamps: true...