text
stringlengths
184
4.48M
<!doctype html> <html class="no-js" lang="en"> <head> <style> body { margin: 0; padding: 0; background-color: white; } body .controls { display: none; } @media (min-width: 600px) { body.preview { background-color: #ccc; } ...
/* * Copyright (C)2005-2017 Haxe Foundation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge,...
# Mecanismos de gestión de la memoria real # Asignaciones ## Asignación contigua La asignación contigua de memoria carga los procesos completos y contiguos, sin dividirlos y en orden. La MMU de suma simple es solo válida en este sistema. ## Asignación no contigua La asignación no contigua de memoria carga los proc...
import React, { useState, useEffect } from 'react' // GRAPHQL CLIENT import { useLazyQuery } from '@apollo/client' import { GET_MY_PETS_POPULATION } from '../../../graphql/queries' // COMPONENTS import CardsListTemplate from '../../templates/CardsListTemplate' import TagList from '../../molecules/TagList' import Progre...
{{-- MODAL DE CARNET QR --}} <div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"> ...
import { Router } from 'express'; import { celebrate, Segments, Joi } from 'celebrate'; import ensureAuthenticated from '@modules/users/infra/http/middlewares/ensureAuthenticated'; import BusinessPostController from '../controllers/BusinessPostController'; const postRouter = Router(); const businessPostController =...
--- title: arouter使用阶段性认知 date: 2018-09-13 10:41:22 tags: [工程,arouter] categories: android技能 --- * arouter 问题总结 * values 两种系统识别文件夹,细分三种 * 有没有改造之法? <!-- more --> ![image](arouter-thinking/city.jpg) ## arouter 问题总结: ## ``` 作为一个阿里系的框架,arouter在根本上是实现了,介绍里面所说的,解耦,传参,拦截器,注解,基本的方案实现。在单module中运行也还是可以的,可 能初学者写个把demo之后发现,哎,这阿...
import { Avatar, Box, Container, Grid, Tab, Tabs, Typography, } from "@mui/material"; import React, { useState } from "react"; import { useSelector } from "react-redux"; import { RootState } from "../../redux/store"; import NoImage from "../../assets/images/noImage.jpg"; import { CustomTabPanel, a11yProps...
""" This file contains a minimal set of tests for compliance with the extension array interface test suite, and should contain no other tests. The test suite for the full functionality of the array is located in `pandas/tests/arrays/`. The tests in this file are inherited from the BaseExtensionTests, and only minimal ...
import { IStandardHeader } from './set/standard_header' import { IOrdAllocGrp } from './set/ord_alloc_grp' import { IExecAllocGrp } from './set/exec_alloc_grp' import { IInstrument } from './set/instrument' import { IInstrumentExtension } from './set/instrument_extension' import { IFinancingDetails } from './set/financ...
# Import the pandas library to handle data manipulation and CSV file reading. import pandas as pd class DeletionModel: """ A simple model that deletes bad words from sentences. This model works by maintaining a list of words considered 'bad' or inappropriate. It processes text by removing these wo...
import Vue from 'vue' import VueRouter, { RouteConfig } from 'vue-router' import Layout from '@/layout/index.vue' import store from '@/store' Vue.use(VueRouter) const routes: Array<RouteConfig> = [ { path: '/login', name: 'login', component: () => import(/* webpackChunkName: 'login' */ '@/views/login/in...
# Analysis Report ## Approach taken in evaluating the codebase ### Time spent on this audit: 21 days (Full duration of the contest) Day 1 - Consuming resources provide in the README - Understanding and noting down the logical scope Day 2-7 - Reviewing base contracts (least inherited) - Adding inline bookmarks f...
Tasks = new Mongo.Collection("tasks"); if (Meteor.isClient) { Template.body.helpers({ tasks: function () { /* Uses hideCompleted Session variable to control appearance of list items */ if (Session.get("hideCompleted")) { // $ne: MongoDB flag, not equals return Tasks.find({checked: {...
import React , {useState } from 'react' import "./style.css" import Menu from "./menuApi" import MenuCard from './MenuCard'; import Navbar from './Navbar'; const uniqueList = [ ... new Set( Menu.map((curElem) => { return curElem.cat; })), "All", ]; console.log(uniqueList); const Res = () => { const [...
# The elves now need to get ribbon for each present # The length of each ribbon needed is the shortest perimeter of any one face e.g. 2x3x4 has the shortest perimeter of 2+2+3+3 = 10 # The bow fo the ribbon is equal in length to the volume of th present e.g. 2x3x4 needs ribbon of 2*3*4 length # Read the order_list.txt...
<div class="mt-10"> <div class="grid gap-6 grid-cols-4"> <div *ngFor="let cliente of clientes"> <mat-card class="w-96 h-96 shadow-xl"> <mat-card-header class="h-72 mb-5"> <mat-card-title class="w-full">{{ cliente.nome }}</mat-card-title> <mat-card-subtitle class="w-full">{{ ...
<template> <div class="auth-reg auth-reg--auth"> <div class="auth-reg__header"> <h2 class="auth-reg__header__title">Авторизация</h2> <svg @click="togglePopupAuth" class="icon-close icon-close--auth-reg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"> ...
import { getErrorMessageByPropertyName } from "@/utils/schemaValidator"; import React from "react"; import { Controller, useFormContext } from "react-hook-form"; import PublicInfo from "../Formatting/PublicInfo"; import Text from "../Formatting/Text"; interface IProps { name: string; value?: string | string[] | un...
// Copyright 2021 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. library fuchsia.component.decl; using fuchsia.io; /// Declares a capability defined by this component. type Capability = flexible union { 1: service S...
\chapter{\IfLanguageName{dutch}{Vereisten}{Requirements}}% \label{ch:vereisten} \section{Vereisten uit literatuurstudie}% \label{sec:vereisten-literatuurstudie} In de literatuurstudie kwamen er enkele criteria naar boven die invloed kunnen hebben op de keuze van een Low-Code en/of No-Code platform. Voor een duidelijk ...
import type { GetServerSideProps, GetServerSidePropsContext, NextPage, } from "next"; import Head from "next/head"; import { useState } from "react"; import { useSetUrl } from "../utils/trpc"; import { formatDistanceToNow } from 'date-fns' import {parse} from 'superjson' import { ShortLink } from "@prisma/client"...
#ifndef QSIMPLEUPDATER_H #define QSIMPLEUPDATER_H // Copyright (c) 2014-2016 Alex Spataru <alex_spataru@outlook.com> #include <QUrl> #include <QList> #include <QObject> class Updater; /** * \brief Manages the updater instances * * The \c QSimpleUpdater class manages the updater system and allows for * parallel ...
extern crate tokio; use simplelog::*; use std::fs::OpenOptions; use tokio::sync::{broadcast, mpsc, Barrier, RwLock}; use std::sync::Arc; use crate::ControlSignal; #[derive(Debug, Clone)] pub struct LogMessage { pub message: String, pub level: log::Level, } fn create_log_message(log_level: log::Level, msg: &...
/* * This file is a part of Bluecherry Client (https://github.com/bluecherrydvr/unity). * * Copyright 2022 Bluecherry, LLC * * 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...
import { z } from "zod"; const amenitySchema = z.object({ id: z.number(), name: z.string(), description: z.string(), category: z.string(), }); export type Amenity = z.infer<typeof amenitySchema>; export const amenitiesData: Amenity[] = [ { id: 1, name: "Acid-resistant coatings", description: ...
import React, { useEffect } from "react"; import { useSelector } from "react-redux"; import clsx from "clsx"; import moment from "moment"; import "moment/locale/ko"; import { ko } from "date-fns/esm/locale"; // Material UI Components import TextField from "@material-ui/core/TextField"; import Grid from "@material-ui/c...
package com.example.newsapp.presentation.adapter import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import android.widget.TextView import androidx.recyclerview.widget.AsyncListDiffer import androidx.recyclerview.widget.DiffUtil import androidx.recy...
import { Loading, LocalStorage, Notify } from 'quasar' import { errorHandler } from '../handlers/error' import { useRouter } from 'vue-router' import { api } from 'boot/axios' import { useAppStore } from '../stores/app.store' import { useProfileStore } from '../stores/profile.store' export class AuthController { /...
# This file was last updated April 19 # This code does not need any input to run. # The output of this code is used in compare_pMSE_utility.R # This code creates synthetic versions of simulated data using # KNG methods, pMSE mechanism, and non-private quantile regression. # The simulated data consists of 3 variables ...
// // Wire // Copyright (C) 2016 Wire Swiss GmbH // // 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 your option) any later version. // // This progr...
#!/usr/bin/env python # coding: utf-8 # In[1]: get_ipython().run_line_magic('matplotlib', 'inline') from pylab import * from sci378 import * from sci378.stats import * # http://doingbayesiandataanalysis.blogspot.com/2013/06/bayesian-robust-regression-for-anscombe.html # # https://en.wikipedia.org/wiki/Anscombe%27...
/* * MIT License * * Copyright (c) 2021 CSCS, ETH Zurich * 2021 University of Basel * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including with...
extends CharacterBody2D # Initial parameters for ship movement (connected with sliders) var weight = 1 var max_speed = 150.0 / weight var acceleration = 400.0 / weight var deceleration = 100.0 * weight var rotation_speed = 0.1 / weight # REMOVE ROTATION SPEED!! ADD ROTATION_ACCELERATION AND ROTATION_DECELERATION PARAM...
import { APP_INITIALIZER, NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { HomeModule } from './features/home/pages/home.module'; import { SubjectModule } from '....
[![CMake and CTest on ubuntu-latest](https://github.com/314rs/lpkf91s/actions/workflows/cmake-ubuntu-latest.yml/badge.svg)](https://github.com/314rs/lpkf91s/actions/workflows/cmake-ubuntu-latest.yml) # LPKF91s tooling - gcode to hpgl converter This project features some helper programs to revive the LPKF91s PCB mill. ...
package com.mr_turtle.hadoop.mr.wordcount; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; import org.apache.hadoop.util.StringUtils; import java.io.IOException; /* * map和reduce的输入输出数据都是以key-value的形式封装的。 * 前两个是输入数据的泛型,后两个是输出数据的泛型 Long, String, ...
import React from 'react'; import { Container, Header, Buttons } from './styles'; interface Props { label: String; description: String; } const DefaultOverLayContent: React.FC<Props> = ({ label, description }) => { return ( <Container> <Header> <h1>{label}</h1> <h2>{description}</h2> ...
import { colors } from "@/constants/colors"; import { JumbotromProps } from "./types"; import { Typography } from "@/constants/typography"; import Button from "../button"; const Jumbotron = ({ title = "", description = "", btnText = "", className, classNameContent, onClick, }: JumbotromProps) => { return...
/* SINGLE-HEADER LIBRARY */ /* VARIATION TUI (LIBRARY) */ #ifndef _VN_H #define _VN_H /* -------------------------------- * * ASCII ESCAPE SEQUENCE RESET CODE * * -------------------------------- */ #define esc_reset "\033[0m" /* -------------------------------- * * MUST BE USED AFTER COLOR CODES */ /* -------...
public class Wait_Notify_Methods { public static void main(String[] args) { Message message = new Message("Hello, World!"); Thread senderThread = new Thread(new Sender(message)); Thread receiverThread1 = new Thread(new Receiver(message)); Thread receiverThread2 = new Thread(new Rece...
import { Component, ViewChild, OnInit } from '@angular/core'; import { UserserviceService } from 'src/app/services/userservice.service'; import { MatSnackBar } from '@angular/material/snack-bar'; import Swal from 'sweetalert2'; import { HttpClient } from '@angular/common/http'; import { ActivatedRoute } from '@angular/...
from PIL import Image import pytesseract from discord.ext import commands import re import util.JsonHandler import os import discord imageReadEmbed = discord.Embed(title="Automatic Image Reading:", description="", color=0x5D3FD3) class imageStuff(commands.Cog): def __init__(self, bot :commands.Bot) -> None: ...
import React from "react"; import Logo from "../assets/homeLogo.svg"; import { useFormik } from "formik"; import * as Yup from "yup"; import { Link, useNavigate } from "react-router-dom"; import toast from "react-hot-toast"; import axios from "axios"; import Measurements from "./components/measurements"; import Measure...
<!DOCTYPE html> <!-- Copyright 2022 Murilo Rocha 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
<nav class="navbar navbar-dark bg-black text-light navbar-expand-lg"> <div class="container-fluid"> <a class="navbar-brand" href="#">Kekflix</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="fal...
import { Component, h, State, Prop, Event, EventEmitter } from '@stencil/core'; import { RouterHistory } from '@stencil/router'; import { UtilService } from '../../services/util-service'; import { CrudService } from '../../services/crud-service'; import { cfg } from '../../config/config'; @Component({ tag: 'app-logi...
from fastapi import APIRouter, HTTPException, Depends from database import SessionLocal, engine from schemas import SignUpModel, LoginModel from models import User from werkzeug.security import generate_password_hash, check_password_hash from fastapi_jwt_auth import AuthJWT from fastapi.encoders import jsonable_encoder...
import 'dart:async'; import 'dart:io'; import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; import 'package:path/path.dart'; import 'package:path_provider/path_provider.dart'; Future<void> main() async{ WidgetsFlutterBinding.ensureInitialized(); final cameras = await availableCameras(); ...
// // ApiCalls.swift // CarMaintenanceReminder // // Created by YASSINE on 24/7/2023. // import Foundation import Combine class Token : ObservableObject { static let userToken = Token() @Published var currentToken : String = "" func setToken(token : String){ currentToken = token } } class Lo...
// // PointsView.swift // Bulls Eye // // Created by Celil Çağatay Gedik on 12.09.2022. //aa import SwiftUI struct PointsView: View { @Binding var alertIsVisible : Bool @Binding var sliderValue : Double @Binding var game : Game var body: some View { let roundedValue = Int...
package com.lcaohoanq; import com.lcaohoanq.mode.WindowsShutdown; import com.lcaohoanq.mode.WindowsSleep; import java.awt.Color; import java.awt.FlowLayout; import java.awt.Font; import java.awt.GridLayout; import java.awt.Image; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionL...
/* * Copyright (C) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
-- author 테이블에 post_count 라는 컬럼(int) 추가 alter table author ADD column post_count int; alter table author modify colum post_count int DEFAULT 0; -- post에 글 쓴 후, author 테이블에 post_count 값 +1 => 트랜잭션 start transaction; update author set post_count = post_count + 1 where id = 10; insert into post(title, author_id) value('h...
import pdfplumber import os class ReadFiles: folder: list def __init__(self, folder): self.folder = folder print(self.folder) return def filename(self): """ Reading files names which are only of PDF file formats. """ fullname: list for f...
import React, { useState, useEffect } from "react"; import axios from "axios"; function App() { const [message, setMessage] = useState(""); const [inputText, setInputText] = useState(""); const [generatedImage, setGeneratedImage] = useState(null); useEffect(() => { axios .get("http://localhost:3001"...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
package com.codreal.product.controller; import com.codreal.product.exceptions.NoProductExistInRepository; import com.codreal.product.models.Product; import com.codreal.product.services.ProductService; import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.sprin...
type TechType = "Frontend" | "Backend" | "Tool"; export type Tech = { name: string; type: TechType; }; export type JobNote = { note: string; }; export type Job = { company: string; jobTitle: string; jobNotes: JobNote[]; tech: Record<string, string[]>; fromDate: Date; toDate: Date | "present"; }; expo...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var chalk = require("chalk"); var path = require("path"); var ast_tools_1 = require("../../lib/ast-tools"); var config_1 = require("../../models/config"); var dynamic_path_parser_1 = require("../../utilities/dynamic-path-parser"); var app_util...
import { Component, OnInit } from '@angular/core'; import { trigger,style,transition,animate,keyframes,query,stagger } from '@angular/animations'; import { GoalDataService } from '../goal-data.service'; @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.scss'],...
<div class="mainDiv animated fadeIn"> <div fxLayout="row wrap" fxLayout.lt-sm="column" fxLayoutGap="32px" fxLayoutAlign="flex-start"> <h1 class="mat-display-1 animated fadeIn" fxFlex="0 1 calc(35% - 32px)" fxFlex.lt-md="0 1 calc(50% - 32px)" fxFlex.lt-sm="100%">{{ titulo | uppercase }}</h1> </div> ...
/* * Created by Angot Rémi and Lhote Jean-Claude on 15/02/2022. * * MathALEA 2D : Software for animating online dynamic mathematics figures * https://coopmaths.fr * @Author Angot Rémi and Lhote Jean-Claude (contact@coopmaths.fr) * @License: GNU AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html */ import { Eleme...
<?php /** * This file is part of the Lasalle Software Nova back-end package * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * * LARAVEL's NOVA IS A COMMERCIAL PACKAGE! * ----------------------------------------------...
package org.jiajie.coffeecode.concurrent.future; public class Host { public Data request(final int count, final char c){ System.out.println(" request(" + count + "," + c + ") BEGIN"); // (1)创建FutureData的实例 final FutureData future = new FutureData(); // (2)启动一个新线程,用于创建RealData的实例 ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>动画</title> <link rel="stylesheet" href="../node_modules/animate.css/animate.css"> <style> div>div{ width: 200px; height: 200px; background-color: #1e7e34; } /*.v-enter, .v-le...
import React from "react"; import { Card, Avatar, Grid } from "@mui/material"; import { Box, styled, useTheme } from "@mui/system"; import { MonetizationOn } from "@mui/icons-material"; import { numToCurrency } from "./../../utils/helpers"; import { Small, Paragraph } from "app/components/Typography"; import { themeSha...
package com.dluvian.voyage.ui.components.indicator import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxSize import a...
package com.tutorat.exception; import com.tutorat.dto.BusinessResourceExceptionDTO; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.transaction.TransactionSystemException; import org.springframework.ui.Model; import org.springframework.web.bind.Web...
package com.example.pokedexapp.pokemonListView; import android.content.Context; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Filter; import android.widget.Filterable; import android.widget.FrameLayout; import android.widget....
import React, { useContext } from 'react' import Container from 'react-bootstrap/Container'; import Nav from 'react-bootstrap/Nav'; import Navbar from 'react-bootstrap/Navbar'; import { useTranslation } from 'react-i18next'; import { Link, useNavigate } from 'react-router-dom'; import { CartSumContext } from '../store/...
import React, { FunctionComponent } from 'react' import { StyleSheet, Text, View } from 'react-native' import { useUser } from '../../store' import { colors, layout, typography } from '../../styles' import { CommentType } from '../../types' import { Avatar, Timestamp } from '../common' interface Props { item: Comme...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Animal.cpp :+: :+: :+: ...
<!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>Project-1</title> <link rel="stylesheet" href="day9Style.css"> <link rel="stylesheet" media="screen a...
package com.bassure.ims.productservice.serviceImpl; import com.bassure.ims.productservice.collection.Asset; import com.bassure.ims.productservice.collection.Warranty; import com.bassure.ims.productservice.config.HttpStatusCode; import com.bassure.ims.productservice.config.HttpStatusMessage; import com.bassure.ims.prod...
setwd("../Desktop/git_repos/bat-CoVs/") require(tidyverse) require(data.table) require(foreach) require(Biostrings) data("BLOSUM62") spike_AA <- readAAStringSet("data/proteins/extracted_proteins/all_spikes.faa") names(spike_AA)[names(spike_AA) == "NC_045512"] <- "SARS-CoV-2" names(spike_AA)[names(spike_AA) == "NC_0047...
package com.example.packmanbarcodesgenerator.uiElements.CustomListView import android.annotation.SuppressLint import android.content.Context import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.found...
require('babel/register')(); /** * Module dependencies. */ const app = require('../server'); const http = require('http'); /** * Get port from environment and store in Express. */ if(!process.env.PORT){ throw Error('PORT variable must exist to continue.')} const port = normalizePort(process.env.PORT); app.set('...
#Importing the libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt #Importing the dataset dataset = pd.read_csv('Iris.csv') from sklearn.preprocessing import LabelEncoder le = LabelEncoder() dataset['Species'] = le.fit_transform(dataset.Species.values) x = dataset.iloc[:, 1:].values print(...
import { useDispatch, useSelector } from "react-redux" import { addItem, removeItem } from "../redux/handleWishlist" import { imagesIcons } from "../App" import { Link } from "react-router-dom" const ShoppingPageProducts = ({data, categoryName}) => { const dispatch = useDispatch() const wishlist = useSelector((sta...
package softuni.exam.service.impl; import com.google.gson.Gson; import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import softuni.exam.models.dto.mechanic.MechanicImportDTO; import softuni.exam.models.entity.Mechanic; import...
package middleware import ( "crypto/x509" "encoding/pem" "io/ioutil" "log" "net/http" "strings" "github.com/gin-gonic/gin" "github.com/golang-jwt/jwt/v4" ) func AuthMiddleware() gin.HandlerFunc { buffer, err := ioutil.ReadFile("public.pem") if err != nil { log.Fatal("Cannot read publickey") } block, _...
import { createRouter, createWebHistory } from 'vue-router' import LoginView from '../views/LoginView.vue' import DashboardView from '../views/DashboardView.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', name: 'home', component: ...
'use server' import { sendMail } from '@/services/mailService' import * as z from 'zod' import { ZodIssue } from 'zod' type FormData = { honey_pot?: any name: string email: string subject: string message: string } export async function sendEmail(formData: FormData) { const { honey_pot, name, email, subjec...
/* * Copyright (C) 2004 * Swiss Federal Institute of Technology, Lausanne. All rights reserved. * * Developed at the Autonomous Systems Lab. * Visit our homepage at http://asl.epfl.ch/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Lice...
import React, { Component } from "react"; import "./ChatComponent.css"; export default class ChatComponent extends Component { constructor(props) { super(props); this.state = { messageList: [], message: "", chatStatus: true, nameColor: null, }; this.chatScroll = React.createRe...
--- title: Istio 1.21 Upgrade Notes description: Important changes to consider when upgrading to Istio 1.21.x. weight: 20 publishdate: 2024-03-13 --- When you upgrade from Istio 1.20.x to Istio 1.21.0, you need to consider the changes on this page. These notes detail the changes which purposefully break backwards comp...
package com.example.naziacakes; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; im...
import { makeCollidable } from "./collidable.js"; import { drawTile, getFramesPos } from "../utils.js"; export function makeTiledMap(p, x, y) { return { tileWidth: 32, tileHeight: 32, x, y, async load(tilesetURL, tiledMapURL) { this.mapImage = p.loadImage(tilesetURL); const response =...
Java String trim() The java string trim() method eliminates leading and trailing spaces. The unicode value of space character is '\u0020'. The trim() method in java string checks this unicode value before and after the string, if it exists then removes the spaces and returns the omitted string. The string trim() meth...
# frozen_string_literal: true module EE module Gitlab module Ci module Config module Entry module Job extend ActiveSupport::Concern extend ::Gitlab::Utils::Override EE_ALLOWED_KEYS = %i[dast_configuration secrets pages_path_prefix].freeze ...
const express = require('express'); const { Todo } = require('../mongo') const { getAsync, setAsync } = require('../redis'); const router = express.Router(); /* GET todos listing. */ router.get('/', async (_, res) => { const todos = await Todo.find({}) res.send(todos); }); /* POST todo to listing. */ router.post(...
import requests import json import config from datetime import datetime from yahoo_fin import stock_info as si class TDAmeritrade: """ Pulls stock data from TD Ameritrade API stock_ticker: str -> stock ticker you are looking for data for api_key: str -> in the config file, this is the API key to TD A...
import os import random import torch import torchaudio from pytorch_lightning import LightningDataModule def _batch_by_token_count(idx_target_lengths, max_tokens, batch_size=None): batches = [] current_batch = [] current_token_count = 0 for idx, target_length in idx_target_lengths: if current...
/* * 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 ...
import 'package:flutter/material.dart'; import 'package:projeto3_refeicoes/components/category_item.dart'; import '../data//dummy_data.dart'; class CategoriesScreen extends StatelessWidget { const CategoriesScreen({super.key}); @override Widget build(BuildContext context) { return GridView( padding: c...
/* tslint:disable */ /* eslint-disable */ import { Injectable } from '@angular/core'; import { HttpClient, HttpResponse } from '@angular/common/http'; import { BaseService } from '../base-service'; import { ApiConfiguration } from '../api-configuration'; import { StrictHttpResponse } from '../strict-http-response'; imp...
// ----------------------------------------------------------------------------- // This file contains all application-wide Sass mixins. // ----------------------------------------------------------------------------- /// Event wrapper /// @author Harry Roberts /// @param {Bool} $self [false] - Whether or not to inclu...
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/03/b/RAM4K.hdl /** * Memory of 4K registers, each 16 bit-wide. Out holds the value * stored at the memory location specified by address. If load==1, then * the...
<script> import Button from '$lib/components/common/Button.svelte'; import FlexContainer from '$lib/components/common/FlexContainer.svelte'; import GridContainer from '$lib/components/common/GridContainer.svelte'; import Tag from '$lib/components/common/Tag.svelte'; import CloseIcon from '$lib/components/mate...