text
stringlengths
184
4.48M
--- title: Lidarr Windows Installation description: Windows-Installationsanleitung für Lidarr published: true date: 2023-07-03T20:30:47.519Z tags: editor: markdown dateCreated: 2023-07-03T20:11:02.991Z --- # Windows Lidarr wird nativ unter Windows unterstützt. Lidarr kann auf Windows als Windows-Dienst oder als Anwe...
// // ColorSchemeExtension.swift // // Created by Antoine Bollengier on 04.02.23. // import SwiftUI extension ColorScheme { /// The color that must be used depending on the color style of the device. /// /// /// When you implement a `Text`, you must be sure that is will stay visible whether choice...
import React, { Component, Fragment, PureComponent } from 'react' const Context = React.createContext() const { Provider, Consumer } = Context export default class Demo extends Component { state = { name: 'vujson' } render() { return ( <Provider value={this.state.name} > <h2>A组件的名字是:{this.state.n...
import { Link } from "react-router-dom"; const navigation = [ { name: 'Open Trades', href: '/' }, { name: 'Closed Trades', href: '/closed-trades' }, { name: 'Trade Stats', href: '/trade-stats' }, ] function MainNavigation() { return ( <header className="bg-gray-800"> <nav className="max-w-7xl mx-aut...
package metrics import ( "encoding/json" "strings" ) var metrics = `{"files":[{"code":1282,"comment":0,"blank":336,"name":"spm-go/output.html","language":"HTML"},{"code":458,"comment":0,"blank":9,"name":".arch-go/report.css","language":"CSS"},{"code":228,"comment":0,"blank":44,"name":".arch-go/report.html","languag...
# Exercise 3 def my_abs_3(number): """ Print the absolute value of a number number: an integer or a floating point number """ if number >= 0: print(number) else: print(-number) # my_abs_3(-10) # Exercise 4 def my_abs_4(number): """ Return the absolute value of a numbe...
using System.Collections.Generic; using UnityEngine; using Random = UnityEngine.Random; public class MazeGenerator : MonoBehaviour { /* * Per generare un labirinto ho bisogno di: * - dimensione X x Y (che sar� x,z) * - Stanza del tesoro e uscita * - La stanza del tesoro viene generata dopo N ...
<?php declare(strict_types=1); //declare(strict_types=1); //mb do not use it here, as it generates conflict on line 280: base64_encode(): Argument #1 ($string) must be of type string, bool given namespace XoopsModules\Tag; /* You may not change or alter any portion of this comment or credits of supporting develope...
local function regex(pattern, replacement) return function(link) return vim.fn.substitute(link, pattern, replacement, "") end end local github_regex = vim.regex("\\v^[a-zA-Z0-9_-]+/[.a-zA-Z0-9_-]+$") ---@param link string ---@return string|nil local function github(link) if github_regex:match_str(link) then...
#include <memory> #include <string> #include <iostream> #include "Image.h" #define MAX_BUFFER_SIZE 256 //! A structure. /*! A structure that stores check, encode, decode and get information functions, unique pointer and file name, message storing variables. */ struct ImageHelper { ImageHelper() {} ImageHelpe...
'use client'; import { ColumnDef, ColumnFiltersState, SortingState, flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable, Table as ReactTable, } from '@tanstack/react-table'; import { Table, TableBody, TableCell, TableHead, TableHeader...
/* * Copyright (c) 2023 Lunabee Studio * * 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 { Card, Container, Grid, Step, StepLabel, Stepper } from '@material-ui/core' import React from 'react' interface StepWrapperProps { activeStep: number, } const steps = ['Track Info', 'Upload cover', 'Upload Track'] const StepWrapper: React.FC<StepWrapperProps> = ({ activeStep, children }) => { return (...
<section class="mt-5 mx-5 text-light"> <h1>PelisUP!</h1> <h6>Plataforma para ver películas y Series 😉</h6> </section> <section class="my-5 mx-5"> <div class="mb-3 input-group"> <span class="input-group-text" id="inputGroupPrepend"><i class="bi bi-search"></i></span> <input type="search" class="form-cont...
// 发布反馈组件,用于发布反馈 <template> <div class="wallformal" > <div class="headimage"> <div class="tablewhole"> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="80px" > <el-form-item label="反馈标题" prop="title"> <el-input v-model="ru...
// define styles :D interface typeObjects { [key: string]: string | typeObjects; } type Styles = typeObjects | Record<string, typeObjects>; // all styles export const styles: Styles = { html: "scroll-smooth", body: "family-[--font-body] bg-$neutral-100 tc-$neutral-900", p: "family-[--font-body] tc-$neutral-80...
import { Component, EventEmitter, Output } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { ContactFormService } from '../../services/contact-form.service'; import { FormSubmissionResult } from './contact-form.types'; // regex pattern (99) 9-9999-9999 const PATTERN = ...
/// <reference types="@types/googlemaps" /> import { Component, NgZone, Input, OnInit, ViewChild} from '@angular/core'; import {TodoListData} from '../dataTypes/TodoListData'; import {TodoItemData} from '../dataTypes/TodoItemData'; import { TodoService } from '../todo.service'; import { AgmMap, MapsAPILoader} from '@ag...
package com.ark.center.iam.application.user.executor; import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.lang.tree.Tree; import cn.hutool.core.lang.tree.TreeUtil; import com.ark.center.iam.client.permission.vo.PermissionDTO; import com.ark.center.iam.client.user.dto.UserRouteDTO; import com.ark.center.iam.doma...
//FUNCION FLECHA ESPERAR const esperar = condicion =>{ return new Promise((resolve, reject) =>{ setTimeout(() => { if(condicion){ resolve("Hola mundo"); }else{ reject("Hubo un error") } }, 2000) }) } //FUNCI...
package com.sorrowblue.comicviewer.feature.library.dropbox import androidx.paging.PagingSource import androidx.paging.PagingState import com.dropbox.core.v2.files.FileMetadata import com.dropbox.core.v2.files.FolderMetadata import com.sorrowblue.comicviewer.domain.model.bookshelf.BookshelfId import com.sorrowblue.comi...
import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', debugShowCheckedModeBanner: false, theme: ThemeData( ...
import os.path as osp import torch import torch.nn as nn from torch.nn import functional as F from torch.cuda.amp import GradScaler, autocast from dassl.engine import TRAINER_REGISTRY, TrainerX from dassl.metrics import compute_accuracy from dassl.utils import load_pretrained_weights, load_checkpoint from dassl.optim...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <!-- import CSS --> <link rel="stylesheet" href="https://unpkg.com/element-ui@2.15.6/lib/theme-chalk/index.css"> </head> <body> <div id="app"> <template> <el-table ref="multipleTable" :data="tableData" ...
package ac.ke.usiu.example.midsemproject; import androidx.annotation.NonNull; import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import...
/* Creates Grid with CardItems(individual Offers) and gives the required Information for an Offer, * usage of MUI library */ import React, {useEffect, useState} from 'react'; import './Cards.css'; import {getFollowingsByUser} from "../../fetchoperations/FollowingsOperations"; import CardItem from "./CardItem"; impor...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('inventarios', function (Blueprint $table) { ...
MAME32 Screen Shot Organizer Copyright (C) Moose O'Malley, ---------------------------- July 2003. | T A B L E O F C O N T E N T S | | * Introduction (LONG) | * Why I wrote this Program / Why use this Program | * Using this Program | * Limitations / Restrictions of the...
# Создайте функцию generate_csv_file(file_name, rows), которая будет генерировать по три случайны числа # в каждой строке, от 100-1000 строк, и записывать их в CSV-файл. Функция принимает два аргумента: # # file_name (строка) - имя файла, в который будут записаны данные. # rows(целое число) - количество строк (записей)...
# This function is part of renpass published under the GNU GPL 3 license. # See also: code_R_start_renpass.R and http://opensource.org/licenses/GPL-3.0 #----- # Name: # convertRegionMatrixToDpr # Description: # converts a matrix(timesteps x number_of_regions) # into a matrix(timesteps x number_of_dprs) # Arguments: ...
// // HomeViewController.swift // Factilicious // // Created by Arnav Arora on 02/05/20. // Copyright © 2020 Jayant Arora. All rights reserved. // import UIKit import Firebase class SavedViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { func tableView(_ tableView: UITableView...
import { useEffect, useRef } from "react"; import { CSSTransition } from "react-transition-group"; import { useReactRedux, useLockedBody } from "../../hooks"; import { modalClear, modalClose } from "../../redux/modal/modal.slice"; import { selectModalIsOpen, selectModalWithCloseButton, selectModalMain, selectMo...
import { uuidv4 } from '@firebase/util'; import { doc, serverTimestamp, setDoc } from 'firebase/firestore'; import { getDownloadURL, ref, uploadBytes } from 'firebase/storage'; import React, { useRef, useState } from 'react'; import { styled } from 'styled-components'; import { auth, db, storage } from '../shared/fireb...
import { ArticleLayout } from '@/components/ArticleLayout' import Image from 'next/image' export const meta = { author: 'Nathan Galindo', date: '2023-01-09', title: 'Rust Generics, Traits, and Lifetimes', tag: "programming", description: 'The Rust programming language is a tool which allows programmers t...
package com.zero.ddd.akka.cluster.core.initializer; import java.util.Collection; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.Semaphore; import java.util.stream.Collectors; import org.springframework.beans.factory.annotation.Autowired;...
/* * 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 expect from '@kbn/expect'; import { TopNodesRequestRT, ...
// Custom Joint Grab Attach|GrabAttachMechanics|50060 namespace VRTK.GrabAttachMechanics { using UnityEngine; /// <summary> /// The Custom Joint Grab Attach script allows a custom joint to be provided for the grab attach mechanic. /// </summary> /// <remarks> /// The custom joint is placed on ...
from ad.models import MiniAd, Studio from django.db import models from django.utils import timezone class StudioStatistic(models.Model): class Meta: verbose_name = 'Статистика студий' verbose_name_plural = 'Статистика студий' db_table = "StudioStatistic" studio = models.ForeignKey(Stu...
from fastapi import FastAPI, HTTPException from pydantic import BaseModel, constr from databases import Database app = FastAPI() # URL для PostgreSQL (измените его под свою БД) DATABASE_URL = "postgresql://postgres:vasea01@localhost/postgres" database = Database(DATABASE_URL) @app.on_event("startup") async def star...
#pragma once # include<string> class Employee { public: Employee(std::string, int, std::string); //constructor with parameters void setName(std::string); //setter for name std::string getName(void) const; //getter for name void setEmployeeID(int); //setter for employee D int getEmployeeID(void) const; //gette...
package dynamicprogramming_decisionmaking; /** * Say you have an array for which the ith element is the price of a given stock * on day i. * * If you were only permitted to complete at most one transaction (i.e., buy one * and sell one share of the stock), design an algorithm to find the maximum * profit. * * ...
// // GHTimePickerView.swift // GuahaoWithChat // // Created by Jeff Wong on 15/11/8. // Copyright © 2015年 Jeff. All rights reserved. // import UIKit protocol GHTimePickerViewDelegate: NSObjectProtocol { func pickerDidCancel() func pickerDidConfirm(date: NSDate) } class GHTimePickerView: UIView { wea...
import tkinter as tk from tkinter import StringVar, ttk, filedialog, simpledialog from typing import Optional from preset_options.PresetProcessor import PresetProcessor from preset_options.Preset import Preset from Model import Model class PresetOptions: """PresetOptions Class.""" tab: ttk.Frame model: M...
import { CardElement, useElements, useStripe } from "@stripe/react-stripe-js" import axios from "axios" import React, { useState } from 'react' const CARD_OPTIONS = { iconStyle: "solid", style: { base: { iconColor: "#c4f0ff", fontWeight: 500, fontFamily: "Roboto, Op...
-- Creating tables for PH-EmployeeDB CREATE TABLE departments( dept_no VARCHAR (4) NOT NULL, dept_name VARCHAR (40) NOT NULL, PRIMARY KEY (dept_no), UNIQUE (dept_name) ); CREATE TABLE employees( emp_no INT NOT NULL, birth_date DATE NOT NULL, first_name VARCHAR NOT NULL, last_name VARCHAR NOT NULL, gender VARC...
<mat-accordion> <mat-expansion-panel hideToggle [expanded]="true" > <mat-expansion-panel-header [@.disabled]="true" expandedHeight="150px" collapsedHeight="60px"> <mat-panel-title> Bet1 </mat-panel-title> </mat-expansion-panel-header> <form [formGroup]="form" (submit)="onSend()" id="e...
echo "# SampleTokenizeTSLAstock" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/iantstaley/SampleTokenizeTSLAstock.git git push -u origin main pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@chain...
package com.project.DuAnTotNghiep.service.serviceImpl; import com.project.DuAnTotNghiep.controller.QRCodeService; import com.project.DuAnTotNghiep.dto.Product.ProductDetailDto; import com.project.DuAnTotNghiep.dto.Product.ProductDto; import com.project.DuAnTotNghiep.dto.ProductSearchDto; import com.project.DuAnTotNghi...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Deck extends Component { render() { const { cardName, cardDescription, cardAttr1, cardAttr2, cardAttr3, cardImage, cardRare, cardTrunfo, onDeleteButtonClick, } = this.props; ...
import type { Request } from 'express'; import type { IWebhookFunctions } from 'n8n-workflow'; import { mock } from 'jest-mock-extended'; import { Webhook } from '../Webhook.node'; import { testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers'; const workflows = getWorkflowFilenames(__dirname); describe('T...
/* * Copyright 2024 tison <wander4096@gmail.com> * * 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 ...
"use client" import Link from "next/link" import { useSelectedLayoutSegment } from "next/navigation" import { CellReport, CellReportAssistant, CellReportAttendees, Disciple, Lesson, } from "@prisma/client" import { format } from "date-fns" import { useSession } from "next-auth/react" import { cn } from "@/l...
package ru.yandex.practicum.filmorate.controller; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.sp...
# 달팽이 숫자 # 달팽이는 1부터 N*N까지의 숫자가 시계방향으로 이루어져 있다. # 다음과 같이 정수 N을 입력 받아 N크기의 달팽이를 출력하시오. # [예제] # N이 3일 경우, # N이 4일 경우, # [제약사항] # 달팽이의 크기 N은 1 이상 10 이하의 정수이다. (1 ≤ N ≤ 10) # [입력] # 가장 첫 줄에는 테스트 케이스의 개수 T가 주어지고, 그 아래로 각 테스트 케이스가 주어진다. # 각 테스트 케이스에는 N이 주어진다. # [출력] # 각 줄은 '#t'로 시작하고, 다음 줄부터 빈칸을 사이에 두고 달팽이...
/* * Copyright 2021 The Flink Remote Shuffle Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
/* * iSGL3D: http://isgl3d.com * * Copyright (c) 2010-2011 Stuart Caunt * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
''' The Device Array API is not implemented in the simulator. This module provides stubs to allow tests to import correctly. ''' from contextlib import contextmanager import numpy as np DeviceRecord = None from_record_like = None errmsg_contiguous_buffer = ("Array contains non-contiguous buffer and cannot " ...
// // Cambiar_Recolector_View.swift // AdminCaritas // // Created by Jimena Gallegos on 24/11/23. // import SwiftUI struct Cambiar_Recolector_View: View { let donador: Int var administrador: Administrador @State var listaRecolectores: Array<Repartidores> = [] @State var cambiar = false @State v...
--- title: Real-Time Latent Consistency Model Image-to-Image ControlNet emoji: 🖼️🖼️ colorFrom: gray colorTo: indigo sdk: docker pinned: false suggested_hardware: a10g-small disable_embedding: true --- # Real-Time Latent Consistency Model This demo showcases [Latent Consistency Model (LCM)](https://latent-consistenc...
/** * two pass array using loops, * intiate prefix and postfix variables with 1. * Compute result array with prefix products and push it into the array, * Compute postfix product and update the result array. * the result array will have the products except self values * @param {number[]} nums * @returns {number[...
(function(tagger) { if (typeof define === 'function' && define.amd) { define(['riot'], function(riot) { tagger(riot); }); } else if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { tagger(require('riot')); } else { tagger(window.riot); } })(function(riot) { riot.tag2('help'...
import React from 'react' import { useDispatch, useSelector } from 'react-redux' import webApi from '../../web/webApi'; import WebService from '../../web/webService'; import {toast,ToastContainer} from 'react-toastify' import { deletePlacement } from '../../web/placementSlice'; export default function EditPlacements() ...
public static void bubbleSort(int[] arr) { for (int i = 0; i < arr.length - 1; i++) { for (int j = 0; j < arr.length - 1 - i; j++) { if (arr[j] > arr[j + 1]) { // 一趟中通过两两比较,将最大的数放在最右 int temp = arr[j]; arr[j] = arr[j + 1]; arr[j + 1] = temp; } } /* 下面函数是为了打印出每一趟过后,序列的状态,方便理解各个排序算法 */ ...
class Solution(object): def letterCombinations(self, digits): """ :type digits: str :rtype: List[str] """ if not digits: return [] phone = {'2': 'abc', '3': 'def', '4': 'ghi', '5': 'jkl', '6': 'mno', '7': 'pqrs', '8': 'tuv', '9':...
import assert from "node:assert/strict"; import compile from "../src/compiler.js"; // Note: compiler's lines 14-16 cannot be tested as the analyzer fails first // and the optimize/generate lines are unreacheable const sampleProgram = "serve(0);"; describe("The compiler", () => { it("throws when the output type is ...
import './globals.css'; import React from 'react'; import tv from '@/public/travel.jpg'; interface Link { color: string; text: string; link: string; } const Home: React.FC = () => { const links: Link[] = [ { color: "bg-red-300", text: "Buy me coffee ☕️", link: "https://github.com", }, { color: "b...
/* * Nolan Blevins * NBlevins@email.sc.edu * October 25 2021 * CSCE 145 * PB&J */ public class Jelly { // instance variables private String name; private int calories; private String FruitType; public Jelly () { this.name = "none"; this.calories = 100; this.FruitType = "none"; } public Jelly (Strin...
package gormbuilder import ( "github.com/stretchr/testify/assert" "gorm.io/gorm/clause" "testing" ) func TestAnd(t *testing.T) { e := []clause.Expression{ clause.And(clause.Eq{Column: "username", Value: "test"}), } testStr := "test" c := Filter().And(Eq[string]("username", &testStr)).Build() assert.Equal(...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"></script> <script src="h...
import {Utils} from "./utils/utils.js"; import collisionPortalProps = Portals.CollisionPortalProps; import {Controls} from "./controls.js"; import {collisionChecker} from "./global.js"; import CollisionPortalProps = Portals.CollisionPortalProps; import {Bee} from "./bee.js"; export module Portals { export type Col...
package com.manerajona.java.designpatterns.creationals.singleton.example1; import java.io.Serial; import java.io.Serializable; class BasicSingleton implements Serializable { private static final BasicSingleton INSTANCE = new BasicSingleton(); private int value = 0; // cannot new this class, however /...
import format from '../../util/lib/format'; import dateParse from '../../util/lib/dateParse'; import getMonthLength from '../../util/lib/getMonthLength'; import getMonthFirstDay from '../../util/lib/getMonthFirstDay'; import divideArr from '../../util/lib/divideArr'; import './css/datePicker.less'; const WEEK_LABLE = ...
<?php namespace Database\Seeders; use App\Models\Author; use App\Models\Book; use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; class AuthorBookTableSeeder extends Seeder { /** * Run the database seeds. */ public function run(): void { $books = Bo...
using Core.Model.OrderModel; using Core.Model.PromoCodeModel; using Core.Model.RestaurantModel; using Core.ValueObject.PromoCode; using Core.ValueObject.Staff.User; namespace Core.Services.Abstraction; public interface IPromoCodeService { /// <summary> /// Change promo code value /// </summary> /// <p...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
import { createSlice } from '@reduxjs/toolkit'; export const formSlice = createSlice({ name: 'form', initialState: { personalDetails: { name: '', age: '', sex: '', mobile: '', govIdType: '', govId: '', }, }, reducers: { updatePersonalDetails: (state, action) => {...
const router = require("express").Router(); const Movie = require("../models/Movie"); // CREATE router.post("/", async (req, res) => { const newMovie = new Movie(req.body); try { const savedMovie = await newMovie.save(); res.status(201).json(savedMovie); } catch (err) { res.status(500).json(err); ...
#!/usr/bin/env python """ * Project : HistFitter - A ROOT-based package for statistical data analysis * * Package : HistFitter * * Script : HistFitter.py * * Created : November 2012 ...
import { createLocalVue, mount } from "@vue/test-utils"; import { ValidationObserver, ValidationProvider, extend } from 'vee-validate' import App from "@/pages/input_password.vue"; const localVue = createLocalVue() localVue.component('ValidationObserver', ValidationObserver) localVue.component('ValidationProvider', Va...
/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/Servlet.java to edit this template */ package controller.TestFeature; import dao.CourseDAO; import dao.QuizDAO; import dao.QuizResultDAO; import dao.Su...
// Unit 7 - Listing 3 import java.util.Scanner; public class FindNearestPoints { public static void main( String[] args ) { Scanner input = new Scanner( System.in ); System.out.print( "Enter the number of points: " ); int numberOfPoints = input.nextInt(); // Create an array to store points double[][] p...
/* * jQuery myCart - v1.7 - 2018-03-07 * http://asraf-uddin-ahmed.github.io/ * Copyright (c) 2017 Asraf Uddin Ahmed; Licensed None */ (function ($) { "use strict"; var OptionManager = (function () { var objToReturn = {}; var _options = null; var DEFAULT_OPTIONS = { currencySymbol: '$', ...
# Laravel AuthSystem API Project Ovo je API projekat zasnovan na Laravelu. ## Zahtevi - PHP = 11.7 - Composer - Docker ## Instalacija 1. Preuzmite projekat kao zip datoteku sa [GitHub repozitorijuma](https://github.com/vaš_korisničko_ime/ime_repozitorijuma/archive/refs/heads/main.zip). 2. Ekstraktujte zip datotek...
=== VM test suite to run build in guests === == Intro == This test suite contains scripts that bootstrap various guest images that have necessary packages to build QEMU. The basic usage is documented in Makefile help which is displayed with "make vm-test". == Quick start == Run "make vm-test" to list available make...
<?php namespace App\Filament\Resources; use App\Filament\Resources\PaybillResource\Pages; use App\Filament\Resources\PaybillResource\RelationManagers; use App\Models\Paybill; use App\Models\User; use Filament\Forms; use Filament\Forms\Components\Fieldset; use Filament\Forms\Components\Select; use Filament\Forms\Compo...
<!doctype html> <html lang="zh-CN"> <head> <title>Title</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <style> input{ width: 150px; height: 20px; } body{ text-align: center; } #m3{ width: 200px; height: 50px; ...
/**************************************************************************** FileName [ Board.js ] PackageName [ src/components ] Author [ Cheng-Hua Lu ] Synopsis [ This file generates the Board. ] Copyright [ 2022 10 ] ******************************************************************...
"use client"; import useBetterMediaQuery from "@/hooks/use-media-query"; import { cn } from "@/lib/utils"; import { X } from "lucide-react"; import Link from "next/link"; import { useEffect, useState } from "react"; const Message: React.FC = () => { const [message, setMessage] = useState<WulkanowyMessages>(); con...
# frozen_string_literal: true module RemoteDevelopment # noinspection RubyClassModuleNamingConvention, RubyInstanceMethodNamingConvention - See https://handbook.gitlab.com/handbook/tools-and-tips/editors-and-ides/jetbrains-ides/code-inspection/why-are-there-noinspection-comments/ # noinspection RubyInstanceMethodN...
<script> export default { layout: 'admin', middleware: ['admin-auth'], head() { return { title: `Пост | ${this.post.title}` } }, validate({params}) { return Boolean(params.id) }, async asyncData({store, params}) { const post = await store.dispatch('post/fetchAdminById', params.id) ...
"use strict"; /* +----------------------------------------------------------------------+ | LiteRT HTTP.js Library | +----------------------------------------------------------------------+ | Copyright (c) 2018 Fenying Studio |...
<script setup lang="ts"> import {onMounted, reactive, ref} from "vue"; import ListElementClone from "./ListElementClone.vue"; import type {ListElementType} from "@/entities/dragAndDropType"; import {useMousePos} from "@/composable/useMousePos"; import {useEventTargetListener} from "@/composable/useEventListener"; cons...
import { _decorator, Component, Node } from 'cc'; import { GameObject } from '../GameObjects/GameObject'; import GameObjectType from '../Enums/GameObjectType'; import ColorType from '../Enums/ColorType'; const { ccclass, property } = _decorator; interface Level { type: string; color: string; x: number; y: number;...
import 'dart:convert'; import 'package:http/http.dart' as https; import '../../../export.dart'; class NetworkService { static final NetworkService _instance = NetworkService._init(); static NetworkService get instance => _instance; NetworkService._init(); Future<dynamic> http<T extends IBaseModel>( Str...
use arbitrary::Arbitrary; use serde::{Deserialize, Serialize}; use std::sync::Arc; pub mod arena; #[derive(Debug, Clone, PartialOrd, Ord, PartialEq, Eq, Hash, Arbitrary, Serialize, Deserialize)] pub struct Label(Arc<String>); #[derive(Debug, Clone, PartialOrd, Ord, PartialEq, Eq, Hash, Arbitrary, Serialize, Deserial...
--- layout: post type: socratic title: "Socratic Seminar 44" meetup: https://www.meetup.com/chibitdevs/events/hsqwssyfckbrb/ --- ## V3 bitcoin transactions! <https://bitcoinops.org/en/topics/version-3-transaction-relay/> <https://github.com/bitcoin/bitcoin/pull/25038/files#diff-8fe49384f6ab8be91802eb5d0f528fa521e301...
import java.util.Scanner; abstract class Calc{ protected int a; protected int b; abstract void setValue(int a, int b); abstract int calculate(); } class Add extends Calc{ public void setValue(int a, int b) { super.a = a; super.b = b; } public int calculate() { return a + b; } } class Sub extends Calc{ p...
import * as React from 'react'; import { hCaptchaLoader, initSentry } from '@hcaptcha/loader'; import { getFrame, getMountElement } from './utils.js'; import { breadcrumbMessages, scopeTag } from "./constants"; class HCaptcha extends React.Component { constructor (props) { super(props); /** *...
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { BehaviorSubject } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class TranslationService { private language = new BehaviorSubject<string>('en'); private translations = new BehaviorSubject<any>({}); ...
<?php namespace App\Http\Controllers; use App\Models\Post; use Intervention\Image\Facades\Image; use Illuminate\Http\Request; class PostsController extends Controller { public function __construct() { $this->middleware('auth'); } public function index() { $users = auth()->user()->fo...