text
stringlengths
184
4.48M
import React from 'react'; import { connect } from 'react-redux' import * as actionCreators from './deviceInfoActions'; import PropTypes from 'prop-types'; import Spinner from '../common/Spinner/Spinner'; import DeviceInfoNavigation from './DeviceInfoNavigation'; import DeviceInfoReservationSidebar from './DeviceInfoR...
import React, { useState } from 'react'; import { useNavigate } from "react-router-dom"; import axios from "axios"; import CircularProgress from '@mui/material/CircularProgress'; import Box from '@mui/material/Box'; // This page is for Timeseries data const TimeSeries = () => { const [searchText, setSearchText] =...
fn main() { for func in [twelve::part1, twelve::part2] { let start = std::time::Instant::now(); let res = func(INPUT); let dur = start.elapsed().as_micros(); println!("{res} ({dur} ms)"); } } const INPUT: &str = include_str!("input.txt"); #[allow(unused)] mod twelve { use ...
package A04InterfacesAndAbstraction.Exercise.P03BirthdayCelebrations; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String input = scanner.nextLine(); Li...
import { Avatar, Button, Flex, Heading, Menu, MenuButton, MenuList, Text, VStack } from '@chakra-ui/react' import { ChevronUpIcon } from '@heroicons/react/outline' import { LogoutIcon, SearchIcon, UserIcon } from '@heroicons/react/solid' import { logout } from '@utils/authUtils' import Link from 'next/link' import { FC...
<template> <el-scrollbar class="settings"> <section v-if="!authenticated" class="mb-05"> <h3>Login</h3> <login/> </section> <section class="mb-05"> <h3>Badges & Notifications</h3> <el-switch v-model="options.notifyNewPosts" ...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
import React, { useState } from 'react' import SendIcon from '../../icons/send-icon' interface props { value?: string onSendClick: (content: string) => Promise<void> onEscapeClick?: () => void } const CommentInput = ({ onSendClick, onEscapeClick, value }: props) => { const [commentInput, setCommentInp...
require('../sass/MatchGroup.scss'); import React from 'react'; import PropTypes from 'prop-types'; import update from 'immutability-helper'; import ItemList from './ItemList'; const propTypes = { name: PropTypes.string.isRequired, expanded: PropTypes.bool, twitterList: PropTypes.array, instagramList:...
import configureStore from "redux-mock-store"; //ES6 modules import thunk from "redux-thunk"; import { startNewNote, startLoadingNotes, startSaveNote, startUploading, } from "../../actions/notes"; import { types } from "../../types/types"; import { db } from "../../firebase/firebase-config"; import { fileUpload } f...
package br.ufsm.csi.dao; import br.ufsm.csi.model.*; import java.sql.*; import java.text.SimpleDateFormat; import java.util.ArrayList; public class PedidoDAO { private String sql; private Statement stmt; private ResultSet rs; private PreparedStatement preparedStatement; private String status; ...
#pragma once #include "../../holders/Canton.h" #include "../../../common/SvkStr.h" #include "Criterion.h" template <typename Out> class CriterionUJ : public Criterion<Canton*, Out> { public: CriterionUJ(CriterionType type) : Criterion(type) {} }; class CUJ_Nazov : public CriterionUJ<SvkStr> { public: CUJ_Nazov...
from typing import Any from django.db.models.query import QuerySet import stripe # 10.5 # from django.views.generic.base import TemplateView # можно подставить ниже в class ...(TemplateView) для проверки шаблона from django.views.generic.edit import CreateView from django.views.generic.base import TemplateView from d...
using System; using System.Collections.Generic; using System.Text; namespace Buoi4_Struct { public class Bai1_Sach { struct Sach { public string TieuDe; public string TenTacGia; public int NamXuatBan; public Sach(string _tieude, string _tentacg...
Usage ===== gem5.fast [gem5 options] script.py [script options] gem5 is copyrighted software; use the --copyright option for details. Options ======= --version show program's version number and exit --help, -h show this help message and exit --build-info, -B Show build information ...
// TOOLBOX.h (Colors.h originaly) // // Posted by Gon1332 May 15 2015 on StackOverflow // Modified by Shades Aug. 14 2018 // Modified by DoronovIV Jan. 25 2022 // PLEASE carefully read comments before using this tool, this will save you a lot of bugs that are going to be just about impossible to find. #ifndef TOO...
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2019 Dan Tès <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram 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 S...
<div class="flex justify-center mt-10"> <div class="bg-white p-4 shadow-md w-1/2 text-center rounded-ee-md m-auto"> @if ($isModalOpen) <livewire:edit-user-modal :isOpen="$isModalOpen" :user="$editUser" /> @endif <x-reuseable-modal name="confirm" title="Are you sure ??"> ...
App.Views.Header = Backbone.View.extend({ template: JST['app/templates/header.html'], events: { 'click .logout': '_logout', 'click .login': '_login' }, initialize: function(){ var self = this; this.auth = new FirebaseSimpleLogin(App.FirebaseRef, function(error, user){ if (error) console....
import { newtonRaphson } from '@fvictorio/newton-raphson-method'; import Big from 'big.js'; import { roundNumber } from 'helpers/math'; import { Market, Outcome } from 'models/market'; import { TradeDetails } from 'redux/ducks/trade'; function formatMiniTableItems( action, ticker, market, predictions, select...
{% extends "base.html" %} {% load static %} {% block content %} <!-- Hero Section--> <section style="background: url({% static 'img/IMG_0965.jpeg' %}); background-size: cover; background-position: center center" class="hero"> <div class="container"> <div class="row"> <div class="col-l...
package com.cg.service.impl; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import com.cg.dto.DepartmentDto; import com.cg.entity.Department; import com.cg.mapper.DepartmentMapper; import com.cg.repository.DepartmentRepository; import com.cg.service.Department...
import React from 'react'; import FormatLineSpacingIcon from '@mui/icons-material/FormatLineSpacing'; import FilterItem from './FilterItem'; import { Button, Collapse } from '@mui/material'; import { useStore } from '@/hooks'; const FilterResult = () => { const { filterSearchActive, setFilterSearchActive, handleChan...
# GA_BinarySearch_Ronda What is binary search and how does it work? - Binary search loops through an array, identifying which half of the array the search target is in. Each time, the left or right references are updated so that only the portion the target could be in is searched. When the target is at the midpoint, i...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; // import "hardhat/console.sol"; contract ecRecover is Ownable { using ECDSA for bytes32; address private signer; function setSigner...
package com.jyx.oss.impl; import com.aliyun.oss.ClientException; import com.aliyun.oss.OSS; import com.aliyun.oss.OSSException; import com.aliyun.oss.model.OSSObject; import com.jyx.oss.ALiOssService; import com.jyx.oss.constant.CustomConstant; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Se...
from django.db import models class Date(models.Model): date_rep = models.DateField(primary_key=True) day = models.BigIntegerField(blank=True, null=True) month = models.BigIntegerField(blank=True, null=True) year = models.BigIntegerField(blank=True, null=True) class Meta: db_table = 'date'...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distr...
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{ config('app.name', 'Laravel') }}</title> ...
import UserModel from "../mongoose/UserModel"; import User from "../models/User"; import UserDaoI from "../interfaces/UserDaoI"; /** * Implements Data Access Object managing data storage * of Users * @implements {UserDaoI} UserDaoI * @property {UserDao} userDao Private single instance of UserDao */ export default...
--- #var-frontmatter #format-yaml title : Versatile Description Format specification author : Nikolay Gniteev (godhart@gmail.com) version : 1.0.draft.4 description : Specification of Versatile Description Format (for hardware) --- <!-- #TODO: reversed format - кода в исходном файле в fenced пишется опи...
from typing import Dict, Optional class BoundingBox(): # constructors def __init__(self, left: float, bottom: float, right: float, top: float) -> None: self.bounds = [left, bottom, right, top] @classmethod def from_textract_bbox(cls, textract_bbox: Dict[str, float]) -> None: re...
package com.learnvertx.starter.web; import com.learnvertx.starter.entity.Project; import com.learnvertx.starter.entity.Task; import com.learnvertx.starter.repository.ProjectRepository; import com.learnvertx.starter.repository.ProjectRepositoryImpl; import com.learnvertx.starter.service.ProjectService; import com.learn...
<?php /** * @file * Reset user passwords and optionally notify users. */ use Drupal\Core\Routing\RouteMatchInterface; /** * Establish batch operation for resetting passwords. * * @param array $data * The array of data needed for this batch. */ function mass_pwreset_multiple_reset(array $data) { $batch = ...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>GraphicsNotes 2013 -- Section 8: Linear Algebra, Transformations, and Viewing</title> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body> <div class="section"> <h2>Section 8:&nbsp;&nbsp; Linear Algebra, Transformations, and Viewing</h...
import React, { Component } from "react"; import { View, Image, StyleSheet, Text, Dimensions, TouchableOpacity } from "react-native"; import WideButton from "./WideButton"; import sources, { text, actions } from "../assets/emptyStates/emptyStates"; function EmptyState({ state, onPress, modal }) { return ( <View ...
<?php namespace Drupal\Tests\Core\Template; use Drupal\Component\Utility\Html; use Drupal\Core\Render\Markup; use Drupal\Core\Template\Attribute; use Drupal\Core\Template\AttributeArray; use Drupal\Core\Template\AttributeString; use Drupal\Tests\UnitTestCase; use Drupal\Component\Render\MarkupInterface; /** * @cove...
define([ "hdjs", "jQuery", ], function (hdjs, $) { return { markdown: function (elem, options) { require([ "editormd", "dist/static/editor.md/languages/zh-tw", "dist/static/editor.md/plugins/link-dialog/link-dialog", "dist/s...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <script> "use strict"; // Destructuring // a syntax that allows us to unpack arrays or objects into a u...
%drawGrid will draw lines on an axes along the X and Y axis, sending the %lines to the back as well. % % Lx = drawGrid(Ax, Tick, Dir, Style, varargin) % % INPUT % Ax: plot axes to draw on % Tick: tick values to add a line to % Dir ['x' 'y']: direction to draw the lines % Sytle: sytle for the line, Ex: 'k-...
import React, { useState } from 'react'; import {IonIcon, useIonViewDidEnter} from '@ionic/react'; import {caretBackOutline, caretForwardOutline } from 'ionicons/icons'; interface IMonthPicker { month: number, setMonth: (m: number)=>void, year: number, setYear: (y: number)=>void, } const NotDailyChall...
import Button from "@mui/material/Button"; import Paper from "@mui/material/Paper"; import Table from "@mui/material/Table"; import TableBody from "@mui/material/TableBody"; import TableCell from "@mui/material/TableCell"; import TableContainer from "@mui/material/TableContainer"; import TableHead from "@mui/material/T...
# 用于稳定扩散 XL (SDXL) 的 T2I 适配器 > 译者:[片刻小哥哥](https://github.com/jiangzhonglian) > > 项目地址:<https://huggingface.apachecn.org/docs/diffusers/training/t2i_adapters> > > 原始地址:<https://huggingface.co/docs/diffusers/training/t2i_adapters> 这 `train_t2i_adapter_sdxl.py` 脚本(如下所示)展示了如何实现 [T2I-Adapter 培训流程](https://hf.co/papers...
import React, { useState } from 'react'; function Contact() { const [showForm, setShowForm] = useState(false); const [hover, setHover] = useState(false); const [formValues, setFormValues] = useState({ name: '', email: '', message: '', }); const [formErrors, setFormErrors] = useState({ name: '...
import React from "react"; import PropTypes from "prop-types"; import TextInput from "components/TextInput"; import NumberInput from "components/NumberInput"; import OneOfInput from "components/OneOfInput"; import ActionButton from "components/ActionButton"; import { Formik, Form } from "formik"; import * as Yup fro...
from rest_framework import serializers from rest_framework_simplejwt.serializers import TokenObtainPairSerializer from user.models import UserModel class UserSerializer(serializers.ModelSerializer): class Meta: model = UserModel fields = "__all__" def create(self, validated_data): use...
var i18n = require("../"); var should = require('should'), path = require("path"), translationPath = path.join(__dirname, '../example/locale'), middlewareOptions = { default_lang: 'en-US', supported_languages: ['en-US', 'en-CA'], translation_directory: translationPath, mappings: { 'en': 'en-US' } }, fs = ...
import { connect } from 'react-redux'; import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import { AuthInput } from './'; import { signUpUser } from './AuthActions'; // components import { Button, RenderAlert, Loader } from '../common'; class SignUpForm extends Component { constructo...
<!DOCTYPE html> <html> <head> {% load static %} <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1" /> <link rel="stylesheet" type="text/css" href="{% static "css/yonetmen_page.css" %}"> <link rel="stylesheet" type="text/css" href="{% static "css/deneme.css" %}"> ...
Blurb:: The \c sub_method_pointer specifies the method block for the sub-iterator Description:: The \c sub_method_pointer specifies the method block for the sub-iterator. See \ref topic-block_pointer for details about pointers. Nested models may employ mappings for both the variable inputs to the sub-model and the re...
<?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\AntaresController; use App\Http\Controllers\AuthController; use App\Http\Controllers\LahanController; use App\Http\Controllers\PenanamanController; use App\Http\Controllers\DeviceController; use App\Http\Controllers\Email\MailController; use App\Htt...
package utils import ( "encoding/json" "errors" "github.com/labstack/gommon/log" "io" "os" "simple_text_editor/core/v3/types" "simple_text_editor/core/v3/validators" ) func ForEach[T interface{}](slice []T, callback func(index int, data *T)) { if slice == nil { return } for i, value := range slice { cur...
import Center from "./Center"; import Sass from "./Sass"; import Less from "./Less"; // images import box from "../../images/box_model.png"; import css from "../../images/code_css.png"; import flex from "../../images/flex.png"; import grid from "../../images/grid.png"; export default function Css() { return ( <>...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PHP form</title> </head> <body> <h2>Contact Form</h2> <form method="POST" action=""> <label for="name">Name:</label><br> <input type="text" i...
part of core.auth; typedef JwtString = String; enum JWTAlgo { hs256, } /// A schema for a JWTObject. Extend this base class to create new versions. abstract class JWTObject {} class JWTObjectV1 implements JSONObject { final JWTAlgo jwtAlgo; final String typ = 'jwt'; /// User ID final String sub; final ...
// Print all the paths from leaf to root node // Use Preorder traversal + Stack Reverse package BinaryTree.Questions; import java.util.*; class Leaf_to_Root { static Node root; static class Node { int data; Node left, right; Node(int data) { this.data = data; ...
import * as AST from "./ast" interface TextStream { readonly fullText: string readonly position: number } function streamNext(s: TextStream): [string, TextStream] { return [ s.fullText[s.position], { fullText: s.fullText, position: s.position + 1 }, ] } function remainingText(s: TextS...
/* * Copyright (c) Enalean, 2021-Present. All Rights Reserved. * * This file is a part of Tuleap. * * Tuleap 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 version 2 of the License, or * (at yo...
pragma solidity ^0.4.17; // The minimum version of Solidity required contract Adoption { address[16] public adopters; function adopt(uint petId) public returns (uint) { require(petId >= 0 && petId <= 15); adopters[petId] = msg.sender; return petId; } function getAdopters() public view returns(address[16...
function getRandomHexColor() { return `#${Math.floor(Math.random() * 16777215).toString(16)}`; } const startBtn = document.querySelector('button[data-start]'); const stopBtn = document.querySelector('button[data-stop]'); const bodyRef = document.querySelector('body'); let intervalId = null; startBtn.addEventListen...
package net.map.elixirmap.util import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import kotlinx.android.extensions.LayoutContainer abstract class BaseBindingAdapter<T> : RecyclerView.Adapter<BaseBindingAdapter.BaseViewHolder>() { ...
/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library 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 2.1 of the License, or (at your option) * any la...
## Deployment In ths assignment, you're going to deploy your backend services (express and nestjs) using Docker. ### 1. Initial setup To complete this assignment, you need to have docker engine installed on your system. For more details about how to install it please checkout this [link](https://docs.docker.com/engine...
package by.zharikov.cleanarchitecturenoteapp.feature_note.presentation.notes import android.util.Log import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.toArgb import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import by.zharikov.cleanarchitecturenoteapp.feature_note...
=pod =head1 NAME B<yaf> - Yet Another Flowmeter =head1 SYNOPSIS yaf [--in INPUT_SPECIFIER] [--out OUTPUT_SPECIFIER] [--live LIVE_TYPE] [--ipfix TRANSPORT_PROTOCOL] [--no-output] [--filter BPF_FILTER] [--rotate ROTATE_DELAY] [--lock] [--caplist] [--...
import 'dart:convert'; // import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_rating_bar/flutter_rating_bar.dart'; import 'package:fluttertoast/fluttertoast.dart'; import 'package:get/get.dart'; import 'package:http/http.dart...
package org.jeecgframework.web.cgform.engine; import java.io.IOException; import java.util.Locale; import java.util.Map; import javax.annotation.PostConstruct; import javax.annotation.Resource; import org.jeecgframework.web.cgform.common.CgAutoListConstant; import org.jeecgframework.web.cgform.service.config.CgFormF...
(function() { 'use strict'; angular .module('mlcccApp') .config(stateConfig); stateConfig.$inject = ['$stateProvider']; function stateConfig($stateProvider) { $stateProvider .state('discount', { parent: 'entity', url: '/discount', da...
class Movie { constructor(title, genre, releaseYear, availableCopies) { this.title = title; this.genre = genre; this.releaseYear = releaseYear; this.availableCopies = availableCopies; this.totalCopies = availableCopies; } rentMovie() { if (this.availableCopies > 0) { console.log(`Re...
import React, { useState, useEffect } from 'react'; import axios from 'axios'; import './index.css'; import Body from '../Body'; import { Bar } from "react-chartjs-2"; import { Chart as ChartJS } from "chart.js/auto"; import { useNavigate } from "react-router-dom"; import Table from "../ProjectDetails/index.jsx"; impor...
import { Component } from "react"; export default class Student extends Component { constructor(props) { super(props); this.state = {id: props.id, name: props.name, mark1: props.mark1, mark2: props.mark2}; } onNameChange = (e) => { ...
### Projeto Star Wars ![git-StarWars](starWars2.gif) ## Introdução Esta é uma aplicação React destinada a fornecer uma interface para filtrar e visualizar dados do universo Star Wars. A aplicação utiliza Context API e Hooks para controlar o estado global do React tornando-os reutilizáveis para criar uma tabela de dad...
# # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Fedora Security Advisory 2004-120. # include("compat.inc"); if (description) { script_id(13698); script_version ("$Revision: 1.13 $"); script_cvs_date("$Date: 2015/10/21 21:09:31 $"); scr...
<!DOCTYPE html> <!-- release v4.1.6, copyright 2015 Kartik Visweswaran --> <html lang="en"> <head> <meta charset="UTF-8"/> <title>Krajee JQuery Plugins - &copy; Kartik</title> <link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet"> <link href="../css/fileinput...
import Image from "next/image" import Link from "next/link" import { ArrowLeftIcon } from "@/components/ArrowLeftIcon" const favoriteCount = 1234 export default function RecipeLayout({ children, }: { children: React.ReactNode }) { return ( <section className="h-full max-w-[390px] border-x border-[#DCDBDD] ...
// components/RecipeDetails.js import React, { useState, useEffect } from 'react'; import { useParams } from 'react-router-dom'; import axios from 'axios'; function RecipeDetails() { const { id } = useParams(); const [recipe, setRecipe] = useState(null); useEffect(() => { // Fetch recipe details from Spoon...
/* * $Id$ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "Lice...
import {Octokit} from '@octokit/rest' import {AsserterLookup} from './asserters' import {Leif} from './types' import {exec, indentLog, syncProcessArray, masterBranchName, homedir} from './utils' const GitHubClient = new Octokit({ auth: process.env.GITHUB_OAUTH_TOKEN || process.env.GITHUB_TOKEN, }) export default c...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Expense Tracker</title> <style> body { font-family: Arial, sans-serif; background-color: aquamarine; } #expense-list { list-style-type: none; ...
<?php namespace App\Http\Middleware; /** * Copyright 2015 OpenStack Foundation * 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 requir...
@ngdoc overview @name Tutorial: 217 Column Moving @description <div class="alert alert-warning" role="alert"><strong>Alpha</strong> This feature is in development. There will almost certainly be breaking api changes, or there are major outstanding bugs.</div> Feature ui.grid.moveColumns allows moving column to a diff...
package com.mycompany.myapp.web.rest; import static com.mycompany.myapp.web.rest.TestUtil.sameNumber; import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.Matchers.hasItem; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*; import static org.springframe...
document.getElementById("load").onclick = getFile; var table = []; var tableHeaders = []; function getFile() { const input = document.getElementById("input-file"); if ("files" in input && input.files.length > 0) { placeFileContent( document.getElementById("visualization-area"), input.files[0] )...
import React, { Component } from "react"; export default class Modal extends Component { renderCart = () => { const { carts, updateQuantity, deleteProduct } = this.props; return carts.map((product) => { return ( <tr key={product.maSP}> <td>{product.maSP}</td> <td>{product.te...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Zooming</title> <meta name="description" content="DESCRIPTIONHERE" /> <meta name="author...
<div class="project-boxes jsGridView" data-projects-target="index"> <% @projects.sort_by {|project| project.end_at }.each do |project| %> <%= link_to project_path(project) do %> <div class="project-box-wrapper"> <div class="project-box"> <div class="project-box-content-header"> ...
extends Node class_name PlayerNodeDirectory ## The scene to instantiate on creation of a new [PlayerNode]. const playernode_scene: PackedScene = preload("res://scenes/playernode.tscn") ## Find the subordinate [PlayerNode] with the given player_name, and return it if found, otherwise return null. func get_playernode...
function cachingDecoratorNew(func) { let cache = []; function wrapper(...args) { const hash = args.join(','); let index = cache.findIndex((item) => item.hash === hash); if(index !== -1) { console.log( "Из кэша: " + cache[index].result); return "Из кэша: " + cache[index].result; } l...
import React from 'react'; import { Route, NavLink } from 'react-router-dom'; import styled from 'styled-components'; export default class Menu extends React.Component { constructor(props) { super(props); this.state = { display: false, }; this.toggleDisplay = this.toggleDisplay.bind(this); } ...
--- title: "Psy 612: Data Analysis II" subtitle: "Department of Psychology, University of Oregon" author: "Winter 2022. Instructor: Sara J. Weston" output: html_document: toc: TRUE toc_depth: 2 toc_float: TRUE theme: cosmo --- # Overview This course is the second in a 3-term sequence of classes des...
import { Address, ProviderRpcClient, Contract } from 'everscale-inpage-provider'; // For browser environment: import { EverscaleStandaloneClient } from 'everscale-standalone-client'; import { SampleWalletContract } from './deployHelpers/SampleWalletContract'; import { BioVenomSigner } from './BioVenomSigner'; import { ...
import { toFile } from 'openai/uploads' import { ChatCompletionMessageParam } from 'openai/resources/chat' import { QBAIRephrase, Tone } from 'qb-ai-rephrase' import { QBAITranslate } from 'qb-ai-translate' import openAIApi from './api' import { completeSentence } from './utils' export const createTranscriptionWithTi...
/* * Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
import zope.interface # Interfaz para definir signaturas de metodos para un animal class IAnimalActioner(zope.interface.Interface): """Esta es la documentacion de una interfaz para acciones de un animal""" # metodos y atributos # el atributo solo puede ser un doc string x = zope.interface.Attribute...
"use client"; import { Card, CardContent, CardHeader, CardTitle, CardDescription, } from "@/components/ui/card"; import { aspirations, careers, hobbies, type SimFormValues, } from "~/data/sim-typings"; import { useFormContext } from "react-hook-form"; import { FormControl, FormField, FormItem, FormLab...
- - 是一颗排列树,有N个零件,每个零件有m个供应商,找到小于总价格d的最小重量的设计, - 像是图的M 着色问题,每一个色块的都有m 种着色方法,找到满足条件色颜色, - 所以这里的解空间也是一颗以各个供应商为排列的排列树,`x[i] = m && i = n`一共n个零件,表示了解空间的深度为n ,M个供应商,表示解空间为一个m 叉树, - 找到了解空间,现在就需要限界函数,`cw > bsetw`剪掉, - ```c++ #include <bits/stdc++.h> using namespace std; /*1. 在回溯算法中, 回溯到叶子节点的时候,就可以得到一中着色方法 ...
/* Testdraw.c - a program that draws various patterns when the * user hits number keys: * 0 - clear screen * 1 - lines * 2 - circles * 3 - boxes * 4 - blits * <esc> or q or x - quit */ #include "errcodes.h" #include "vdevcall.h" #include "vdevinfo.h" #include "rastlib.h" #include "rastcall.h" #include "rc...
syntax = "proto3"; option java_package = "com.assignment.grpc"; service user { rpc Register(RegistrationRequest) returns (RegistrationResponse); rpc Login(LoginRequest) returns (Response); rpc Logout(LogoutRequest) returns (Response); rpc CreateProfile(ProfileRequest) returns (ProfileResponse); rpc UpdatePr...
Feature: Login Functionality User Story : As a user, I should be able to log in so that I can land on homepage. Background: User should access the login page Given user is on the login page @FIX10-348 @wip Scenario Outline: User should be able to login with valid credentials When enter username "<use...
# 比特币白皮书学习 在听过大锤老师的课程和阅读比特币的白皮书之后。了解到比特币的发展历史。同时也了解了电子货币的发展历史。 1、传统的货币:传统的货币一般来说是政府机构,中央银行的货币发行和结算。 2、电子货币:在20世纪80年代末,许多研究人员开始尝试使用密码学技术构建数字货币。这些早期的数字货币项目发行的数字货币,通常由国家法定货币或贵金属(如黄金)来背书。 3、比特币:Bitcoin是在2008年由署名Satoshi Nakamoto的牛人发明的,他出版了一篇题为“Bitcoin:A Peer-to-Peer Electronic Cash System”的文章[1]。 Nakamoto结合了诸如b-money和Ha...