text
stringlengths
184
4.48M
import React from 'react' import { FaGamepad, FaDog, FaStar, FaFilm, FaLeaf, FaLaptop, FaCalendarAlt } from 'react-icons/fa' const Hobbies: React.FC = (): JSX.Element => { const hobbiesData = [ { title: 'Videojuegos', icon: <FaGamepad />, description: 'Disfruto jugando una variedad de juegos co...
// // Created by jglrxavpok on 11/06/2021. // #include "Resource.h" #include <cstring> #include "core/utils/Assert.h" #include "core/utils/stringmanip.h" namespace Carrot::IO { VirtualFileSystem* Resource::vfsToUse = nullptr; Resource::Resource(): data(true) { data.raw = std::make_shared<std::vector<...
Based on the provided content, here's a breakdown of the vulnerability: **Root Cause:** - The vulnerability stems from the improper configuration of the "curl" library when LibreOffice is used in "LibreOfficeKit" mode. Specifically, TLS certificate verification was disabled by setting `CURLOPT_SSL_VERIFYPEER` to fals...
<template> <div style="height:100%;"> <div id="windChart"></div> </div> </template> <style scoped> #windChart{ width:100%; height:100%; } </style> <script> let echarts = require('echarts/lib/echarts') require('echarts/theme/macarons') require('echarts/lib/chart/line') require('echarts/lib/componen...
package de.fraunhofer.scai.bio.sam.service.impl; import java.util.ArrayList; import java.util.List; import org.springframework.cache.Cache; import org.springframework.cache.concurrent.ConcurrentMapCacheFactoryBean; import org.springframework.cache.support.SimpleCacheManager; import org.springframework.context.annotat...
import React from 'react'; interface BadgeProps { children: React.ReactNode; variant: 'primary' | 'secondary' | 'beginner' | 'advanced'; } export const Badge = ({ children, variant }: BadgeProps) => { const variants = { primary: 'bg-blue-100 text-blue-800', secondary: 'bg-gray-100 text-gray-800', be...
const session = require("express-session"); const express = require("express"); const app = express(); const mongoose = require("mongoose"); app.use(express.urlencoded({ extended: true })); app.set("view engine", "ejs"); app.use(express.static("public")); require("dotenv/config"); // Conexão com o MongoDB usando var...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta property="og:title" content=" 帶你學到會的線上課程 | 六角學院"> <meta property="og:description" content=" 打破影音...
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'; import BusLinePage from '@/pages/BusLinePage.vue'; import BusLineSelectedPage from '@/pages/BusLineSelectedPage.vue'; import StopsPage from '@/pages/StopsPage.vue'; const routes: Array<RouteRecordRaw> = [ { path: '/', redirect: '/bu...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.InputSystem; using Photon.Pun; using UnityEngine.UIElements; public class Player : MonoBehaviourPun, IPunObservable { enum PlayerType { Online, Offline } [Header("Types")] ...
=== muv - YouTube - Datenschutz === Contributors: meinsundvogel Plugin URI: https://wordpress.org/plugins/muv-youtube-datenschutz Stable tag: 1.0.0 Tags: YouTube, Datenschutz, Datenschutz konform, Video, einbinden, Sicherheit Requires at least: 4.9 Tested up to: 5.2.4 License: GPLv2 or later License URI: http://www.gnu...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="https://unicons.iconscout.com/release/v4.0.0/css/line.css"> <link rel="stylesheet" href="assets/css/swi...
import React, { useRef, useState } from 'react'; import { TextField, Button, Box, Typography, Dialog, DialogTitle, DialogContent, DialogActions, FormControlLabel, Checkbox, Grid } from '@mui/material'; import { Uploader } from "uploader"; import { UploadDropzone } from "react-uploader"; import { format } from 'date-fns...
import 'package:mensaje_eterno/core/constants/app_colors.dart'; import 'package:mensaje_eterno/core/widgets/handle_states_widget.dart'; import 'package:mensaje_eterno/core/widgets/primary_list_tile.dart'; import 'package:mensaje_eterno/features/azkar_doaa/presentation/controller/azkar_doaa_controller.dart'; import 'pac...
import { ChevronDownIcon } from "@radix-ui/react-icons"; import type { Chain } from "../../../../../../../chains/types.js"; import type { ThirdwebClient } from "../../../../../../../client/client.js"; import { formatNumber } from "../../../../../../../utils/formatNumber.js"; import type { Account } from "../../../../.....
import React from "react" import { Route, Routes, Navigate } from "react-router-dom" import { Home } from "./Home" import { Login } from './components/auth/Login' import { Register } from './components/auth/Register' import { AnimalList } from './components/animal/AnimalList.js' import { CustomerList } from "./componen...
// 초음파 센서 핀 설정 const int TRIG_PIN = 10; // TRIG 핀 번호 const int ECHO_PIN = 9; // ECHO 핀 번호 bool isInside = false; // 거리 안에 있는지 여부 long previousDistance = 0; // 이전 거리 값 bool readyToOut = false; int distanceCounter = 0; void setup() { Serial.begin(9600); pinMode(TRIG_PIN, OUTPUT); pinMode(ECHO_PIN, INPUT)...
import { useEffect, useState } from 'react' import { PlaylistList } from '../cmps/playlist-list' import { playlistService } from "../services/playlist.service" import { Link } from "react-router-dom" export const Home = (props) => { const [tags, setTags] = useState([]) const [cols, setCols] = useState((windo...
import React, { useState } from 'react'; import { Col, Form, Row } from 'react-bootstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faPlus } from '@fortawesome/free-solid-svg-icons'; import Button from '../../../../components/button/button'; import Loader from '../../../../components...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Base { function privateFunc() private pure returns (string memory) { return "private function called"; } function testPrivateFunc() public pure returns (string memory) { return privateFunc(); } function internal...
import { expect, it, describe, beforeEach } from 'vitest' import { compare } from 'bcryptjs' import { InMemoryOrgsRepository } from '../../repositories/in-memory/in-memory-orgs-repository' import { RegisterUseCase } from '../orgs/register' import { OrgAlreadyExistsError } from '../errors/org-already-exists-error' let ...
import { ManageAccountsOutlined, AutoAwesome, GroupAddOutlined, GroupRemoveOutlined } from "@mui/icons-material"; import { Box, Typography, Divider, useTheme, IconButton } from "@mui/material"; import UserImage from "components/UserImage"; import FlexBetween from "components/FlexBetween"; import WidgetWrapper from "com...
import { useRef, useState, memo, useEffect } from 'react' import { useTranslation } from 'react-i18next' import { ALIGN_CENTER, Box, Btn, DIRECTION_COLUMN, DIRECTION_ROW, DISPLAY_FLEX, Flex, Icon, InputField, JUSTIFY_SPACE_BETWEEN, LegacyStyledText, POSITION_FIXED, SPACING, TYPOGRAPHY, } fr...
# # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Amazon Linux AMI Security Advisory ALAS-2015-496. # include("compat.inc"); if (description) { script_id(82045); script_version("1.5"); script_cvs_date("Date: 2018/04/18 15:09:35"); script_c...
import 'package:flutter/material.dart'; import '../../utils/colors.dart'; import '../buttons/image_button.dart'; import 'fab_action_item.dart'; class FABOverlayView extends StatefulWidget { const FABOverlayView( {required this.right, required this.bottom, required this.items, this.onClosed, ...
<?php declare(strict_types=1); namespace App\Model\Entity; use Cake\ORM\Entity; /** * Menu Entity * * @property int $id * @property string $nombre * @property int $estado * @property \Cake\I18n\FrozenTime $fecha_creacion * @property \Cake\I18n\FrozenTime|null $fecha_modificacion * * @property \App\Model\Ent...
import { RouteProp } from '@react-navigation/native' import { useEffect, useState } from 'react' import { Alert, SafeAreaView, StyleSheet, View } from 'react-native' import ButtonSelection, { btnType, } from '../components/detailUser/ButtonSelection' import LevelAndPoints from '../components/detailUser/LevelAndPoin...
import { type ReactNode, createContext, useState, useEffect } from "react"; import * as Tooltip from "@radix-ui/react-tooltip"; import { getCurrentWebNotes } from "../utils/getCurrentWebNotes"; import { type ThemeOptions, type Note, type OpenOptions } from "../types"; const views = ["notes", "help"] as const; const de...
<cn> #### 单文件递归菜单 使用单文件方式递归生成菜单。 Before v2.0, 因组件内部会动态更改`a-sub-menu`的属性,如果拆分成单文件,无法将属性挂载到`a-sub-menu`上,你需要自行声明属性并挂载。为了方便,避免属性的声明,我们推荐使用函数式组件。 </cn> <us> #### Single file recursive menu Use the single file method to recursively generate menus. Before v2.0, The properties of `a-sub-menu` are dynamically changed inside ...
@* * Copyright 2023 HM Revenue & Customs * * 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 a...
import { Component } from "react"; type CounterProps = { message: string; // Prop type: string }; type CounterState = { count: number; }; class Counter extends Component<CounterProps, CounterState> { state = { count: 0, }; handleClick = () => { this.setState((prevState) => ({ count: prevState.coun...
# # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Amazon Linux AMI Security Advisory ALAS-2014-386. # include("compat.inc"); if (description) { script_id(78329); script_version("1.3"); script_cvs_date("Date: 2018/04/18 15:09:35"); script_c...
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>検索</title> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.0.0/css/tempusdominus-bootstrap-4.min.css"...
# Codes for Damage-seq and PADD-seq This repository stores original codes used in ***Coordination of transcription-coupled repair and repair-independent release of stalled RNA polymerase II in response to transcription-blocking lesions***. ## Software Requiremnents ### Linux Tools + snakemake >= 5.5.4 + FastQC >= 0.1...
/* Copyright (c) 2023 Renmin University of China RMDB is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRAN...
#%NASL_MIN_LEVEL 70300 # # (C) Tenable Network Security, Inc. # include('deprecated_nasl_level.inc'); include('compat.inc'); if (description) { script_id(19524); script_version("1.20"); script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/07"); script_cve_id("CVE-2005-2673"); script_bu...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device --> <link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png"> <title>Frontend Mentor | Intro compo...
import { forwardRef } from "react"; import Select from "react-select"; import { selectStyles } from "../selectStyles"; import { ErrorMessage } from "@/ui/Typography/ErrorMessage"; type SelectInputProps = { defaultOptions: | { value: string; label: string; }[] | undefined; hasError?: ...
#include "RigidBodyCube.h" #include "GraphicsEngine.h" #include "VertexBuffer.h" #include "ConstantBuffer.h" #include "DeviceContext.h" #include "IndexBuffer.h" #include "AppWindow.h" #include "LogUtils.h" #include "PhysicsComponent.h" #include "BaseComponentSystem.h" RigidBodyCube::RigidBodyCube(string name, void*...
import { Box, Button, useTheme } from "@mui/material"; import Header from "../../components/Header"; import { tokens } from "../../theme"; import DownloadOutlinedIcon from "@mui/icons-material/DownloadOutlined"; import StatsRow from "../../components/StatsRow"; import TransactionsRow from "../../components/Transactions...
--- canonical: "https://accountingexamsmastery.ca/advanced-accounting-practices/7/5" title: "Sale and Leaseback Transactions: Mastering Accounting for Leases" description: "Explore the intricacies of sale and leaseback transactions, a critical component of advanced accounting practices. This comprehensive guide delves...
@page "/importquestions" <PageTitle>导入题库</PageTitle> <h1>导入题库2</h1> <p>This component demonstrates fetching data from the server.</p> @if (_forecasts == null) { <p><em>Loading...</em></p> } else { <MDataTable Headers="_headers" Items="_forecasts" ItemsPerPage="5"> <ItemColContent> @if (c...
if '__file__' in globals(): import sys,os sys.path.append(os.path.join(os.path.dirname(__file__),'..')) import torch import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler from torch.utils.data import DataLoader from tqdm import tqdm from fcn_Handmade.fcn_cityscapes_loader impo...
using EBTCO.Core.Api; using EBTCO.Core.Contract.DBRepo; using EBTCO.Core.Features.Employees.Commands.Add; using EBTCO.Domain; using MediatR; using Microsoft.EntityFrameworkCore; using Microsoft.IdentityModel.Tokens; namespace EBTCO.Core.Features.Properties.Commands.OwnProperty { record PropertyPercentage(int Rema...
import { useContext, useEffect, useState } from "react"; import { useFonts } from 'expo-font'; import { StyleSheet, Text, View } from "react-native"; import { NavigationContainer } from "@react-navigation/native"; import { createNativeStackNavigator } from "@react-navigation/native-stack"; import Login from "./screens/...
/* * Copyright 2017 Google * * 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 agreed to in w...
/* * Copyright (c) 2015 Nordic Semiconductor ASA * * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause */ import React from 'react'; import PropTypes from 'prop-types'; const blueColor = '#0080B7'; const RssiBars = props => { const { value, maxValue, size } = props; const styleOn = { fill: blue...
import { useLocation, Link } from "react-router-dom" import { Flex, Heading, Separator } from "@radix-ui/themes" import { useElectricData } from "electric-query" import { Electric, Recipes } from "../generated/client" import { useElectric } from "../context" import { useUser } from "@clerk/clerk-react" import RecipeCar...
# Polymorphism package polymorphism; public class Polymorphism{ // method to add two integers public int addition(int x, int y) { return x + y; } // method to add three integers public int addition(int x, int y, int z) { return x + y + z; } // method to add two doubles public double additio...
% ████████████████████████████████████████████████████████████████ % █ Nombre del Archivo: eliminar_k_esimo_elemento_lista.pl % █ Autor: Angel Albino Garcia Cerrillo % █ Correo: l21211948@tectijuana.edu.mx % █ Fecha: ...
import React from "react"; import { Card, CardContent, Typography, makeStyles, CardHeader, } from "@material-ui/core"; import AssessmentIcon from "@mui/icons-material/Assessment"; import { LineChart, Line, XAxis, YAxis, Tooltip, ResponsiveContainer, } from "recharts"; import HelpIcon from "@mui/ic...
--- title: "Welcome to Get Spatial!" classes: wide header: caption: 'Photo credit: **M. T. Hallworth**' image: assets/images/lookingUp.jpg layout: single permalink: /_pages/welcome sidebar: nav: SpatialWorkshop title: Get Spatial! Using R as GIS authors: Michael T. Hallworth & Clark S. Rushing --- ```{r echo = ...
from django.shortcuts import render, HttpResponse, get_object_or_404, redirect from .models import Post, Category from django.contrib import messages # Create your views here. tech_category = Category.objects.get(id=1) business_category = Category.objects.get(id=2) random_category = Category.objects.get(id=3) health_...
import socketio from twitch_api import twitch from utils.websocket_manager import WebSocketManager from utils.stream_context import StreamContext import sentiment_analysis.analysis_queue as aq from .client import Client from utils.config import LOGGER sio_server = socketio.AsyncServer(async_mode="asgi", cors_allowed_...
OSCATS: Open-Source Computerized Adaptive Testing System -------------------------------------------------------- OSCATS facilitates the development of computerized adaptive tests and simulations of computerized adaptive tests. It consists of a library written in object-oriented C using the GObject framework, along w...
import { graphql, useFragment } from "react-relay"; import { CharacterFragment$key } from "./__generated__/CharacterFragment.graphql"; const characterFragment = graphql` fragment CharacterFragment on Character { name species image } `; type Props = { character: CharacterFragment$key; }; export defa...
import { useState } from "react"; import { ResizeMode, Video } from "expo-av"; import { View, Text, TouchableOpacity, Image, StyleSheet } from "react-native"; import { icons } from "../constants"; const VideoCard = ({ title, creator, avatar, thumbnail, video }) => { const [play, setPlay] = useState(false); retur...
import { Component, OnInit } from '@angular/core'; import { FormGroup, FormBuilder, Validators} from '@angular/forms'; import * as XLSX from 'xlsx'; import { DmsJsonDataService } from 'src/app/services/dms-json-data.service'; import { SweetAlertService } from '../../services/sweet-alert.service'; import { Router } from...
# Weather Application Documentation ## Overview This application fetches real-time weather data from the OpenWeatherMap API and stores it in a SQL database. The data includes the current weather conditions for a specific latitude and longitude. **Installation** Before running the application, you need to install the...
package com.example.uspokajamlekbackend.exercise; import lombok.extern.log4j.Log4j2; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; @RestController @Log4j2 @CrossOrigin(origins = "http://localhost:4200") ...
--- slug: la-duree-de-vie-moyenne-dun-site-web pubDate: "Sep 14 2024" image: src: "../../../public/og/post-1.svg" alt: "Un graphique montrant les résultats du site web au fil du temps avec deux phases : aucune amélioration (résultats en baisse) en jaune et optimisation continuelle en bleu sarcelle, illustrant une h...
package com.animeshsarkar.thestore.models; import jakarta.validation.constraints.*; public class ProductDto { //display error message @NotEmpty(message="Name is required") private String name; @NotNull(message = "Price is required") @Min(value = 1, message = "Price must be at least 1") private dou...
import React from 'react'; import { BrowserRouter, Route, Routes } from 'react-router-dom'; import { ToastContainer } from 'react-toastify'; import 'react-toastify/dist/ReactToastify.css'; import { Viewport } from './components/Viewport/Viewport'; import { AuthProvider } from './contexts/AuthContext'; import { SearchP...
"use client" import { useState } from 'react'; import {partySize as partySizes, times} from '../../../../data/index'; import DatePicker from 'react-datepicker' import useAvailabilities from '@/hooks/useAvailabilities'; import { CircularProgress } from '@mui/material'; import Link from 'next/link'; import { convertToDis...
package com.example.pertemuan12.ui.view import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.rememberScrollState import androidx....
#!/bin/bash # Draw a concept map from a Wikipedia page # Directory for temporary files; this lets you monitor prompt output TMPDIR="./tmp" # Directory to save generated maps. By default, the file will be named # output.png. Change that each time so you don't overwrite your maps. MAPDIR="./maps" # Get the title of t...
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { AllConfigType } from './configs/config.type'; import { ConfigService } from '@nestjs/config'; import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; async function bootstrap() { const app = await NestFactory.cre...
import scrapy class JobspiderSpider(scrapy.Spider): name = "jobspider" allowed_domains = ["topdev.vn"] start_urls = ["https://topdev.vn"] def parse(self, response): jobs = response.css('div.CardJobList.card-link.block.rounded.border.border-solid.bg-white.p-4') for job in jo...
import { ConflictException, Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { User } from './entites/user.entity'; @Injectable() export class UsersService { constructor( @InjectRepository(User) private readonly usersReposito...
import { useRouter } from "next/router"; import useSWR from "swr"; import axios from "axios"; import { Grid, GridItem } from "@chakra-ui/react"; import DraftPickCard from "../../components/DraftPickCard"; import { DraftPick } from "../../sleeper/DraftPick"; const fetcher = (url: string) => axios.get(url).then((res) =>...
import React from "react"; import { Meta, Story } from "@storybook/react"; import Button, { ButtonProps } from "./Button"; export default { title: "Inputs/Button", component: Button, parameters: { docs: { description: { component: "This is a button component.", }, }, }, argTypes:...
import { Injectable, UnauthorizedException } from '@nestjs/common'; import { PassportStrategy } from '@nestjs/passport'; import { InjectRepository } from '@nestjs/typeorm'; import { ExtractJwt, Strategy } from 'passport-jwt'; import { Repository } from 'typeorm'; import { User } from './user.entity'; /** * JwtStrateg...
package com.sweeftdigital.countries.view import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.View import androidx.lifecycle.Observer import androidx.lifecycle.ViewModelProvider import androidx.recyclerview.widget.LinearLayoutManager import com.sweeftdigital.countries.databindin...
import { createSlice, createAsyncThunk } from '@reduxjs/toolkit'; const initialState = { data: [], isLoading: false, error: null }; // in a real app, the fetch would be in a separate file with error handling export const fetchProductsByCategory = createAsyncThunk( 'products/fetchProductsByCategory', ...
--- title: That soup's good! Web scraping in Python using requests and beautifulsoup4 description: So you want to start webscraping, but how? This article shows the biggest reason why Python is one of the most popular languages today - you can just get started so easily! Happy scraping... slug: web-scraping-python date...
package com.viaversion.viaversion.libs.fastutil.ints; import com.viaversion.viaversion.libs.fastutil.objects.AbstractObjectCollection; import com.viaversion.viaversion.libs.fastutil.objects.AbstractObjectSet; import com.viaversion.viaversion.libs.fastutil.objects.ObjectArrays; import com.viaversion.viaversion.libs.fas...
package com.yeonberry.bookfinderapp.ui import android.annotation.SuppressLint import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.yeonberry.bookfinderapp.R import com.yeonberry.bookfinderapp.data.model.Book import ...
import { Component, h, State, Event, EventEmitter } from '@stencil/core'; @Component({ tag: 'login-form', // Le nom du tag du composant styleUrl: 'login-form.css', // Lien vers le fichier de style shadow: true // Utilisation du Shadow DOM pour l'encapsulation }) export class LoginForm { @State() email:...
<?php /** * Quantum/Spiders * * Responsible for scraping vertical external sites content * and transmitting them back to the repository for processing. * * @copyright 2018 Quantum/Spiders */ namespace Spider\Transmit\Adapter; use FtpPhp\FtpClient; use Spider\Transmit\Exception; class Ftp extends AbstractAdapt...
import os import cv2 import torch import detectron2 from detectron2.engine import DefaultTrainer from detectron2.config import get_cfg from detectron2.data import DatasetCatalog, MetadataCatalog from detectron2.data.datasets import register_coco_instances from detectron2 import model_zoo from detectron2.evaluation impo...
#ifndef _ESCAPE_DIRINDEX_H #define _ESCAPE_DIRINDEX_H /* a directory index provides meta-information about a directory in a managed collection (ie, triage). it includes: * a nice name (title) for the directory * global ratings for each level * dates that the levels were created (can be used to sort) ...
""" Country definitions that are based on the [ISO 3166](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes). """ from __future__ import annotations from dataclasses import dataclass from functools import lru_cache from typing import Any from pydantic import GetCoreSchemaHandler, GetJsonSchemaHandler from p...
// // import React from 'react'; // // import { View, Text, StyleSheet } from 'react-native'; // // export default function Weather({ weather, dateBuilder }) { // // return ( // // <View style={styles.main}> // // <View style={styles.location}> // // <Text style={styles.city}>{weather.name}, {weath...
package com.algoexpert.program // O(nlog(n)) | O(n) fun mergeOverlappingIntervals(intervals: List<List<Int>>): List<List<Int>> { // Write your code here. val sorted = intervals.sortedBy { it[0] } var rightBorder = Int.MIN_VALUE var result = mutableListOf<MutableList<Int>>() for (i in sorted.indice...
import React, {useState} from "react"; import 'bootstrap/dist/css/bootstrap.min.css'; import "./App.scss"; // import list from "./data/list.js"; import AddTaskForm from './components/AddTaskForm/AddTaskForm'; import ToDo from './components/ToDo/ToDo'; const App = () => { // Tasks (ToDo List) State const [toDo, se...
package hypevoice.hypevoiceback.board.controller; import hypevoice.hypevoiceback.board.dto.BoardRequest; import hypevoice.hypevoiceback.board.dto.BoardResponse; import hypevoice.hypevoiceback.board.service.BoardService; import hypevoice.hypevoiceback.global.annotation.ExtractPayload; import jakarta.validation.Valid; i...
import { LocalDate } from '@js-joda/core' import puppeteer, { Browser, Page } from 'puppeteer' import { dateExistsInFirestore, insertDataIntoFirestore } from './firestore' import { sendPictureTweet, uploadPicture } from './tweet' export const runScreenshot = async () => { let browser!: Browser try { console.ti...
using System.Numerics; using System.Text; using fin.model; namespace fin.shaders.glsl { public static class GlslUtil { public static TNumber UseThenAdd<TNumber>(ref TNumber value, TNumber delta) where TNumber : INumber<TNumber> { var initialValue = value; value += delta; return initia...
import OpenAI from "openai"; import {readFile} from 'node:fs/promises'; import CC from "./ConsoleColors.mjs"; import fs from "fs"; const apiKey = await readFile('apikey.secret') const setup = { // apiKey: process.env.API_KEY apiKey: apiKey }; export default class GPTSession { constructor(context = GPTSe...
from anytree import Node, RenderTree from anytree.exporter import JsonExporter FOLLOWS_LIST = './follows_list.txt' PREDICTS_LIST = './predicts_list.txt' GRAMMAR = './grammar_new.txt' class Parser(): def __init__(self, scanner): self.follows_list = self._read_follows(FOLLOWS_LIST) self.predict_l...
import React, { useState, useEffect } from "react"; import TaskList from "./TaskList"; import TaskForm from "./TaskForm"; function Dashboard() { const [tasks, setTasks] = useState([]); // Load tasks from localStorage when the component mounts useEffect(() => { const storedTasks = JSON.parse(localStorage.get...
<script setup lang="ts"> import {ref} from 'vue'; import {DirEntry, readDir} from '@tauri-apps/plugin-fs'; import * as path from '@tauri-apps/api/path'; import {TabGroup, TabList, Tab, TabPanels, TabPanel} from '@headlessui/vue' // @ts-ignore import {Splitpanes, Pane} from 'splitpanes' import 'splitpanes/dist/splitpan...
#pragma once #include <EOUL\Image.hpp> #include <GLFW\glfw3.h> #include <functional> #include <string> #include <vector> namespace EOUL { namespace GL { class Window final { private: unsigned char buttons = 0; double mouseX = 0.0; double mouseY = 0.0; unsigned int width, height, min_width ...
--- title: Unlock the Power of Screen Recording A Filmora Scrn Tutorial date: 2024-05-19T10:31:47.661Z updated: 2024-05-20T10:31:47.661Z tags: - video editing software - video editing categories: - ai - video description: This Article Describes Unlock the Power of Screen Recording A Filmora Scrn Tutorial exce...
/* * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" * which accompanies this distribution, and is available * at the URL "http://www.eclipse.org/legal/epl-v10.h...
import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:get/get.dart'; import 'package:get/get_core/src/get_main.dart'; import 'package:get/get_instance/src/bindings_interface.dart'; import 'package:get/get_navigation/src/root/get_material_app.dart'; import 'package:zaffnews/bin...
import { Injectable, NotFoundException } from '@nestjs/common'; import { CreateUserDto } from './dto/create-user.dto'; import { UpdateUserDto } from './dto/update-user.dto'; import { InjectRepository } from '@nestjs/typeorm'; import { User } from './entities/user.entity'; import { Repository } from 'typeorm'; import { ...
const { listContacts, getContactById, removeContact, addContact, } = require("./contacts"); const { Command } = require("commander"); const program = new Command(); program .option("-a, --action <type>", "choose action") .option("-i, --id <type>", "user id") .option("-n, --name <type>", "user name") .o...
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once // multi producer-multi consumer blocking queue. // enqueue(..) - will block until room found to put the new message. // enqueue_nowait(..) - will return immediately ...
package com.spring_template.base.rest; import com.spring_template.base.entity.User; import com.spring_template.base.exception.UserNotFoundException; import jakarta.annotation.PostConstruct; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.a...