text
stringlengths
184
4.48M
type kind = | ProhibitedModuleOpen({line: int, prohibitedModuleName: ModuleName.t}) | ProhibitedModuleInclude({line: int, prohibitedModuleName: ModuleName.t}) | ProhibitedModuleAssign({line: int, prohibitedModuleName: ModuleName.t}) | ProhibitedModuleUsage({line: int, prohibitedModuleName: ModuleName.t}) | In...
// // JAlert.swift // JAlert // // Created by 장효원 on 2022/01/02. // import UIKit public class JAlert: UIView { // MARK: Public Proerties (You can customize Alert View!) public weak var delegate: JAlertDelegate? // delegate public var appearType: AppearType = .default public var disappearT...
import { Button } from "@/components/ui/button" import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "@/components/ui/dialog" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, Drop...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Redirect } from 'react-router'; import { connect } from 'react-redux'; import Input from '../components/Input'; import TextArea from '../components/TextArea'; import Button from '../components/Button'; import { btnWork } from '../red...
package com.ichop.core.areas.reaction.repository; import com.ichop.core.EntityFactory; import com.ichop.core.areas.reaction.domain.entities.ReactionType; import com.ichop.core.areas.reaction.domain.entities.ThreadReaction; import com.ichop.core.areas.reaction.repositories.ThreadReactionRepository; import com.ichop.cor...
/** * 内部模块,防止命名冲突,组织代码 * 命名空间内的东西属于模块内部,外部无法访问,如果要访问需要export导出 * */ namespace B { interface Animal { name: string; eat(str: string): void } export class Dog implements Animal { name: string constructor(name: string) { this.name = name } ea...
use context essentials2021 include gdrive-sheets include shared-gdrive( "dcic-2021", "1wyQZj_L0qqV9Ekgr9au6RX2iqt2Ga8Ep") include data-source ssid = "1RYN0i4Zx_UETVuYacgaGfnFcv4l9zd9toQTTdkQkj7g" kWh-wealthy-consumer-data = load-table: komponent, energi source: load-spreadsheet(ssid).sheet-by-name("kWh", t...
"""Base classes for typing and sequential optimization procedure encoding. Members are explicitly re-exported in pyprobound. """ from __future__ import annotations import abc import collections import functools import logging import time from collections.abc import Callable, Iterator from typing import Any, Literal, ...
using System.ComponentModel.DataAnnotations; namespace WebApplication6.Models { public class EmployeeModel { [Key] public int Empid { get; set; } [Required(ErrorMessage ="Enter Employee Name")] [Display(Name ="Employee Name")] public string Empname { get; set; } ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>LayOut</title> <style> .bar{ width:100%; height:50px; border:1px solid; } li{ list-style: none; } .bar a{ display: inline-block; float:right; text-align:center; color:white; line-height: 50px; cursor:pointe...
import React, {useState, useEffect} from "react"; const ProfileStatusWithHooks = (props) => { let [editMode, setEditMode] = useState(false) let [status, setStatus] = useState(props.status) useEffect( () => { setStatus(props.status) }, [props.status]) const activateEditMode = () => { ...
import SwiftUI struct TictactoeView: View { @StateObject private var viewModel = GameViewModel() var body: some View { ZStack { ThemeListView().vectorView LazyVGrid(columns: viewModel.columns) { ForEach(0..<9) { i in ZStack { ...
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import spack.util.spack_json as sjson from spack import * def sanitize_environments(*args): for env in ar...
* This file holds all of the character specific data for your class, as * well as some shop related data for buying items and utility * the appropriate ACS file. * * many of the files below need to bare the name of the * class they are associated with in order to properly work. actor Blake : ClassBase { Play...
import "./styles.css"; import { useContext, useRef } from "react"; import coinData from "../../contexts/coinData"; function Popup() { let { state, dispatch } = useContext(coinData); let selected = state.selected let inputValue = state.inputValue function getMaxValue() { if (selected === "buy") { r...
package HashTab; import java.util.Scanner; public class HashTabDemo { public static void main(String[] args) { //创建一个哈希表 HashTab hashTab = new HashTab(7); String key = ""; Scanner scanner = new Scanner(System.in); while (true){ System.out.println("add: 添加雇员")...
package com.mycompany.myapp.domain; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.io.Serializable; import java.util.HashSet; import java.util.Set; import javax.persistence.*; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; /** * A Custome...
---json { "description": "boldness is a typographic effect that sets the font weight. It defines the width of a character outlines relative to its height. It's also known as strongness.", "page_id": "dd0i74454dynry3c00imf", "title": "How to set the Boldness (Font Weight \/ Strong)" } --- ====== ComboStrap S...
import { ChangeDetectorRef, Component, ElementRef, Injectable, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { MatDatepicker } from '@angular/material/datepicker'; import { WsLoading } from '@elements/ws-loading/ws-loading'; import { Phase } from '@objects/phase'; import { Moment }...
package gbw.sdu.msd.backend.controllers; import gbw.sdu.msd.backend.dtos.*; import gbw.sdu.msd.backend.models.Group; import gbw.sdu.msd.backend.models.User; import gbw.sdu.msd.backend.services.Auth; import gbw.sdu.msd.backend.services.IGroupRegistry; import gbw.sdu.msd.backend.services.IUserRegistry; import io.swagger...
<div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="page-header"> <h4 class="page-title">Classe</h4> <ul class="breadcrumbs"> <li class="nav-home"> ...
/** Estrutura inicial para um jogo de labirinto versão: 0.1 (Felski) versão final: Felipe Luz */ #include <iostream> #include <windows.h> #include <conio.h> #include <unistd.h> #include "conmanip.h" #include "gameHelper.h" #include<fstream> #include <vector> #include <string> #include <algorithm> #include <...
/* eslint-disable react/jsx-props-no-spreading */ // React import React, { useEffect, useRef, forwardRef, useState } from "react"; // Libraries import PropTypes from "prop-types"; import { Form, Button, Icon, Select } from "semantic-ui-react"; import { isEmpty, omit } from "lodash"; // Styles import styles from "./st...
/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template */ package logika; import db.DBBroker; import domen.Poruka; import domen.User; import java.net.Socket; import java.sql.SQL...
from typing import TYPE_CHECKING from pyconnectwise.endpoints.base.connectwise_endpoint import ConnectWiseEndpoint from pyconnectwise.interfaces import IPostable from pyconnectwise.models.manage import Calendar from pyconnectwise.types import JSON, ConnectWiseManageRequestParams if TYPE_CHECKING: from pyconnectwi...
//1. print the number 5 to the console console.log(5); //2. Print your name to the console console.log("Marina"); //3. Store your age as a variable called "myAge" var myAge = 34; //4. Print to the console how old you will be in 5 years console.log(myAge + 5); //5. Store your favorite food as a variable called "myFa...
// Script assets have changed for v2.3.0 see // https://help.yoyogames.com/hc/en-us/articles/360005277377 for more information enum TURNS { AMBER, LILLESKUTT } function turnsToName(varEnum) { switch(varEnum) { case TURNS.AMBER : return "Amber"; break; case TURNS.LILLESKUTT : return "LilleSkutt"; break; } } enu...
package krimselis.dto; import lombok.*; import javax.validation.constraints.Email; import javax.validation.constraints.NotEmpty; import java.time.LocalDateTime; @Setter @Getter @NoArgsConstructor @AllArgsConstructor @Builder public class CommentDto { private Long id; @NotEmpty private String name; @...
// // Created by Kalen Suen on 2023/10/22. // #include <iostream> #include "cmath" using namespace std; struct Point { int x; int y; }; struct PointDouble { double x; double y; }; double min(double a, double b, double c, double d) { return min(min(a, b), min(c, d)); } double distance(Point a, P...
import { createAsyncThunk } from '@reduxjs/toolkit'; import CosmeticsService from '../../services/CosmeticsService'; import { IError } from '../../models/IError'; import { ICosmetic } from '../../models/ICosmetic'; import { setPageCosmetics } from './cosmeticsSlice'; export const fetchCosmetics = createAsyncThunk<ICos...
using Microsoft.EntityFrameworkCore; using Midterm_Project_Nashtech.Domain.Entities; namespace Midterm_Project_Nashtech.Infrastructure.Data { public class DataContext : DbContext { public DataContext(DbContextOptions<DataContext> options) : base(options) { } public DbSet<User...
import { ApiProperty, OmitType, PickType } from '@nestjs/swagger'; import { ProfileImg } from '../util/image.schema'; export class TutorReqDto { @ApiProperty() _id: String; @ApiProperty() firstName: String; @ApiProperty() lastName: String; @ApiProperty() readonly email: String; @ApiProperty() c...
import { DynamicModule } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { ENV_FILE_PATH } from '../constants/env-file-path'; import { PackageEntity } from '../entities/package.enttiy'; import { PackageModule } from './package...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Subida de Imágenes</title> <link rel="stylesheet" type="text/css" href="static/css/main.css"> <link rel="shortcut icon" href="static\imgs\favicon.ico"> </head>...
#We often want to use a for loop to search through a list for some value items_on_sale = ["blue_shirt", "striped_socks", "knit_dress", "red_headband", "dinosaur_onesie"] # we want to check if the item with ID "knit_dress" is on sale: for item in items_on_sale: if item == "knit_dress": print("Knit Dress is on sa...
import React from 'react'; import NextLink from 'next/link'; import classNames from 'classnames'; type LinkProps = { href?: string; children: React.ReactNode; className?: string; variant?: 'primary' | 'secondary'; external?: boolean; underlined?: boolean; size?: 'sm' | 'base'; onClick?: () => void; }; ...
import "./Card.css"; import data from "../../data.json"; import { timeSpan } from "../../timespanStore"; import { useStore } from "@nanostores/react"; import PropTypes from "prop-types"; const timeSpans = { daily: "Yesterday", weekly: "Last Week", monthly: "Last Month", }; const Card = (props) => { const $ti...
<div class="gradient-creator"> <div class="gradient-creator__gradient-container"> <p class="gradient-creator__gradient-string">{{gradientString}}</p> <div class="gradient-creator__gradient" [ngStyle]="{'background-image': gradientString}"> <button (click)="addColor()" class="gradient-cre...
<!DOCTYPE html> <html> <head> <title>Web assignment 1</title> <link rel="stylesheet" type="text/css" href="cssFile.css"> </head> <body> <div id="header"> <img id = "img" src="me.jpeg" alt="a picture of me"> <h1>Assg.1: CSS, JavaScript, and Forms</h1> <p>Brought to you by: <br> <b><u>Georges Abi Khalil</u></b></p> <...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>🖥 Geek Ark</title> <link rel="preconnect" href="https://fonts.gstatic.com" /> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap...
import React, { useState, useEffect } from 'react'; import PostList from './components/PostList'; import OpenedPost from './components/OpenedPost'; import NewPost from './components/NewPost'; import NewUser from './components/NewUser'; import EditUser from './components/EditUser'; import EditPost from './components/Edi...
package task2; /** * * @author ASUS */ public class Rectangle extends Shape{ private double width; private double length; public Rectangle(){ this.length=1.0; this.width=1.0; } public Rectangle(double width,double length){ this.length=length; this.width=width; } public Rectangle(double wid...
use super::{super::utils::*, YEAR}; pub struct Solver {} impl DaySolver<i32> for Solver { fn part_one_driver(&self, input: &str) -> i32 { fn is_nice_string(s: &str) -> bool { let does_not_have_blacklisted_substrings = !(s.contains("ab") || s.contains("cd") || s.contains("pq") ||...
<template> <v-app-bar flat color="black"> <!-- --> <v-app-bar-nav-icon class="hidden-lg-and-up" @click="drawer = !drawer" ></v-app-bar-nav-icon> <v-toolbar-title class="ml-10">Wellcome {{ userName }} </v-toolbar-title> <div> <v-btn :to="{ name: 'purchases' }" ...
package org.example; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.Hashtable; public class DataContainer { Ar...
import React, { useState, useEffect } from 'react'; const ImageSlider = ({ images, messages }) => { const [currentIndex, setCurrentIndex] = useState(0); const showNext = () => { setCurrentIndex((currentIndex + 1) % images.length); }; const showPrevious = () => { setCurrentIndex((currentIndex - 1 + im...
import { type Infer, instance, nullable, integer, assign, number, object, string, any, } from "superstruct"; import { unique, albumBase, trackBase, artistBase, playlistBase, } from "@amadeus-music/protocol"; import { primary, crr, ordered, index, type Database } from "crstore"; import type {...
<img width="800" src="https://github.com/KHW1025/Gangwon-Pet-Trip/assets/119498531/3dacb9f8-5466-48d3-a81b-c689ed2e9978"/> # Gangwon-Pet-Trip <br> > **강원 펫 트립** <br> ## 1️⃣ 목적 & 구성 <br> > - 반려동물과 함께 강원도를 여행하고자 하는 이용자들에게 각 여행지의 위치와 정보 제공 > - [강원도 반려동물 동반관광 API시스템](https://www.pettravel.kr/petapi/api) 에서 제공하는 API를 활용...
# -*- coding: utf-8 -*- # Amara, universalsubtitles.org # # Copyright (C) 2013 Participatory Culture Foundation # # 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 #...
#include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc.hpp> #include <vector> class TrackerData { public: int thres, ratio_green, size_open, size_close, size_blur, ratio_blue; TrackerData(int thres_, int ratio1, int ratio2, int size1, int size2, in...
package edu.study.module.springbootrabbitmq.demo; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFactory; import com.rabbitmq.client.MessageProperties; import java.io.IOException; import java.util.concurrent.TimeoutException; /** * 测试使用:RabbitMQ 简单工作模...
import React, { useState } from "react"; import { useNavigate } from "react-router-dom"; import axios from "axios"; import { ToastContainer, toast } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; import { MDBContainer, MDBRow, MDBCol, MDBCard, MDBCardBody, MDBInput, } from "mdb-reac...
const OPTIONS = ["Internship", "Pabau", "Employment", "Career"]; let optionsState = OPTIONS.map((option) => ({ name: option, checked: false })); function mountOption(option) { const { name, checked } = option; const checkboxContainer = document.getElementById("checkboxContainer"); const divWrapper = document.cr...
#pragma once #include "Component.h" #include "Auxiliar/Generics/Drawable.h" #include <vector> #include <memory> class EmitterInstance; class ParticleEmitter; class ResourceParticleSystem; class ComponentParticleSystem : public Component, public Drawable { public: ComponentParticleSystem(const bool active, GameObj...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2021, Davinder Pal <dpsangwal@gmail.com> from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = """ module: aws_secretsmanager_info short_description: Get Information about AWS Secrets Manager. description: -...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Author: zzq # @Date: 2021-07-02 # @Describe: 衢州衢江区公共资源交易网 import re import math import json import scrapy import urllib from urllib import parse from lxml import etree from scrapy.spiders import Spider from spider_pro.items import NoticesItem, FileItem from spider_pro ...
import React, { useEffect, useState, useCallback } from 'react'; import { redirect } from 'react-router-dom'; import { Helmet } from 'react-helmet'; import { Container, Box, Flex, useColorModeValue } from '@chakra-ui/react'; import Particles from 'react-particles'; import { loadFull } from 'tsparticles'; // if you are ...
# frozen_string_literal: true class User < ApplicationRecord include Recoverable include Rememberable enum role: { basic: 0, moderator: 1, admin: 2 }, _suffix: :role attr_accessor :old_password, :skip_all_password has_secure_password validations: false validate :password_presence validates :password, ...
import { ChatBubble } from './chatBubble'; import type { OperationsNeedingAttentionItem } from './conversationItem'; import { OperationsNeedingAttentionOnUserAction } from './conversationItem'; import type { OperationInfoItemProps } from './flowDiffPreview'; import { OperationItemsList } from './flowDiffPreview'; impor...
/* eslint-disable no-unused-vars */ import React, { useEffect, useState } from "react"; import { useLazyQuery, useSubscription } from "@apollo/client"; import { makeStyles } from "@material-ui/core/styles"; import { Box, Button, Typography, Grid, Paper, List, ListItem, ListItemIcon, ListItemText, Av...
#pragma once #include "GPipeline.h" #include "Object3D.h" #include "ConstBuff.h" #include "Shader.h" #include "MyDebugCamera.h" #include "Square.h" #include "Controller.h" #include <memory> #include "Model.h" /// <summary> /// ゴール作成クラス /// </summary> class Goal { public: Goal(); ~Goal(); /// <summary> /// 初期化 //...
import React, { useEffect, useState } from "react"; import Drawer from "../Drawer"; import { CloseIcon } from "../Icons"; import toast from "react-hot-toast"; import Input from "../Input"; import CustomDropdown from "../Dropdown"; import { TaskPriorityList, TaskStatusList } from "../../constants/consts"; import Butto...
'use client' import React, { useEffect, useState } from 'react'; import { Vehicle } from '@/types/db/Vehicle' import { DataTable } from './components/data-table' import { columns } from './components/columns' import { db } from '@/lib/db/db'; export default function Vehicles() { const [data, setData] = useState<...
import Database from "../Database/index.js"; function ModuleRoutes(app) { app.get("/api/courses/:cid/modules", (req, res) => { const{cid} = req.params; const modules = Database.modules. filter((m) => m.course === cid); res.send(modules); }); app.post("/api/courses/:cid/modu...
package com.example.corporate.api.entity; import jakarta.persistence.*; import java.util.Objects; @Entity @Table(name = "partnership_table") public class Partnership { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "partner_id") private Long id; @Column(name = "partner_n...
#include "binary_trees.h" /** * binary_tree_leaves - a binary tree's leaves are counted. * @tree: a direction to the tree's root node that will allow you to count its. * * Return: how many leaves there are on the tree. */ size_t binary_tree_leaves(const binary_tree_t *tree) { size_t leaves = 0; if (tree) { ...
import React from 'react' import axios from 'axios' import '../styles/Carousel.css'; import Arrow from './Arrow'; import { useEffect,useState } from 'react'; import {Link as LinkRouter} from 'react-router-dom' import APIurl from '../APIBack' export default function Carousel() { const [cities, setCities] = useState...
/** * Copyright (C) 2010-2023 The Catrobat Team * (http://developer.catrobat.org/credits) * * 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,...
import datetime from .commons.ErrorType import ErrorType from .commons.database import get_db_connection from .commons.type_response import response_200, response_400, response_500 from .commons.utils import validate_id, exists_by_id def datetime_handler(obj): if isinstance(obj, datetime.datetime): retur...
const chatInput = document.querySelector(".chat-input textarea"); const sendChatBtn =document.querySelector(".chat-input span"); const chatbox =document.querySelector(".chatbox"); const chatbotToggler =document.querySelector(".chatbot-toggler"); const chatbotCloseBtn =document.querySelector(".close-btn"); let userMe...
var main = function (input) { // var myOutputValue = drawChar(input) // var myOutputValue = drawSq(input); // var myOutputValue = drawTri(input) var myOutputValue = borderSquare(input) return myOutputValue; }; // Number of characters let drawChar = function(numChar) { let myOutputValue = ''; var counter ...
const todoFormEl = document.querySelector('#uid_todo_form'); const todoInputEl = todoFormEl?.querySelector('input'); const ulEl = document.querySelector('ul'); type Todo = { id: string; todo: string; }; let todos: Todo[] = []; const handleSaveTodo = (event: Event) => { event.preventDefault(); if (todoInputE...
import { useQuery } from '@tanstack/react-query'; import React from 'react'; import { toast } from 'react-hot-toast'; import Loading from '../Loading/Loading'; const Alluser = () => { const { data: users = [], refetch, isLoading } = useQuery({ queryKey: ['users'], queryFn: async () => { ...
<div class="container"> <div class="row"> <div class="col-xs-12"> <button class="btn btn-primary" (click)="onlyOdd = !onlyOdd">Only show odd numbers</button> <br><br> <ul class="list-group"> <div *ngIf="onlyOdd"> <li class="list-group-item" ...
<template> <form @submit.prevent="emitSubmit" class="flex flex-col items-center justify-center" > <div> <InputElement label="ID Dokumen" type="text" mode="small" id="id" :value="idState.input.value" @blur="idProps.onBlur" @input="idProps.onIn...
#ifndef __VIDEO_GR_H #define __VIDEO_GR_H #include "bitmap.h" /** @defgroup video_gr video_gr * @{ * * Functions for outputing data to screen in graphics mode */ /** * @brief Initializes the video module in graphics mode * * Uses the VBE INT 0x10 interface to set the desired * graphics mode, maps VRAM to t...
import fs from 'fs'; import handlebars from 'handlebars'; import { IUserData } from '@/data/protocols/emailService/ISendEmailDTO'; export interface IMailTemplateProvider { parse(file: string, variables: IUserData): Promise<string>; } export class HandlebarsMailTemplateProvider implements IMailTemplateProvider { ...
/*Write a multithreaded program for generating prime numbers from a given starting number to the given ending number.*/ #include <stdio.h> #include <stdlib.h> #include <pthread.h> // Function to check if a number is prime int isPrime(int num) { if (num <= 1) { return 0; // 0 and 1 are not prime } ...
import { SigningStargateClient } from "@cosmjs/stargate"; import { OfflineDirectSigner } from "@cosmjs/proto-signing"; import { AppCurrency, Bech32Config, BIP44, Currency, Key, } from "@keplr-wallet/types"; import { V1Beta1QueryParamsResponse } from "./cosmos.staking.v1beta1/rest"; import { V1Beta1QueryTotalS...
#!/usr/bin/perl -Tw use strict; $|++; use CGI qw(:all); ## set up the cache use File::Cache; my $cache = File::Cache->new({namespace => 'surveyonce', username => 'nobody', filemode => 0666, expires_in => 3600, # one hour ...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { app } from '../firebaseConfig'; import { getFirestore, collection, addDoc, query, where, getDocs } from "firebase/firestore"; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { AlertControlle...
import axios from "axios"; import { useRef } from "react"; import Product from "../models/Product.js"; const AddProduct = () => { const formRef = useRef(); const nameRef = useRef(); const imgRef = useRef(); const descriptionRef = useRef(); const priceRef = useRef(); const formHandler = (e) => { e.pre...
#include <stdio.h> #include "util.h" #include "symbol.h" #include "absyn.h" #include "types.h" #include "temp.h" #include "translate.h" #include "env.h" E_enventry E_VarEntry(Tr_access access, Ty_ty ty) { E_enventry e = (E_enventry) checked_malloc(sizeof(*e)); e->kind = E_varEntry; e->u.var.ty = ty; e->u.var.acces...
import { createContext, ParentComponent, useContext } from "solid-js"; import { createStore } from "solid-js/store"; import { defaultMargin, MarginIdType } from "../../_models/Margin"; import { defaultGridThumbnailSize, ThumbnailSizeIdType } from "../../_models/ThumbnailSize"; import { KEY_SETTINGS_SEARCH_VIEW_GRID, l...
import React, {useState} from 'react'; import {Button} from "@chakra-ui/react"; import {Link as ReachLink} from "react-router-dom" function Link({children,to,shouldBeActive}) { const [isActive, setIsActive] = useState(false); return ( <> <Button as={ReachLink} ...
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Chapter 3: Electroluminescent sources" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Example 3.15: Calculation_of_external_efficiency.sce" ] }, { "cell_type": "code", "exec...
public protocol Symbol { var id: Int { get set } var belongsToTable: Int { get set } var name: String { get } } internal protocol FunctionLikeSymbol: Symbol { var returnType: QsType { get set } var paramRange: ClosedRange<Int> { get } var functionParams: [FunctionParam] { get set } } public enu...
import { useState } from 'react' import './Pratos.css' import ModalAddPrato from '../ModalAddPrato/Addprato' import { useAuth } from '../../contexts/AuthContexts' import { useEdicaoMode } from '../../contexts/EdicaoContexts' type PratosProps = { id: number foto: string nome: String descricao: string ...
import { createFeatureSelector, createSelector } from '@ngrx/store'; import { Customer } from '../../model/customer'; import * as fromCustomers from '../reducers/customer.reducer'; export const selectCustomersState = createFeatureSelector<fromCustomers.State>( fromCustomers.customerFeatureKey ); export const select...
import { motion } from "framer-motion"; import { useEffect } from "react"; import SpeechRecognition, { useSpeechRecognition } from 'react-speech-recognition'; const SpeakBar = (props: { phrases: string[], setPhrase: React.Dispatch<React.SetStateAction<string[]>> }) => { const { transcript, listenin...
import React from "react"; const Notes = ({ overlocks, setOverlocks, reverseOverlocks, setReverseOverlocks, cleans, setCleans, toDoList, setToDoList, otherNotes, setOtherNotes, readOnly, }) => { const handleInputChange = (index, setter) => (event) => { setter((prev) => { const copy = ...
<?php use App\Models\Siswa; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('dokumen_siswas', funct...
//Minimum Number of Arrows to Burst Balloons //Example 1: // //Input: points = [[10,16],[2,8],[1,6],[7,12]] //Output: 2 //Explanation: The balloons can be burst by 2 arrows: //- Shoot an arrow at x = 6, bursting the balloons [2,8] and [1,6]. //- Shoot an arrow at x = 11, bursting the balloons [10,16] and [7,12]. class ...
import * as model from './model.js'; import recipeView from './views/recipeview.js'; import searchView from './views/searchView.js'; import resultsView from './views/resultView.js'; import paginationView from './views/paginationView.js'; import bookmarksView from './views/bookmarkview.js'; // import 'core-js'; import ...
package com.enerzai.optimium.example.android import android.Manifest import android.content.Context import android.content.pm.PackageManager import android.os.Build import android.os.Bundle import android.util.Log import androidx.activity.ComponentActivity import androidx.activity.compose.rememberLauncherForActivityRe...
import { useClientSize } from '@anton.bobrov/react-hooks'; import { RefObject, useEffect, useMemo, useRef } from 'react'; interface IProps { containerRef: RefObject<HTMLElement>; sourceWidth: number; sourceHeight: number; } interface IReturns { x: number; y: number; xLine: number; yLine: number; width...
# -*- coding: utf-8 -*- # Copyright 2022 Shang Xie. # All rights reserved. # # This file is part of the CatMOD distribution and # governed by your choice of the "CatMOD License Agreement" # or the "GNU General Public License v3.0". # Please see the LICENSE file that should # have been included as part of this package. ...
import { render, screen} from "@testing-library/react" import { MemoryRouter, Route } from "react-router-dom" import { OrderDetailsProvider } from "../../context/OrderDetails" import userEvent from "@testing-library/user-event" import ProductCard from "../ProductCard" const WrapperWithRoute = ({children}) => { ret...
// // File.swift // // // Created by Tibor Bodecs on 2021. 12. 14.. // @_exported import FeatherCore @_exported import BlogApi public extension HookName { // static let permission: HookName = "permission" } struct BlogModule: FeatherModule { let router = BlogRouter() var bundleUrl: ...
mod bucket; use std::fmt::Debug; use std::hash::Hasher; use std::ptr; use std::sync::atomic::AtomicPtr; use std::sync::atomic::Ordering; use std::sync::Arc; use std::sync::RwLock; use bucket::*; /** * Things we need to support: * * Resizing (to deal with bucket lengths getting too long and which will cause hash co...