text
stringlengths
184
4.48M
import React, { useState } from 'react'; import { StyleSheet, Text, TextInput, View, Button, ActivityIndicator, FlatList, ImageBackground, SafeAreaView,TouchableOpacity } from 'react-native'; export function PlanetaryInfo({navigation, route}) { const {user, bady} = route.params; const [inputText, ...
import React from 'react'; import styled from 'styled-components' import colors from "../../utils/style/colors"; import { useState } from 'react'; import { ReactComponent as Chevron } from '../../assets/chevron.svg'; const DropdownContainer = styled.div` margin: 2rem 0; @media (max-width: 425px) { margin: 1rem 0; ...
#include "../class-headers/CameraClass.h" #include "../class-headers/Vec2Class.h" #include "../class-headers/Vec3Class.h" #include "../class-headers/MeshClass.h" // Constructors Camera::Camera() { this->pos = new Vec3(); this->velocity = new Vec3(); this->acceleration = new Vec3(); this->facingDire...
<?php namespace Botble\RealEstate\Tables; use BaseHelper; use Botble\RealEstate\Enums\ProjectStatusEnum; use Botble\RealEstate\Exports\ProjectExport; use Botble\RealEstate\Repositories\Interfaces\ProjectInterface; use Botble\Table\Abstracts\TableAbstract; use Html; use Illuminate\Contracts\Routing\UrlGenerator; use I...
// // PostCellExpandedHeader.swift // EloBookv1 // // Created by Jed Kutai on 12/23/23. // import SwiftUI struct PostCellExpandedHeader: View { @Binding var user: User @Binding var postUser: User @Binding var post: Post @Binding var showMore: Bool @Binding var postDeleted: Bool @State priva...
// craetion of sustom hook useDebouncEffect // we have to use it so export it // has 3 parametrs import { useEffect } from "react" // 1. callback/or effect, 2. dependencies, 3. delay export const useDebounceEffect = (effect, dep, delay) => { // inside it we need to call our use-effect only // useEffect has 2 ...
import AccordionTS from "@snippets/Accordion/AccordionTS"; import React from "react"; import Layout from "../../components/Layout"; export default function accordion() { return ( <Layout> <div className="flex flex-col p-4"> <h1 className="pb-4 text-2xl font-semibold">Accordion</h1> <p clas...
=head1 Clipping The clipping area is an area that limits the available drawing area inside the canvas. Any primitive is drawn only inside the clipping area. It affects all primitives. You can set the clipping area by using the function B<cdClipArea>, and retrieve it using B<cdGetClipArea>. The clipping area is a rect...
import java.util.concurrent.CyclicBarrier; public class InfoLorry { /*_________________________________________________CLASS_ATTRIBUTES___________________________________________________*/ /** * The maximum capacity of lorry. */ private final int lorryCapacity; /** * The maximum time it t...
import Util from './Util' /** * Dom Utils * some code reference leaflet * https://github.com/Leaflet/Leaflet/tree/master/src/core */ class DomUtil { /** * Returns an element given its DOM id, or returns the element itself * if it was passed directly. * @param id * @returns {HTMLElement|*} */ st...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { COMMON_CONSTANTS, ROUTER_CONSTANTS } from './app-config/app.conestant'; import { AddContactComponent } from './contact/add-contact/add-contact.component'; import { ContactListComponent } from './contact/contact-li...
package org.example; import lombok.SneakyThrows; import java.lang.annotation.Annotation; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; public class Main { public static void main(String[] args) { var person = new Person(); System.out.println(person.getName(...
import os from modules.conv2d import QuantizedSparseConv2d from modules.linear import QuantizedSparseLinear from modules.sparseprop.conv2d import SparseConv2d from modules.sparseprop.linear import SparseLinear from modules.prototypes.proto_conv2d import Conv2dQ from modules.prototypes.proto_linear import LinearQ from ...
import { Tabs, TabList, Tab, TabPanels, TabPanel, TableContainer, Table, TableCaption, Thead, Tr, Th, Tbody, Box, } from "@chakra-ui/react"; import { useRecoilState } from "recoil"; import { itemState } from "../Store/itemState"; import { StockIn } from "./StockIn"; import { StockOut } from "....
var express = require('express'); const yup = require('yup'); const customerSchema = yup.object({ body: yup.object({ firstName: yup.string().max(50).required(), lastName: yup.string().max(50).required(), isDeleted: yup.bool().required(), email: yup.string().email(), address...
package cn.hash.shark.controller; import cn.hash.shark.pojo.JsonResult; import cn.hash.shark.pojo.User; import cn.hash.shark.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.ModelAndView; import...
import React, { ForwardRefRenderFunction, forwardRef } from 'react' // import { Container } from './styles'; interface InputProps { placeholder: string type?: string error: string | undefined } const InputBase: ForwardRefRenderFunction<HTMLInputElement, InputProps> = ( { placeholder, type = 'text', error, ......
import { Component, OnInit } from '@angular/core'; import { AppService } from './app.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit { title = 'type-text'; textInput: string = ""; textInputArr...
/* * Copyright (C) 2013 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * ...
// Copyright 2017-2024 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 /// <reference types="@polkadot/dev-test/globals.d.ts" /> import type { UIntBitLength } from '../types/index.js'; import { TypeRegistry } from '@polkadot/types'; import { Int } from '@polkadot/types-codec'; imp...
import { Component, OnInit } from '@angular/core'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { Parques, ResponseGetHttp } from 'src/app/interfaces/interfaces'; import { ParkService } from 'src/app/services/park.service'; import { SweetAlertService } from '../../services/sweet-alert.ser...
import 'bootstrap/dist/css/bootstrap.min.css'; import React from 'react'; import { Spinner, Button } from 'reactstrap'; function Boton(props) { return ( <Button color={props.color} onClick={() => props.cambia()}> {props.nombre} </Button> //pruea ) } // Funcion que pide el color y una funcion const C...
using Defra.PTS.Application.Api.Services.Interface; using Defra.PTS.Functions.Functions; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Sys...
/** * Copyright 2013 Canada Health Infoway, Inc. * * 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 applicab...
const { SlashCommandBuilder } = require("discord.js"); const { generateUniqueToken, buildVerificationLink } = require("../common/index.js"); module.exports = { data: new SlashCommandBuilder() .setName("arise_soul_verify") .setDescription("Get a unique verification link") .setDefaultMemberPermissions(0), ...
Sure, here's a sample README page for a project related to SQL: --- # SQL - Introduction Welcome to the SQL - Introduction repository! This repository contains materials and examples for learning the basics of SQL (Structured Query Language). Whether you're new to databases or looking to refresh your SQL skills, thi...
import React, {useContext} from "react"; import { BsShieldFillCheck } from "react-icons/bs"; import { BiSearchAlt } from "react-icons/bi"; import { RiHeart2Fill } from "react-icons/ri"; import { TransactionContext } from "../context/TransactionContext"; const ServiceCard = ({ color, title, icon, subtitle }) => ( <d...
import 'package:ecommerce_application/controller/auth/successsignup_controller.dart'; import 'package:ecommerce_application/core/constant/colors.dart'; import 'package:ecommerce_application/view/widget/auth/custombuttonauth.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import '../../widg...
/******************************************************************************* * * (C) Copyright 2018-2020 MRC2 (http://mrc2.umich.edu). * * 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 a...
import { Location } from '@angular/common'; import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing'; import { FormBuilder } from '@angular/forms'; import { Router } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing...
import type { StoryObj, Meta } from "@storybook/react"; import { Headign, HeadignProps } from "@ignite-ui/react"; export default { title: "Typography/Headign", component: Headign, args: { size: "md", children: "Custom title", }, argTypes: { size: { options: ["sm", "md", "lg", "2xl", "4xl", ...
/*************************************************************************** * Copyright (C) 2018 Jan Fostier (jan.fostier@ugent.be) * * * * This program is free software; you can redistribute it and/or modify * * it unde...
Use Case: Magrittr is an R package that offers a forward-pipe operator for chaining commands, helping to create cleaner and more readable code. It is very useful in data manipulation tasks, and for writing functional code in R. Code details and examples: Code: 1. Create a sequence, add 2 to each element, square the ...
/* ----------------------------------------------------------- */ /* */ /* _ ___ */ /* /_\ | |_/ */ /* | | | | \ ...
import React, { useEffect, useState } from 'react' import Styles from './add-article.scss' import { Button, FormStatus, PageTitle, InputGroup, SelectGroup, SelectTreeGroup, TextAreaGroup, HtmlEditorGroup } from '@/application/components' import axios from 'axios' const AddArticle: React.FC = () => {...
import * as React from "react"; import { Suspense } from "react"; import type { DOMExportOutput, EditorConfig, LexicalNode, NodeKey, SerializedEditor, SerializedLexicalNode, Spread, } from "lexical"; import { $applyNodeReplacement, DecoratorNode } from "lexical"; const ImageComponent = React.lazy( //...
import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; import { ThemeProvider } from "@/components/providers/ThemeProvider"; const inter = Inter({ subsets: ["latin"] }); export const metadata: Metadata = { title: "Word Maniac", description: "A game where you can te...
import { useNavigate } from 'react-router-dom'; import styles from './artworkCard.module.css'; // eslint-disable-next-line react/prop-types const ArtworkCard = ({ id,img, artist, title , price, category, medium, height, width }) => { const navigate = useNavigate(); return ( <ul className={`d-flex p-2...
<!DOCTYPE html> <html lang="pl"> <head> <meta charset="UTF-8"> <title>Generator scenariusza dialogowego by MartinQa</title> <!-- Dodaj Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcD...
const { PrismaClient } = require("@prisma/client"); const { uploadFile } = require("@uploadcare/upload-client"); const dayjs = require("dayjs"); const prisma = new PrismaClient(); const productView = async (req, res) => { const search = +req.query.search; const category = +req.query.categoryId; const department...
--- title: Degree of an Array | LeetCode 697 | C date: 2023-09-10 22:02:23 tags: [LeetCode, C, Array, Hash Table] categories: LeetCode --- Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your task is to find the smallest p...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap Project</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbz...
// file: /components/ResponseDisplay.js const ResponseDisplay = ({ data, error, loading }) => { let content; if (loading) { content = <p>Loading...</p>; } else if (error) { content = <p>Error: {error.message}</p>; } else if (data && data.result) { // Assuming data.result contains the itinerary deta...
import { randomUUID } from "crypto"; import { createCategorySchema, deleteCategorySchema, updateCategorySchema, getCategoriesSchema, } from "./categories.schemas.js"; import type { TypeBoxTypeProvider } from "@fastify/type-provider-typebox"; import type { FastifyPluginAsync } from "fastify"; const categoriesPlug...
from rest_framework import permissions class IsProfileOwner(permissions.BasePermission): """ Object-level permission to only allow owners of an object to edit it. Assumes the model instance has an `owner` attribute. """ def has_permission(self, request, view): """ Return `True` if ...
import {Component, OnInit} from '@angular/core'; import {FormBuilder, FormGroup, Validators} from "@angular/forms"; import {Router} from "@angular/router"; import {EntityService} from "../../../services/entity.service"; import {AlertService} from "../../../services/alert"; @Component({ selector: 'app-create-entities...
import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; /** * Test class for implementations of the LinkedListADT interface. * * @author Faycal Kilali * @version 1.0 */ import static org.junit.jupiter....
import { FC, useEffect, useState } from "react"; import Header from "../base/Header"; import BooksTable from "../tables/BooksTable"; import { deleteBook, getBooks, getBooksWithParams, } from "../../services/bookService"; import { Link, useSearchParams } from "react-router-dom"; import Pagination from "../base/Pag...
import { useRef, useMemo } from "react"; import { Link } from "react-router-dom"; import { Avatar } from '@mui/material'; import logo from "../img/logo/logo_80x80.png"; import "../styles/NavBar.css"; import { getAuth } from "firebase/auth"; import { getDatabase, ref } from "firebase/database"; import { useAuthState } f...
/* eslint-disable no-param-reassign */ /* eslint-disable @typescript-eslint/no-this-alias */ // Do not edit the class below except for // the insert, contains, and remove methods. // Feel free to add new properties and methods // to the class. export class BST { value: number left: BST | null right: BST | null ...
<?php /** * package.php is part of Marifa. * * Marifa 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 the License, or * (at your option) any later version. * * Marifa is distributed...
from typing import List from fastapi import APIRouter, Depends, HTTPException, status from sqlalchemy.ext.asyncio import AsyncSession from sqlalchemy.future import select from src.config.deps import get_session from src.models.aluno import AlunoModel router = APIRouter() GS = get_session @router.post("/", status_...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { RouterModule } from '@angular/router'; import { AppComponent } from './app.component';...
// // Created by gedt on 12/04/2024. // #ifndef TRABALHO_3_QUEUE_H #define TRABALHO_3_QUEUE_H #include <stdio.h> #include "../../models/product.h" typedef struct QueueNode { ProductNode * value; struct QueueNode * next; } QueueNode; typedef struct Queue { struct QueueNode * front; struct QueueNode ...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0...
<!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" /> <script src="../fx.js"></script> <title>Cart</title> </head> <body> <div id="cart"></div> </bo...
import expect from 'expect' import ganache from 'ganache-cli' import { AbiItem } from 'web3-utils' import { BUSD } from '../types/web3-v1-contracts/BUSD' import BUSDContract from '../build/contracts/BUSD.json' import { MyToken } from '../types/web3-v1-contracts/MyToken' import MyTokenContract from '../build/contracts/M...
import express from 'express'; import { glob } from 'glob'; import { container } from 'krisemm/app/rest/services'; import { Middleware } from 'krisemm/context/shared/infrastructure/express/middlewares/Middleware'; import morgan from 'morgan'; import path from 'path'; const app: express.Express = express(); const error...
--- date: 2024-01-26 03:37:37.045031-07:00 description: "Come fare: PowerShell non dispone di uno strumento dedicato al refactoring\ \ incorporato, ma \xE8 comunque possibile pulire il proprio codice per leggibilit\xE0\ \ e\u2026" lastmod: '2024-03-13T22:44:43.650902-06:00' model: gpt-4-0125-preview summary: "Power...
@import "mapas.less"; //importante mapeamento de cores @breakpointMobile: ~"(max-width: 767px)"; //esse tipo de escrita é chamado de Escaping @breakpointTablet: ~"(min-width:768px) and (max-width: 1023px)"; .marginBottom8 { //criação de um mixing para não ficar reescresvendo essa regra margin-bottom: 8px; } *{ /...
// Path: src/MQTTManager.cpp #include <MQTTManager.hpp> // Constructor MQTTManager::MQTTManager(PubSubClient* client, NVSManager* config, Utils* utils) : utils(utils) , mqttclient(client) , config(config) , mqtt_broker(&config->getMQTTBroker()) , mqtt_port(&config->getMQTTPort()) , mqtt_password(&config->getMQT...
let updateOrderForm = document.getElementById('update-order-form-ajax'); // Modify the objects we need updateOrderForm.addEventListener("submit", function (e) { // Prevent the form from submitting e.preventDefault(); // Get form fields we need to get data from let orderID = document.getElementByI...
// // ArtistDetailTableViewCell.swift // iTunesSearch // // Created by Yasaswi on 11/4/20. // Copyright © 2020 Yasaswi. All rights reserved. // import UIKit class ArtistDetailTableViewCell: UITableViewCell { @IBOutlet weak var nameLabel: UILabel! @IBOutlet weak var trackNameLabel: UILabel! @IBOut...
import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:golden_toolkit/golden_toolkit.dart'; import 'package:todo_app/core/enums/task_status.dart'; import 'package:todo_app/dependency_injection.dart'; import 'p...
@extends('layouts.organiser') <?php $vue = true ?> <?php $event_menu = true ?> @section('page') <div class="panel panel-default"> <div class="panel-heading"> <h3>Manage Event Orders</h3> <div class="pull-right"> <button class="btn btn-default" type="button" data-tog...
/** * This component was made to control if user is logged in to access pages */ // import type { SectionProps } from "deco/types.ts"; // import { useUI } from "../../sdk/useUI.ts"; import { useEffect, useState } from "preact/hooks"; import { invoke } from "../../runtime.ts"; import PageWrap from "./PageWrap.tsx"; im...
import Paho from "paho-mqtt"; import { Team } from "./helpers/config"; import { game_status, goals, players, round, score_red, score_white, teams, volume, spotify_status, spotify_track, winner, game_end, just_scored, } from "./stores"; import { get } from "svelte/store"; const HOST = "172.30....
<!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="./assets/images/favicon-32x32....
import CLLVM /// Functions in this group correspond to APIs on `ConstantExpressions` . public enum ConstantExpressions { public static func getConstOpcode(constantVal: ValueRef) -> Opcode { let opcode = LLVMGetConstOpcode(constantVal.valueRef) return Opcode(from: opcode)! } public static f...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package paint; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.Map; import java.util.logg...
import React from "react"; import cn from "classnames"; import InputLabel from "@mui/material/InputLabel"; import FormControl from "@mui/material/FormControl"; import SelectInput, { SelectProps } from "@mui/material/Select"; let inputLabel = 0; const Select: React.FC<SelectProps & { shrink?: boolean }> = ({ classNa...
import {DocumentType} from '@typegoose/typegoose' import {Guild, Snowflake} from 'discord.js' import {Map as ImmutableMap} from 'immutable' import {UpdateQuery} from 'mongoose' import {head, zip} from 'ramda' import {snowflakeToUnix, isGuild} from '../../../helpers/discord' import {deleteKey, filter, setKey} from '../....
# Super Simple Twitter Clone This project is a simple Twitter clone built with React, TypeScript, and Node.js. It allows users to register, log in, post tweets, and like or dislike tweets. The backend uses MySQL for database management. ### - Table of Contents - Features - Technologies Used - Getting Started - P...
#pragma once #include <string> #include <iostream> #include <fstream> #include <sstream> #include <vector> #include "Helper.h" struct Production { std::vector<std::string> LHSVector; // multiple non-terminal std::string LHS; // single non-terminal std::vector<std::string> RHS; // non-terminals + terminals + epsilon...
/* Package strftime provides strftime/strptime compatible time formatting and parsing. The following specifiers are available: Date (Year, Month, Day): %Y - Year with century (can be negative, 4 digits at least) -0001, 0000, 1995, 2009, 14292, etc. %C - year / 100 (round down, 20 in 2009) %y...
import React from "react"; import { shallow } from "enzyme"; import { GifGrid } from "../../components/GifGrid"; import { useFetchGifs } from "../../hooks/useFetchGifs"; jest.mock("../../hooks/useFetchGifs"); describe("Test GifGrid.js", () => { const category = "One Punch"; test("Debe de mostrar el componente cor...
// Topic: Working with expressions // // Requirements: // * Print "its big" if a variable is > 100 // * Print "its small" if a variable is <= 100 // // Notes: // * Use a boolean variable set to the result of // an if..else expression to store whether the value // is > 100 or <= 100 // * Use a function to print the ...
<div class="flex flex-col gap-2 p-6"> <div class="grid grid-cols-4 gap-2 p-2 border-b-2 border-slate-500"> <% @order_lines.each do |order_line| %> <div class="flex flex-col p-2 gap-2 border-2 border-slate-300 items-center"> <p class="text-4xl"><%= order_line.product.name.capitalize %></p> <p...
import classNames from "classnames"; import React, { useEffect } from "react"; import DatePicker, {registerLocale} from "react-datepicker"; import { enUS as en, ru } from "date-fns/locale"; import "react-datepicker/dist/react-datepicker.css"; import { useTranslation } from "react-i18next"; import { getUTCDate } from "...
/// Prints \param terminator to stdout. Used as a recursion breaker for `print` below. @compiletime public def print(separator: Character = ' ', terminator: Character = '\n') { // FIXME _ = libc.stdio.printf("%c", terminator.ascii) } /// Prints \param t to stdout. /// \param separator is printed after each ite...
<!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>Genius Geometry</title> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="precon...
import React, { useState, useEffect } from "react"; import Paper from "@material-ui/core/Paper"; import { makeStyles } from "@material-ui/core/styles"; import TextField from "@material-ui/core/TextField"; import Button from "@material-ui/core/Button"; import { auth, db } from "../../Firebase"; import { Redirect } from ...
package sample; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.control.Alert; import javafx.sc...
#' Get last three recent activities #' #' Get last three recent activities, used internally in \code{\link{athl_fun}} #' #' @param prsd parsed input list #' #' @export #' #' @concept notoken #' #' @return A data frame of recent activities for the athlete. An empty list is returned if none found. recent_fun <- fu...
class_name ConsoleCommands static func create(key: String,desc : String,delegate : Callable) -> bool: if commands.has(key): return false commands[key] = delegate descriptions[key] = desc; return true static var commands : Dictionary = {} static var descriptions : Dictionary = {} #default commands static func...
# Standard Packages import logging import math from pathlib import Path from typing import List, Tuple, Type, Union # External Packages import torch from sentence_transformers import SentenceTransformer, CrossEncoder, util from khoj.processor.text_to_jsonl import TextToJsonl from khoj.search_filter.base_filter import ...
interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> { type?: 'submit' | 'reset' | 'button' children: React.ReactNode variant?: 'primary' | 'secondary' | 'color-personal' classProps?: string } export function Button({ children, variant, type, classProps, ...rest }: Props) { let bg...
import { format, fromUnixTime } from "date-fns"; import React from "react"; import PostExcerpt from "../card/PostExcerpt"; import { CardProps } from "../card/PostPreview"; import PostPreviewImage from "../card/PostPreviewImage"; import PostTags from "../card/PostTags"; import PostTitle from "../card/PostTitle"; import ...
--- sidebar_label: "Create Images with Image Builder" title: "Create Images with Image Builder" description: "Learn how to use the Image Builder project to create images for Palette." icon: "" hide_table_of_contents: false sidebar_position: 0 tags: ["operating system", "byoos", "profiles", "cluster profiles"] --- You...
import json from pipes import Template import django.http from django.shortcuts import get_object_or_404, redirect, render from django.contrib.auth.decorators import login_required, user_passes_test from nadooit_website.visulize import analyze_and_visualize_session_data from .services import ( add__signal, cat...
# Praktikum 9 - Mengatur Format Text dengan CSS &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pengaturan format text di dalam CSS adalah sebagai berikut: - `color`: untuk mengatur warna text, value yang dapat diisi berupa warna atau kode warna - `text-align`: untuk mengatur posisi align pada text atau rata text, va...
######################################################################### # # Copyright (C) 2012 OpenPlans # # 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 the License, or #...
import React from "react"; import { Link } from "react-router-dom"; import s from '../styles/card.module.css' import g from '../assets/img/rock.png' export default function Card(props) { let temp = props.temperaments ? props.temperaments : []; function jurasic(val) { let data = temp && val.map(e => { ...
import { useState, useEffect } from 'react'; import { useSelector } from 'react-redux'; import '../styles/ui/editcatalogomodal.css'; import { useIronLlegada } from '../hooks/useIronLlegada'; export const EditIronLlegadaModal = ({ handleEditModal, ironLlegadaId }) => { const ironLlegadas = useSelector((state) => stat...
/*- * EOMasters GPT Test Environment - This projects provides a test environment for operators you have developed. * -> https://www.eomasters.org/ * Copyright (C) 2023 - 2024 Marco Peters * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Lic...
/** * {@link https://en.wikipedia.org/wiki/CIE_1931_color_space | XYZ color space} * * This implementation uses the D65 constants for 2 degrees. That determines the constants used for the pure white point of the XYZ space of 0.95047, 1.0, 1.08883. * {@link https://en.wikipedia.org/wiki/Illuminant_D65} * These cons...
package com.example.thevault.service; import com.example.thevault.domain.mapping.repository.RootRepository; import com.example.thevault.domain.model.*; import com.example.thevault.support.BSNvalidator; import com.example.thevault.support.exceptions.SchaduwAssetException; import com.example.thevault.support.exceptions....
import { randomUUID } from "crypto"; import mongoose from "mongoose"; // to handle different versions of a project const projectVersionSchema = new mongoose.Schema({ fileId: { type: String, // a generated random string to name the file. this is not the id of the uploaded file. }, fileURL: { ...
<template> <div id="app"> <div class="flex-grow min-h-screen bg-gray-100" :class="{ 'flex-col': windowWidth <= breakpointWidth, flex: windowWidth > breakpointWidth }" > <Hero /> <Details v-if="displayInfo" /> </div> </div> </template> <script> import Hero f...
package com.example.test2 import android.content.Intent import android.graphics.Bitmap import android.graphics.ImageDecoder import android.net.ConnectivityManager import android.net.Uri import android.os.Build import android.os.Bundle import android.os.Environment import android.provider.MediaStore import android.widg...