text
stringlengths
184
4.48M
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Setup\Test\Unit\Controller; use Laminas\View\Model\JsonModel; use Laminas\View\Model\ViewModel; use Magento\Setup\Controller\Navigation; use Magento\Setup\Model\Cron\Statu...
import 'dart:math'; import 'package:flutter/material.dart'; class AnimatedContainerPage extends StatefulWidget { @override _AnimatedContainerPageState createState() => _AnimatedContainerPageState(); } class _AnimatedContainerPageState extends State<AnimatedContainerPage> { double _width = 50.0; double _heigh...
package com.example.shopapp.controller; import com.example.shopapp.dtos.OrderDetailDTO; import com.example.shopapp.exceptions.DataNotFoundException; import com.example.shopapp.models.Order; import com.example.shopapp.models.OrderDetail; import com.example.shopapp.responses.OrderDetailResponse; import com.example.shopa...
# Nano Stores Logger <img align="right" width="92" height="92" title="Nano Stores logo" src="https://nanostores.github.io/nanostores/logo.svg"> Logger of lifecycles, changes and actions for **[Nano Stores]**, a tiny state manager with many atomic tree-shakable stores. * **Clean.** All messages are stacked in co...
from abc import ABC, abstractmethod from typing import Dict, Optional from redis import Redis class DataStore(ABC): @abstractmethod def add_redirect(self, src: str, target: str) -> None: raise NotImplementedError @abstractmethod def get_target(self, src: str) -> Optional[str]: raise...
import {Component, OnInit} from '@angular/core'; import {UserModel} from '../../models/UserModel'; import {UserService} from '../../services/user.service'; import {FormBuilder, FormGroup, Validators} from '@angular/forms'; import {AlertHelper} from '../helpers/alert.helper'; import {AuthService} from '../../services/au...
%% %% This file is part of the `xindy'-project at the %% Technical University Darmstadt, Computer Science Department %% WG System Programming, Germany. %% %% This source is entirely written in the `noweb' literate programming %% system. %% %% History at end %% %% \RCS $Id$% \RCS $Author$% \RCS $Revision$% \RCS $RCSfile...
<?php namespace App\Controllers; use App\Models\CrudModel; use App\Models\DataModel; class Crud extends BaseController { function index() { $crudModel = new CrudModel(); $data['tbl_data'] = $crudModel->orderBy('id', 'DESC')->paginate(10); $data['pagination_link'] = $crudModel->pager; return vie...
package vn.ehealth.web.auth; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.conf...
import React, { useState } from "react"; import { TextField, Button, Box } from "@mui/material"; import { styled } from "@mui/material/styles"; interface FormData { awardName: string; } const InputField = styled(TextField)({ marginBottom: "1rem", }); const InsertAward: React.FC = () => { const [formData, setFo...
import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:ngewibu/app/constants/color.dart'; import '../../../data/models/detail_complate.dart' as complate; import '../../../routes/app_pages.dart'; import '../controllers/anime_complate_controller.dart'; class AnimeComplateView extends Ge...
// framework import { useEffect, useMemo, useState } from "react"; import { v4 } from "uuid"; // util import { shouldRightSideCollapse } from "../../util/mechanics/shouldRightSideCollapse"; import { AllPlayersProps } from "../../util/propTypes"; import { useCurrentPlayer } from "../../hooks/useCurrentPlayer"; import {...
import { handler } from "./app"; import * as dynamoDBUtils from "../../db/dynamoDB/utils"; import { APIGatewayProxyEvent } from "aws-lambda"; const mockEvent200: APIGatewayProxyEvent = { pathParameters: null, body: `{"description": "Mock description","price": 1,"title": "Mock title","count": 1}`, headers: {}, ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Brain.hpp :+: :+: :+: ...
export const blueprintOpenAP = [ { name: "Open AP Template", slug: "open_ap/Open_AP_Template", access: ["*"], fields: [ { key: "tranId", type: "string", label: "Tran Id", readonly: false, constraints: [ ...
import * as React from "react"; import * as ReactDom from "react-dom"; import { Version } from "@microsoft/sp-core-library"; import { type IPropertyPaneConfiguration, PropertyPaneDropdown, } from "@microsoft/sp-property-pane"; import { BaseClientSideWebPart } from "@microsoft/sp-webpart-base"; import { IReadonlyThe...
60. Permutation Sequence Solved Hard Topics Companies The set [1, 2, 3, ..., n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, we get the following sequence for n = 3: "123" "132" "213" "231" "312" "321" Given n and k, return the kth permutation sequence. Exa...
from django.shortcuts import render, redirect from django.contrib import messages # Restrict User///// from django.contrib.auth.decorators import login_required # imported for if user is not the right user // from django.http import HttpResponse # imported for the user registration # from django.contrib.auth.for...
package com.kubikdata.controller; import com.kubikdata.domain.Username; import com.kubikdata.domain.JwtToken; import com.kubikdata.controller.request.UserSessionRequest; import com.kubikdata.infrastructure.UserSessionRepository; import com.kubikdata.service.JwtBuilderGeneratorService; import org.junit.Assert; import o...
import { Movies } from './components/Movies' import { useMovies } from './hooks/useMovies' import { useSearch } from './hooks/useSearch' import './App.css' import { useState } from 'react' import debounce from 'just-debounce-it' import { useCallback } from 'react' function App() { const [sort, setSort] = useState(f...
package org.example; import com.opencsv.CSVWriter; import org.example.database.ConnectDatabaseMySQL; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { private static final Scanner sc = new ...
// @ts-nocheck import { StatusCodes } from 'http-status-codes' import * as express from 'express' import type { Request, Response, NextFunction, Application } from 'express' import { createClient } from 'redis' import * as helmet from 'helmet' import * as session from 'express-session' import type { SessionOptions } ...
> 本文由 [简悦 SimpRead](http://ksria.com/simpread/) 转码, 原文地址 [juejin.cn](https://juejin.cn/post/7204389419700518967) 1 Gradle 的一些概念 -------------- Android Studio 默认的构建工具为 Gradle。在使用 Gradle 的过程中会碰到一些概念,理清他们的含义关系对我们使用和深入理解 Gradle 至关重要。 ### 1.1 Gradle 、AGP(Android Gradle Plugin)、 buildTools 分别是什么,他们之间什么关系? ![](https://p3-...
/* * Copyright (c) 2021, UC Innovation, Inc. All Rights Reserved. * http://www.ucinnovation.com * * This source code is licensed, not sold, and is subject to a written * license agreement. Among other things, no portion of this source * code may be copied, transmitted, disclosed, displayed, distri...
import React,{useState} from 'react' import 'codemirror/lib/codemirror.css' import 'codemirror/theme/material.css' import 'codemirror/mode/xml/xml' import 'codemirror/mode/javascript/javascript' import 'codemirror/mode/css/css' import {Controlled as ControlledEditor} from 'react-codemirror2' import {FontAwesomeIcon} f...
<template> <v-card max-width="60em" class="mx-auto"> <v-toolbar flat> <v-row align="center"> <v-col cols="auto"> <v-toolbar-title v-if="user"> <a v-if="user_profile_url" :href="user_profile_url">{{ user.display_name }}</a> <span v-else>{{ u...
import { DatePicker, TimePicker, message } from "antd"; import axios from "axios"; // import moment from "moment"; import dayjs from "dayjs"; import React, { useEffect, useState } from "react"; import { useParams } from "react-router-dom"; import { Store } from "../../components/Online-shopping-components/Store"; impor...
import { Vector3 } from "three"; import { generateUUID } from "three/src/math/MathUtils"; import { SimpleDimensionLine, LengthMeasurement, } from "../../measurement/LengthMeasurement"; import { Components } from "../../core/Components"; import { UI, Component, Event, FragmentIdMap, UIElement, } from "../....
@startuml Title <size:20>\nPattern: Factory Method\n interface LoggerFactory { + createLogger(): Logger } class FileLoggerFactory implements LoggerFactory { - filePath + __construct() + createLogger(): Logger } class StdoutLoggerFactory implements LoggerFactory...
import axios from 'axios' import React, { useEffect, useState } from 'react' import { Link } from 'react-router-dom' import {Swiper , SwiperSlide} from 'swiper/react' import {Navigation} from 'swiper/modules' import SwiperCore from 'swiper' import 'swiper/css/bundle' import ListingItem from '../components/ListingItem' ...
from typing import Literal import os import numpy as np import scipy import polars as pl import torch import elsa import faiss import sentence_transformers import adm.files import adm.params import adm.settings def make_sparse_interactions_matrix(*, train_test: Literal['train', 'test'] | None) -> scipy.sparse.csr_...
import React from 'react'; import { render } from '@utils/TestHelper'; import Button from '@components/common/Button/index'; import DefaultColor from '@themes/DefaultColor'; import { Platform, View } from 'react-native'; import _ from 'lodash'; import Touchable, { containerStyleKeys } from '@components/common/Button/To...
import { useState } from 'react'; import {useNavigate} from "react-router-dom"; function RegistrationPage(){ var navigate = useNavigate() const [data,setData] = useState({ username:"", password:"", firstname:"", lastname:"", re_password : "", }); const {username,...
#include "board.h" #include "piece.h" #include "player.h" #include <string> #include <fstream> #include <iostream> #include <QMouseEvent> #include <QPainter> #include <QPointF> #include <QImage> #include <QPainterPath> #include <QColor> #include <QList> #include <QFileDialog> #include <QDebug> #include <locale> B...
import { ImageList, ImageListItem } from '@mui/material'; import React from 'react'; import { RootStateOrAny, useSelector, useDispatch } from 'react-redux'; import { Link } from 'react-router-dom'; import SearchForm from '../../component/searchComp/SearchForm'; import { searchQuery } from '../../redux/slice'; type Re...
import React, { useState, useEffect } from "react"; import { Col, Row, Radio, Space, Collapse } from "antd"; import "../..//style/pay-form-contact.scss"; import { useContext } from "react"; import { CustomerContext } from "../../../../providers/CustomerContext"; import { creditCards } from "./credit-cards.js"; import F...
<!DOCTYPE html> <html> <head> <title>Bakery</title> <link rel="icon" type="image/x-icon" href="assets/images/thebakery.png"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="format-detection" content="telepho...
import DeleteIcon from "@mui/icons-material/Delete"; import { Box, Button, Container, IconButton, List, ListItem, ListItemText, Typography, } from "@mui/material"; import { useCallback, useEffect, useState } from "react"; import { useAlert } from "../../hooks/useAlert"; import axios from "../../service...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_substr.c :+: :+: :+: ...
import SwiftUI // MARK: - /// SplitView の Detail View /// /// Detail View 側のナビゲーションスタックの管理を行う struct ContentDetailView: View { /// 詳細画面のNavigationPath @State private var detailPath = NavigationPath() /// 表示する値 let markdown: Markdown /// 水平サイズクラス let horizontal: UserInterfaceSizeClass? /// ア...
import { IsNumber, IsNotEmpty, IsString } from "class-validator"; export class CreateSaleDto { @IsNotEmpty() sales_id: number; @IsNumber() @IsNotEmpty() customer_id: number; @IsString() @IsNotEmpty() code: string; @IsNumber() shipping_cost: number; @IsString() shippi...
import PropTypes from 'prop-types' import React from 'react' import { connect } from 'react-redux' import { fetchAllLists, reorderList, previewListOrder } from '../../actions/list' import { moveListItem } from '../../actions/list-item' import { getActiveListID } from '../../reducers/activeList' import { getSortedLists...
import React, { useEffect, useState } from "react"; import RateComponent from "./RateComponent/Rate"; import InputField from "./InputFieldComponent/InputField"; import CommentButton from "./Button/CommentButton"; import TextArea from "./TextArea/TextArea"; import axios from "axios"; import "./styles/AddComment.css" co...
class Editor { // Websocket private _ws = null private _wsActive = false private _localStorageConfigs = 'OpenVRNotificationPipe.BOLL7708.Config' private _localStorageConfigNames = 'OpenVRNotificationPipe.BOLL7708.ConfigNames' private _localStorageLastConfigName = 'OpenVRNotificationPipe.BOLL770...
import axios from 'axios' import React, { useEffect, useState } from 'react' import Navbar from '../commonComponent/Navbar' import Scroll from '../commonComponent/Scroll' export default function Get_list() { const url = "https://jsonplaceholder.typicode.com/users" const [list, setList] = useState([]) con...
from dotenv import load_dotenv load_dotenv() import streamlit as st import os import sqlite3 import google.generativeai as genai ## Configuring my Genai Key genai.configure(api_key=os.getenv("GOOGLE_API_KEY")) ## This is the function To Load Google Gemini Model and provide queries as response def get_gemini_respo...
#include "Form.hpp" Form::Form() : Name(""), GradeSign(0), GradeExec(0){ this->SignedStatus = false; } Form::Form(std::string Name, int sign, int exec) : Name(Name), GradeSign(sign), GradeExec(exec){ if(GradeSign < 1 || GradeExec < 1) throw GradeTooHighException(); if(GradeSign > 150 || GradeExec ...
Please answer the below core-java Questions: What is programing language? A. A programming language is a formal language, which comprises a set of instructions used to produce various kinds of output. Programming languages are used in computer programming to create programs that implement specific algorithms. Wha...
import type { Metadata } from "next"; import { Toaster } from "sonner"; import { Inter } from "next/font/google"; import "./globals.css"; import { ThemeProvider } from "@/components/providers/theme-provider"; import { ConvexClientProvider } from "@/components/providers/convex-provider"; import { ModalProvider } from "@...
package day30_a_arraylist; import java.util.ArrayList; import java.util.Arrays; /* Remove Long Strings Create a method that will accept an ArrayList of Strings and an int. Remove any String elements that have less characters than the given number. Return the modified ArrayList of Strings @param ...
import { waitFor } from '@testing-library/react'; import type Vi from 'vitest'; import fakeAddress from '__mocks__/models/address'; import { poolData } from '__mocks__/models/pools'; import { renderComponent } from 'testUtils/render'; import { useGetPools } from 'clients/api'; import useGetPool, { type UseGetPoolOut...
### KAPLAN-MEIER ### variaveis pensadas previamente # DIRETO # maternal_age # newborn_weight # num_prenatal_appointments # tp_maternal_rece # num_live_births # tp_labor # tp_marital_status ### # tempo e status y <- Surv(df$tempo_dias, df$status) y # analise km para tempo e status KM <- survfit(y ~ 1, data = df) KM...
<!DOCTYPE html> <html> <head> <title>Mini Facebook API v0.1</title> {# <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> #} <link type="text/css" rel="stylesheet" href="static/css/materialize.min.css"> <link rel="shortcut icon" href="/static/favicon.ico"> {# <script type="text/...
/* * Copyright (C) 2013 OpenJST Project * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This progra...
<template> <div> <el-table style="width: 100%" border :data="records" v-loading="loading"> <el-table-column type="index" label="序号" width="80" align="center"> </el-table-column> <el-table-column prop="skuName" label="名称" width="width"> </el-table-column> <el-table-column prop="skuDes...
command SPECTROGRAM <trc> [<lo-t> <hi-t>] <spgwith> <spgstep> <outfile> key: Spectrogram Computes spectrogram of a trace and writes the result to a text file. The result may be viewed with 'mapspec': setenv UIDPATH $SH_SOURCE/img/mapspec.uid $SH_SOURCE/img/mapspec <datafile> 30 # 30 is number of colours used Th...
<?php /* * $Id: TouchTask.php 144 2007-02-05 15:19:00Z hans $ * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. ...
package Pages; import org.openqa.selenium.By; import io.appium.java_client.MobileElement; import io.appium.java_client.android.AndroidDriver; import io.appium.java_client.android.AndroidElement; import testCommons.Errors; public class Options extends Page { /********************/ /* *** Elements *** */ /******...
package BasicExercises.Collection.TreeSet; import java.util.TreeSet; import java.util.Iterator; public class TreeSet6_10 { public static void main(String[] args) { System.out.println("Exercise 6"); /* Напишите программу на Java для клонирования списка наборов деревьев в другой набор дер...
#include <SoftwareSerial.h> #include <ESP8266WiFi.h> #include <WiFiClientSecure.h> #include <UniversalTelegramBot.h> #include <ArduinoJson.h> SoftwareSerial mega(4,5); // Wifi network station credentials #define WIFI_SSID "Ray" #define WIFI_PASSWORD "12345678" // Telegram BOT Token (Get from Botfather) #define CHAT_I...
// Function to format the date and time function formatTime(date) { var utcDate = date + 'Z'; var dateTime = new Date(utcDate); var formattedTime = dateTime.toLocaleTimeString('da-DK', { hour: '2-digit', minute: '2-digit', hour12: false, timeZone: 'Europe/Copenhagen' })...
// // UserController.swift // HypeCloudKit // // Created by Maxwell Poffenbarger on 2/6/20. // Copyright © 2020 Maxwell Poffenbarger. All rights reserved. // import Foundation import CloudKit class UserController { //MARK: - Properties let publicDB = CKContainer.default().publicCloudDatabase ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_substr.c :+: :+: :+: ...
import React, { useEffect, useState } from 'react' import useAuth from '../../hooks/useAuth' import { FaArrowLeft } from "react-icons/fa6"; import axios from "axios" import toast, { Toaster } from 'react-hot-toast'; import useDownloadPdf from '../../hooks/useDownloadPdf'; function ViewReport({ reportId, onHandleViewNo...
using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.IdentityModel.Tokens; using MongoDB.Driver; using System.Text; using wellbeing_of_mind.Infastructure; using wellbeing_of_mind.Domain; var build...
import { Container, Image, Table } from "react-bootstrap"; import NavbarComponent from "../components/Navbar"; import { exIngredients } from "../examplemeals"; import { ButtonComponent } from "../components/ButtonComponent"; import IngredientFormModal from "../components/IngredientFormModal"; import { useState } from "...
// Copyright 2021-2024 The Connect 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 // // Unless required by applicable law or...
import PySimpleGUI as sg import tkinter as tk import pandas as pd def registro(gastos): border_style = { "border_width": 2, "relief": tk.SOLID } categorias = ('TRANSPORTE', 'COMIDAS Y BEBIDAS', 'INVERSION', 'VIAJES', 'ELECTRONICA', 'MEDICINA', 'OTROS') sg.theme('LightBlue') titu...
jest.mock('@ng-bootstrap/ng-bootstrap'); import { ComponentFixture, TestBed, inject, fakeAsync, tick } from '@angular/core/testing'; import { HttpResponse } from '@angular/common/http'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { of } from 'rxjs'; import { NgbActiveModal } from '@n...
import React, {useEffect, useState} from 'react'; import {ErrorMessage, Field, Form, Formik} from "formik"; import * as Yup from "yup"; import {Link, useNavigate, useParams} from "react-router-dom"; import * as homeService from "../../service/HomeService.jsx" import {toast} from "react-toastify"; function ContractEdit...
// react and next import React, { useState } from 'react'; import getConfig from 'next/config'; import Link from 'next/link'; // material ui import { DropzoneArea } from 'mui-file-dropzone'; import Typography from '@mui/material/Typography'; import Box from '@mui/material/Box'; import Stack from '@mui/material/Stack';...
/*************************************************************************** # Copyright (c) 2015-21, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications th...
/** * Product controllers for handler request * @module controllers/orderControllers */ import { Request, Response, NextFunction } from "express"; import { IProduct } from "../index.type"; import ProductService from "../services/product.service"; /** * product services for all crud operation in db * @const */ c...
package com.raven.database.entity import androidx.room.ColumnInfo import androidx.room.Embedded import androidx.room.Entity import androidx.room.PrimaryKey @Entity(tableName = "articles") data class ArticleDB( @PrimaryKey @ColumnInfo("id") val id: Long, @ColumnInfo("url") val url: String, @Col...
package com.example.nitro; import static android.content.ContentValues.TAG; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.content.pm.ActivityInfo; import android.os.Bundle; import android.util.Log; import android.view.View; import a...
from claseEmpleado import Empleado class Contratado(Empleado): __fechaInicio: str __fechaFinalizacion: str __cantHrsTrabajadas: float __valorXhr: float def __init__(self, dni=None, nombre=None, direccion=None, telefono=None, fechaInicio=None, fechaFinalizacion = None,cantHrsTrabaj...
<main class="form-signin w-100 m-auto"> <form [formGroup]="registerForm"> <img class="mb-1" src="/assets/img/logo.png" alt="Logo" width="150"> <h2 class="h2 mb-2 fw-normal">EtecBook</h2> <h5 class="mb-3 fw-normal">Criar sua Conta!!!</h5> <div class="form-floating mb-2"> ...
import { Box, Button, Flex, VisuallyHidden } from '@chakra-ui/react'; import { useMemo } from 'react'; import { PaginationInfo } from '../modules/shared/common.types'; type PaginationProps = PaginationInfo & { onPrev: () => void; onNext: () => void; }; export function Pagination({ onPrev, onNext, page, pageCount ...
/** * @file Parking.h * @author Jamie Brown/Luis Howell * @brief * @version 0.1 * @date 2019-02-17 * * @copyright Copyright (c) 2019 * */ #ifndef PARKING_H #define PARKING_H #include <QWidget> #include <QPushButton> #include <QLabel> #include <QTimer> #include <QElapsedTimer> #include <QSoundEffect> #incl...
/* Albums vs Individual Tracks The Chinook store is setup in a way that allows customer to make purchases in one of the two ways: purchase a whole album purchase a collection of one or more individual tracks. The store does not let customers purchase a whole album, and then add individual tracks to that same pu...
# SpaceshipTitanic_TensorFlow_RandomForest This notebook walks you through how to train a baseline Random Forest model using TensorFlow Decision Forests on the Spaceship Titanic dataset made available for Kaggle competition. The code will look as follows: ``` import tensorflow_decision_forests as tfdf import pandas ...
# Claw Full Stack Developer Intern Interview Task ## Task Submission 23 May 2024 Provided a links to postman API used, Live project links and my GitHub repository containing the source code for both the front-end and back-end. Additionally, include instructions on how to set up and run the application locally. - Fro...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <link rel="styleshee...
import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:rss_interactive_v2/constants/color_constants.dart'; import 'package:rss_interactive_v2/models/coin_model.dart'; class CoinCard extends StatelessWidget { final CoinModel coinModel; const CoinCard({super.key, required this.coinMod...
import React, {useEffect} from 'react'; import {AppDispatch, RootState} from '../../store/types'; import {connect} from 'react-redux'; import {FlatList, StyleSheet, View} from 'react-native'; import {ISetsDispatchProps, ISetsProps, ISetsStateProps} from './types'; import { getAllSets, getIsSetsRecordsLoaded, } from...
import { ActionFunctionArgs, redirect, useActionData, useLoaderData, } from "react-router-dom"; import { getUsers } from "../helpers/api/getUsers"; import { createPost } from "../helpers/api/createPost"; import { NewPostType } from "../types/newPostType"; import { FormErrorsType } from "../types/formErrorsType"...
import PostHeader from "./post-header"; import classes from "./post-content.module.css"; import ReactMarkdown from "react-markdown"; import Image from "next/image"; import { Prism as SyntaxHighlighter } from "react-syntax-highlighter"; import { atomDark } from "react-syntax-highlighter/dist/cjs/styles/prism"; // const...
#include "lists.h" /** * add_nodeint_end- creates node * @head: pointer to head * @n: int * Return: pointer */ listint_t *add_nodeint_end(listint_t **head, const int n) { listint_t *new_node = (listint_t *) malloc(sizeof(listint_t)); listint_t *last = *head; if (new_node == NULL) { free(new_node); retur...
import {Component} from 'react' import './index.css' class Speedometer extends Component { state = {count: 0} accelerate = () => { const {count} = this.state if (count < 200) { this.setState(prevState => ({count: prevState.count + 10})) } } brake = () => { const {count} = this.state ...
import { Component, OnInit, NgModule, signal } from '@angular/core'; import { CommonModule } from '@angular/common'; import { GeneralModule } from 'src/app/general/general.module'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { HelperService, Messages, MessageType } from 'src/app/admin/helper.service';...
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors // // SPDX-License-Identifier: Apache-2.0 package ttl_test import ( "context" "time" "github.com/go-logr/logr" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/api...
<!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>CSS Grid Layout</title> <style> body { display: grid; grid-template-colu...
// // Created by ned on 08/12/22. // import SwiftUI import NukeUI struct SettingsView: View { @StateObject private var viewModel = SettingsViewModel() @State private var point: CGPoint = .zero @State private var degrees: Double = 0 @State private var imageHeight: CGFloat = 160 var b...
package com.candroid.candroidrcc026 import android.os.Bundle import android.view.View import androidx.appcompat.app.AppCompatActivity import com.candroid.candroidrcc026.databinding.ActivityMainBinding import com.google.android.gms.ads.AdRequest import retrofit2.Call import retrofit2.Callback import retrofit2.Response...
// Load the data from the CSV file d3.csv("datasets/merged_dataset.csv").then(function(data) { // Parse the data and convert strings to appropriate types data.forEach(function(d) { d.date = d3.timeParse("%Y-%m-%d")(d.date); d.approve_estimate = +d.approve_estimate; d.frequency = +d.freq...
import React, { useState } from "react"; import "./CreateProduct.css"; import { useAlert } from "react-alert"; import { Button } from "@material-ui/core"; import MetaData from "../layout/MetaData"; import AccountTreeIcon from "@material-ui/icons/AccountTree"; import DescriptionIcon from "@material-ui/icons/Description"...
import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { BoardsModule } from './boards/boards.module'; import { ConfigModule } from '@nestjs/config'; import { TypeOrmModule } from '@nestjs/typeorm'; import { BoardsEntity } from './bo...
import { SnackbarContent, Button, List, Checkbox, ListSubheader, ListItemText, ListItemIcon, Card, CardContent, CardActions, } from '@material-ui/core' import ListItemButton from '@material-ui/core/ListItemButton' import { useMap } from 'react-use' import type { ExternalPluginLoa...
use std::io::Write; use std::path::{Path, PathBuf}; use futures_util::{Future, StreamExt, TryFutureExt}; use once_cell::sync::Lazy; use reqwest::{Body, Client, ClientBuilder, IntoUrl, Response, Url}; use serde::de::DeserializeOwned; use tokio::io::AsyncWriteExt; use tokio::{fs, io}; use crate::prelude::*; use crate::...
--- date: 2024-02-03 19:03:19.668689-07:00 description: "How to: Lua does not support regular expressions natively in the same\ \ way as languages like Perl or Python. Instead, it offers pattern matching\u2026" lastmod: '2024-03-13T22:45:00.196217-06:00' model: gpt-4-0125-preview summary: Lua does not support regular...