text
stringlengths
184
4.48M
/* * TaskService * * Project: KStA ZHQUEST * * Copyright 2014 by ELCA Informatik AG * Steinstrasse 21, CH-8036 Zurich * All rights reserved. * * This software is the confidential and proprietary information * of ELCA Informatik AG ("Confidential Information"). You * shall not disclose such "Confidential Info...
<?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; class DocumentDueNotification extends Notification { use Queueable; protected $document; /** * Cr...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ #ifndef GBN_NETDEVICE_HELPER_H #define GBN_NETDEVICE_HELPER_H #include <string> #include "ns3/attribute.h" #include "ns3/object-factory.h" #include "ns3/net-device-container.h" #include "ns3/node-container.h" #include "ns3/gbn-channel.h" namespace ns...
% embedding encoding polar coordinates for fixed patch pixel positions % % Usage: [epos, phi] = embfixedpos(cphi, crho, s) % % cphi : embedding coefficients for phi % crho : embedding coefficients for rho % s : patch size % epos : embeddings for all pixel positions % phi : angle phi for all pixels % % Auth...
package com.spring.board.model.entity; import jakarta.persistence.*; import lombok.Getter; import lombok.Setter; import java.time.ZonedDateTime; import java.util.Objects; @Entity @Table( name = "follow", uniqueConstraints = {@UniqueConstraint(columnNames = {"follower", "following"})}) public class Fo...
--- title: 使用 ReportViewer 控件集成 Reporting Services | Microsoft Docs ms.custom: '' ms.date: 03/06/2017 ms.prod: sql-server-2014 ms.reviewer: '' ms.technology: reporting-services ms.topic: reference helpviewer_keywords: - ReportViewer controls - integrating reports [Reporting Services] ms.assetid: 3ba47fb4-73a9-4059-89fd...
package edu.ntnu.idatt2001.view; import edu.ntnu.idatt2001.model.screentype.ApplicationScreenType; import edu.ntnu.idatt2001.model.state.ApplicationState; import edu.ntnu.idatt2001.util.Widgets; import javafx.geometry.Pos; import javafx.scene.layout.BorderPane; import javafx.scene.layout.Region; import javafx.util.Bui...
import React from 'react'; import Document, { Html, Head, Main, NextScript, DocumentContext } from 'next/document'; class MyDocument extends Document { static async getInitialProps(ctx: DocumentContext) { const initialProps = await Document.getInitialProps(ctx); return { ...initialProps }; } render() { ...
#include "compiler/ast.hpp" #include "compiler/compilation_config.hpp" #include "compiler/source_location.hpp" #include "compiler/variable.hpp" #include "context.hpp" #include "io/write.hpp" #include "memory/free_store.hpp" #include "module.hpp" #include "util/define_struct.hpp" #include "util/sum_type.hpp" #include ...
#include <stdio.h> #include <stdlib.h> struct node { int data; struct node *left, *right; }; struct node* newNode(int data) { struct node* node = (struct node*)malloc(sizeof(struct node)); node->data = data; node->left = NULL; node->right = NULL; return (node); } int height(struct node *...
import Data.List -- Basic Declarations type Grid = Matrix Value type Matrix a = [Row a] type Row a = [a] type Value = Char -- Basic Definitions boxsize :: Int boxsize = 3 -- returns True or False if a Value is a '.' empty :: Value -> Bool empty = (== '.') -- list of all possible values 1 to 9 - Note that Value typ...
<?php namespace App\Http\Controllers; use App\Models\Company; use App\Models\History; use App\Models\StockHistory; use Carbon\Carbon; use Illuminate\Http\Request; use Symfony\Component\Console\Output\ConsoleOutput; class CompanyController extends Controller { public function getCompanies() { $companies = ...
class Monkey { inspectedItems = 0; constructor(items, operation, divisibleBy, ifTrue, ifFalse, withRelief = true) { this.items = items this.operation = operation this.divisibleBy = divisibleBy this.ifTrue = ifTrue this.ifFalse = ifFalse this.withRelief = withRelief } /** * Inspect i...
import pandas as pd from sklearn.preprocessing import StandardScaler from sklearn.model_selection import train_test_split from sklearn.naive_bayes import GaussianNB from sklearn.metrics import confusion_matrix, accuracy_score, precision_score, recall_score, f1_score from sklearn.tree import DecisionTreeClassifier def...
const NavigateBack = { name: 'PageStackNavigateBack', displayNodeName: 'Pop Component Stack', category: 'Navigation', docs: 'https://docs.noodl.net/nodes/component-stack/pop-component', inputs: { navigate: { displayName: 'Navigate', group: 'Actions', valueChangedToTrue: function () { ...
import { useEffect } from 'react'; import { MoonLoader } from 'react-spinners'; import { useAuth } from 'contexts/AuthContext'; import { useTweets } from 'contexts/TweetsContext'; import TweetHeader from 'users/components/TweetHeader/TweetHeader'; import TweetList from 'users/components/TweetList/TweetList'; import Tw...
@if $toc { /* - Example__________________ITCSS examples (image, url, detail, favorite button) styles */ } @else { /* Example (component) /** * @note We assume that the default font-size is 16px */ .c-example { position: relative; } .c-example__img { display: block; text-align: center; ...
/* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ import { NoopScrollStrategy } from '@angular/cdk/overlay'; import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; import { MatDialog...
<?php namespace Drupal\domain_role\Form; use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\user\RoleInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; /** * ...
<?php namespace Core\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\File; class CreateResourceFactory extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'create:resource-factory {name} {context...
package fun.mousewich.effect; import net.minecraft.entity.attribute.EntityAttributeModifier; import net.minecraft.entity.attribute.EntityAttributes; import net.minecraft.entity.effect.StatusEffect; import net.minecraft.entity.effect.StatusEffectCategory; import java.util.List; import static fun.mousewich.ModBase.EN_...
-- What is the type of (,)? When you use it in ghci, what does it do? What about -- (,,)? -- (,) is a 2-tuple data constructor ghci> :t (,) (,) :: a -> b -> (a, b) ghci> (,) 1 2 (1,2) ghci> t = (,) 1 ghci> :t t t :: Num a => b -> (a, b) ghci> t 2 (1,2) -- (,,) is a 3-tuple data constructor ghci> :t (,,) (,,) :: a...
#include <vector> #include <string> class MapSum { public: MapSum() {} struct TrieNode { int value = 0; TrieNode* child[26] = {nullptr}; }; void insert(std::string key, int val) { TrieNode* curr = root_; for (char& c : key) { if (curr->child[c - '...
import { getAuthSession } from "@/lib/auth"; import { db } from "@/lib/db"; import { PinValidator } from "@/lib/validators/pin"; import { z } from "zod"; export async function POST(req: Request) { try { const session = await getAuthSession(); if (!session?.user) { return new Response("Unauthorized", {...
##DESCRIPTION ## insert description here ##ENDDESCRIPTION ## DBsubject(Electricity) ## DBchapter(Electric Current, Resistance, and Ohm's Law) ## DBsection(Current) ## Date(2 January 2018) ## Institution(Brock University) ## Author(Kyle Winch) ## Edited (Sara Hesse, May 29 2018) ## TitleText('College Physics') ## Autho...
# frozen_string_literal: true module Api module V1 class EntriesController < ApplicationController before_action :set_default_response_format def show @entry = Entry.find(params[:id]) end def popular @entries = Entry.includes(:site, :tags).where(total_count: 1..).a_day_a...
package vn.ztech.software.ecomSeller.ui.category import android.annotation.SuppressLint import android.content.Context import android.content.Intent import android.os.Bundle import android.util.Log import android.view.* import androidx.fragment.app.Fragment import android.view.inputmethod.EditorInfo import android.vie...
'use strict'; class Shape { #name; #color; constructor(name, color){ this.name = name; this.color = color; this.getInfo; } set name(name) { if(name === 'circle' || name ==='square') { this.#name = name; } else { throw 'Shape, select...
import React, { useEffect, useState } from "react"; import { useNavigate } from "react-router-dom"; import * as jwt from 'jwt-decode'; import Application from "../auxiliarComponents/home/application.jsx"; import Map from "../auxiliarComponents/home/map.jsx"; import Carroussel from "../auxiliarComponents/home/carroussel...
import { HttpErrorResponse } from '@angular/common/http'; import { Component, ViewChild } from '@angular/core'; import { FormBuilder, FormGroup, NgForm, Validators } from '@angular/forms'; import { Movement } from 'src/app/domain/movement'; import { Profile } from 'src/app/domain/profile'; import { MovementService } fr...
// Require packages. const multer = require('multer'); const sharp = require('sharp'); // Import Tour from tourModel.js. const Tour = require('./../models/tourModel'); // Require function from catchAsync.js. const catchAsync = require('./../utils/catchAsync'); // Require AppError class from AppError.js. const...
import React, { useRef } from 'react'; import { project } from '../../utils/types'; import axios from '../../axios'; import Styles from './ProjectContainer.module.scss'; import { projects } from '../../atoms/allProjectAtom'; import produce from 'immer'; import { useSetNotification } from '../../utils/customHooks/useAdd...
# diff-notebooks Github Actions to compare notebook files. diff-notebooks store html files as artifacts. ![](https://raw.githubusercontent.com/kuromt/diff-notebooks/images/artifacts_view.png) You can confirm diff of notebooks in your browser. ![](https://raw.githubusercontent.com/kuromt/diff-notebooks/images/html...
<?php namespace App\Http\Controllers; use App\Models\M_Warranty; use Carbon\Carbon; use RealRashid\SweetAlert\Facades\Alert; use Illuminate\Http\Request; class M_WarrantyController extends Controller { public function __construct() { $this->middleware(function ($request, $next) { if (sess...
/* * Copyright (c) 2009 Chani Armitage <chani@kde.org> * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2, or * (at your option) any later version. * * ...
package com.example.demo.controller; import com.example.demo.dto.CreatePersonRequest; import com.example.demo.model.Person; import com.example.demo.service.PersonService; import jakarta.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; i...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Main script for model of single-molecule fluorescence microscopy % % corrosion experiment. This script contains inputs for physical and % % model parameters and calls corrosion model and diffusion model scripts. % % Saves data a...
package com.conceiversolutions.hrsystem.performance.goal; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMa...
<?php declare(strict_types=1); namespace App\Packages\Task\UseCase\Complete; use App\Packages\Task\Domain\TaskRepositoryInterface; use App\Packages\Task\UseCase\Complete\TaskCompleteCommand; use App\Http\Controllers\Utils\Notification\MessageType; use App\Packages\Util\Exceptions\DomainException; use Exception; f...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* lib/krb5/asn.1/asn1_encode.h */ /* * Copyright 1994, 2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may * require a specific license from the United States G...
// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 package devicefarm import ( "context" "fmt" "log" "strings" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/devicefarm" awstypes "github.com/aws/aws-sdk-go-v2/service/devicefarm/types" "github.com/aws/aws-sdk-go/aws...
import mongoose from "mongoose"; import { AssetSchema } from "../app/interfaces.js"; const asset = new mongoose.Schema({ // NXID of the associated part asset_tag: { type: String, required: true }, // ID of the previous record, nul if oldest iteration of record prev: { type: String, default: null }, ...
import { useState,useEffect } from 'react' import NavBar from './components/Navbar' import { Routes, Route } from 'react-router-dom' import {Books, Login, Profile, Register, SingleBook} from './pages' import './App.css' function App() { const [user,setUser] = useState(null); console.log(user); return ( <div>...
package hbc_loadTests.helpers /** * Created by aindana on 1/6/2017. */ import java.util.concurrent.TimeUnit import java.util.regex.Pattern import com.mongodb.casbah.commons.MongoDBObject import org.mongodb.scala._ import com.mongodb.casbah.Imports._ import scala.concurrent.Await import scala.concurrent.duration....
/* * Tai-e: A Static Analysis Framework for Java * * Copyright (C) 2022 Tian Tan <tiantan@nju.edu.cn> * Copyright (C) 2022 Yue Li <yueli@nju.edu.cn> * * This file is part of Tai-e. * * Tai-e is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License *...
package com.day26.利用反射去获取成员变量; import java.lang.reflect.Field; public class test { public static void main(String[] args) throws ClassNotFoundException, NoSuchFieldException, IllegalAccessException { //getFields() ---返回所有的公共成员变量对象的数组 //getDeclareFields()---返回所有成员变量对象的数组 //getField()------...
package com.jewel.onlineelectoralsystem.service; import com.jewel.onlineelectoralsystem.dto.ReqRes; import com.jewel.onlineelectoralsystem.model.OurUsers; import com.jewel.onlineelectoralsystem.model.RefreshToken; import com.jewel.onlineelectoralsystem.repository.OurUserRepo; import com.jewel.onlineelectoralsystem.re...
import bcrypt from 'bcrypt'; import db from '../models/index' const salt = bcrypt.genSaltSync(10); let createNewUser = async (data) => { return new Promise (async(resolve,reject) =>{ try { let hasPasswordFromBcrypt = await hashUserPassword(data.password) await db.User.create({ ...
package asedinfo.com.controlador.catalogo; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import o...
/** Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements. Note that you must do this in-place without making a copy of the array. Example 1: Input: nums = [0,1,0,3,12] Output: [1,3,12,0,0] Example 2: Input: nums = [0] Output: [0] C...
import { Alert, Button, Label, TextInput } from "flowbite-react"; import { useState } from "react"; import { Link, useNavigate} from "react-router-dom"; import { Spinner } from "flowbite-react"; import OAuth from "../components/OAuth"; export default function Signup() { const [formData, setFormData] = useState({}) ...
import { FcGoogle } from 'react-icons/fc'; import { getAuth, GoogleAuthProvider, signInWithPopup } from 'firebase/auth'; import { toast } from 'react-toastify'; import { doc, serverTimestamp, setDoc, getDoc } from 'firebase/firestore'; import { db } from '../firebase'; import { useNavigate } from 'react-router'; const...
trainData = read.csv("cleaned-edited.csv",stringsAsFactors=FALSE, sep=",") trainData = trainData[, c('Artist.Followers', 'Danceability', 'Energy', 'Loudness', 'Speechiness', 'Acousticness', 'Liveness', 'Tempo', 'Duration_ms', 'Valence', 'explicit', 'mode', ...
import {string, object, number, array} from "yup" import { yupResolver } from "@hookform/resolvers/yup" const schema = object().shape({ startDate: string().required('Start date is required'), endDate: string().required('End date is required'), routeLength: number(), loadsNumber: number(), shipId: n...
const express = require('express'); const app = express(); const bodyParser = require('body-parser'); const mysql = require('mysql2'); const bcrypt = require('bcrypt'); app.use(bodyParser.urlencoded({ extended: true })); app.use(express.json()) const path = require('path'); // Configuração do mecanismo de visualizaç...
# Type parameters ## Type parameters for intrinsic types We have seen type parameters (kind type parameters) for intrinsic types: ``` use iso_fortran_env ... integer (int32) :: i32 ``` This provides a way to control, parametrically, the actual data type associated with the variable. Such parameters must be know...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
<%-- Document : index Created on : Feb 8, 2023, 4:37:29 PM Author : ADMIN --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix = "fmt" uri = "http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="fn" uri="http...
import { Button, ExperimentalFormTextField, Form, } from "@modules/core/components"; import { FormControl } from "@mui/material"; import React from "react"; import { useForm } from "react-hook-form"; import { useTranslation } from "react-i18next"; type ResetPasswordData = { password: string; repeatPassword: ...
<template> <div class="top-bar-page is-flex is-justify-content-space-between card"> <div class="page-title"> <b-button v-if="is_back" type="is-small" class="button back-btn mr-2" @click="goBack"> <b-icon icon="arrow-left"></b-icon> </b-button> <h1 bold> {{ pageTitle }} </h...
import React, { Fragment, useEffect, useState } from "react"; import "./newProduct.css"; import { Table } from "antd"; import { useSelector, useDispatch } from "react-redux"; import { toast } from 'react-toastify'; import { deleteUser, getAdminProducts, getAdminUsers} from "../../../../redux/features/admin/adminProduct...
import axios from 'axios'; import React, { useState } from 'react'; import { AUTH_API } from '../../config/api'; import { useAuthContext } from '../../contexts/AuthContext'; import { ROLES } from '../../constants'; const LoginPage = () => { const { setUser, setToken, setRole } = useAuthContext(); const [formData, ...
import numpy as np import unittest class Game: def __init__(self, grid_size=10): self.grid = np.zeros((grid_size, grid_size), dtype=int) self.players = ['X', 'O'] self.current_player = 0 self.game_state = 'in progress' def play(self): print('Welcome to Pong!') p...
require 'spec_helper' describe 'postgresql::server::plpython', :type => :class do let :facts do { :osfamily => 'RedHat', :operatingsystem => 'CentOS', :operatingsystemrelease => '6.0', :concat_basedir => tmpfilename('plpython'), :kernel => 'Linux', :id => 'root', :path =...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>socket</title> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <...
# # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Red Hat Security Advisory RHSA-2012:0387 and # Oracle Linux Security Advisory ELSA-2012-0387 respectively. # if (NASL_LEVEL < 3000) exit(0); include("compat.inc"); if (description) { script_id(6...
package com.example.demo.jwt; import com.example.demo.error.ErrorJwtCode; import com.example.demo.service.jwtservice.UserDetailsServiceImpl; import io.jsonwebtoken.ExpiredJwtException; import io.jsonwebtoken.MalformedJwtException; import io.jsonwebtoken.SignatureException; import io.jsonwebtoken.UnsupportedJwtExceptio...
import { createSlice } from '@reduxjs/toolkit'; interface UserComment { id: number; name: string; surname: string; job: string; comment: string; avatar: string; } interface UserQuestion { id: number; question: string; answer: string; } interface ServiceType { id: number; title: string; descri...
// // TradesViewController.swift // genesisvision-ios // // Created by George on 11/04/2018. // Copyright © 2018 Genesis Vision. All rights reserved. // import UIKit class TradesViewController: BaseViewControllerWithTableView { // MARK: - View Model var viewModel: TradesViewModelProtocol! // MARK...
import { Body, Controller, Get, NotFoundException, Param, Post, Query, SerializeOptions, } from '@nestjs/common' import { ApiCreatedResponse, ApiOkResponse, ApiParam, ApiTags, } from '@nestjs/swagger' import { LoanServicingEvent, Transaction, TransactionResolution, SummarisedTransaction,...
"use client" import { useForm } from "react-hook-form" import { useRouter } from "next/navigation" import { z } from "zod" import { zodResolver } from "@hookform/resolvers/zod" import Image from "next/image" import { Button, Input } from "@nextui-org/react"; import { useState } from "react" import { Spinner } from "@/a...
use super::init::{get_home_dir, init_pipeline}; use serde::Deserialize; use std::fs; use std::io::Read; use std::path::{Path, PathBuf}; // Add this line to bring the Read trait into scope use std::process::Command; #[derive(Debug, Deserialize)] struct Config { editor: String, } pub fn config_decode(log: bool) -> ...
import { ObjectId } from 'mongoose' import { InferGetStaticPropsType } from 'next' import { useRouter } from 'next/router' import type { Portfolio } from '../types' import Layout from '@components/Layout' import { getPortfolios } from '@helpers/getPortfolios' import { getImageBinaryData } from '@helpers/getImageBinaryD...
""" Flask Factory """ import os from flask import Flask def create_app(test_config=None): # Create and config the app app = Flask(__name__, instance_relative_config=True) app.config.from_mapping( SESSION_TYPE='filesystem', SECURITY_KEY='dev', DATABASE=os.path.join(app.instance_pat...
package main import ( "bytes" "errors" "fmt" "github.com/gen2brain/beeep" "github.com/getlantern/systray" "github.com/skratchdot/open-golang/open" "log" "os/exec" "regexp" "sopre-tray/icon" "strings" "time" ) var serviceArr = [9]string{ "VCM_AP_60_QKNOWLEDGEBASESERVER", "VCM_AP_60_QDBODBC_IS", "VCM_AP_...
#ifndef PJC_CLION_C09_H #define PJC_CLION_C09_H #include <iostream> #include <ostream> #include <string> #include <vector> //ZADANIE 1 template <typename E> class MyStack { public: class Node { public: E data; Node* next; Node(const E& d): data(d), next(nullptr) {} }; private: ...
import { Fragment, useState} from 'react' import { Dialog, Transition } from '@headlessui/react' import { AcademicCapIcon, Bars3Icon, BellIcon, ChartPieIcon, Cog6ToothIcon, FolderIcon, HomeIcon, XMarkIcon, } from '@heroicons/react/24/outline' import { MagnifyingGlassIcon } from '@heroicons/react/20/soli...
/* Copyright 2022 The Flux authors 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, softwar...
/**************************************************************************** Copyright (c) 2013 cocos2d-x.org Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. https://axmolengine.github.io/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documen...
function [J, grad] = costFunction(theta, X, y) %COSTFUNCTION Compute cost and gradient for logistic regression % J = COSTFUNCTION(theta, X, y) computes the cost of using theta as the % parameter for logistic regression and the gradient of the cost % w.r.t. to the parameters. % Initialize some useful values m = l...
var EditableTable = function () { return { //main function to initiate the module init: function () { function restoreRow(oTable, nRow) { var aData = oTable.fnGetData(nRow); var jqTds = $('>td', nRow); for (var i = 0, iLen = jqTds.length...
import { Injectable } from '@angular/core'; import { BodyPart } from '../enums/BodyPart.enum'; import { Measurement } from '../models/measurement.model'; @Injectable({ providedIn: 'root' }) export class ChartService { constructor() { } bodyParts = Object.assign({},BodyPart); getTranslatedBodypart(bodyPart:...
# ValloxMV Binding This binding is designed to connect to the web interface of Vallox MV series of ventilation unit. It has been tested so far only with Vallox 350 MV and 510 MV. ## Supported Things There is one thing (valloxmv) supporting the connection via the web interface of the Vallox MV. There is NO support of...
import { useCallback, useEffect, useMemo, useState } from 'react'; import Head from 'next/head'; import { subDays, subHours } from 'date-fns'; import ArrowDownOnSquareIcon from '@heroicons/react/24/solid/ArrowDownOnSquareIcon'; import ArrowUpOnSquareIcon from '@heroicons/react/24/solid/ArrowUpOnSquareIcon'; import Plus...
<template> <div class="ps-product ps-product--wide" v-if="list"> <div class="ps-product__thumbnail"> <a :href="`${baseUrl}/${product.slug}`" :title="product.name"> <img loading="lazy" :alt="product.name" :src="product.image || product.product_image" :data-src="product.image || pr...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Trisecting an Angle</title> <style> .cen{text-align: center;} .alignright{text-align: right;} </style> </head> <body> <h1>Trisecting an Angle</h1> <h6 class="cen">Ishita Srivastava<br />B.Sc. (H) Mathematics, 2...
import { useContext } from "react"; import { Wrapper, Unlocked, Title } from "./HTMLFundamentals"; import ThemeContext from "../../contexts/ColorTheme"; import { ContentWrapper, InfoWrapper } from "./ReactFetch"; import { List } from "./TheDomPartTwo"; import styled from "styled-components"; const NodePromises = ({ nod...
package org.the_chance.honeymart.ui.base import android.util.Log import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Job import kotlinx.coroutines.flow.MutableSharedFlow import kotlinx...
import React, { useRef, useEffect } from 'react' import { useNavigate } from 'react-router-dom' import { Col, Form, FormGroup } from 'reactstrap' import '../shared/search-bar.css' import Alert from '../shared/Alert' import { BASE_URL } from '../utils/config' const SearchBar = ({pos}) => { const autoCompleteRef = u...
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core'; import { Subject } from 'rxjs'; import { AlertService } from 'src/app/services/alert.service'; import { UserService } from 'src/app/services/user.service'; import { DataTableDirective } from 'angular-datatables'; @Component({ selector: 'app...
""" Rozwiązanie zadania umieść w jednym pliku: Napisz funkcję o nagłówku def odwroc(napis): która zwraca napis zapisany od końca. Zdefiniuj funkcję o nagłówku def wycinek(napis, pocz, kon): która zwraca nowy napis utworzony ze znaków napisu danego, poczynając od znaku o indeksie pocz, a kończąc na znaku o indeksie kon...
import re, os from importlib import resources from traceback import format_exc as traceback_format_exc from .ecuapass_utils import Utils from ecuapassdocs.info.resourceloader import ResourceLoader #-------------------------------------------------------------------- # Class for extracting different values from docume...
zookeeper原生API注册Watcher需要反复注册,即Watcher触发之后就需要重新进行注册。 另外,客户端断开之后重新连接到服务器也是需要一段时间。这就导致了zookeeper客户端不能够接收全部的zookeeper事件。 zookeeper保证的是数据的最终一致性。因此,对于此问题需要特别注意,在不要对zookeeper事件进行强依赖。 zookeeper机制的特点 zookeeper的getData(),getChildren()和exists()方法都可以注册watcher监听。而监听有以下几个特性: 一次性触发(one-time trigger) 当数据改变的时候,那么一个Watch事件会产生并且被...
% SCALEMASSPROPS Scale mass and inertia of the bodies of an OpenSim model % assuming that the geometry stays constant and only the mass changes % proportionally to a coefficient assigned in input. % % osimModel = scaleMassProps(osimModel, coeff) % % Inputs: % osimModel - the OpenSim model for which the mass proper...
/* ************************************************************************ * Copyright 2013 Advanced Micro Devices, 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...
import 'package:abc_monitor/theme.dart'; import 'package:flutter/material.dart'; import '../../../constants.dart'; import '../../../widgets/bottom_bar.dart'; import '../../../widgets/card_conquistas_widget.dart'; import 'documentos_controller.dart'; import 'documentos_page.dart'; class DocumentosInformativosPage exte...
""" URL configuration for ecommerce_business_store project. The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views...
import { Card, CardSuit, CardSymbol, CasinoRules, CasinoRulesKeys, Doubling, Hand, HandCode, HandOutcome, SimpleCardSymbol, TrainingHands, TrainingPairStatus, TrainingProgress } from '../types'; import { getRandomItem } from '../utils'; import { createCard, ge...
#include <bits/stdc++.h> using namespace std; void printVector(vector<int> &nums) { for (int i = 0; i < nums.size(); i++) { cout << nums[i] << " "; } cout << endl; } class Solution { public: vector<int> topKFrequent(vector<int>& nums, int k) { priority_queue<pair<int, int>, vector<p...
Launch instances Instances are virtual machines that run inside the cloud. Before you can launch an instance, gather the following parameters: - The **instance source** can be an image, snapshot, or block storage volume that contains an image or snapshot. - A **name** for your instance. - The **flavor** for yo...