text
stringlengths
184
4.48M
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <link href="https://fonts.googleapis.com/css?family=Heebo:400,500,700" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="./resources/style.css"> <title>Colmar Academy</title> </head> <body> <!--MAIN CONTENT AR...
<script lang="ts"> import { Person } from '@hcengineering/contact' import { AssigneePopup, EmployeePresenter } from '@hcengineering/contact-resources' import { Doc, Ref, SortingOrder, generateId } from '@hcengineering/core' import { MessageBox, createQuery, getClient } from '@hcengineering/presentation' impor...
import 'package:geek_chat/models/message.dart'; import 'package:geek_chat/repository/sessions_repository.dart'; import 'package:uuid/uuid.dart'; class SessionModel { // String sid; String name; String promptContent; String type; String modelType; String model; int maxContextSize; int maxContextMsgCou...
class QueueItem < ActiveRecord::Base validates_numericality_of :position, {only_integer: true} belongs_to :user belongs_to :video delegate :category, to: :video delegate :title, to: :video, prefix: :video def rating review = Review.where(user_id: user.id, video_id: video.id).first revi...
<div class="form-container mat-elevation-z5"> <h1>Sign Up</h1> <form class="text-center" [formGroup]="signupForm" (ngSubmit)="onSubmit()"> <mat-form-field> <input matInput placeholder="User Name" formControlName="name"> <mat-error *ngIf="name?.getError('required')">User name is r...
#include "iostream" #include "string" using namespace std; int main() { //El número de columnas es fijo (sólo título y autor) int cols = 2; string titulo ,autor; //Si inicializa la matriz (punteros de punteros) string** libros; //Se inicializa la variable int tamanio = 0; string entrada; // Leer l...
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using System.Reflection; using FluentValidation; using Microsoft.EntityFrameworkCore; using ARC.Product.Persistence.Entities; using Arc.Common.Automapper; namespace ARC.Product.Core.DependencyInjection { /// <summary> //...
// // UserLocationService.swift // // // Created by Ana Márquez on 20/06/2023. // import Foundation import CoreLocation import MapKit class UserLocationService: NSObject, ObservableObject { static let shared: UserLocationService = .init() // MARK: - Published @Published var currentCoordinate: CLL...
package mapStorage import ( "fmt" "github.com/Refreezer/dnd-util-bot/api" "sync" ) type balanceBucketKey struct { chatId int64 userId int64 } type MapStorage struct { rwMutex *sync.RWMutex userNameToUserId map[string]int64 chatIdUserIdToBalance map[balanceBucketKey]uint } func (m *MapStor...
# LFRC19.github.io Project WebSite # EL GRANO DE ORO ## Descripción Este repositorio contiene el código fuente de un sitio web llamado "El Grano de Oro", que se centra en la venta de productos cárnicos, incluyendo carne de res, cerdo, pollo, mariscos, embutidos y quesos. El sitio utiliza HTML y CSS para la estructura ...
"use client"; import React from "react"; import Link from "next/link"; import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"; import { HoverCard, HoverCardContent, HoverCardTrigger } from "@/components/ui/hover-card"; import { Badge } from "@/...
import React from "react"; import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, } from "@/components/ui/carousel"; import { Card, CardContent, CardTitle } from "@/components/ui/card"; const travels = [ { image: "/ampera.jpg", title: "Ampera Bridge", }, { image: ...
import { render } from "@testing-library/react"; import { fireBlurEvent, fireChangeEvent, fireClickEvent, fireFocusEvent, withIntlProvider } from "tests/utils"; import Input, { Props } from ".."; describe("common", () => { describe("components", () => { describe("Input", () => { const testId = ...
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 agree...
import React from 'react'; import './Track.css'; class Track extends React.Component { constructor(props) { super(props); this.addTrack = this.addTrack.bind(this); this.removeTrack = this.removeTrack.bind(this); } renderAction() { if (this.props.isR...
/* * Copyright (c) 2002-2018 "Neo4j," * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j Enterprise Edition. The included source * code can be redistributed and/or modified under the terms of the * GNU AFFERO GENERAL PUBLIC LICENSE Version 3 * (http://www.fsf.org/licensing/licenses/agpl-3.0.html...
--------------------------------------------- ---------from code, run locally-------------- --------------------------------------------- // to run mikan locally using sbt: sbt run -Dhttp.port=9000 // then try the examples; clientA.html with clientB.html to see if they work. // deployable server: // create the play...
import {copyFile, mkdir, readdir, readFile, rm, stat, writeFile} from "fs/promises"; import {exec} from "child_process" import {promisify} from "util"; const inputDefinitionFile = "res/space-open-api.json"; const tempDefinitionFile = "temp/space-open-api-fixed.json"; const tempGeneratedPath = "temp/generated"; const g...
<?php // Include database connection code include('config/constants.php'); // Check if the user is logged in if(isset($_SESSION['user'])) { // Retrieve the username from the session $username = $_SESSION['user']; // Query to fetch the user information based on the username $sql = "SELECT id FROM t...
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { Choice } from './../Choice'; import { Message } from './../Message'; export interface Poliza { id: number; descripcion?: string; fecha: string; } @Injectable({ providedIn:...
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, Box, Container, HStack, Heading, Menu, MenuButton, MenuList, MenuItem, Icon, Stack, List, ListItem, } from "@chakra-ui/react"; import { BiDotsVerticalRounded } from "react-icons/bi"; import Link from "next/l...
import { ModuleWithProviders, NgModule } from '@angular/core'; import { NgxQueryBuilderComponent } from './ngx-ntk-query-builder.component'; import { FormsModule } from '@angular/forms'; import { CommonModule } from '@angular/common'; import { HttpClient } from '@angular/common/http'; import { TranslateHttpLoader } fro...
package com.example.weblab2.configuration; import com.example.weblab2.services.impl.security.GoogleOAuth2UserService; import com.example.weblab2.services.impl.security.OAuth2FailureHandler; import com.example.weblab2.services.impl.security.OAuth2SuccessHandler; import java.util.Arrays; import java.util.List; import lo...
/* Table of contents –––––––––––––––––––––––––––––––––––––––––––––––––– - Grid - Base Styles - Typography - Links - Code - Spacing - Utilities - Misc - Credit footer */ /* Grid –––––––––––––––––––––––––––––––––––––––––––––––––– */ .container { position: relative; width: 100%; max-width: 800px; text-...
import React from 'react'; import { useQuery } from 'react-query'; import axios from 'axios'; import AuctionCard from './AuctionCard'; const AuctionCardsList = () => { const { isLoading, data } = useQuery('auction-list', () => { return axios.get( 'https://run.mocky.io/v3/7f02819f-8254-410a-b8af-ab98572bd26b...
import { getFormatedDateTimeString } from 'utils/date/getFormatedDateTimeString/getFormatedDateTimeString' import { STRING, translate } from 'utils/language' import { UserPermission } from 'utils/user/types' export type ServerJob = any // TODO: Update this type export enum JobStatus { Created = 'created', Pending...
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Schedule</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="styleshee...
import 'package:flutter/material.dart'; import 'package:mobile_app/components/my_textfield.dart'; import 'package:mobile_app/components/my_button.dart'; import 'package:mobile_app/components/square_tile.dart'; import 'package:mobile_app/pages/loginPage.dart'; import 'package:mobile_app/pages/registration.dart'; import ...
# 【事件对象与鼠标事件】 > 这里只是通过鼠标事件简单了解一下事件对象,后续会有专门的章节结合事件传播讲解事件对象 ## 1.什么是事件对象 **任意事件类型被触发时与事件相关的信息会被以对象的形式记录下来**,我们称这个对象为事件对象。 这个参数通常用单词 `event` 或字母 `e` 来表示。 ``` oBox.onmousemove = function(e) { // 对象 e 就是这次事件的“事件对象” } ``` > 这个对象 e 接受的值由浏览器或操作系统传递。 **Event.type** `Event.type`属性返回一个字符串,表示事件类型。事件的类型是在生成事件的时候指定的。该属性...
// Ресурси: // mdn: https://developer.mozilla.org/en-US/ // learn.js: https://uk.javascript.info/ // const getTotalPrice = 100; // камелкейс - загальноприйнятий стандарт написання змінних // const get_total_price = 100; // снейкейс // const MAX_COUNT = 100; // якщо великими літерами, говорить, що не можна змінювати ...
<!DOCTYPE html> <html> <head> <style> body { font-family: Monospace; background-color: #000; color: #fff; margin: 0px; overflow: hidden; } #info { color: #fff; position: absolute; top: 10px; width: 100%; text-align: center; z-index: 100; display: block; } #info a, .button {...
import { Product } from './types'; import { formatPrice } from './helpers'; type Props = { product: Product; onSelectProduct: (product: Product) => void; isSelected: boolean; } function ProductCard( { product, onSelectProduct, isSelected }: Props ) { const { name, price, description, imageUri } = p...
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 4; -*- // // OpenVRML // // Copyright (C) 1998 Chris Morley // // 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 // versi...
import Lottie from 'react-lottie'; import loading from './loading.json' const lottieOptions = { animationData: loading, loop: true, autoplay: true, }; interface Props { width: string; height: string } const LoadingLottie: React.FC<Props> = ({width, height}) => { return ( <Lottie options={lotti...
#include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <stdlib.h> void wait(); int main() { int n = 5; // Cambia n al número deseado de subprocesos for (int i = 0; i < n; i++) { pid_t child = fork(); if (child < 0) { fprintf(stderr, "Error al crear el ...
package com.rmrtechs.springbootauthentjwtback.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.web.bind.a...
import { useEffect, useState } from "react"; import { useParams } from "react-router-dom"; const useInput = (initialValue, validator) => { const [value, setValue] = useState(initialValue); const onChange = (event) => { const { target: { value }, } = event; let willUpdate = true; if (typeof val...
/** ****************************************************************************** * @file stm32f0xx_hal_rtc_ex.c * @author MCD Application Team * @brief Extended RTC HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Real Time...
<%= form_for :article, url: posts_path do |f| %> <% if @article.errors.any? %> <div id="error_explanation"> <h2> <%= pluralize(@article.errors.count, "error") %> prohibited this article from being saved: </h2> <ul> <% @article.errors.full_messages.each do |msg| %> ...
package main import ( "fmt" ) type Node[T any] struct { val T next *Node[T] } func NewNode[T any](v T) *Node[T] { return &Node[T]{val: v} } func (n *Node[T]) Push(v T) *Node[T] { node := NewNode(v) n.next = node return node } func main() { node1 := NewNode(1) // *Node[int] 타입 node1.Push(2).Push(3).Push(4...
/* eslint-disable react/forbid-prop-types */ import React from 'react'; import PropTypes from 'prop-types'; import { AvatarWrapper, AvatarInitial } from './Styled'; const propTypes = { profile: PropTypes.object.isRequired, square: PropTypes.bool, className: PropTypes.string, style: PropTypes.object }; const ...
/****************************************************************** * * comm_funcs.cpp * version: 20170720-0 Doug Paradis * Communication functions for DPRG Club Robot 2016. * Based on ideas from Ron Grant * ******************************************************************/ #include "comm_funcs.h" #incl...
#import <Foundation/Foundation.h> @interface Bit:NSObject { int effect ; int target ; int type; int parameter; } @property int effect; @property int target; @property int type; @property int parameter; - (void) setMask:(int) mask; - (int) mask; @end; @implementation Bit @synthesize effe...
// /* eslint-disable @typescript-eslint/no-explicit-any */ // /* eslint-disable dot-notation */ // import { HttpClientTestingModule } from '@angular/common/http/testing'; // import { Injectable } from '@angular/core'; // import { ComponentFixture, TestBed } from '@angular/core/testing'; // import { MatDialogModule } fr...
<?php namespace App\Http\Controllers; use App\Http\Requests\StoreUpdateProductRequest; use App\Models\Product; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Facades\View; class ProductController extends Controller { protected $request; protected $repository; p...
import React, { useState, useEffect } from 'react'; import "./ViewApplicants.css"; import axios from 'axios'; import { useParams } from 'react-router-dom'; function ViewApplicants() { const [applicantsData, setApplicantsData] = useState([]); const { jobId } = useParams(); useEffect(() => { // Retr...
import * as React from 'react'; import TextField from '@mui/material/TextField'; import Autocomplete from '@mui/material/Autocomplete'; import CircularProgress from '@mui/material/CircularProgress'; import { createTheme, ThemeProvider } from '@mui/material/styles'; const theme = createTheme({ palette: { primary:...
pragma solidity ^0.4.10; import "zeppelin-solidity/contracts/token/SimpleToken.sol"; import "zeppelin-solidity/contracts/token/ERC20Basic.sol"; import 'zeppelin-solidity/contracts/ownership/Ownable.sol'; contract PensionFundRelease { address[] public validators; address public worker; address public mast...
import {createAsyncThunk, createSlice} from "@reduxjs/toolkit"; import axios from "axios"; import {displayNotification} from "./notification.jsx"; import {history} from "../components/Navbar/HorizontalNavbar.jsx"; import base from '../api/baseService.jsx'; const api = base.service(true); export const initialState = { ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Bootstrap demo</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" /> <script src...
<template> <div class="file-window-container"> <DragBox :class="{'is-active': isActive}" class="file-window rounded-3xl rounded-br" :id="id" use-handle :initial-z-index="initialZIndex" :initial-x="initialX" :initial-y="initialY" @drag-box-clicked="(handleDragBoxClic...
:orphan: .. only available via index, not via toctree .. title:: Package Recipe 'bioconductor-synlet' .. highlight: bash bioconductor-synlet .. conda:recipe:: bioconductor-synlet :replaces_section_title: :noindex: Hits Selection for Synthetic Lethal RNAi Screen Data :homepage: https://bioconductor.o...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Siswa extends Model { protected $table = 'siswa'; protected $fillable = [ 'nisn', 'nama_siswa', 'tanggal_lahir', 'jenis_kelamin', 'id_kelas', 'foto', ]; protected $dates = ['tanggal_la...
import { Controller, Get, Logger, Post, Query, Body } from '@nestjs/common'; import { EventPattern } from "@nestjs/microservices"; import { NewCarPositionDto } from './dto/new-car-position.dto'; import { MainService } from "./main.service"; import { CarPosition } from './schema/car-position.schema'; import {PrometheusH...
import 'package:cricketapp/models/batting.dart'; import 'package:cricketapp/models/bowling.dart'; import 'package:cricketapp/routes/app_pages.dart'; import 'package:cricketapp/utils/utils.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:google_mobile_ads/google_mobile_ads.da...
<?php namespace Jplarar\SESBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and manage...
import React from "react" import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faBars } from '@fortawesome/free-solid-svg-icons' import $ from "jquery"; import "./NavBar.css"; import Container from "../components/Container"; import NavItem from "./NavItem"; import Title from "../components/Title"...
(function (angular) { /** * @license angular-recaptcha build:2018-07-30 * https://github.com/vividcortex/angular-recaptcha * Copyright (c) 2018 VividCortex **/ 'use strict'; var app = angular.module('vcRecaptcha', []); function throwNoKeyException() { throw new Error('You ne...
import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:google_fonts/google_fonts.dart'; class DescriptionScreen extends StatelessWidget { DescriptionScreen({required this.imageaddress, super.key}); final String imageaddress; @override Widget bu...
package controller; import java.io.IOException; import java.time.LocalDate; import java.util.ArrayList; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.control.DatePicker; import javafx.scene.control.Label; import javafx.scene.layout.AnchorPane; import javafx.scene.layout.Pane; import java...
# Writing a Workflow Definition Now that you've learned the basic architecture and tools you'll use with Temporal, it's time to learn how to create a Workflow. In this course, you'll start with a basic example and build on it as you go. <iframe width="1040" height="585" src="https://www.youtube.com/embed/hK5qv...
package expression import ( "context" "github.com/VadimGossip/calculator/dbagent/internal/domain" ) type service struct { repo Repository } type Service interface { CreateExpression(ctx context.Context, e *domain.Expression) error GetExpressionByReqUid(ctx context.Context, userId int64, reqUid string) (*domain....
import { of as observableOf } from 'rxjs'; import { catchError, map, switchMap } from 'rxjs/operators'; import { Injectable } from '@angular/core'; import {Actions, Effect, ofType} from '@ngrx/effects'; import { UserListService } from './user-list.service'; import * as userListActions from './user-list.actions'; impor...
import math import requests import numpy as np import pandas as pd from sklearn.preprocessing import MinMaxScaler class Scoring: @staticmethod def rank_and_sort_dataframe(df: pd.DataFrame, weights: dict) -> pd.DataFrame: """ Assigns a composite score to each row in the dataframe and assigns a s...
<p align="center"> <img src="https://img.shields.io/badge/yarn-%232C8EBB.svg?style=for-the-badge&logo=yarn&logoColor=white" alt="yarn" /> <img src="https://img.shields.io/badge/nestjs-%23E0234E.svg?style=for-the-badge&logo=nestjs&logoColor=white" alt="NestJs" /> <img src="https://img.shields.io/badge/-ApolloGraphQL...
/* * SPDX-FileCopyrightText: 1999 Matthias Elter <me@kde.org> * SPDX-FileCopyrightText: 2002 Patrick Julien <freak@codepimps.org> * SPDX-FileCopyrightText: 2004 Boudewijn Rempt <boud@valdyas.org> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef KIS_BRUSH_ #define KIS_BRUSH_ #include <QImage> #includ...
package form; import framework.Validation; import misc.UnitConverter; import framework.FormField; import framework.Form; import model.Patient; /** * A form that corresponds to the HTML form in questionnaire.jsp. */ public final class QuestionnaireForm extends Form { @FormField(displayName = "Age", min = 0, max ...
import logging import re import threading import time from collections import Counter from contextlib import contextmanager from typing import List, Optional from unittest.mock import patch import numpy as np import pytest import ray from ray._private.test_utils import wait_for_condition from ray.data._internal.execu...
import 'package:flutter/material.dart'; import 'package:scroll_problem/top.dart'; class HomePage extends StatefulWidget { const HomePage({Key? key}) : super(key: key); @override State<HomePage> createState() => _HomePageState(); } class _HomePageState extends State<HomePage> { @override Widget build(BuildC...
import 'package:flutter/material.dart'; import '../palatte.dart'; class TextInputInverse extends StatelessWidget { const TextInputInverse({ Key? key, required this.icon, required this.hint, required this.inputType, required this.inputAction, }) : super(key: key); final IconData icon; final...
# Markdown examples ## code blocks === "python" ```python # Hello world example (Python) print("Hello World!") zero_to_ten_double = [2*x for x in range(10)] ``` === "shell" ```shell # Hello world example (Python) print("Hello World!") zero_to_ten_double = [2*x for x in range(10)] ``` ## code blocks with...
import { BrowserModule } from '@angular/platform-browser'; import { ErrorHandler, NgModule } from '@angular/core'; import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular'; import { SplashScreen } from '@ionic-native/splash-screen'; import { StatusBar } from '@ionic-native/status-bar'; import { AngularF...
import React, { useRef, useState } from "react"; import default_avatar from "../static/default_avatar.png"; import styled from "styled-components"; import { largeMobile, mobile } from "../utils/responsive"; import { useDispatch, useSelector } from "react-redux"; import { individualUpload } from "../utils/fileUpload"; i...
import { Chart as ChartJS, CategoryScale, LinearScale, PointElement, LineElement, Tooltip, Legend, } from "chart.js"; import { Line } from "react-chartjs-2"; import { WidgetWrapper } from "../WidgetWrapper"; import { FC } from "react"; import { PropsWithClassName } from "@/shared/types"; import cn from "c...
<template> <div> <h2 id="page-heading"> <span v-text="$t('cstoneApp.person.home.title')" id="person-heading">People</span> <router-link :to="{name: 'PersonCreate'}" tag="button" id="jh-create-entity" class="btn btn-primary float-right jh-create-entity create-person"> ...
// // CoinRepository.swift // ToughCookie // // Created by 이중엽 on 5/21/24. // import Foundation import UIKit.UIColor class CoinRepository { static let shared = CoinRepository() private init() { } var marketData: [MarketData] = [] var tickerDict: [String: TickerPresentData] = [:]...
quodlibet -------------------------------- audio library manager and player -------------------------------- :Manual section: 1 SYNOPSIS ======== | **quodlibet** [ **--print-playing** | *control* ] | **exfalso** [ *directory* ] DESCRIPTION Quod Libet is a music management program. It provides several differen...
package com; public class Testlambda { //3.静态内部类 static class Like2 implements I{ @Override public void lambda() { System.out.println("I like lambda2"); } } public static void main(String[] args) { I i = new Like(); i.lambda(); i = new Like2...
"use client" import useOtherUser from '@/app/hooks/useOtherUser'; import {Conversation, User} from '@prisma/client'; import { useMemo } from 'react'; import { HiChevronLeft } from 'react-icons/hi'; import Link from 'next/link'; import Avatar from '@/app/components/Avatar'; import { HiEllipsisHorizontal } from 'react-i...
package com.angelina.dreamtracker.model; import com.angelina.dreamtracker.model.enums.Role; import jakarta.persistence.*; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import org.springframework.security.core.GrantedAuthority; import org.springframework.s...
import { ChevronLeftIcon } from "@chakra-ui/icons"; import { Logo } from "./Logo"; import { Button, FormControl, FormLabel, Input, Text } from "@chakra-ui/react"; import { useForm } from "react-hook-form"; import { useState } from "react"; import { InfoErrorInput } from "./InfoErrorInput"; import { AiFillEye, AiFillEye...
import {NgModule} from '@angular/core'; import {Routes, RouterModule} from '@angular/router'; import {ListComponent} from './list/list.component'; import {CreateComponent} from './create/create.component'; import {UpdateComponent} from './update/update.component'; import {DeleteComponent} from './delete/delete.componen...
## Author: Jack Boyce ## Comparing growth from planting to 2010 census to 2023 census in Burgaue Plots library(tidyverse) library(openxlsx) library(patchwork) library(cowplot) ######## Loading in data ----------------------------------------------- # 2010 femels data GJ_Census <- read.xlsx("[insert file path]") %>%...
// Date.cpp - Defines all functions of the Date class // Module 13 Lab 13 // Author: Kevin Hu /* Description: Implementation of functions for Date class Constructor should only accept reasonable values for month, day, and year. If user tries to create a Date object with any invalid argument, create the Date ob...
/** Proofs GPU - Space and Time's cryptographic proof algorithms on the CPU and GPU. * * Copyright 2023-present Space and Time Labs, 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...
# CSS3 ## 생성자 ### id ```html <style> #select {...} </style> <h1 id="select">동해물과 백두산이</h1> ``` ### class ```html <style> .select {...} .header {...} .item {...} </style> <h1 class="select header item">동해물과 백두산이</h1> ``` ### child ## 속성 ### shadow ```css /*box-shadow : x-position y-position blur spread colo...
import React, { useCallback, useMemo, useState } from 'react'; import './multi-data-entry.css'; import { BaseDataEntryProps } from '../data-entry'; import { DataEntryInput, TextDataEntryInputProps } from '../data-entry-input'; import { DataTitleCopyable } from '../data-title'; import { CloseIcon, SaveIcon } from '../...
#ifndef CAFFE_LAYER_H_ #define CAFFE_LAYER_H_ #include <algorithm> #include <string> #include <vector> #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/layer_factory.hpp" #include "caffe/proto/caffe.pb.h" #include "caffe/util/math_functions.hpp" /** Forward declare boost::thread instead of incl...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html lang="en"> <head> <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > <LINK REL="STYLES...
import React from 'react'; import PropTypes from 'prop-types'; // Components import SVG from 'utils/svg-wrap'; import SectionBlock from '../../../containers/dapp/DexSwap/components/SectionBlock/SectionBlock'; import { Button, Input } from 'src/ui'; // Utils import { getLang } from 'utils'; // Styles import './SwapSe...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package th.co.geniustree.springrelationshif.model; import java.io.Serializable; import java.util.List; import java.util.Objects; impor...
import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import '../blocs/user_detail/user_detail_bloc.dart'; import '../blocs/user_detail/user_detail_event.dart'; import '../blocs/user_detail/user_detail_state.dart'; import '../repositories/user_repository.dart'; import '../utils/image_...
<?php namespace App\Exceptions; use Exception; class SlugIsAlreadyTakenException extends Exception { public function __construct( private string $slug, private string $savedFilePath, private string $newFilePath) { parent::__construct("The slug {$slug} is already taken : see {...
import { AuthProvider } from "@/features/auth/contexts/AuthContext"; import { AppConfigProvider, useAppConfig, } from "@/features/common/contexts/AppConfigContext"; import { LoadingProvider } from "@/features/companies/hooks/LoadingCompany"; import router from "@/router"; import theme from "@/theme"; import { Chakr...
package com.example.sales.payload.requests import com.example.sales.model.enums.CommunicationType import com.example.sales.model.enums.DecisionType import jakarta.persistence.* import jakarta.validation.constraints.NotNull import java.time.LocalDate data class OfferedPromotionRequest( @field:NotNull(message = "Cu...
import { Schema, model } from "mongoose"; import bcrypt from "bcryptjs"; import jwt from "jsonwebtoken"; import { IUser } from "../types/users.types"; const usersSchema = new Schema<IUser>( { email: { type: String, required: true, unique: true, trim: true, lowercase: true, }, ...
import { Component, ViewChild, ElementRef, AfterViewInit } from '@angular/core'; import * as THREE from 'three-full'; import * as TWEEN from '@tweenjs/tween.js'; import * as D3 from 'd3'; import { PolyCube } from '../../classes/polycube.interface'; import { GeoCube } from '../../classes/geocube'; import { SetCube } fro...
import express from "express"; import cors from "cors"; import { errorHandler } from "./middlewares/error-handler"; import 'express-async-errors'; import authenticate from "./middlewares/authenticate"; import userRouter from "./user/router"; import profileRouter from "./profile/router"; import postRouter from "./post/r...
## **itertools.permutations()** ### Problem itertools.permutations(iterable[, r]) This tool returns successive \( r \) length permutations of elements in an iterable. If \( r \) is not specified or is None, then \( r \) defaults to the length of the iterable, and all possible full-length permutations are generated....
#include "binary_trees.h" /** * binary_tree_size - count the size of the binary tree * @tree: the tree to count in * Return: the size **/ size_t binary_tree_size(const binary_tree_t *tree) { size_t bt_size = 0; if (tree == NULL) return (0); if (tree->left != NULL) bt_size = bt_size + binary_tree_size(tree->...