text stringlengths 184 4.48M |
|---|
PHP Arrays
==========
An array stores multiple values in one single variable:
Example
========
<?php
$cars=array("Volvo","BMW","Toyota");
echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";
?>
What is an Array?
An array is a special variable, which can hold more than one value at a time.
If you ha... |
---
description: 스트림이 지원하는 다양한 연산을 배워보자.
---
# 5장: 스트림 활용
이번 장에서는 아래 메서드들을 차근차근 살펴본다. 🐳
<figure><img src="../../.gitbook/assets/image (29).png" alt=""><figcaption><p><a href="https://javaconceptoftheday.com/java-8-streams-beginners-guide/">https://javaconceptoftheday.com/java-8-streams-beginners-guide/</a></p></fig... |
import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
import { SpaRessourcePostDto } from './dto/SpaDto/Post'
import Spa from 'App/Models/Spa'
import Image from 'App/Models/Image'
import File from 'App/Models/File'
import { v4 as uuid } from 'uuid'
import { SpaImageRessourcePostDto } from './dto/SpaDt... |
import { Router } from "express"; // Importa el Router de Express
import cartDao from "../dao/mongoDao/cart.dao.js"; // Importa el Data Access Object (DAO) para los carritos
const router = Router(); // Crea una nueva instancia del Router de Express
// Ruta para crear un nuevo carrito
router.post("/", async (req, r... |
navCAS navigation system
@author: Axel Mancino (axel.mancino@gmail.com)
#ifndef AXIS_ANNOTATION_2D_H
#define AXIS_ANNOTATION_2D_H
#include <mitkVtkAnnotation2D.h>
#include <mitkLocalStorageHandler.h>
#include <mitkAnnotation.h>
#include <vtkSmartPointer.h>
#include <vtkAxisActor2D.h>
class vtkPolyData;
class vtk... |
/* eslint import/no-namespace:0 */
/* eslint react/forbid-component-props: 0 */
import React from "react";
import { BsArrowRight } from "react-icons/bs";
import { RiCloseFill } from "react-icons/ri";
import { AirsLink } from "../../AirsLink";
import {
BannerButton,
BannerItem,
BannerList,
BannerTitle,
CloseC... |
package GET_Request;
import java.io.IOException;
import org.testng.annotations.Test;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.markuputils.CodeLanguage;
import com.aventstack.extentreports.markuputils.ExtentColor;
import com.aventstack.extentreports.markuputils.MarkupHelper;
i... |
"use client";
import { useState } from "react";
import Image from "next/image";
const ProductCard = ({ product }) => {
const [toggleText, setToggleText] = useState(false);
return (
<div className="py-8">
<Image
src={product.img}
alt="product_image"
width={480}
height={36... |
//
// HomeVideosContainerView.swift
// NewLife
//
// Created by Shadi on 27/02/2019.
// Copyright © 2019 Inceptiontech. All rights reserved.
//
import UIKit
class HomeVideosContainerView: UIView {
@IBOutlet weak var collectionView: UICollectionView!
@IBOutlet weak var pageControl: UIPageControl!
... |
import Image, { StaticImageData } from 'next/image';
import Grid from './Grid';
interface ProductGridWithImageProps {
image: StaticImageData;
reverseOrder?: boolean;
products: JSX.Element[];
additionalClasses?: string;
}
const ProductGridWithImage = ({
image,
reverseOrder,
products,
additionalClasses,... |
Welcome
Welcome
Welcome to the Distant Worlds tutorial. In this tutorial you will learn the basics of how to run your empire.
To progress through each step of this tutorial click the 'Continue' button.
You can move this tutorial window by dragging it with the mouse.
Let's get started: click the 'Continue' button bel... |
#' Create Specifications for R Function
#'
#' @title Create Specifications for R Function
#' @description This function generates specifications for an R function from your selected text or clipboard.
#' It takes in a text input, model name, verbosity, and tone speed to generate the specifications.
#' @param Model A... |
import { Injectable } from '@angular/core';
import {AuthChangeEvent, createClient, Session, SupabaseClient} from '@supabase/supabase-js';
import {environment} from "../../../environments/environment";
import { Profile } from '../interfaces/profile';
@Injectable({
providedIn: 'root'
})
export class AuthService {
pr... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Template extends MY_Restrictedzone {
public function password()
{
$this->load->model('User_model', 'User');
$data = array(
'controller' => 'template',
'page' => 'password',
'title' => 'Site info',
);
$data['successful'... |
import 'package:dartz/dartz.dart';
import 'package:finjan/core/error/failure.dart';
import 'package:finjan/features/home/data/model/coffe_category.dart/cofffee_category_model.dart';
import 'package:finjan/features/home/data/remote_data/remote_data.dart';
import 'package:finjan/features/home/domain/repository/get_coffe_... |
class Size : Step {
static [string] hidden $description = @'
Specify the size of your Software Risk Manager deployment using
the following guidelines:
SIZE | TOTAL PROJECTS | DAILY ANALYSES | CONCURRENT ANALYSES
-------------------------------------------------------------------
Small 1 - 100 ... |
import React, { useState } from "react";
import { Button, Card, TextField, Typography } from "@mui/material";
import "./SavingsCard.css"; // Import your CSS for transition
import { useNavigate } from "react-router-dom";
import { dateState } from "./store/atoms/date";
import { useRecoilState } from "recoil";
const Savi... |
<!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>
<div id="app">
<div v-text="message"></div>
<!-- {{}}在网络延迟情况下会出现暂显的情况,对用户不友好 -->
{{message}}
<hr>
<di... |
#!/usr/bin/python3
''' Island Perimeter '''
def island_perimeter(grid):
"""
Args:
grid (list): A list of lists representing the grid.
Returns:
int: The perimeter of the island described in a gird.
"""
if not grid:
return 0
rows = len(grid)
cols = len(grid[0])
... |
use crate::loader_config::Configurable;
use crate::Configs;
use serde::Deserialize;
use std::fs;
use std::path::Path;
#[derive(Debug, Deserialize)]
pub struct Cert {
pub cert: String,
pub key: String,
}
pub struct CertKey {
pub cert: Vec<u8>,
pub key: Vec<u8>,
}
impl CertKey {
pub fn new(cert: Ve... |
<?php
/* **************************************************************************************
Testimonials Post Type
************************************************************************************** */
add_action( 'init', 'swm_posttype_testimonials' );
function swm_posttype_testimonials() {
$labels = ar... |
import axios from 'axios'
import { useQuery } from 'react-query'
import MatchDetailSectionError from '../../error/MatchDetailSectionError'
import SkeltonStatisticsLoader from '../../loader/SkeltonStatisticsLoader'
import { Away, Heading, Home, ItemWrapper, Jursey, Label, Manager, ManagerImage, ManagerName, SummaryWrapp... |
package com.okhttpclientdemo.Room;
import android.content.Context;
import androidx.room.Database;
import androidx.room.Room;
import androidx.room.RoomDatabase;
import com.okhttpclientdemo.models.User;
@Database(entities = {Person.class, User.class}, version = 1, exportSchema = false)
public abstract class AppDataba... |
import { expect } from "chai";
import { UsersController } from "../../lib/controllers/users.controller";
import { AuthController } from "../../lib/controllers/auth.controller";
import { checkStatusCode, checkResponseTime } from "../../../helpers/functionsForChecking.helper";
const users = new UsersController();
const ... |
"""
withdraw!(
model::AbstractModel,
t;
withdraws = Transaction(0.0, -1.0, 0.0)
)
Schedules withdraws from investments as specified in `withdraws`.
# Arguments
- `model::AbstractModel`: an abstract Model object
- `t`: current time of simulation in years
# Keywords
- `withdraws = T... |
import { addHours, differenceInSeconds } from "date-fns";
import { useEffect, useMemo, useState } from "react";
import { Swal } from "sweetalert2";
import { useCalendarStore } from "../../hooks";
import { useUiStore } from "./../../hooks/useUiStore";
export const useCalendarState = () => {
const { isDateModalOpen,... |
# 责任链模式
## 1.定义
> 使多个对象都有机会处理请求,从而避免了请求的发送者和接收者之间的耦合关系。
> 将这些对象连成一条链,并沿着这条链传递该请求,直到有对象处理它为止。
> 重点在“链“上,由一条链去处理相似的请求,在链中决定谁来处理这个请求,并返回相应的结果。
> 核心在“链”上,“链”是由多个处理者ConcreteHandler组成的。
## 2.应用
> 在实际应用中,一般会有一个封装类对责任模式进行封装,也就是替代Client类,直接返回链中第一个处理者,
> 具体链的设置不需要高层次模块关系。这样,更简化了高层次模块的调用,减少模块间的耦合,提高系统的灵活性。
### 2.1优点
> 责任链模式非常显著的优... |
// context/MyContext.js
import { createContext, useContext, useState } from "react";
import { fetchMovies } from "../utils/helpers";
// Create the context
const FetchMovies = createContext();
// Create a provider component
export function FetchMoviesProvider({ children }) {
const [movies, setMovies] = useState([]);... |
import 'package:ceklpse_pretest_mobiledev/app/data/repositories/updateprofile/update_profile_repository_implementation.dart';
import 'package:ceklpse_pretest_mobiledev/app/domain/entities/common_entity.dart';
import 'package:ceklpse_pretest_mobiledev/app/domain/usecase/updateprofile/verify_password_use_case.dart';
impo... |
<template>
<div class="img3 adminlogin">
<form @submit.prevent="login" method="post">
<div class="form9">
<div class="title4a">Sign In</div>
<div class="input-container3 ic13">
<input id="userid" class="input3" type="text" placeholder=" " name=... |
//React solo puede tener un parametro y puede tener cualquier nombre obviamente. Por practica se lo conoce como props. Ya que son uno o muchos datos enviados a esa componente. Este parametro props va a crear un objeto y dentro va a meter las distintas propiedades
function MiPrimerPromp(props){ // props = {parrafo={"Es... |
<template>
<div class="person">
<h2>sum:{{ sum }}</h2>
<button @click="add">add</button>
</div>
<hr>
<img v-for="(dog,index) in dogList" :src="dog" alt="" :key="index">
<button @click="getDog">oneMoreDog</button>
</template>
<script setup lang="ts" name="Person">
import {ref ,... |
require('dotenv').config()
const mongoose = require('mongoose');
const cloudinary = require('cloudinary').v2;
const express = require('express');
const Movie = require('./Models/Movie')
const multer = require('multer');
const cors = require('cors')
const { S3Client } = require('@aws-sdk/client-s3')
const multerS3 = req... |
<div class="form">
<h1>Create Reservation</h1>
<form (ngSubmit)="onSubmit()">
<mat-form-field appearance="fill" class="input-field">
<mat-label>Room Type</mat-label>
<mat-select [(value)]="roomType" name="roomType" [(ngModel)]="roomType" required>
<mat-option value="single">Single</mat-opti... |
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<%@ Register Assembly="Ext.Net.UX" Namespace="Ext.Net.UX" TagPrefix="ux" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:/... |
<!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>Document</title>
<style>
/* 字号
·记得加px */
.size {
font-size: 30px;
... |
//@ts-check
import React, { useEffect, useState } from "react";
import { useLocalStorage } from "../hooks/useLocalStorage";
import { v4 as uuid } from "uuid";
//@ts-ignore
import TodoItem from "./TodoItem";
import {
DndContext,
closestCenter,
useSensor,
PointerSensor,
useSensors,
} from "@dnd-kit/core";
impor... |
using System.Text.Json.Serialization;
namespace OpayoPaymentsNet.Domain.Entities.Enums
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum PaymentAccountAgeIndicator
{
/// <summary>
/// No account (guest check-out).
/// </summary>
GuestCheckout,
/// <sum... |
package id.arya.portofolio.ecommerce.product;
import id.arya.portofolio.ecommerce.util.WebResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping("/api/... |
import 'package:flutter/material.dart';
import 'package:mobix/app/app_theme.dart';
import '../../shared/types/types.dart';
import '../../features/phones/phone_item/phone_item.dart';
class PhoneList extends StatelessWidget {
final List<Phones> phones;
const PhoneList({super.key, required this.phones});
@override
... |
import batFramework as bf
import pygame
import threading
from .style import style
from .customScene import CustomScene
from random import randint
def load_credits():
filepath = bf.ResourceManager().get_path("assets/creditcredit.txt")
res = []
try:
with open(filepath, 'r') as file:
res ... |
import 'package:flutter/material.dart';
import 'package:tiktok/app/data/service/video_controll.dart';
import 'package:tiktok/app/view/post/videoCrad.dart';
import '../../data/model/video.dart';
Widget feedVideos() {
ViedeoControll videoControll = ViedeoControll();
return FutureBuilder<List<Video>>(
future: v... |
# ssr
> + [项目地址](https://github.com/aladingmaideng/ssr)
## ssr与csr的区别
> + ssr为服务端渲染,csr为客户端渲染
```html
<!-- csr -->
<body>
</body>
<script>
document.querySelector('body').innerHTML = `<div>111</div>`
</script>
```
```html
<!-- ssr -->
<body>
<div>111</div>
</body>
```
> + 明显的区别就是:
> + csr的逻辑为请求到html,然后获... |
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 16 15:58:22 2021
@author: Mark Zaidi
Many of the Nd-conjugated antibodies have been using thresholds on the median cell/nucleus measurement as a means of
classifying a cell as positive or negative for that marker. Now that IMC_despeckler.py removes the speckle artifact
t... |
#include "lists.h"
/**
* reverse_listint - reverse linked list
*
* Return: pointer to the head node
*
* @head: pointer to the first pointer
*
*/
listint_t *reverse_listint(listint_t **head)
{
listint_t *tmp = NULL, *forward = NULL;
while (*head != NULL)
{
forward = (*head)->next;
(*head)->next = tmp;
... |
The bug in the provided code is in the inner loop where the value of the loop iterator `i` and the comparison operator are incorrect.
The nested for loop iterates as long as the condition specified is true. However, the condition provided `for (int i = 0; i >= size; i++)` has an incorrect comparison `i >= size` which... |
/**
* Adds nullability to given type, an opposite of TS standard NonNullable.
*/
export type Nullable<T> = T | null;
/**
* String containing CommonMark text.
*
* @see https://commonmark.org
*/
export type CommonMarkString = string;
/**
* String representing a URL, or parts of them.
*/
export type URLString = ... |
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe JobOccupationSerializer, type: :serializer do
context 'Individual Resource Representation' do
let(:resource) { FactoryBot.build(:job_occupation, id: '1') }
let(:serialization) { JsonApiSerializer.serialize(resource) }
subject do
... |
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***************************... |
import pygame
import print_render as pr
import text_wrap as tw
def display_spell_page(screen, spell, marginWidth, marginHeight):
screen.fill((252, 245, 229))
#set fonts
titleFont = pygame.font.Font("assets/RINGM___.TTF", 35)
bodyFont = pygame.font.Font("assets/MorrisRoman-Black.ttf", 18)
#text wrap ... |
__author__ = 'prahlad.sharma'
from virgin_utils import *
class SelectShip(General):
"""
Page class for Ship Selection Page
"""
def __init__(self, web_driver):
"""
To initialise the locators
:param web_driver:
"""
super().__init__()
self.webDriver = web... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 2 12:26:33 2023
@author: yintingchiu
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import math
from scipy.interpolate import make_interp_spline
plt.rc_context({'axes.edgecolor':'grey', 'xtick.color':'grey', 'ytick.col... |
Option Explicit
Function GetCPMX(Address As String) As String
'-----------------------------------------------------------------------------------------------------
'This function returns the postal code of a given address using the Google Geocoding API.
'The function uses the "simplest" form of Google... |
# -*- coding: utf-8 -*-
from mxnet import nd,autograd
from mxnet.gluon import data as gdata
from mxnet.gluon import nn
from mxnet import init
from mxnet.gluon import loss as gloss
from mxnet import gluon
# create dataset
num_inputs = 2
num_examples = 1000
true_w = [2, -3.4]
true_b = 4.2
features = nd.random.normal(sc... |
import { createAsyncThunk, createSlice, current, Dispatch } from "@reduxjs/toolkit";
import axios from "../../service/axios"
export const fetchFriends = createAsyncThunk(
"friends/fetchFriends",
async () => {
const response = await axios.get("/friendship/friends");
return response.data;
}
)
export const newFri... |
import SwiftUI
import UniformTypeIdentifiers
@available(macOS 12.0, *)
struct TabFindRotateAndMore: View {
@ObservedObject var doc: GrandArtDocument
@Binding var requiresFullCalc: Bool
var body: some View {
HStack {
Text("Maximum tries:")
DelayedTextFieldDouble(
placeholder: "10,000",
... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {HomepageComponent} from "./homepage/homepage.component";
import {LoginComponent} from "./login/login.component";
import {RegisterComponent} from "./register/register.component";
export const routes: Routes = [
{... |
package thread;
/**
* The TheadLocal construct allows us to store data that will be accessible only by a specific thread.
*
* Let's say that we want to have an Integer value that will be bundled with the specific thread:
*
* ThreadLocal<Integer> threadLocalValue = new ThreadLocal<>();
* Next, when we want to use... |
import 'dart:async';
import 'package:control_panel/data_structures/fridge.dart';
import 'package:control_panel/data_structures/hubs.dart';
import 'package:control_panel/libraries/get_updates.dart';
import 'package:flutter/material.dart';
bool _finishedLoading = false;
class OverviewViewModel with ChangeNotifier {
... |
<!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>New year new target</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="... |
package persistence;
import org.json.*;
import model.Item;
import model.Warehouse;
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.nio.file.*;
//allows the reading/ loading of database
public class JsonReader {
private String fileName = "database";
private JSONObject jsonObject;
... |
<!DOCTYPE html>
<html lang="ko">
<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>레이아웃 유형1 grid</title>
<style>
* {
margin: 0;
padding: 0;
}
... |
import React, { Component } from "react";
import {
AppBar,
IconButton,
Link,
Toolbar,
Typography,
Button,
TextField,
CircularProgress,
} from "@material-ui/core";
import GitHubIcon from "@material-ui/icons/GitHub";
const blue = "#80d8ff";
const TitleContents = (props) => {
const {
selectFeature,... |
---
title: Добавить аннотацию со стрелкой в документ
linktitle: Добавить аннотацию со стрелкой в документ
second_title: GroupDocs.Аннотация .NET API
description: Узнайте, как добавлять аннотации со стрелками в документы с помощью GroupDocs.Annotation для .NET. Повышайте четкость и интерактивность документа без особых у... |
<template>
<div class="navbar">
<img src="../../assets/images/logo.png" class="sidebar-logo-big">
<breadcrumb class="breadcrumb-container" />
<div class="right-menu">
<el-dropdown class="avatar-container" trigger="click">
<div class="avatar-wrapper">
<el-image
class="icon user-avatar"
... |
from bs4 import BeautifulSoup
from couchpotato.core.event import fireEvent
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import getTitle, tryInt, cleanHost
from couchpotato.core.logger import CPLog
from couchpotato.core.providers.torrent.base import TorrentProvider
from ... |
import UIKit
enum MissmatchError: Error {
case nameMissmatch
case numberMissmatch
}
func test(){
}
// 에러를 던지는 메소드
func GuessMyName(name input: String) throws{
print("guessMyName() called")
if input != "승재"{
print("X")
throw MissmatchError.nameMissmatch
}
print("O")
}
... |
//
// ContentView.swift
// pract
//
// Created by 한빈 on 2023/01/02.
//
import SwiftUI
struct SettingsView: View {
@State var searchText = ""
@State var toggling = false
@State var wifiConnection = false
var body: some View {
NavigationStack {
Form {
Section ... |
import React, { memo } from 'react';
import { IComponentPackage, IStoreMonitor, StoreMonitorContext } from '@lowcode-engine/core';
import { STORE_NAME as RENDERER_STORE_NAME } from '@lowcode-engine/renderer';
import { STORE_NAME as EDITOR_STORE_NAME } from '@lowcode-engine/editor';
import { connectReduxDevtools } from ... |
<?php
namespace App\Http\Requests;
use App\Extrant;
use Gate;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Http\Response;
class UpdateExtrantRequest extends FormRequest
{
public function authorize()
{
abort_if(Gate::denies('extrant_edit'), Response::HTTP_FORBIDDEN, '403 Forbidden');
... |
# Basic HTML canvas-based game starter
This repository contains basic files to get you started with a canvas based game using Javascript. No library, nothing fancy.
## TODO
- [] Create a rectangle
- [] Make it move
- [] Animation loop
## Docs
- [Canvas API - MDN](https://developer.mozilla.org/en-US/docs/Web/API/C... |
/*
* Copyright IBM Corporation 2021
*
* 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 o... |
package com.agrapana.arnesys.helper
import android.content.Context
import android.util.Log
import com.agrapana.arnesys.config.*
import info.mqtt.android.service.MqttAndroidClient
import org.eclipse.paho.client.mqttv3.*
import org.eclipse.paho.client.mqttv3.MqttClient
class MqttClientHelper(context: Context?) {
c... |
# Explore LLaMA-2
Here is an attempt to understand how stable diffusion works through the working code.
Thanks to [Umar Jamil](https://www.youtube.com/watch?v=oM4VmoabDAI) for creating this amazing video tutorial.
LLaMA-2 is not a single model, but rather a collection of four models. The only difference between each... |
// ignore_for_file: public_member_api_docs, sort_constructors_first
import 'dart:convert';
import 'package:flutter/foundation.dart';
import 'package:hive/hive.dart';
import 'consumibles_model.dart';
part 'ambulancia_model.g.dart';
@HiveType(typeId: 1)
class AmbulanciaModel extends HiveObject {
@HiveField(0)
fi... |
"""堆排序
堆的向下调整特性
"""
def sift(li, low, high):
"""
:note 辅助函数,用来构建小根堆,时间复杂度为O(logn)
:param li: 列表
:param low: 堆的根结点位置
:param high: 堆的最后一个元素的位置
:return:
"""
i = low # i最开始指向根结点
j = 2 * i + 1 # j开始是左孩子
tmp = li[low] # 把堆顶存起来
while j <= high: # 只要j位置有数
if j + 1 <= hi... |
import 'package:belin_zayy_admin/bindings/edit_product_binding.dart';
import 'package:belin_zayy_admin/controllerss/all_products_controller.dart';
import 'package:belin_zayy_admin/get/color_manager.dart';
import 'package:belin_zayy_admin/inner_screens/edit_prod.dart';
import 'package:belin_zayy_admin/values/font_manage... |
<?php
/**
* @file
* Base functions and tests for Display Suite.
*/
class dsBaseTest extends BackdropWebTestCase {
/**
* Implementation of setUp().
*/
function setUp() {
parent::setUp('ds', 'ds_extras', 'search', 'ds_search', 'ds_format', 'ds_forms', 'ds_ui', 'ds_test', 'views');
variable_set('s... |
<?php
namespace App\Models;
use App\Exceptions\WrongPasswordException;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Query\Builder;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Http\Response;
use Illuminate\Notification... |
# Denoising Autoencoder for waveform data
This packages contains python scripts to train a neural network for the denoising of waveform data, as used in the publication "Deep neural network based denoising of regional seismic waveforms and impact on analysis of North Korean nuclear tests".
This package is based on the... |
import Chart from "chart.js/auto";
import { useEffect, useState } from "react";
import { useNavigate, useParams } from "react-router-dom"
import { getData } from "../util/api";
import BackButton from "../component/button/BackButton";
import HomeButton from "../component/button/HomeButton";
import swal from 'sweetalert'... |
"use client";
import React, { useEffect, useState, useTransition } from 'react'
import { Flex, Grid } from '@mantine/core'
import SpecialtySearch from '../specialtySearch'
import { SpecialtyModal } from '../specialtyModal'
import SpecialtyCard from '../specialtyCard'
import { useDebouncedValue, useDisclosure } from '@m... |
import {
Component,
OnInit,
Input,
ContentChildren,
QueryList,
AfterContentInit,
ViewChild,
AfterViewInit,
Output,
EventEmitter,
TemplateRef,
} from "@angular/core";
import { GridMaterialColumnComponent } from "./grid-material-column.component";
import { MatTableDataSource, MatTable } from "@angul... |
import { FC } from 'react'
import {PreviewContainer, TitleContainer,CollectionPreviewContainer } from './CollectionPreview.style'
import CollectionItem from '../collection-item/CollectionItem'
import { CategoryItem } from '../../store/category/category.types'
type CollectionPreviewProps = {
title: string;
prod... |
import { ChangeEvent, useCallback, useEffect, useRef, useState } from 'react';
interface Props {
onChange: (val: string) => void;
characterCount: number;
value?: string;
}
export const useCodeEditor = ({ onChange, value, characterCount }: Props) => {
const inputArr = Array.from(
{ length: characterCount }... |
import { Todo, Store } from './types';
// for updating todo
// here todos: Todo[] will takes all the data of todos in an array means it is complete list of todos therefore we've used (todos.map) function because todos will have all the data
export const updateTodo = (todos: Todo[], id: number, text: string): Todo[] =>... |
---
title: Chargement des métadonnées
linktitle: Chargement des métadonnées
second_title: API GroupDocs.Metadata .NET
description: Gérez sans effort les métadonnées des fichiers dans .NET avec GroupDocs.Metadata. Apprenez les techniques de chargement, d'édition et bien plus encore pour des capacités améliorées de manip... |
<script>
$(document).ready(function() {
$('.js-example-basic-single').select2();
});
</script>
<div class="animate__animated animate__fadeInRight animate__faster" [class]="this.uid === 'nuevo' ? '' : 'puebloMix'">
<div class="d-flex justify-content-center">
<div class="card">
<d... |
<script setup>
import HeartOutline from 'icons/HeartOutline.vue';
import Close from 'icons/Close.vue';
import ArrowLeft from 'icons/ArrowLeft.vue';
import LeadPencil from 'icons/LeadPencil.vue';
// import { useStore } from '@/stores/pins';
// const store = useStore();
const route = useRoute();
const user = useSupabas... |
//
// SecondaryUserStatusView.swift
// BodyLife3
//
// Created by David Diego Gomez on 10/01/2021.
// Copyright © 2021 David Diego Gomez. All rights reserved.
//
import Cocoa
extension Notification.Name {
public static let userSecondaryUpdated = Notification.Name(rawValue: "userSecondaryUpdated")
public s... |
# Frontend Mentor - Todo app solution
This is a solution to the [Todo app challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/todo-app-Su1_KokOW). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
## Table of contents
- [Overview](#overview)
- [The c... |
#Author: your.email@your.domain.com
#Keywords Summary :
#Feature: List of scenarios.
#Scenario: Business rule through list of steps with arguments.
#Given: Some precondition step
#When: Some key actions
#Then: To observe outcomes or validation
#And,But: To enumerate more Given,When,Then steps
#Scenario Outline: List of... |
import uuid
import json
from django.db import models
from django.urls import reverse
from django.contrib.auth.models import User
from django.contrib.auth.hashers import make_password
from utils.passwords import gen_pass
from constants.bank.models import EXISTING_GROUPS, EXISTING_THEMES, EXISTING_TYPES_OF_RULES, PERMI... |
######################################################################
### script for analysis of naive hESC scRNA-seq ###
######################################################################
##### Setup #####
library(Seurat)
library(dplyr)
library(ggplot2)
library(sctransform)
rm(list = ls())
shh... |
import React, { useState } from "react";
async function getOrders(token) {
return fetch("http://localhost:8085/orders/received", {
method: "GET",
headers: {
"Content-Type": "application/json",
authorization: token,
status: "AwaitingApproval",
},
}).then((data) => data.json());
}
asyn... |
import express from "express";
import { productModel, userModel } from "../dbRepo/Models.mjs";
import mongoose from "mongoose";
const router = express.Router();
router.post('/product', (req, res) => {
const body = req.body;
if ( // validation
!body.name
&& !body.price
&& !body.descrip... |
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
margin: 5px;
}
th, td {
padding: 5px;
}
input {
margin-bottom: 5px;
}
</style>
</head>
<body>
<button type="button" onclick="loadXMLDoc()">View Information about the Book... |
import {
MigrationInterface,
QueryRunner,
Table,
TableForeignKey,
} from 'typeorm';
export default class CreatePermissionsUsers1611522938020
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
const checkIfTableExist = await queryRunner.hasTable('permissions_users... |
### Creating a new tray
1. If there is not an entry for the data source yet in src/enums/SearchScope.ts, add it.
1. Configure the title for your tray in src/config/ScopeTitleMap.ts
1. Configure the URL for the source in src/config/ScopeUrlMap.ts. This will be shown to
the user when there are no results.
1. Configur... |
<template>
<div>
<page-search
:searchItem="formItem"
@searchQueryClick="searchQueryClick"
@resetQueryClick="resetQueryClick"
></page-search>
<page-content
:contentConfig="tableConfig"
@openClick="openClick"
></page-content>
<page-model
:modelConfig="dialogConfig... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.