text
stringlengths
184
4.48M
import { useRecoilState, useResetRecoilState } from 'recoil'; import { counterAtom } from './store/atom'; export default function RecoilCounter() { const [counter, setCounter] = useRecoilState(counterAtom); // ↑ こうも書ける // const counter = useRecoilValue(counterAtom); // const setCounter = useRecoilState(counte...
<!doctype html> <html> <head> <title>Page Title</title> <style> body { margin: 0; padding: 0; font-family: 'Roboto', sans-serif; /* Use Roboto font */ background-image: url('assets/bg1.jpg'); /* Set your background image path */ background-size: cover...
import React from "react"; import { Switch, Route, useLocation } from "react-router-dom"; import Users from "./features/users/Users"; import Shops from "./features/shops/Shops"; import Items from "./features/items/Items"; import SingleItemPage from "./features/items/SingleItemPage"; import LoginPage from "./features/lo...
@FileAndFolderCreate Feature: Create In order to be able to create files as a Warewolf user I want a tool that creates a file at a given location Scenario Outline: Create file at location Given I have a destination path "<destination>" with value "<destinationLocation>" And overwrite is "<selected>" And destin...
<section class="flex center h-100"> <form [formGroup]="formGroup" class="w-300px"> <mat-toolbar class="toolbar" color="primary">Anmelden</mat-toolbar> <mat-card class="flex between wrap"> <mat-form-field class="form-field w-100"> <input type="text" matInput placeholder="E-Mail-Adresse" formControlName=...
import { useState } from "react"; import { Link, withRouter } from "react-router-dom"; import { ReactComponent as Logo } from "../assets/images/logo.svg"; function Header({ onLight, location }) { const [ToggleMenu, setToggleMenu] = useState(false); const linkColor = onLight ? "text-white sm:text-gray-900" : "text...
/** * Deck objects represent a deck of playing cards. * * @author Kevin Nash (kjn33) * @version 2015.4.26 */ import java.util.Arrays; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.TreeSet; public class Deck extends ArrayList<Card> { /** The face valu...
CREATE TABLE IF NOT EXISTS customer ( "id" varchar PRIMARY KEY, "first_name" varchar(128), "last_name" varchar(128), "segment" varchar(128) ); CREATE TABLE IF NOT EXISTS address ( "id" integer PRIMARY KEY, "country" varchar(128), "region" varchar(128), "state" varchar(128), "city" varchar(128), "postal_code" integer )...
<!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8"> <script type="text/javascript" src="vue.js"></script> <script type="text/javascript" src="node_modules/axios/dist/axios.js"></script> </head> <body> <div id="vm"> <h1>{{msg}}</h1> <a v-for="i in arr" :href="i.Url">{{i.Name}}</a> </div> <scr...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Shopping List Check Off</title> <link rel="stylesheet" href="styles/bootstrap.min.css"> <style> .emptyMessage { font-weight: bold; color:...
<!-- Hereda de una plantilla base llamada "base.html" --> {% extends "base.html" %} <!-- Herramientas para gestionar recursos estáticos y ajustes en los widgets --> {% load static %} {% load widget_tweaks %} <!-- Inicio del bloque de contenido --> {% block content %} <!-- Estilos específicos para la página de regist...
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; use Spatie\Permission\Models\Permission; class RedirectIfAuthenticated { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @param string|null...
<?php namespace Patterns\Chapter3\StarbuzzCoffeFirst; class Soy extends CondimentDecorator { private Beverage $beverage; public function __construct(Beverage $beverage) { $this->beverage = $beverage; $this->description = "Soy"; } public function getDescription() { re...
<?php namespace App\Http\Controllers; use App\Models\User; use App\Models\UserType; use Illuminate\Http\Request; class ClerkController extends Controller { public function __construct() { $this->middleware(['role:admin']); } /** * Display a listing of the resource. */ public fun...
'use client'; import Image from 'next/image'; import styles from './styles.module.css'; import logo from '../../../public/logo-rs.png'; import { NavMenu } from './navMenu'; import { useState } from 'react'; import { NavMenuMobile } from './navMenuMobile'; import { useScrollBlock } from '@/hooks'; export const Header ...
import React, { Component } from "react"; import { reduxForm, Field } from "redux-form"; import { connect } from "react-redux"; import { FormGroup, Col, Label, Input, Row, Button } from "reactstrap"; import DestinationValidation from "../validations/DestinationValidation"; const renderField = ({ input, type, pla...
/** * Copyright 2009-2020 the original author or 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 * * Unle...
import 'package:flutter/material.dart'; import 'package:video_player/video_player.dart'; import 'package:chewie/chewie.dart'; class VideoPlayerWidget extends StatefulWidget { final String url; const VideoPlayerWidget({super.key, required this.url}); @override State<VideoPlayerWidget> createState() => _VideoP...
* * This file is a part of digiKam project * http://www.digikam.org * * Date : 2004-06-04 * Description : image plugins loader for image editor. * * Copyright (C) 2004-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu> * Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com> * * T...
import { useState, useEffect, useRef } from "react"; import axios from "axios"; import { NavLink } from "react-router-dom"; import { HiOutlineMagnifyingGlass } from "react-icons/hi2"; const SearchBar = () => { const searchRef = useRef(null); // Referencia al input de búsqueda const [searchName, setSearchName] = us...
--- lang: en-us title: SMADirectory viewport: width=device-width, initial-scale=1.0 --- # SMADirectory SMADirectory utility (SMADirectory.exe) is used to manage OpCon directories. The utility is specifically useful for keeping log and report directories from using too much disk space.   Based upon user criteria an...
import { TextField as MuiTextField, TextFieldProps } from "@mui/material"; import { FieldInputProps, useField } from "formik"; type Props = { name: string } & TextFieldProps; type TexFieldConfig = TextFieldProps & FieldInputProps<any>; const FormikTextField = ({ name, ...props }: Props) => { const [field, meta] = u...
use std::collections::{HashMap, HashSet, VecDeque}; use mortalsim_core::sim::component::SimComponent; use mortalsim_core::sim::layer::circulation::{CirculationComponent, CirculationConnector}; use mortalsim_core::sim::organism::test::{TestBloodVessel, TestOrganism}; use mortalsim_core::substance::{Substance, Substance...
import yaml import jinja2 from django.db.models import Q from lava_common.compat import yaml_safe_load from lava_scheduler_app.models import ( Device, DeviceType, GroupDevicePermission, GroupDeviceTypePermission, ) from lava_scheduler_app.dbutils import ( load_devicetype_template, invalid_templ...
// // FavoritesViewModelTests.swift // VideoGamesAppTests // // Created by Metin Tarık Kiki on 28.07.2023. // import Foundation import XCTest @testable import VideoGamesApp import RAWG_API final class FavoritesViewModelTests: XCTestCase { var viewModel: FavoritesViewModelProtocol! var coordinator...
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:sec="http://www.thymeleaf.org/extras/spring-security" > <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" type="text/css" href="/webja...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { User } from 'src/app/models/user'; import { CognitoService } from 'src/app/services/cognito.service'; @Component({ selector: 'app-iniciar-sesion', templateUrl: './iniciar-sesion.component.html', styleUrls: ['./i...
function seek(entity, target) { // Calculate the desired velocity as a vector pointing from the entity to the target. let desiredVelocity = subtractVectors(target.position, entity.position); // Normalize the desired velocity to get it in the direction of the target only. desiredVelocity = normalize...
import 'package:flutter/material.dart'; class CustomForm extends StatelessWidget { final String? hintText; final Color? containerColor; final TextInputType? keyboardType; final String? initialValue; final bool? obscureText; final Function(String)? onChanged; final String? Function(String?)? validator; ...
import React from "react"; import { TableContainer, Table, TableHead, TableBody, TableRow, TableCell, Paper } from "@mui/material"; export const SupermarkeTable = () => { return ( <TableContainer component={Paper}> <Table arial-label="simple table"> <TableHead> <TableRow> <Tab...
package com.example.jsonparsing; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import android.widget.Toast; import org.json.JSO...
import pandas as pd import numpy as np from statistics import linear_regression, correlation # random forest regressor # from sklearn.ensemble import RandomForestRegressor, GradientBoostingRegressor # KNN regressor from sklearn.neighbors import KNeighborsRegressor # test train split from sklearn.model_selection impor...
// // ComparableView.swift // CookBook // // Created by km on 06/10/2022. // import SwiftUI struct Userk: Identifiable, Comparable { let id = UUID() let firstName: String let lastName: String static func <(lhs: Userk, rhs: Userk) -> Bool { lhs.lastName < rhs.lastName } } stru...
import time def timer(func): def wrapper(*args, **kwargs): start_time = time.time() result = func(*args, **kwargs) end_time = time.time() elapsed_time = end_time - start_time if not hasattr(func, 'alltime'): func.alltime = 0 func.alltime += elapsed_time...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ import { shallow } from 'enzyme'; import React from 'react'; impo...
using AOGSystem.Application.General.Query.Model; using AOGSystem.Application.Sales.Query; using AOGSystem.Domain.Sales; using MediatR; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Json.Serialization; using System.Threading.Tasks; namespace AOGSystem.Applicati...
/** * */ package com.flipkart.business; import java.util.List; import com.flipkart.bean.Bookings; import com.flipkart.bean.Gym; import com.flipkart.bean.User; /** * @Author Sugam, Harsh, Ali , Srashti , Dipti */ public interface UserServices { /** * This method cancels a slot with a given bookingId * @par...
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { BehaviorSubject, Observable } from 'rxjs'; import { Comments } from '../models/comments.model'; import { Post } from '../models/post.model'; import {environment} from '../../environments/environment' @Injectable({ ...
use std::str::FromStr; use std::time::Duration; use duration_str::deserialize_duration; use reqwest::Method; use serde::{Deserialize, Serialize, Serializer}; const DEFAULT_SMTP_HOST: &str = "127.0.0.1"; const DEFAULT_SMTP_PORT: u16 = lettre::transport::smtp::SMTP_PORT; const fn default_smtp_port() -> u16 { DEFAU...
import { BrowserRouter, Route, Routes } from "react-router-dom"; import "./App.scss"; import Menu from "./components/Menu/Menu"; import UpcomingTasks from "./Pages/Upcoming-tasks/UpcomingTasks"; import TodayTasks from "./Pages/Today-tasks/TodayTasks"; import Calendar from "./Pages/Calendar/Calendar"; import StickyWall ...
package com.controller; import java.io.File; import java.math.BigDecimal; import java.net.URL; import java.text.SimpleDateFormat; import com.alibaba.fastjson.JSONObject; import java.util.*; import org.springframework.beans.BeanUtils; import javax.servlet.http.HttpServletRequest; import org.springframework.web.context....
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Stopwatch</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="stopwatch"> <h1 id="displayTime">00:00:00</h1> <div class="buttons"> <img src...
package com.example.lab11_letanhung_2001210520; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.EditText...
/** * Common database helper functions. */ class DBHelper { constructor() { this.dbPromise = null; } /** * Database URL. * Change this to restaurants.json file location on your server. */ static get DATABASE_URL() { const port = 1337 // Change this to your server port return `ht...
import React from 'react'; import { Formik } from 'formik'; import * as Yup from 'yup'; import { Movie, MovieFormView, MovieInput, MovieInputSize } from 'components'; import { MOVIE_FORM } from 'utils'; interface IMovieForm { headline: string; movie: Movie; onSubmit: (movieItem: Movie) => void; } const SignupSc...
//Weakly Typed language(No explict type assignments like bool,num,int,etc) //Object Oriented Language //Semicolon is not required in js but you can use it //To run on terminal we can use node js (JS Runtime Environment) eg-> node basics.js // PRINT STATEMENT console.log("Hello World") console.log("Hello","Wolrd") //He...
<!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>William Shakespeare</title> <link rel="stylesheet" href="css/main.css"> </head> <body> <div class="container"> <head...
#include "mainwindow.h" #include "ui_mainwindow.h" std::pmr::map<MessageType, QString> MessageTypeMap = { {Connection, "Connection"}, {Disconnection, "Disconnection"}, {Text, "Text"}, {FileInfo, "FileInfo"}, {FileData, "FileData"} }; MainWindow::MainWindow(QTcpSocket *socket, QString clientName, Q...
/* * Copyright (c) 2022-2023 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...
<template> <el-aside width="200px"> <el-scrollbar> <el-menu :default-active="route.fullPath" class="el-menu-vertical-demo" style="height:100vh;" :router="true"> <template v-for="data in dataList" :key="data.path"> <el-sub-menu :index="data.path" v-if="data.ch...
import { Injectable } from "@angular/core"; import { Action } from "@ngrx/store"; import { Actions, Effect, ofType } from "@ngrx/effects"; import { Observable, of } from 'rxjs'; import { mergeMap, map, catchError } from 'rxjs/operators'; import { Message } from '../../models'; import { MessageService } from '../servic...
BeaconReceiver This app is part of an iBeacon demonstration of Swipe. The other part consists of the Sender app, also available in the Swipe Github account. Usage ==== For this demonstration to work you'll need two iOS 7 devices that support Bluetooth 4.0: iPhone 4S and later, iPad 3 and later, iPod touch 5th gen an...
import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit'; import { AxiosError } from 'axios'; import { IAddSkills, IPosition, ISkill } from '../../interfaces'; import { positionService } from '../../services'; interface IPositionState { positions: IPosition[]; position: IPosition | null...
package com.blogspot.ostas.leetcode.all.medium.count_the_number_of_square_free_subsets; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; class SolutionTest { /* Example 1: Input: nums = [3,4,4,5] Output: 3 Explanation: There are 3 square-free subsets...
var express = require('express'); var router = express.Router(); var User = require('../models/User'); var Category = require('../models/Category'); var Content = require('../models/Content'); router.use(function(req,res,next){ if(!req.userInfo.isAdmin){ //如果当前用户是非管理员 res.send("对不起,只有管理员才可以进入后台管理"); ...
# Copyright 2020 Alexey Alexandrov <sks2311211@yandex.ru> import numpy as np from prettytable import PrettyTable # Вероятность "везения" для критерия Гурвица. ALPHA = 0.5 def OutMatrix(matrix: np.array): table = PrettyTable() table.field_names = ["Стратегии"] + [f"b{j}" for j in range(1, matrix.shape[1] + 1...
<?php /** * @file * Configuration pages for CRM Core Data Import. */ /** * Page callback for data import dashboard. */ function crm_core_data_import_dashboard_form($form, &$form_state) { $items = array(); $available = _crm_core_data_import_get_tasks(); crm_core_ui_ctools_add_dropbutton_files(); foreach (...
/*🚀 1. Use o método forEach para exibir a lista de emails com a seguinte frase: O email ${email} está cadastrado em nosso banco de dados!. */ const emailListInData = [ 'roberta@email.com', 'paulo@email.com', 'anaroberta@email.com', 'fabiano@email.com', ]; emailListInData.forEach(email => console.log(`O email...
import org.apache.lucene.analysis.*; import java.io.IOException; import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute; /** * Abstract base class for TokenFilters that may remove tokens. * You have to implement {@link #accept} and return a boolean if the current * token should be preserve...
OPTLIB is an optimization library. The standard usage is to minimize a function that returns a double variable based on some array of inputs that are also stored as doubles. OPTLIB currently supports minimization by Powell's method, Monte Carlo trials of Powell's method, a Genetic Algorithm, and ensemble-based Simulat...
/// @file utilities.h /// @brief SoundTailor common maths header /// @author gm /// @copyright gm 2016 /// /// This file is part of SoundTailor /// /// SoundTailor 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 Found...
package com.f1elle.prng.prng.ui.utils import androidx.compose.foundation.border import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.padding import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.foundation...
# Artificial Intelligence Nanodegree ## Introductory Project: Diagonal Sudoku Solver # Question 1 (Naked Twins) Q: How do we use constraint propagation to solve the naked twins problem? A: *Student should provide answer here* In brief, for the naked twins problem, the constraint/condition is that the shared pee...
\exercice{2009, ridde, 1999/11/01} \enonce Soient $A, B, C, D$ quatre points distincts du plan tels que $\overrightarrow{AB} \neq \overrightarrow{CD}$. Montrer que le centre de la similitude directe transformant $A$ en $C$ et $B$ en $D$ est aussi le centre de celle transformant $A$ en $B$ et $C$ en $D$. \finenonce \...
<?php use App\Accomodation; use Illuminate\Database\Seeder; class AccomodationSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $accomodations = [ // ROMA - DAJE! [ 'title' => "Intero alloggio (casa)", ...
<!DOCTYPE html> <html> <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"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha3...
using Microsoft.Xna.Framework; using Monocle; using System; using System.Collections; using System.Collections.Generic; namespace Celeste { public class Strawberry : Entity { public static ParticleType P_Glow; public static ParticleType P_GhostGlow; public static ParticleType P_GoldGlo...
"use strict"; $(function() { var token= "b716c2d7a00b44b88cf0c8600d92505b"; var client, streamClient; var FADE_TIME = 150; // ms var TYPING_TIMER_LENGTH = 400; // ms var COLORS = [ '#e21400', '#91580f', '#f8a700', '#f78b00', '#58dc00', '#287b00', '#a8f07a', '#4ae8c4', '#3b88eb', '#3824aa', '#a70...
/* * Copyright (C) 2020 Jordi Sánchez * This file is part of CPM Hub * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
<template> <div class="app-container"> <div> <el-form ref="form" :model="form" class="form"> <el-form-item> <el-col :span="5"> <el-input v-model="form.username" placeholder="用户名"/> </el-col> <el-col :span="5"> <el-select v-model="form.type" plac...
package com.example.android_mvvm_with_room_database.db_utilities; import androidx.lifecycle.LiveData; import androidx.room.Dao; import androidx.room.Delete; import androidx.room.Insert; import androidx.room.Query; import androidx.room.Update; import com.example.android_mvvm_with_room_database.service.model.User; imp...
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, JoinColumn, ManyToOne, } from 'typeorm'; import Category from './Category'; @Entity('transactions') class Transaction { @PrimaryGeneratedColumn('uuid') id: string; @Column('varchar') title: string; @Column('...
import React, { useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import Card from "../components/Card"; import { getData, getFilterData } from "../redux/action"; import styles from "../styles/User.module.css"; import { Input } from "@chakra-ui/react"; import { Button } from "@...
// testing custom hooks // http://localhost:3000/counter-hook import { expect, test } from 'vitest' import { act, render, renderHook, screen } from '@testing-library/react' import userEvent from '@testing-library/user-event' import useCounter from '@/hooks/use-counter' function CounterConsumer() { const { count, inc...
Creating Branded iOS and Android Apps (Enterprise Only) Overview -------- ownBrander is an ownCloud build service that is exclusive to Enterprise customers, for easily creating your own branded Android and iOS ownCloud sync apps, and your own branded ownCloud desktop sync client. Customers will access the app th...
// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "pch.h" #include "IDatasmithSceneElements.h" #include "Templates/SharedPointer.h" const FString& GetExportPath(); void SetExportPath(const FString& Path); /** * For this sample application, some parameters are shared by all the scene. To avo...
from django.contrib.auth import authenticate from django.utils.translation import gettext_lazy as _ from django.conf import settings from django.core.validators import validate_email from rest_framework import serializers from users.models import * import datetime class SignupSerializer(serializers.Serializer): e...
import React, { useState, useEffect } from 'react'; import { useNavigate } from 'react-router-dom'; function AddAirport() { const navigate = useNavigate(); const [country, setCountry] = useState(''); const [city, setCity] = useState(''); const [airport, setAirport] = useState(''); const [authToken, setAuth...
<?php namespace App\Traits; use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Storage; trait HasImageCompetitionTeam { /** * Update the user's CV. * * @param string $storagePath * @return void */ public function updat...
sap.ui.define([ "sap/ui/core/mvc/Controller", "sap/m/MessageToast", "sap/ui/core/Fragment" ], function ( Controller, MessageToast, Fragment, ) { "use strict"; return Controller.extend("<id>.controller.HelloPanel", { OnShowHello: function () { //read message from i18n...
import 'hello_angular/polyfills'; import { Component, NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { Http, HttpModule } ...
package hello.core; import hello.core.discount.DiscountPolicy; import hello.core.discount.FixDiscountPolicy; import hello.core.discount.RateDiscountPolicy; import hello.core.member.MemberRepository; import hello.core.member.MemberService; import hello.core.member.MemberServiceImpl; import hello.core.member.MemoryMembe...
@isTest private class RuleExpression_Test { static testmethod void EvalTrue_Test() { //ns__Job__c!=null && ns__Tracking_Number__c!=null //&& (ns__SyncID__c == 'syncId1' || ns__SyncID__c == 'syncId2' || ns__SyncID__c == 'syncId3') String syncId1 = StringUtility.newGuid(); ...
import { InMemoryAdministratorsRepository } from 'test/repositories/in-memory-administrators-repository' import { LoginAdministratorUseCase } from './login-administrator' import { makeAdministrator } from 'test/factories/make-administrator' import { CredentialsDoNotMatch } from '@/core/errors/errors/credentials-do-not-...
;;; loophole-tests.el --- Tests for Loophole -*- lexical-binding: t -*- ;; Copyright (C) 2022 0x60DF ;; Author: 0x60DF <0x60df@gmail.com> ;; URL: https://github.com/0x60df/loophole ;; Package-Requires: ((emacs "27.1") (loophole "0.8.3")) ;; This file is not part of GNU Emacs. ;; This program is free software: you c...
package com.example.mtg.utility.tasksGenerators; import com.example.mtg.databinding.FragmentCountBinding; import java.math.BigDecimal; import java.util.Locale; import java.util.Random; public class AdvantageTasksGenerator { private final FragmentCountBinding binding; public AdvantageTasksGenerator(Fragment...
<template> <div> <el-form ref="metadata_form_refs" :model="metadata_form" size="small" label-width="80px" > <el-row> <el-col :span="12"> <el-form-item label="名称" prop="name"> <el-input v-model="metadata_form.name" placehol...
import { Button, Col, Form, Input, Row, Select, Upload, notification } from 'antd'; import { useNavigate, useParams } from 'react-router-dom'; import { faChevronLeft } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import './unit.scss'; import config from '.....
/************************************************************************* * This file is part of MeeRadio for Nokia N9. * Copyright (C) 2012 Stanislav Ionascu <stanislav.ionascu@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Licen...
;;; packages.el --- outline-magic layer packages file for Spacemacs. ;; ;; Copyright (c) 2012-2017 Sylvain Benner & Contributors ;; ;; Author: Jack Coughlin <jack@Jacks-MacBook-Pro.local> ;; URL: https://github.com/syl20bnr/spacemacs ;; ;; This file is not part of GNU Emacs. ;; ;;; License: GPLv3 ;;; Commentary: ;; S...
{% extends 'core/base.html' %} {% load dashboardextras %} {% block title %}Проекты | {% endblock %} {% block content %} <div id="projects-app"> <nav class="breadcrumb" aria-label="breadcrumbs"> <ul> <li><a href="{% url 'dashboard' %}">Информационная панель</a></li> <li class="is-active"...
import React from "react"; import { ComponentStory, ComponentMeta } from "@storybook/react"; import Header from "../components/Header/Header"; export default { title: "Example/Header", component: Header, parameters: { // More on Story layout: https://storybook.js.org/docs/react/configure/story-layout la...
<?php namespace App\Http\Controllers; use JWTAuth; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use App\Models\User; use Illuminate\Http\Response; use Tymon\JWTAuth\Exceptions\JWTException; use Illuminate\Support\Facades\Hash; class ApiController extends Controller { public $token = tru...
// // ContentView.swift // Patch // // Created by Nate Leake on 4/1/23. // import SwiftUI struct RootView: View { @Environment (\.managedObjectContext) var managedObjContext @EnvironmentObject var colors: ColorContent @EnvironmentObject var dataController: DataController @EnvironmentObject var mont...
import './App.css'; import React,{useState} from 'react'; const Square=({value,onSquareClick})=>{ return ( <button className="square-button" onClick={onSquareClick} >{value}</button> ); } function calculateWinner(squares) { const lines = [ [0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4,...
package dev.mayra.courses.entities.user; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; import lombok.Data; @Data public class UserLoginDTO { @NotBlank(message = "The username can't be blank") @Schema(description = "Fill the username", required = true, example =...
# Copyright (C) 2016, 2017, 2018, 2023 Carolina Feher da Silva # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This ...
import { withSentry } from "@sentry/nextjs"; import { NextApiHandler } from "next"; import { createOrderFromBodyOrId } from "@/saleor-app-checkout/backend/payments/createOrderFromBody"; import { KnownPaymentError, MissingUrlError, UnknownPaymentError, } from "@/saleor-app-checkout/backend/payments/errors"; impor...
<!DOCTYPE html> <html> <head> <!-- 页面meta --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>FakeHouse-backer</title> <meta name="description" content="FakeHouse-backer"> <meta name="keywords" content="FakeHouse-backer"> <meta content="width=device-width,...
<template> <div class="prop-types"> <p>{{typeof bool}}: {{bool}}</p> <p>{{typeof num}}: {{num}}</p> <p>{{typeof str}}: {{str}}</p> <p>{{typeof arr}}: {{arr}}</p> <p>{{typeof obj}}: {{obj}}</p> <p>{{typeof fn}}: {{fn}}</p> <button @click="() => $emit('event', { random: Math.random().toString(36).substr...