text
stringlengths
184
4.48M
import React, { useState } from "react"; import { toast } from "react-toastify"; import { confirmAlert } from "react-confirm-alert"; import "react-confirm-alert/src/react-confirm-alert.css"; import axios from "../../pages/services/axios"; import ButtonPreloader from "./ButtonPreloader"; function DeleteButton({ path, i...
import { FormBaseElement } from './FormBaseElement.js'; import { Label, Input, Span, Div } from '/static/js/ui/BuildingBlocks.js'; import { ELEMENTS_TYPE } from '/static/designer/js/elements/constants.js'; import { PROPERTIES_ID } from '/static/designer/js/constants/constants.js'; import { DEFAULT_FONT_SIZE } from '/st...
# REACT STARSHİP LİST APP ## Özet - React.js, Context ve https://swapi.dev/api/ kullanılarak yazılmıştır. Yıldız gemilerinin listelendiği ve ayrıca yıldız gemilerini arayıp bulabileceğiniz bir listeleme uygulaması. ### Kullanılan Teknolojiler - React.Js - TailwindCss - React-router-dom - React-icons - Hero-icons - ...
import socket from machine import ADC from machine import Timer adc1 = ADC(Pin(26)) adc3 = ADC(Pin(28)) digitalIn = Pin(15, Pin.IN) # inicializando el pin 15 como entrada digital led = Pin("LED", Pin.OUT) # inicializando el led integrado como salida digital period = 1000 r_value = "0" g_value = "0" b_value = "0" ...
import theme from '../index'; export interface MuiComponentSettings { [key: string]: string | number | object; } export const MuiButton: MuiComponentSettings = { styleOverrides: { root: { fontSize: '16px', padding: '10px 16px', borderRadius: '8px', fontFamily: 'Lato', lineHeight: '28px', minWidt...
import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:to_do_list/models/task-model.dart'; import 'package:to_do_list/view_models/app_view_model.dart'; class DeleteBottomSheet extends StatelessWidget { DeleteBottomSheet({super.key}); final TextEditingController taskEntryC...
title: Objective-C内存管理ARC&MRC date: 2013-05-06 11:28:15 categories: - Objective-C基础 tags: - Objective-C - 内存管理 - ARC&MRC permalink: Objective-C-ARC&MRC ---   内存管理是在开发中比较重视的一个问题,因为我们手机运行内存并不是很大,iPhone的内存就更小了,灵活运用Objective-C的内存管理机制可以给我带来很多方便。 <!-- more --> ## 内存管理基本认识 ### 为什么要学习内存管理? - 由于移动设备的内存极其有限,所以每个APP所占的内存也是有限制的...
import axios from "axios"; import { useEffect, useState } from "react"; import { useParams } from "react-router-dom"; import Loader from "./Loader"; import { EditOutlined } from "@ant-design/icons"; import Modal from "./Modal"; const EmployeeDetail = () => { const { id } = useParams(); const [loading, setLoading] ...
<% required_status = required_status ||= false %> <% pretend_required = pretend_required ||= false %> <div id='bibliography_authors' class='repeatable-field'> <div class="row string optional bibliography-person-fields"> <label class="col-sm-2 col-form-label string optional"><%= format_field_label(field_labe...
import 'package:get/get.dart'; // bindings import 'package:docapp/src/bindings/settings_bindings.dart'; // routes import '../../bindings/editUSerName_binding.dart'; import '../../bindings/home_bindings.dart'; import '../../bindings/login_bindings.dart'; import '../../middlewares/auth.dart'; import '../../ui/views/ed...
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <androidx.c...
import UIKit class Empregado{ var nome: String = "" var sobrenome: String = "" var dataNascimento: String = "" var cidadeNascimento: String = "" var funcao: String = "" var nomeCompleto: String { "\(nome) \(sobrenome)" } init(nome: String, sobrenome: String) { self.nome ...
package com.selog.controller; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import o...
// Copyright 2024 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/fingerprinting_protection_filter/browser/fingerprinting_protection_child_navigation_throttle.h" #include <memory> #include <string> #include "base/functi...
package com.intertech.controller; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.propertyeditors.CustomDateEditor; import org.springframework.stereotype.Contro...
package strategy import model.EntityType._ import model._ import scala.collection.mutable object TacticsLogic extends StrategyPart { def potentialTargets(who: Entity, types: Seq[EntityType])(implicit g: GameInfo): Seq[Entity] = { g.region(who.position).enemyN9(types).filter(target => canAttack(who, target)) ...
{% extends "base.html" %} {% load static %} {% block page_header %} {% include 'includes/rest-of-site-nav.html' %} {% endblock %} {% block content %} <div class="overlay"></div> <div class="container-fluid"> {% if product.element %} <div class="row"> <div class="col-12 col-lg-4 offset-lg-2" id="conten...
package lookout import ( "time" "github.com/ipni/lookout/check" "github.com/ipni/lookout/sample" ) type ( Option func(*options) error options struct { metricsListenAddr string checkInterval *time.Ticker checkersParallelism int samplersParallelism int checkers []check.Checker samp...
import 'package:flutter/material.dart'; import 'package:news/home/myhompage.dart'; import 'package:news/home/screen_business.dart'; import 'package:news/home/screen_sport.dart'; import 'package:news/home/technology/screen_technology.dart'; class ScreenTabBar extends StatefulWidget { const ScreenTabBar({Key? key}) : ...
package com.example.api_plantanciones.controller; import com.example.api_plantanciones.dto.sensor.SensorHumTemAvg; import com.example.api_plantanciones.dto.sensor.SensorHumTemAvgHist; import com.example.api_plantanciones.model.Sensor; import com.example.api_plantanciones.service.SensorService; import org.apache.coyot...
package com.google.android.exoplayer2.source.hls; import android.net.Uri; import android.text.TextUtils; import com.google.android.exoplayer2.Format; import com.google.android.exoplayer2.analytics.PlayerId; import com.google.android.exoplayer2.extractor.Extractor; import com.google.android.exoplayer2.extractor.Extract...
import express from 'express'; import http from 'http'; import { Server as SocketIOServer } from 'socket.io'; import { engine } from 'express-handlebars'; import { fileURLToPath } from 'url'; import path from 'path'; import productRoutes from './routes/products.routes.js'; import cartRoutes from './routes/carts.routes....
import { AccessOperationEnum, AccessServiceEnum, requireNextAuth, withAuthorization, useAuthorizationApi, } from '@roq/nextjs'; import { compose } from 'lib/compose'; import { Box, Button, Flex, IconButton, Link, Text, TextProps } from '@chakra-ui/react'; import { ColumnDef } from '@tanstack/react-table'; imp...
package com.bloggingapp.exception; import java.util.HashMap; import java.util.Map; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.validation.FieldError; import org.springframework.web.bind.MethodArgumentNotValidException; import org.springframewo...
package com.example.demo.component; import cn.hutool.json.JSONArray; import cn.hutool.json.JSONObject; import cn.hutool.json.JSONUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import javax.websocket.*; import javax.websocket.server.PathParam; import jav...
/** @jsx jsx */ import { css, jsx } from '@emotion/core'; import { colorPalettes } from '../src'; import { ColorPill, Heading } from './colors'; const firstHeadingStyles = css({ marginTop: 0, }); export default () => { return ( <div id="colors"> <Heading css={firstHeadingStyles}>8 colors (base)</Headi...
pipes in NEMO: Standard UNIX pipes are often use in NEMO to stream data from one task to another, e.g. mkplummer - 1000 | integrator - - tstop=10 | snapplot - nxy=4,4 This does have some limitations, e.g. it is hard to fork/split a data-stream and run two streams in the standard unix shell, and perhaps even harde...
import streamlit as st from requests.auth import HTTPBasicAuth import requests # Orcid Auth CLIENT_ID = st.secrets["Orcid_ID"] CLIENT_SECRET = st.secrets["Orcid_Secret"] # REDIRECT_URI = "https://orcid-app-u9tbyykcsuwozua46jf3hk.streamlit.app/" # REDIRECT_URI = "https://geo-cosmo-data-sharing-platform-bvniuih82j6l2aeq...
import { Chance } from "chance"; import { QuestItemType, QuestStatus } from "./core/enums"; import { Events } from "./core/events"; import { IngameTime } from "./core/game-time"; import { Logic } from "./core/logic"; import PlayerGoal from "./player-goal"; import { AdvancedDynamicTexture, TextBlock, Rectangle, Button, ...
using BlazorBootstrap; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Authorization; using ShopOnline.Models.Dtos; using ShopOnline.Web.Services.Contracts; using System.Security.Claims; namespace ShopOnline.Web.Pages.Account { public class LoginBase : ComponentBase { prot...
// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "Templates/Function.h" #include "Templates/SharedPointer.h" #include "Templates/UnrealTemplate.h" #if !(UE_BUILD_SHIPPING || UE_BUILD_TEST) #define METASOUND_FRONTEND_ACCESSPTR_DEBUG_INFO 1 #else #define METASOUND_FRONTEND_ACCESSPTR_DEBUG_INFO ...
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>图片管理</title> <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.css"> <link rel="stylesheet" type="text/css" href="/static/css/index.css"> <link rel="stylesheet" type="text/css" ...
part of sci_component; typedef ObjectToText = String Function(Object o); class SimpleSelectionListComponent<T> extends SelectionListComponent<T> { @override String get template => '''<div></div>'''; SimpleSelectionListComponent(List<T> _list, {required ObjectToText objectToText}) : super(_list, ob...
import { Inject } from '@nestjs/common'; import { BigNumberish } from 'ethers'; import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; import { UniswapV2PoolOnChainTemplateTokenFetcher } from '~apps/uniswap-v2/common/uniswap-v2.pool.on-chain.template.token-fetcher'; import { KyberswapClassicVi...
<!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>Transitions</title> <link rel="stylesheet" href="/assets/css/style.css"> <style> .transitions { ...
import { createResource, createSignal } from "solid-js"; import { createStore } from "solid-js/store"; import { mande } from "mande"; const api = mande("https://swapi.dev/api/"); interface Planet { name?: string; climate?: string; terrain?: string; diameter?: string; population?: string; gravi...
from django.db import models from categories.models import Category from django.contrib.auth.models import User class Post(models.Model): title = models.CharField(max_length=50) content = models.TextField() category = models.ManyToManyField(Category) # a post can be of multiple categories and a category ca...
--- title: 資料錄欄位交換:RFX 的使用 ms.date: 11/04/2016 helpviewer_keywords: - RFX (ODBC), implementing ms.assetid: ada8f043-37e6-4d41-9db3-92c997a61957 ms.openlocfilehash: dc0cdcee758f4842b0738068a8a11c4e2e404155 ms.sourcegitcommit: c123cc76bb2b6c5cde6f4c425ece420ac733bf70 ms.translationtype: MT ms.contentlocale: zh-TW ms.last...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { MatSliderModule } from '@...
import { Utilities } from "../site.js"; let utils = new Utilities(); let currentPage = 0; let pageSize = 20; init(); function init() { $("#perform_search").on("click", function () { currentPage = 0; changePage(currentPage); searchStudents(); }); $("#previous_page").on("click", func...
<%-- Document : visulizarCliente Created on : 24 de out de 2021, 21:45:40 Author : Felype --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <!DOCTYPE html> <html> <head> <c:import url="../uteis/header-import.jsp"/...
package com.example.vemprofut.ui import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.example.vemprofut.R import com.example.vemprofut.databinding.FragmentAppJogadorBinding class AppJogadorFragment : Fragmen...
package com.shamsheev.wildberries.api.statistics.config import com.shamsheev.wildberries.api.statistics.model.ApiRequestResult import com.shamsheev.wildberries.api.statistics.model.ApiStatus import com.shamsheev.wildberries.api.statistics.model.ApiType import com.shamsheev.wildberries.api.statistics.service.ApiRequest...
package dev.hmmr.taxi.management.backend.spring.mapper; import static dev.hmmr.taxi.management.backend.spring.dummy.CustomerDummy.customerEntityWithId; import static dev.hmmr.taxi.management.backend.spring.dummy.CustomerDummy.customerWithId; import static dev.hmmr.taxi.management.backend.spring.dummy.LocationDummy.des...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using AgentieTurism.Data; using AgentieTurism.Models; namespace Age...
import { memo, useMemo } from 'react' import { I18nManager } from 'react-native' import { SharedValue, useDerivedValue } from 'react-native-reanimated' import { LineChart, LineChartProvider } from 'react-native-wagmi-charts' import PriceExplorerAnimatedNumber from 'src/components/PriceExplorer/PriceExplorerAnimatedNumb...
using System; using System.Linq; using System.Text; using System.CodeDom.Compiler; using Microsoft.CSharp; using System.Reflection; using System.Collections.Generic; namespace SoftwareAcademy { public class Teacher : ITeacher { private List<ICourse> courses = new List<ICourse>(); public stri...
<script lang="ts"> // @ts-nocheck import AccordionPanel from "./AccordionPanel.svelte"; import AccordionHeader from "./AccordionHeader.svelte"; import { panelInfoTypes } from "./AccordionTypes"; export let options: panelInfoTypes; export let headerLevel: number = 2; export let customStyles: string[]; ...
import 'package:dio/dio.dart'; import '../model/todo_item.dart'; class NetworkManager { late final Dio _dio; final baseUrl = 'https://5fdb-2400-9800-c35-2413-e56f-c8bc-eca6-c874.ngrok-free.app'; NetworkManager() { _dio = Dio(); } Future<List<TodoItem>> getTodosIsDone(bool isDone) async { fina...
import { useNavigate } from "react-router-dom"; import moment from "moment"; import Dropdown from "@/components/Dropdown"; import classNames from "classnames/bind"; import styles from "./NumericalOrder.module.scss"; import { Button, Modal } from "antd"; import { useEffect, useState } from "react"; import { CloseIcon } ...
package org.seckill.web; import org.seckill.dto.Exposer; import org.seckill.dto.SeckillExecution; import org.seckill.dto.SeckillResult; import org.seckill.entity.Seckill; import org.seckill.enums.SeckillStateEnum; import org.seckill.exception.RepeatKillException; import org.seckill.exception.SeckillCloseException; imp...
import { classNames } from 'shared/lib/classNames/classNames' import cls from './LoginForm.module.scss' import { Button, ThemeButton } from 'shared/ui/Button/Button' import { useTranslation } from 'react-i18next' import { Input } from 'shared/ui/Input/Input' import { memo, useCallback } from 'react' import { useSelecto...
+++ draft = false date = 2015-05-05 title = "Use IPTables NOTRACK to implement stateless rules and reduce packet loss" description = "" summary = "Disabling IPTables connection tracking for DNS can resolve problems due to too many connections in the connection table." slug = "" authors = [] tags = ["DNS", "IPTables", ...
import React, { FC, useCallback, useEffect } from 'react'; import { SVGIcon } from '../../../../atoms/SVGIcon/SVGIcon'; import { Text } from '../../../../atoms/Text/Text'; import { Channels, Chat } from '../../../../../../models/chat/chat'; import { // StyledLabel, StyledClientAndAgentAvatars, StyledNameAndDialog...
import React, { useState } from "react"; export default function MainTemperature(props) { const [unit, setUnit] = useState("celsius"); function showFahrenheit(event) { event.preventDefault(); setUnit("fahrenheit"); } function showCelsius(event) { event.preventDefault(); setUnit("celsius"); ...
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors #include "colorpicker.h" #include "src/utils/confighandler.h" #include "src/utils/globalvalues.h" #include <QMouseEvent> #include <QPainter> ColorPicker::ColorPicker(QWidget* parent) : QWidget(pare...
import React from "react"; import Portrait from "../assets/Portrait.png"; import { motion } from "framer-motion"; import { fadeIn } from "./variants"; import jsico from "../assets/js.png"; import csharpico from "../assets/csharp.png"; import sqlico from "../assets/sql.png"; import htmlico from "../assets/html.png"; imp...
import torch import torch.nn as nn # Pg 81: 3.1 A compact self-attention class for Version 1. class SelfAttention_v1(nn.Module): def __init__(self, d_in, d_out): super().__init__() self.d_out = d_out self.W_query = nn.Parameter(torch.rand(d_in, d_out)) self.W_key = nn.Parameter(torc...
import './App.scss' import axios from 'axios' import React, { useState, useEffect } from 'react' import CharactersList from './components/CharactersList/CharactersList' import CharactersSearch from './components/CharactersSearch/CharactersSearch' import { Link } from 'react-router-dom' import { Container, Pagination, P...
import 'dart:math'; import 'package:face_talk_flutter/components/custom_text_field.dart'; import 'package:face_talk_flutter/screens/call_page.dart'; import 'package:flutter/material.dart'; class HomePage extends StatefulWidget { const HomePage({super.key, required this.userID}); final String userID; @override ...
package org.study.hydro.entity; import javax.persistence.*; import java.io.Serializable; import java.util.List; import java.util.Objects; @Entity @Table(name = "roles", uniqueConstraints = @UniqueConstraint(columnNames = "name")) public class Role implements Serializable { private static final long serialVersio...
package com.trynoice.api.platform; import jakarta.validation.ConstraintViolationException; import lombok.NonNull; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.TypeMismatchException; import org.springframework.http.HttpStatus; import org.springframework.http.converter.HttpMessageNotReadableExcepti...
import React from 'react'; import PropTypes from 'prop-types'; import css from './TransactionHistory.module.css'; export const TransactionHistory = ({ transactions }) => ( <table className={css.transaction__history}> <thead> <tr> <th>Type</th> <th>Amount</th> <th>Currency</th> ...
import { urlGetAllCER, urlGetAllCERService } from "./../utils/services"; import useFetch from "./../hooks/useFetch"; const GeneralInfo = () => { const { response, isLoading, error } = useFetch( urlGetAllCER, urlGetAllCERService ); console.log(response); return ( <section className="bg-white dark:bg...
import { IsNotEmpty, IsEmail, IsPhoneNumber, IsString } from 'class-validator'; export class createContactDto { @IsString() @IsNotEmpty() name: string; @IsEmail() @IsNotEmpty() email: string; @IsPhoneNumber() phoneNumber?: string; @IsString() @IsNotEmpty() preferedMethod: string; @IsString(...
#include <iostream> #include <vector> #include <complex> #include<algorithm> #include<iomanip> #include<time.h> #define MINIMP3_IMPLEMENTATION #include "minimp3.h" #include "minimp3_ex.h" using namespace std; const int WIDTH = 4096; const int STEP = 1024; const double pi = acos(-1.0); bool comp(complex<double> a, ...
# README ## 考え方 + UI = f(state)なので、 + fという関数を作ろう -> `const [state, setStateFunc] = useState(initialState);` ## demo ```bash npx create-react-app . npm start ``` # ref + 🌟 useState: 関数コンポーネントでstateを管理(stateの保持と更新)するためのReactフック + 🌟 useEffect: 関数の実行タイミングをReactのレンダリング後まで遅らせるhook + useContext: propsバケツリレーをしなくても下の...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <title>Swaroop korde (Portfolio)</title> <meta content="" name="descriptison"> <meta content="" name="keywords"> <!-- Favicons --> <link href="assets/img/favicon.png" re...
const express = require('express'); const fileUpload = require('express-fileupload'); const app = express(); app.use(fileUpload()); app.post('/upload', (req, res) => { if (!req.files || Object.keys(req.files).length === 0) { return res.status(400).send('没有文件被上传。'); } // 这里 'files' 是 HTML 表单中文件输入字...
import type { UseHandleError, ErrorParams } from '~/composables/useHandleError/types'; const defaultError: ErrorParams = { status: 500, message: 'An error occurred', statusMessage: 'An error occurred', }; /** * @description Composable for handling errors. * @param error {@link ErrorParams} * @returns Throws ...
import { Table, Container, Button } from 'react-bootstrap' import CarsApi from './api/CarsApi' import { useEffect, useState } from 'react' import CreateModal from './components/CreateModal' import UpdateModal from './components/UpdateModal' function App() { const [Cars, setCars] = useState() const [isCreateModalOp...
package thread; public class ThreadEx16 { public static void main(String[] args) { RunImplEx16 r1 = new RunImplEx16(); RunImplEx16 r2 = new RunImplEx16(); RunImplEx16 r3 = new RunImplEx16(); Thread t1 = new Thread(r1); Thread t2 = new Thread(r2); Thread t3 = new Thre...
from pwn import * HOST = "" PORT = "" # Allows you to switch between local/GDB/remote from terminal def start(argv=[], *a, **kw): if args.GDB: # Set GDBscript below return gdb.debug([exe] + argv, gdbscript=gdbscript, *a, **kw) elif args.REMOTE: # ('server', 'port') return remote(HOST, PORT, ...
import { useEffect, useState } from 'react'; import { solG2 } from '@thehubbleproject/bls/dist/mcl'; import PaymentChannel, { Payment } from '../PaymentChannel'; import Transaction from '../components/Transaction'; import AppContext from '../AppContext'; import calculateSignaturesNeeded from '../utils/calculateSignatur...
<?php namespace App\Http\Controllers; use App\Models\Tarea; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Log; class TareaController extends Controller { //método para mostras todas las tareas registradas public function index(Request $request, $columna...
package com.example.demo.controller; import static com.example.demo.commons.librocontans.API_AUTORES; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind....
class UsersController < ApplicationController before_action :is_matching_login_user, only: [:edit, :update] def index @user = current_user @book = Book.new @users = User.all end def show @user = User.find(params[:id]) @book = Book.new @books = @user.books end def edit @user ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InteractionHandlerFilters = exports.InteractionHandlerStore = void 0; const pieces_1 = require("@sapphire/pieces"); const result_1 = require("@sapphire/result"); const Events_1 = require("../types/Events"); const InteractionHandler_1 =...
#pragma once //防止重复引用造成二义性,类似#ifndef #include <ros/ros.h> #include <pcl_conversions/pcl_conversions.h> #include <pcl/point_types.h> #include <pcl/conversions.h> #include <pcl_ros/transforms.h> #include <pcl/filters/extract_indices.h> #include <pcl/filters/passthrough.h> #include <pcl/filters/statistical_outlier_remo...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Exercise02 { class Program { static void Main(string[] args) { var books = new List<Book> { new Book { Title = "C#プログラミングの新常識", Price = 3800, Pages = 37...
#pragma once #include <fstream> #include <sstream> #include "binaryTree.h" #include "message.h" class Hash { private: int len; bool log; ofstream logFile; binaryTree *table; public: Hash(int M); ~Hash(); int getPos(int val); void entrega(message email); void apaga(int user, int ema...
/** ****************************************************************************** * @file stm32f0xx_ll_rcc.h * @author MCD Application Team * @version V1.4.0 * @date 27-May-2016 * @brief Header file of RCC LL module. ****************************************************************************** ...
package com.islamzada.todoapp.entity import android.os.Parcelable import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.PrimaryKey import kotlinx.parcelize.Parcelize @Parcelize @Entity data class Notes ( @PrimaryKey(autoGenerate = true) val id: Int, @ColumnInfo(name = "title") val t...
/* global Worker */ import Store from '@enhance/store' const store = Store() const CREATE = 'create' const UPDATE = 'update' const DESTROY = 'destroy' const LIST = 'list' let worker export default function API() { if (!worker) { worker = new Worker('/_public/worker.mjs') worker.onmessage = mutate } ret...
// select HTML elements in the document const currentTemp = document.getElementById('current-temp'); const weatherIcon = document.getElementById('weather-icon'); const captionDesc = document.querySelector('figcaption'); // crear las variables con mi KEY const apiKey = "942cb3e734cbba69ea8a179cac8e553d"; const apiUrl =...
/* * 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 writing, software * distribu...
#include "variadic_functions.h" /** * print_numbers - prints numbers * @separator: separator to be printed between numbers * @n: number of integers passed to the function * * Return: void */ void print_numbers(const char *separator, const unsigned int n, ...) { va_list nums; unsigned int i; int var; va_star...
import React, { useState } from 'react'; import { Route, Switch, Redirect, useHistory } from 'react-router-dom'; import ReactDOM from 'react-dom'; import Header from "./Header.jsx"; import Main from "./Main.jsx"; import UserProfile from './UserProfile.jsx'; import Footer from "./Footer.jsx"; import PopupWithForm from "...
import React, { useState } from "react"; import { PencilSquareIcon, TrashIcon, CloudArrowDownIcon, FolderOpenIcon} from "@heroicons/react/24/solid"; import FormAlert from "components/FormAlert"; import Button from "components/Button"; import EditClassModal from "components/EditClassModal"; import { useAuth } from "util...
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Http\Requests\AddressRequest; use App\Models\Setting; use http\Client\Request; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Auth; use Inertia\Inertia; use Rou...
#!/usr/bin/perl use strict; use warnings; use Getopt::Long; use Pod::Usage; use Path::Class qw(dir file); use meon::Web::Config; use meon::Web::env; use Email::MIME; use Email::Sender::Simple qw(sendmail); use XML::Chain qw(xc); use DateTime; use String::Ident; use URI::Escape qw(uri_escape); use Imager; use List::Ut...
import React, { RefObject } from "react"; import { Cursor, useTypewriter } from "react-simple-typewriter"; import HeroBackground from "./HeroBackground"; import Image from "next/image"; import { motion } from "framer-motion"; import HeroButton from "./HeroButton"; interface Props { aboutRef: RefObject<HTMLElement>; ...
import { useState } from "react"; import { Button, Container, Form, Row, Col, FloatingLabel } from "react-bootstrap"; import { useSelector, useDispatch} from 'react-redux'; import { adicionar, atualizar} from '../../redux/clienteReducer'; export default function FormCadCliente(props) { const clienteVazio = { ...
package com.example.myapplication.ui.home import androidx.lifecycle.ViewModelProvider import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Button import androidx.navigation.fragment.findNavControll...
#Calculate Hedges' g' esc_mean_sd(grp1m = 20.09, # mean of group 1 grp1sd = 1.45, # standard deviation of group 1 grp1n = 23, # sample in group 1 grp2m = 17.79, # mean of group 2 grp2sd = 2.13, # standard deviation of group 2 grp2n = 22, # sample...
import { logger } from "../../../utils/logger"; import ObjLog from "../../../utils/ObjLog"; import doc_typesService from "../services/doc_types.service"; import authenticationPGRepository from "../../authentication/repositories/authentication.pg.repository"; import { env, ENVIROMENTS } from "../../../utils/enviroment";...
public class Main { public static void main(String[] args) { // printf() = an option method to control, format, and display text to the console window // two arguments = format string + (object/variable/value) // % [flag] [precision] [width] [conversion-character] // %d = decimal numbers %b boole...
<?php namespace Gist\Form; use Symfony\Component\Validator\Constraints\NotBlank; /** * Class CreateGistForm. * * @author Simon Vieille <simon@deblan.fr> */ class FilterGistForm extends AbstractForm { /** * {@inheritdoc} */ public function build(array $options = array()) { $this->bui...
/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { val = x; } * } */ // iterative approach class Solution { public ListNode removeElements(ListNode head, int val) { ListNode dummy = new ListNode(0); dummy.next = ...
package com.liceotrujillo.apiclt.news.infrastructure.output.jpa.adapter; import com.liceotrujillo.apiclt.news.domain.model.TagNews; import com.liceotrujillo.apiclt.news.infrastructure.output.jpa.entity.TagNewsEntity; import com.liceotrujillo.apiclt.news.infrastructure.output.jpa.mapper.ITagNewsEntityMapper; import com...