text
stringlengths
184
4.48M
import React, { ChangeEvent, useCallback } from "react"; import "./InputSearch.css"; import { actionSetLatAndLong, actionSetTextSearchInput, } from "../../Store/Action"; import { useDispatch, useSelector } from "react-redux"; import { selectorSearchVariants, selectorTextSearchInput, } from "../../Store/Selecto...
<!--I have used parts of the course notes, course examples and the My Apps example provided as inspiration and guideline on how to structure this sheet--> <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="classproject.css"> <title>The Most Major Takeaways</title> </head> <body> <h1 class="title">Major Takea...
<% layout('/layouts/boilerplate') %> <div class="row"> <div class="col-6"> <div class="card mb-3"> <img src="<%= campground.image %>" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title"> <%= ca...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import "./BananaswapV1ERC20.sol"; import "./libraries/Math.sol"; import "./libraries/BananaswapV1Library.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; contract BananaswapV1Pair is BananaswapV1ERC20 { uint256 public constant MIN_LIQUIDITY = 1...
internal class Program { private static void Main(string[] args) { var x = new Client(); x.main(); } } class Client { public void main() { Console.WriteLine("ConcreteCreater1 is running"); ClientCode(new ConcreateCreator1()); Console.WriteLine("\n \n"); ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>My Profile</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <!-- font awesome --> <link rel="stylesheet" type="text/css" href="css/font-awesome.css" /> <!-- main css --> <link rel="stylesheet" typ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* echo.c :+: :+: :+: ...
\subsection{Lumped capacitance} \begin{minipage}{0.39 \linewidth} Idea: The temperature in a body is almost uniform, so we can assume it to be uniform. Temperature within body will now be $T(t)$ instead of $T(t, x, y, z)$. That means, the temperature difference inside the body $\Delta T_i = ...
import { useState, useEffect } from "react"; import Cell from "./Components/Cell"; const App = () => { const [cells, setCells] = useState(["", "", "", "", "", "", "", "", ""]); const [go, setGo] = useState("circle"); const [winningMessage, setWinningMessage] = useState(null); const message = go=="circle"?"Coca...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Carbon\Carbon; class BeritaWisataController extends Controller { public function index() { // Retrieve paginated data $data = DB::table('berita_wisata') ->where('isDeleted', 0) ...
import type { Meta, StoryObj } from '@storybook/react'; import { Loader } from './Loader'; // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction const meta = { title: 'UI/Loader', component: Loader, tags: ['autodocs'], argTypes: { size: { select: 'radio', options: ...
// // ChatListViewModel.swift // Ask ME // // Created by Omid on 5.08.2023. // import Foundation import SwiftUI import FirebaseFirestore import FirebaseFirestoreSwift import OpenAI class ChatListViewModel : ObservableObject { @Published var chats : [AppChat] = [] @Published var loadingState : ChatList...
"use client"; import Form from "@/components/molecules/Form"; import Header from "@/components/molecules/Header"; import PostItem from "@/components/molecules/PostItem"; import CommentFeed from "@/components/organisms/CommentFeed"; import usePost from "@/hooks/usePost"; import { MoonLoader } from "react-spinners"; ex...
import React, { useContext } from "react"; import { Link } from "react-router-dom"; import MainContext from "../contextApi/MainContext"; import Logo from "../images/logo.png"; export default function Navbar() { const mainContext = useContext(MainContext); const { user, logout } = mainContext; const handleClick ...
import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/ods_flutter_app_localizations.dart'; import 'package:ods_flutter/components/lists/ods_list_radio_button.dart'; import 'package:ods_flutter/components/lists/ods_list_switch.dart'; import 'package:ods_flutter/components/sheets_bottom/ods_sheets_...
// // main.m // Prog_3.2 // Program to ork with fractions - class version // // Created by Perry R Gabriel on 12/12/14. // Copyright (c) 2014 Raw Games. All rights reserved. // #import <Foundation/Foundation.h> //---- @interface section --- @interface Fraction : NSObject -(void) print; -(void) setNumerator: (i...
package cnc; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframe...
import Document, { Html, Head, Main, NextScript } from "next/document"; import CssBaseline from "@mui/material/CssBaseline"; class MyDocument extends Document { render() { return ( <Html> <Head> <link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect"...
// // EpisodesView.swift // RickAndMorty // // Created by Manuel Rodriguez Sebastian on 17/4/24. // import SwiftUI struct EpisodesView: View { @StateObject var viewModel: EpisodesViewModel init(viewModel: EpisodesViewModel = EpisodesViewModel()) { self._viewModel = StateObject(wrappedValue: vi...
{% extends 'base.html' %} {% load static %} {% load i18n %} {% block content %} <!-- END nav --> <section id="home-section" class="hero"> <div class="home-slider owl-carousel"> {% for item in carousel_items %} <div class="slider-item" style="background-image: url({{ item.image.url }});"> <div class="ove...
/* eslint-disable */ import React, { useState, useEffect } from 'react'; import Typography from '@mui/material/Typography'; import { FormControl,Box, TextField, FormLabel, RadioGroup, Radio, FormControlLabel, Alert } from '@mui/material'; /** * This functional component renders the payment details form * when u...
import client from '../../config/db/db'; import { user } from '../../api/models/types/user'; import User from '../../api/models/user.model'; describe('User Model', () => { beforeAll(async () => { const sql = `DELETE FROM users; ALTER SEQUENCE users_id_seq RESTART WITH 1;`; const conn = await client.co...
/* * Copyright (C) 2008 Esmertec AG. * Copyright (C) 2008 The Android Open Source 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/LICEN...
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode() {} * TreeNode(int val) { this.val = val; } * TreeNode(int val, TreeNode left, TreeNode right) { * this.val = val; * this.left = left; * ...
export default { load: () => { return async (dispatch, getState, services) => { dispatch({ type: 'teachers/load-start' }); try { const res = await services.api.request({ url: `/api/Teacher` }); dispatch({ type: 'teachers/load-success', payload: { data: res.data } }...
import time import click import rich_click as click from rich.console import Console from rich.progress import Progress from rich.traceback import install import requests install() console = Console() def validate_symbol(ctx, param, value): if not value: raise click.BadParameter('Symbol must be provided')...
"use client" import Footer from '@/src/components/Footer'; import Input from '@/src/components/Input'; import Menu from '@/src/components/Menu' import MenuMobile from '@/src/components/MenuMobile'; import React, { useState, FormEvent, useRef, RefObject } from 'react' import { Body, Folders, FolderName, Folder, Primeira...
/* tslint:disable max-line-length */ import { ComponentFixture, TestBed, async, inject, fakeAsync, tick } from '@angular/core/testing'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { Observable } from 'rxjs/Observable'; import { JhiEventManager } from 'ng-jhipster'; import { InvoiceappTestModule...
/*Example: address (&) v.s. dereferencing (*) */ #include <iostream> using namespace std; int main() { int a; int * aPtr; a = 7; aPtr = &a; cout << "The address of a is " << & a << "\nThe value of aPtr is " << aPtr; cout << "\n\nThe value of a is" << a << "\nThe val...
/******************************************************************************* * Copyright (C) 2019 Michael Berger * * 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 t...
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/black" android:orientati...
/* ! tailwindcss v3.0.24 | MIT License | https://tailwindcss.com */ /* 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) */ *, ::before,...
/** * Copyright (c) 2020-present, Goldman Sachs * * 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 l...
import React, { useEffect, useState } from "react"; import { getSign } from "../../../api/knowLedgeModule"; import "./index.less"; // Loading import Loading from "../../../components/Loading"; function Sign() { // 数据列表 const [list, setList] = useState([]); // 当前选中分类 const [currentCate, setCurrentCate] = useStat...
#pragma warning(disable : 4996) #include<iostream> #include<iomanip> using namespace std; bool IsLeapYear(short Year) { return (Year % 4 == 0 && Year % 100 != 0) || (Year % 400 == 0); } short ReadYear() { cout << "Enter a year: "; int Year; cin >> Year; return Year; } short ReadMonth() { cout << "Enter a mon...
package com.example.ecommerce.adapter import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.example.ecommerce.R import com....
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <!-- Title --> <title>Afrika Global Gender Academy</title> <!-- Link to css style file and queries file --> <link rel="stylesheet" href="./css/style.css" /...
import React from 'react'; import ReactDOM from 'react-dom/client'; import { createBrowserRouter, RouterProvider } from "react-router-dom"; import reportWebVitals from './reportWebVitals'; import ErrorPage from './Pages/ErrorPage'; import Header from './Pages/Header/Header'; import Main from './Pages/Main'; import Pro...
/** * Formata o tempo total em segundos para a impressão * * @param timeInSeconds Tempo total em segundos * * @returns Retorna o tempo formatado em "HH:MM:SS" */ export default function formatTime(timeInSeconds: number): string { const hours = Math.floor(timeInSeconds / (60 * 60)) const minutes = Mat...
import 'package:SMP/theme/common_style.dart'; import 'package:SMP/utils/Strings.dart'; import 'package:SMP/utils/size_utility.dart'; import 'package:flutter/material.dart'; class AdminOpenIssiesGridViewCard extends StatefulWidget { final Function press; final List users; final String baseImageIssueApi; final ...
/* p、q分别为指向该二叉树中任意两个结点的指针,设p在q的左边。找到p和q的公共结点r 算发思想:采用后序遍历的非递归算法,使用两个辅助栈,一个栈存放p的所有祖先结点,另一个存放q的所有祖先结点,再从栈顶开始逐个匹配,第一个匹配的元素即为最近公共结点 */ #include <stdio.h> #include <stdlib.h> #define ElemType int typedef struct BiTNode { ElemType data; struct BiTNode *lchild, *rchild; } BiTNode, *BiTree; //先序遍历递归建立二叉链表 ...
'''From Youtube channel 0612 TV w/ NERDfirst https://www.youtube.com/watch?v=y1ahOBeyM40 January 17, 2019''' import copy import time start = time.time() hard = '.........5.3.67...9..3421.......4.....1...72...2.1.....3......9.8.1..2.....75.8.6' expert = '....7..6....185..945.9........8...1.62.........3.....7...4.6......
import { DataTypes, Model } from 'sequelize' import sequelize from '../instance' class User extends Model { } User.init({ id: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true, unique: true }, firstname: { type: DataTypes.STRING(45), allowNull: false...
import * as chalk from 'chalk' import { readTextFile } from '../../lib' const data = readTextFile(__dirname + '/input.txt') enum Opponent { Rock = 'A', Paper = 'B', Scissors = 'C', } export enum Me { Rock = 'X', Paper = 'Y', Scissors = 'Z', } enum ShapeScore { Rock = 1, Paper = 2, Scissors = 3, }...
<?php namespace App\Http\Controllers\Admin\Market; use Illuminate\Http\Request; use App\Models\Market\Product; use App\Http\Controllers\Controller; use App\Http\Requests\Admin\Market\StoreRequest; use App\Http\Requests\Admin\Market\StoreUpdateRequest; use Illuminate\Support\Facades\Log; class StoreController extends...
import React, { useEffect, useState } from 'react'; import { Message } from './Message'; export const SimpleForm = () => { const [formState, setFormState] = useState({ username: 'marco', email: 'email@example.com', }); const { username, email } = formState; const onInputChange = ({ target }) => { ...
import os from datetime import datetime from django.conf import settings import requests import json import random from cdt_newsletter.utils import generate_page_content, create_qmd_file from repository.utils import create_push_request from repository.models import Publication, Conference from cdt_newsletter.models i...
import {Op} from "sequelize"; export interface Pagination { currentPage?: number; numOfItemsPerPage?: number; numOfPages?: number; nextPage?: number; previousPage?: number; } export const filterQuery = (query: any) => { const queryObject = {...query}; // EXCLUDE To Use Them For Filtering, Sorting, Limit...
package com.chen.graduation.filters; import lombok.Data; import lombok.Setter; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.context.properties.ConfigurationProp...
# Generate random variates from a theoretical distribution. # distr = name of function, follow conventional R methods. E.g. "norm", "pois", "lnorm", "exp", etc. # The function uses the random generation function for each distribution (if it exists), e.g. for distr="norm", "rnorm" is used. # para = named list with param...
// // PostDetailsVC.swift // Final Project // // Created by Omar Tharwat on 4/8/22. // Copyright © 2022 Omar Tharwat. All rights reserved. // import UIKit import Alamofire import SwiftyJSON import NVActivityIndicatorView class PostDetailsVC: UIViewController { var post : Post! var comments : [Comment] = [...
//Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721) // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma experimental ABIEncoderV2; import "./Rachel.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721Enumera...
import React from 'react'; import { Public_Sans } from 'next/font/google'; import AnswerInput from '@/components/AnswerInput/AnswerInput'; import useRaindrops from '@/hooks/useRaindrops'; import RainDrop from '@/types/RainDrop'; import useAudio from '@/hooks/useAudio'; import ScoreDisplay from '@/components/ScoreDispla...
import copy import matplotlib.pyplot as plt import numpy as np import pandas as pd from src.jguides_2024.utils.array_helpers import min_positive_val_arr from src.jguides_2024.utils.interval_helpers import check_intervals_list from src.jguides_2024.utils.plot_helpers import plot_intervals from src.jguides_2024.utils.s...
import { UserAlreadyExistsError } from "@/services/errors/user-already-exists-error" import { MakeUserRegisterService } from "@/services/factories/make-userRegister-service" import { FastifyRequest, FastifyReply } from "fastify" import { z } from "zod" export async function userRegister(req: FastifyRequest, res: Fasti...
import React, { ChangeEvent, useState, ChangeEventHandler, FormEvent } from 'react'; import Box from '@mui/material/Box'; import TextField from '@mui/material/TextField'; import Button from '@mui/material/Button'; import Stack from '@mui/material/Stack'; import { Typography } from '@mui/material'; import { IUserModel }...
var provider = require("/demandables/provider"); var serviceFactory = require("/demandables/services/servicefactory"); var util = require("/demandables/util"); var log = require("log"); log.setLevel("info"); var document = require("document"); const MIN_CAPACITY = 8; /** * This class implements the behavior of a bas...
package slogtest import ( "log/slog" "regexp" "slices" "github.com/stretchr/testify/assert" ) type Matcher struct { inplaceAssertF []func(t assert.TestingT, record slog.Record) afterAssertF []func(t assert.TestingT, records []slog.Record) t assert.TestingT handlerAssertF []func() } func NewMa...
<x-app-layout> <link href="{{ asset('assets/css/bootstrap.min.css')}}" rel="stylesheet" /> <div class="modal fade" tabindex="-1" id="deleteModal"> <div class="modal-dialog"> <div class="modal-content"> <form action="{{ route('player.delete') }}" method="post"> @csrf...
package gui.dashboard.trainer_dashboard.training_management; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.io.BufferedReader; import java.io.IOException; import java.io.PrintWriter; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import...
<template> <q-btn icon="logout" :label="$t('components.internal.auth.logout.buttonLabel')" class="btnAuth" @click="onLogout" /> </template> <script setup lang="ts"> import { Notify } from 'quasar'; import { useRouter } from 'vue-router'; import { logoutUser } from 'src/services/AuthServices/login-service'; import { ...
// // Network.swift // MovieAppCase // // Created by Toygun Çil on 21.09.2022. // import Foundation import Alamofire let apiKey = "9c61371b" let baseUrl = "https://www.omdbapi.com/?" struct Endpoint { static let searchTitle = "s=" static let detailId = "i=" static let searchType = "&type=movie" st...
import { HttpClientModule } from '@angular/common/http'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BrowserModule } from '@angular/platform-browser'; import { NgModule, LOCALE_ID } from '@angular/core'; import { TableModule } from 'primeng/table'; import { AppComponent } f...
# TODO List That's a simples CRUD of a Todo card. The main purpose is to exercise somethings and also learn others. ## What you'll find here? * Go * Docker * Rest API * Postgres * OpenTelemetry * Prometheus (soon..) * Grafana (soon..) * Kubernetes (soon..) * Kong API Gateway (soon..) ## How to run in Docker You mu...
<?php /** * The admin-specific functionality of the plugin. * * @link https://www.maciejziemichod.com * @since 1.0.0 * * @package Graph_Widget * @subpackage Graph_Widget/admin */ /** * The admin-specific functionality of the plugin. * * Defines the plugin name, version, and two examples hooks ...
<!DOCTYPE html> <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> <head> <th:block th:include="include :: header('卡片分组信息列表')" /> </head> <body class="gray-bg"> <div class="container-div"> <div class="row"> <div class="col-sm-12 search-co...
from __future__ import annotations from typing import Optional import os import aiosqlite from .embed import Embed from config import Guild_id, DB_NAME, PASSWORD, PORT, USER, HOST from logging import getLogger; log = getLogger("Bot") from discord.ext import commands import discord __all__ = ( "Bot", ) class B...
import { mocked } from 'jest-mock' import { contactDB } from '../database' import formatNumber from './formatNumber' jest.mock('../database') const mockedContactDB = mocked(contactDB, true) beforeEach(() => { jest.clearAllMocks() }) it('Formats an number into the expected shape', () => { return expect(formatNu...
import express from 'express'; import cors from 'cors'; import { Celulares } from './lista.js'; //objeto// let Listacelulares = [ new Celulares(24, "samsung", 2500, 2022), new Celulares(54, "Iphone", 2500, 2021), new Celulares(92, "Motorola", 2500, 2023), new Celulares(18, "Lg", 2500, 2018) ] ...
'use client'; import React from 'react'; import clsx from 'clsx'; // hooks & utils import useSearch from './useSearch'; import { filterData, isValueInFilter } from '@utils/filterUtils'; // components import MotionContainer from '@components/Layout/MotionContainer'; import Message from '@components/Message/Message'; i...
import React from "react"; import { FcApproval } from "react-icons/fc"; import { RxCross2 } from "react-icons/rx"; import BookingTour from "./BookingTour"; import RatingForm from "./RatingForm"; const AboutTour = ({ tour }) => { return ( <div> <div className="pt-12 bbg-gray-800 btext-gray-100 ...
import { configureStore, ReducersMapObject } from '@reduxjs/toolkit'; import { currencyReducer } from 'entities/currency'; import { StateSchema } from './stateSchema'; export function createRootStore(initialState?: StateSchema) { const rootReducer: ReducersMapObject<StateSchema> = { currency: currencyReduc...
// import React, { useState, useContext } from 'react' // import { Redirect } from 'react-router-dom' // import { Alert, AlertTitle } from '@material-ui/lab' // import { CardContent, Card } from '@material-ui/core' // import CryptoJS from 'crypto-js' // import Header from './header' // import LoginForm from './login-f...
import ArrowForwardIcon from '@mui/icons-material/ArrowForward' import CalendarMonthIcon from '@mui/icons-material/CalendarMonth' import { CardContent, Typography, CardActions, Grid, CardHeader } from '@mui/material' import React from 'react' import { Link } from 'react-router-dom' import * as S from 'pages/Article/st...
import 'package:flutter/material.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'adicionar_evento_tela.dart'; import 'adicionar_fornecedor_tela.dart'; import 'adicionar_orcamento_tela.dart'; import 'adicionar_servico_avulso_tela.dart'; class BemV...
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common'; import { UnitsService } from './units.service'; import { Prisma } from '@prisma/client'; @Controller('units') export class UnitsController { constructor(private readonly unitsService: UnitsService) { } @Post() create(@Body() cr...
import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { AbstractControl, FormGroup, ReactiveFormsModule } from '@angular/forms'; import { ActivatedRoute } from '@angular/router'; import { from, of, Subject, throwError } from 'rxjs'; im...
#include <stdio.h> #include<stdlib.h> // Node definition struct Node{ int data ; struct Node *left ; struct Node *right; / }; struct Node* makeTree(){ int inputData ; struct Node *p ; printf("Enter the data or -1 to terminate\n") ; scanf("%d", &inputData) ; if(inputData == -1) ...
import { mnemonicToWalletKey, mnemonicNew } from "ton-crypto"; import { compileFunc } from '@ton-community/func-js'; import fs from 'fs'; // we use fs for reading content of files import { Cell } from "ton-core"; import { beginCell } from "ton-core"; import { Address } from "ton-core"; import { sign } from "ton-crypto"...
import { error } from "./error.js"; import { IToken, TokenType, Literal, NULL, getBinPrec } from "./lexer.ts"; export class Parser { private index = 0; private tokens = new Array<IToken>(); private consume(amount = 1): IToken { const token = this.tokens[this.index]; this.index += amount; ...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/mman.h> #include <errno.h> #include <string.h> #include <time.h> #include <fcntl.h> #include <unistd.h> #include <sys/resource.h> #include <sys/time.h> double cpu_load(double start, double end, double used) { return used / (end - start) * 10...
--- description: "Cara Gampang mengolah Sayur bumbu kuning santan (Telor,Tahu,ayam dan kacang panjang) yang mudah" title: "Cara Gampang mengolah Sayur bumbu kuning santan (Telor,Tahu,ayam dan kacang panjang) yang mudah" slug: 2053-cara-gampang-mengolah-sayur-bumbu-kuning-santan-telor-tahu-ayam-dan-kacang-panjang-yang-m...
package nextcp.domainmodel.device.mediaserver.search; import java.util.ArrayList; import java.util.List; import org.jupnp.support.model.DIDLContent; import org.jupnp.support.model.container.Container; import org.jupnp.support.model.item.Item; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import nextcp.dto...
(ns status-im2.contexts.wallet.create-account.view (:require [quo.core :as quo] [quo.theme :as quo.theme] [react-native.core :as rn] [react-native.safe-area :as safe-area] [reagent.core :as reagent] [status-im2.common.standard-authentication.standard-auth.view :as standard-auth] [status-im...
// // LessonCollectionViewCell.swift // α // // Created by Sola on 2021/1/14. // Copyright © 2021 Sola. All rights reserved. // import UIKit class LessonCollectionViewCell: UICollectionViewCell { // MARK: - Models var lesson: Lesson! // MARK: - Controllers // TODO: protocol ...
--- title: Testare i tuoi provider --- import { AutoSnippet, When } from "../../../../../src/components/CodeSnippet"; import createContainer from "!!raw-loader!/docs/essentials/testing/create_container.dart"; import unitTest from "!!raw-loader!/docs/essentials/testing/unit_test.dart"; import widgetTest from "!!raw-loa...
<div class="row"> <h2>Modifier les structures</h2> <div class="col-md"> <h4>Structure status : En ligne</h4> <ul class="list-group" *ngFor="let structure of structures"> <li class="list-group-item" *ngIf="structure.status === 'online'"> <h4>{{ structure.name }}</h4> <p>{{ structure._id...
package com.yjkj.chainup.new_version.fragment import android.os.Handler import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import android.view.View import com.google.gson.Gson import com.yjkj.chainup.R import com.yjkj.chainup.base.NBaseFragment import com.yjkj.chai...
rm(list = ls()) library(Matrix) # for sparse matrix library(tidyverse) T = 601 T.eff = T - 1 # effective T, due to one lag N = 15 time.marker = rep(1:T, N) # to hand the diff between y and its lag # dependent variable and regressors Y.raw <- rnorm(N*T) Y <- matrix( Y.raw[time.marker != 1], ncol = 1 ) # remove t...
<!DOCTYPE html> <html lang="en-US"><head> <meta charset="UTF-8" /> <title>Sudoku Game</title> <!-- CS 3312, spring 2017 Final Project YOUR NAME(s): Anna Porter and Michael McCarver --> <!-- GOALS: Create basic sudoku layout without pencil marks Save previous input Clear previous input for all and for each puzzle Have...
<?php declare(strict_types=1); namespace Laser\Core\Framework\Test\DataAbstractionLayer\Event; use PHPUnit\Framework\TestCase; use Laser\Core\Content\Product\ProductDefinition; use Laser\Core\Defaults; use Laser\Core\Framework\Context; use Laser\Core\Framework\DataAbstractionLayer\EntityRepository; use Laser\Core\Fra...
package com.openclassrooms.tourguide.service; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionException; import java.util.concurrent.ExecutionException; import java.util.concurren...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateEstacionBombeoTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('estacion...
package pl.elgrandeproject.elgrande.entities.user; import jakarta.persistence.*; import jakarta.validation.constraints.Email; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.NoArgsConstructor; import lombok...
class Solution { public: int helper(int idx1, int idx2, string &s1, string &s2, vector<vector<int>> &dp) { if (idx1 < 0 || idx2 < 0) return 0; // longest length if one string becomes 0 is 0 if (dp[idx1][idx2] != -1) return dp[idx1][idx2]; if (s1[idx1] == s2[idx2...
<?php namespace App\Http\Requests\Category; use Illuminate\Foundation\Http\FormRequest; class CategoryCreateRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * @return bool */ public function authorize(): bool { return auth()->user()->is_...
import React, { useState, useEffect, useContext } from 'react'; import SidebarLayout from 'src/layouts/SidebarLayout'; import MYS from '../../../Styles/mystyle.module.css' import Badge from '@mui/material/Badge'; import Select from '@mui/material/Select'; import InputLabel from '@mui/material/InputLabel'; import M...
import React from "react"; import { Col, Container, Row } from "react-bootstrap"; import { useSelector } from "react-redux"; import CategoryCard from "./CategoryCard"; import "./CategoryCard.css"; function AllCategories() { const { categories } = useSelector((state) => state.categories); return ( <Container c...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSuppliersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('suppliers', f...
import 'package:ecommerce_application/core/service/database/cart_database_helper.dart'; import 'package:ecommerce_application/model/cart_product_model.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; class CartViewModel extends GetxController { ValueNotifier<bool> get loading => _loading...