text
stringlengths
184
4.48M
import {AiFunctionEnhanced} from "../types"; import {utils} from "./utils.service"; const getInfoCompanyParameters = { type: "object", properties: { company_name: { type: "string", description: "The name of the company and 4 possible variations based on a standard company name", } }, requi...
Copyright 2009 Jonathan Corbet <corbet@lwn.net> Debugfs exists as a simple way for kernel developers to make information available to user space. Unlike /proc, which is only meant for information about a process, or sysfs, which has strict one-value-per-file rules, debugfs has no rules at all. Developers can put any...
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
/* * Copyright (C) 2001, 2005 Gérard Milmeister * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but W...
/* * A program to automatically trade cryptocurrencies. * Copyright (C) 2020 Tomas Skalicky * * 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 * (at you...
// Copyright (C) 2010-2012 INRIA // Author(s): Kévin Charpentier, Vivien Mallet, Anne Tilloy // // This file is part of the data assimilation library Verdandi. // // Verdandi 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 /...
Rules of the Wubi input method Each key is assigned ... 1. Several roots. 2. A representative root (the first one in wubi-keys.jpg), e.g. 月 for E. 3. A frequently used character (above the roots in wubi-keys.jpg), e.g. 有 for E. These should be learned by heart. There is a quasi-logical system: - T-R-E-W-Q...
@(fields: List[models.Field]) @top.render() <body> <div class="mytab"> <div class="addbutton"> <input class="btn btn-primary" onclick="location.href='createfield'" type="button" value="+ ADD FIELD"></div> <table class="table table-striped"> <tr> ...
package com.example.jojosproject.Adapter import android.graphics.Color import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.* import androidx.recyclerview.widget.RecyclerView import com.example.jojosproject.DataClass.Carte import com.example.jojosproject.DataC...
import * as express from 'express'; import { NextFunction, Request, Response } from 'express'; import { handleAsync } from '../common/helpers'; import { AuthController } from '../controllers/authController'; import { LoginDto, UpdatePasswordDto, UserRegistrationDto, } from '../dtos/user.dto'; import { userRegi...
package en.gregthegeek.gfactions.economy; import java.util.HashMap; import en.gregthegeek.gfactions.db.Datasource; import en.gregthegeek.gfactions.faction.Faction; import en.gregthegeek.util.Utils; /** * Represents an economy managed by gFactions. * * @author gregthegeek * */ public class IntegratedEconomy imp...
.gf-button { background: $colour-light-grey; text-align: center; align-items: center; justify-content: center; display: inline-flex; border-radius: $default-button-border-radius; text-transform: uppercase; cursor: pointer; box-sizing: border-box; border: none; font-family: $header-font; font-wei...
import React, { useState, useEffect } from "react"; import axios from "axios"; import moment from "moment"; import { useParams } from "react-router-dom"; import StripeCheckout from "react-stripe-checkout"; import Swal from "sweetalert2"; import Loader from "../components/Loader"; import Error from "../components/Error"...
package cronies.meeting.user.service.impl; import cronies.meeting.user.service.InviteService; import cronies.meeting.user.service.CommonService; import cronies.meeting.user.service.PushService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; impor...
/*************************************************************************************** *@file dnxNode.h *@author Steven D.Morrey (smorrey@ldschurch.org) *@c (c)2008 Intellectual Reserve, Inc. * * The purpose of this file is to define a worker node instrumentation class. ********************************************...
import React, { Component } from 'react'; import styles from './style.scss'; import { Router, Route, Link } from 'react-router' import AppBar from 'material-ui/lib/app-bar'; import IconButton from 'material-ui/lib/icon-button'; import NavigationClose from 'material-ui/lib/svg-icons/navigation/close'; import IconMenu fr...
@demo Feature: Search In order to see a word definition As a website user I need to be able to search for a word Scenario: Searching for a page that does exist Given I am on "https://www.wikipedia.org/wiki/Main_Page" When I fill in "search" with "Behavior Driven Development" And I press "searchButt...
<script> import { defineComponent, ref, reactive, watch, nextTick, toRefs } from "vue" /** * Composable */ import { useOnOutsidePress } from "@/composable/onOutside" export default defineComponent({ name: "Dropdown", props: { forceOpen: Boolean, side: { type: String, default: "bottom", }...
import { BrowserModule } from "@angular/platform-browser"; import { NgModule } from "@angular/core"; import { AppRoutingModule } from "./app-routing.module"; import { AppComponent } from "./app.component"; import { LoginComponent } from "./auth/login/login.component"; import { RegisterComponent } from "./auth/register...
import React, {useContext, useEffect, useState} from 'react' import {FaArrowRight} from 'react-icons/fa' import { SelectedInstancesContext } from '../App'; import { useNavigate } from 'react-router-dom'; import { LoadingComponent } from './LoadingComponent'; import { toast, ToastContainer } from 'react-toastify'; impor...
// // HomeViewController.swift // EMovie // // Created by Nizar Elhraiech on 15/1/2022. // import UIKit import Combine @available(iOS 13.0, *) class HomeViewController: UIViewController { // MARK: Outlets @IBOutlet weak var passwordTextField: UITextField! @IBOutlet weak var emailTextField: UIT...
<html data-ng-app="chatApp"> <head> <link href="css/app.css" rel="stylesheet"/> <script src="lib/angular.js"></script> </head> <body data-ng-controller="chatController"> <div class="wrapper"> <div class="listview"> <div class="lv-header"> Awesome chat app </di...
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> /* 媒体查询类型 -- 响应式布局,根据不同屏幕宽度显示样式不同 - all 所有设备 - screen 电子屏幕,包括平板,手机,电脑 - print 打印机 - 一些废弃的 ...
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: vector<int> postorderTraversal(TreeNode* root) { stack<TreeNode*> st; vector<i...
import React, { Component } from 'react' import { BACKEND } from '../config' import cookie from 'react-cookies' import { Link } from 'react-router-dom' import './header.css' class Header extends Component { constructor( props ) { super( props ); this.state = { id : cookie.load('user_...
import { CListGroup, CListGroupItem } from "@coreui/react"; import { React, useState } from "react"; import { useHistory } from "react-router-dom"; import Slider1 from "./slider"; import { userApi } from "../../../api/userApi"; import toast from "react-hot-toast"; import bg1 from '../../../images/background/bg1.jpg'; /...
package dev.alexanastasyev.nirbackend.model; import dev.alexanastasyev.nirbackend.util.lambda.DoubleGetter; import dev.alexanastasyev.nirbackend.util.lambda.DoubleSetter; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Objects; public class CustomerClusteringModel { private static fin...
import { doc, getDoc } from "firebase/firestore"; import { db } from "../../firebaseConfig"; // This is an asynchronous function that fetches a specific node ID for a given store in a specific mall from Firebase Firestore. // Parameters: // currentMall - The name of the mall where the store is located. // storeName - ...
# JavaScript ES6 - let, const, arrow functions e template literals #### Conteúdo Neste bloco e no próximo, você vai aprender sobre a mais nova versão do *JavaScript*, conhecida como *ES6*, *ECMAScript 6* ou *ES2015*. Esses vários nomes podem gerar alguma dúvida, mas na verdade todos fazem referência à mesma linguagem....
import { Box, Button, Container, TextField, Typography } from "@mui/material"; import { Link, useNavigate } from "react-router-dom"; import styles from "./style.module.css"; import { getApiUrl } from "utils/getApiUrl"; import axios from "axios"; import { getAuthorizedOptions } from "utils/getAuthorizedOptions"; import ...
Dot = class('Dot') function Dot:initialize(x, y, angle, speed, mass, directions, super, gigantic, repel) self.x = x self.y = y self.super = super or false -- if true, a large, immobile object self.gigantic = gigantic or false -- if true for a super object, then it is even larger self.directions = directions or 0 ...
<h2></h2> <h2> Solution </h2> ``` c++ // Time Complexity of everything O(N) struct Node { Node* links[26]; int cntPrefix=0; int cntEndsWith=0; bool containsKey(char ch) { return links[ch-'a']!=NULL; } void put(char ch,N...
import { useContext, useState } from 'react'; import { Alert, Image, StyleSheet, View } from 'react-native'; import { launchCameraAsync, useCameraPermissions, PermissionStatus } from 'expo-image-picker'; import { GlobalContext } from '../../store/GlobalProvider'; import { globalStyles } from '../../theme'; import { But...
import React from "react"; import s from './Post.module.css'; import userPhoto from "../../../../assets/img/user.png"; import {Button, Col, Divider, Row, Typography} from "antd"; import {LikeOutlined, LikeFilled, CloseOutlined} from "@ant-design/icons"; const {Text} = Typography type PropsType = { setLiked: (post...
14154 www.ics.uci.edu/~dock/manuals/oechem/cplusprog/node41.html 4.4.3 Use of the conformers as first-class objects OEChem - C++ Theory Manual Version 1.3.1 Previous: 4.4.2 Use of the Up: 4.4 Properties of Multi-Conformer Next: 5. Traversing the Atoms, 4.4.3 Use of the conformers as first-class objects Alternatively, a...
//jshint esversion:6 const express = require('express'); const bodyParser = require('body-parser'); const ejs = require('ejs'); const mongoose = require('mongoose'); const app = new express(); app.use(express.static("public")); app.use(bodyParser.urlencoded({extended:true})); mongoose.connect("mongodb://localhost:2...
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="/style.css"/> <link href="https://cdn.jsdelivr.net/npm/boots...
import { cn } from '@/utils'; import { TouchableOpacity, View } from 'react-native'; import { Text } from './Text'; import { MaterialCommunityIcons } from '@expo/vector-icons'; import React from 'react'; interface TableProps extends React.ComponentPropsWithoutRef<typeof View> { header?: string; headerClassName?: s...
use axum::{http::StatusCode, response::IntoResponse}; use derive_more::From; pub type Result<T> = core::result::Result<T, Error>; #[derive(Debug, From)] pub enum Error { #[from] Custom(String), #[from] Zoho(crate::zoho::Error), // -- Externals #[from] Io(std::io::Error), // as example ...
<?php declare(strict_types=1); namespace Intervention\Image; use Error; use Intervention\Image\Encoders\AvifEncoder; use Intervention\Image\Encoders\BmpEncoder; use Intervention\Image\Encoders\GifEncoder; use Intervention\Image\Encoders\HeicEncoder; use Intervention\Image\Encoders\Jpeg2000Encoder; use Intervention\I...
import { screen, render } from '@testing-library/react'; import { rest } from 'msw'; import { setupServer } from 'msw/node'; import { MemoryRouter, Routes, Route } from 'react-router-dom'; import Detail from './'; describe('Detail component', () => { it('Should render the container', () => { render( <Memor...
"""online_judge URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
from django.db import models class Bb(models.Model): title = models.CharField(max_length=50) content = models.TextField(null=True, blank=True) price = models.FloatField(null=True, blank=True) published = models.DateTimeField(auto_now_add=True, db_index=True) rubric = models.ForeignKey('Rubric', nu...
'use strict'; class Node { constructor(value) { this.value = value; this.next = null; } } class LinkedList { constructor() { this.head = null; } append(value) { const node = new Node(value); if (!this.head) { this.head = node; return; } let current = this.head; wh...
// Submit this file with other files you created. // Do not touch port declarations of the module 'CPU'. // Guidelines // 1. It is highly recommened to `define opcodes and something useful. // 2. You can modify modules (except InstMemory, DataMemory, and RegisterFile) // (e.g., port declarations, remove modules, defin...
import Link from 'next/link'; import { useState } from 'react'; import styles from './styles.module.scss'; import Image from 'next/image'; import registerImage from '../../../public/register-customer.jpg'; import Head from 'next/head'; import { fetchFromApi } from '../../lib/axios'; import { useRouter } from 'next/rout...
/** @format */ import React from "react"; import CustomerList from "../components/customer/CustomerList"; import EventList from "../components/rentalEvent/EventList"; import VehiclesList from "../components/vehicle/VehiclesList"; import { Switch, Route, Link } from "react-router-dom"; import Button from "react-bootstr...
syntax = "proto3"; package library; message Library { string id = 1; string title = 2; string description = 3; } message GetLibraryRequest { string library_id = 1; } message GetLibraryResponse { Library library = 1; } message SearchLibrarysRequest { string query = 1; } message SearchLibrarysRespon...
import 'dart:math'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:google_mobile_ads/google_mobile_ads.dart'; import '../AdHelper/adshelper.dart'; class HomeScreen extends Statef...
var current_unit_index = 0; function generate_new_unit_id(){ current_unit_index++; return current_unit_index; } /* var unit = { defense: 1, // used to determine how much damage this unit can sustain before expiring attack: 1, // used to determine how much damage to apply when attacking m...
#include<sys/socket.h> #include<stdio.h> #include<arpa/inet.h> #include<cstring> int main() { // 参数一:IP 地址类型; AF_INET -> IPv4 AF_INET6 -> IPv6 // 参数二:数据传输方式; SOCK_STREAM 流格式,面向连接 -> TCP ,数据报格式,无连接 -> UPD // 参数三:协议; 0 表示根据前面的两个参数自动推导协议类型:TCP/UDP int sockfd = socket(AF_INET,SOCK_STREAM,0); // 将套接字绑定到一个 IP 地址和端口上 ...
import React, { useCallback } from 'react'; import { useNavigate } from 'react-router-dom'; import Typography from '@mui/material/Typography'; import Box from '@mui/material/Box'; import Grid from '@mui/material/Grid'; import CloseIcon from '@mui/icons-material/Close'; import warningAnimation from 'assets/warning.gif'...
--- title: Diseño de Páginas Web para Centros de Estética en Castellón de la Plana date: '2023-10-04' tags: ['Diseño web', 'Centros de Estética', 'Castellón de la Plana'] draft: false banner : diseño_paginas_web_centrosdeestética fondoBanner : diseño_pagina_web_castellóndelaplana summary: El diseño de páginas web para ...
// https://jsonplaceholder.typicode.com/posts // https://jsonplaceholder.typicode.com/posts?_limit=3&_page=2 const postContainer = document.getElementById('post-container'); const loading = document.querySelector('.loader'); const filter = document.getElementById('filter'); const allPostsFetched = document.getElementB...
/** * You can specify the following actions in the `Action` element of an IAM policy statement * @see https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonec2imagebuilder.html */ export enum ImagebuilderAction { /** * Write - Grants permission to cancel an image creation * @see http...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Shop_Dotnet2020.Models; namespace Shop_Dotnet2020.Controllers { [Route("api/...
<!DOCTYPE html> <html> <head> <title>Skevaron</title> <script src="js/three.js"></script> <!-- 性能检测器 --> <script src="js/Stats.js"></script> <!-- 创建菜单栏,控制场景中的各个参数调试场景 --> <script src="../js/dat.gui.js"></script> <style> #canvas3d{ width: 100%; height: 300px; ...
package baekjoon_java.SilverIII; import java.io.*; import java.util.*; public class boj_20920_영단어암기는괴로워 { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); ...
import { useDispatch, useSelector } from 'react-redux' import { useTranslation } from 'react-i18next' import React, { FC } from 'react' import { Box, ButtonTypesConstants, TextView, VAButton, VAScrollView } from 'components' import { NAMESPACE } from 'constants/namespaces' import { getSupportedBiometricA11yLabel, getS...
import os import base64 import streamlit as st import pandas as pd from nltk import tokenize from bs4 import BeautifulSoup from PyPDF2 import PdfReader import requests from sklearn.feature_extraction.text import CountVectorizer from sklearn.metrics.pairwise import cosine_similarity from reportlab.lib import colors from...
import ILeaderboard from '../interfaces/ILeaderboard'; import MatchesModel from '../database/models/MatchesModel'; import SortType from '../types/SortType'; import Leaderboard from '../middlewares/Leaderboard'; export default class LeaderboardService { constructor(private _matchesModel = MatchesModel) {} private ...
package Instructions; import Debugger.*; import Expressions.Expression; import java.util.ArrayList; import java.util.HashMap; import static java.lang.Character.isLowerCase; /** * This class is responsible for creating the 'skeleton' of a procedure, ie. holds the instructions to be * invoked, the number of variable...
/** * <copyright> * Copyright (c) 2010-2014 Henshin developers. All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 which * accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * </...
package com.duallab.iccprofileservice; import com.duallab.iccprofileservice.dto.ICCProfileDTO; import org.codehaus.jackson.map.ObjectMapper; import org.junit.runners.Parameterized; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.apache.commons.io.FilenameUtils; import org.s...
import { IsNotEmpty, IsOptional, IsString } from "class-validator" export class PutUserDTO { @IsOptional() @IsNotEmpty({ message: 'Não foi informado um login.'}) @IsString({ message: 'Valor invalido para Login!' }) login: string @IsOptional() @IsNotEmpty({ message: 'Não foi informado um passwo...
import { Link, useNavigate } from 'react-router-dom' import useAuth from '../hooks/useAuth' import { useState } from 'react' import Alerta from '../components/Alerta' import clienteAxios from '../config/axios' const Login = () => { const [email, setEmail] = useState('') const [password, setPassword] = useState(''...
# clone helper - functions to aid in cloning and copying ADO repos # Get a Project Id function Get-ProjectId { Param ( [Parameter(Mandatory = $true)] [string]$projectNameSupplied, [Parameter(Mandatory = $true)] [string]$organizationToGet ) $projectId = "" # A...
import { describe, expect, it, vi, } from 'vitest'; import { ApiError } from './api-error'; import { ApiService, HttpMethod } from './api-service'; const mockGet = vi.fn(); const mockPost = vi.fn(); const mockPut = vi.fn(); const mockPatch = vi.fn(); const mockDelete = vi.fn(); const mockDictionary = { get: mockGe...
import React from "react"; import { useEffect } from "react"; import { useState } from "react"; import { Link } from "react-router-dom"; import { v4 as uuid } from "uuid"; import { axiosclient } from "../../../api"; import { AdminLayout } from "../../../layouts"; const ContructionSites = () => { const [contructions...
package dao; import modele.Equipe; import modele.Poule; import modele.Tournoi; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import java.util.Optional; public class DaoPoule implements Dao<Poul...
import 'package:flutter/material.dart'; import 'package:swifty_companion/models/user.dart'; import 'package:timeago/timeago.dart' as timeago; class Projects extends StatelessWidget { Projects({super.key, required this.projects, required this.grade}); final List<Project> projects; final String grade; final Scro...
from sly import Parser from lexer import SciDataVizLexer import BuiltInFunc from error import Error from view_table import TableView import numpy as np import numpy.core._exceptions as np_exceptions import pandas as pd import os import sys import re class SciDataVizParser(Parser): # Get the token list from the le...
package com.yuanhao.modules.system.service.impl; import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.ObjectUtil; import com.yuanhao.modules.system.domain.Menu; import com.yuanhao.modules.system.repository.MenuRepository; import com.yuanhao.modules.system.repository.UserRepository; import com.yu...
import React, { useState } from "react"; import axios from "axios"; import * as S from "./styled"; import { useHistory } from "react-router-dom"; import github from "../../components/github.png"; export default function Home(props) { const history = useHistory(); const [usuario, setUsuario] = useState(""); cons...
import Excepciones.ExPolinomio; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import java.util.regex.*; import java.util.HashMap; import java.util.Map; import org.jfree.chart....
--- title: "What is the canvas?" type: docs weight: 20 aliases: ["/classrooms/algorithm-design/lesson/78", "/algorithm-design/the-algorithm-design-canvas"] --- The Algorithm Design Canvas captures our process for tackling algorithm design problems. It is a convenient way to represent algorithmic thinking. Every algori...
import { flattenArray, compose, curry } from "./utils/index.ts"; import { data, DataFactory, Person } from "./data/index.ts"; const map = curry((fn, outerArray) => outerArray.map(fn)); const flatten = (innerArray) => flattenArray(innerArray); function buildObject(data: (string | number)[]): Person { return data.red...
import {Component, EventEmitter, OnInit} from 'angular2/core'; import { CORE_DIRECTIVES } from 'angular2/common'; import {UserService} from '../services/users.services'; import {RouteParams, RouterLink, Router} from 'angular2/router'; import {Validators, FormBuilder, Control} from 'angular2/common'; @Component({ sel...
<?php /************************************************************************ * This file is part of EspoCRM. * * EspoCRM – Open Source CRM application. * Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko * Website: https://www.espocrm.com * * This program is free software: you can r...
import React, { useCallback, useMemo } from "react"; import { bindActionCreators } from "redux"; import { connect } from "react-redux"; import "./App.css"; import Header from "../common/Header.jsx"; import Journey from "./Journey.jsx"; import HighSpeed from "./HighSpeed.jsx"; import DepartDate from "./DepartDate.jsx"; ...
from unittest.mock import Mock import pytest from epsilion_wars_mmorpg_automation.game.state.grinding import is_died_state @pytest.mark.parametrize('button_text,expected', [ ('Непонятная кнопка', False), ('💀 Принять участь', True), ('В город', False), ]) def test_is_died_state_by_button(button_text: st...
#include <string.h> #include <stdio.h> #include <ctype.h> #define MAX_VELICINA_DATOTEKE 100000 void main( void ) { char datoteka[100]; /* naziv datoteke koju otvaramo */ char broj; /* broj blanko karaktera koji zelimo da umetnemo*/ /* Pomocne promenljive */ char ch; int i, br; /* mesto za privremeno sm...
import React, { useState } from "react"; import "../componentscss/Modal.css"; import htmlIcon from "../assets/html.svg"; import rightArrowIcon from "../assets/right-arrow.svg"; const Modal = ({ modal, setModal, rank, setRank, percentile, setPercentile, score, setScore, }) => { return ( <div class...
import BaseSchema from '@ioc:Adonis/Lucid/Schema' export default class extends BaseSchema { protected tableName = 'usuarios' public async up() { this.schema.createTable(this.tableName, (table) => { table.increments('id').notNullable() //referencia al id del rol es una foreign key table.strin...
<template> <div class="box"> <div class="title"> {{ props.title }} </div> <div class="main-content"> <div class="content-left"> <el-tree :data="data" :props="defaultProps" @node-click="handleNodeClick" /> </div> <div class="content-right"> <div class="ipt-item"> ...
package com.example.myapplication import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.shape.C...
<?php /*declare(strict_types=1);*/ namespace Hleb\Reference; use Hleb\Constructor\Attributes\Accessible; use Hleb\Constructor\Attributes\AvailableAsParent; use Hleb\Constructor\Data\DynamicParams; use Hleb\Constructor\Data\SystemSettings; use Hleb\Main\Insert\ContainerUniqueItem; use Hleb\Static\Request; use Hleb\St...
import React, { useState } from "react"; import axios from "axios"; import { useNavigate } from "react-router-dom"; import InputCyan from "../../components/variants/InputCyan"; import { BACKEND } from "../VariableBck"; export const ConfirmarCorreo = () => { const [email, setEmail] = useState(""); const [consultand...
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head lang="en"> <title>Register</title> <!--/*/ <th:block th:include="fragments/header:: head"></th:block> /*/--> </head> <body> <div class="container"> <h2 th:text="#{reg.header}"></h2> <a href="?lang=en" th:text="#{lang.eng}"></a> | <a hr...
package _02_control_statement; import java.util.ArrayList; import java.util.List; // import = ctrl + alt + O public class Loop { public static void main(String[] args) { // 기본 for문 for (int i = 1; i <= 10; i++) { System.out.println(i); } int i = 1; System.out.p...
<!DOCTYPE html> <html lang="ru"> <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>WebStudio</title> <link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="pr...
/* * Copyright 2014 Hogeschool Leiden. * * 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 ag...
//packages needed throughout the code import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; import 'dart:convert'; import 'package:http/http.dart' as http; import 'package:url_launcher/url_launcher.dart'; //main - runs the app void main() { runApp(const MyApp()); } // This widget is the home page...
import 'package:dundaser/models/categories.dart'; import 'package:dundaser/screens/filters.dart'; import 'package:dundaser/widgets/app_bar.dart'; import 'package:dundaser/widgets/drinks_list.dart'; import 'package:dundaser/widgets/main_drawer.dart'; import 'package:flutter/material.dart'; class MainScreen extends Stat...
#include "src/FreeRTOS/Arduino_FreeRTOS.h" // Commands /* string -> "ABC" A: D -> digital A -> analógico T -> período de refrescado (delay loop) A D T B: A -> A0 D0 10ms B -> A1 D1 50ms C -> A2 D2 100ms D -> A3 D3 200ms E -> A4 D4 300m...
#!/usr/bin/env python3 """Firaol Tulu Task 12: Type Checking """ from typing import List, Tuple def zoom_array(lst: Tuple, factor: int = 2) -> List: """This Function Creates multiple copies of items in a tuple.""" zoomed_in: List = [item for item in lst for i in range(factor)] return zoomed_in array = (...
import 'package:flutter/material.dart'; import 'package:kridaverse_e_commerce/APIS/apis.dart'; import 'package:kridaverse_e_commerce/Custom%20Widgets/eleveted_button.dart'; import 'package:kridaverse_e_commerce/Theme/appColor.dart'; import 'package:kridaverse_e_commerce/main.dart'; class ProfilePage extends StatefulWi...
import React from 'react'; import { useState } from 'react'; import './App.css'; function App() { const [todos,setToDos] = useState([]) const [todo,setToDo] = useState('') return ( <div className="app"> <div className="mainHeading"> <h1>ToDo List</h1> </div> <div className="subHeading">...
import React, { createContext, useContext, useState } from "react" const ResultContext = createContext(); const baseUrl = 'https://google-search3.p.rapidapi.com/api/v1' export const ResultContextProvider = ({ children }) => { const [results, setResults] = useState([]) const [isLoading, setIsLoading] = useSta...
import { makeAutoObservable } from 'mobx'; import { RootStore } from '.'; import { FiltersRequest } from '../api'; export type FilterStatePreset = { name: string; filter: FiltersRequest['filters']; }; export class PresetStore { rootStore: RootStore; showSaveFilterModal = false; presetInputValue = ''; pre...