text
stringlengths
184
4.48M
import { Request, Response } from 'express'; import { AppDataSource } from '../data-source'; import { RoomsEntity } from '../entities/rooms'; import { catchError } from './../utils/rout-catch-error'; class RoomsController { public async Get(req: Request, res: Response): Promise<void> { res.json( await AppD...
import 'package:admin/helper/my_logger_helper.dart'; import 'package:admin/instances/firebase_instances.dart'; import 'package:admin/models/user_admin_office_model.dart'; import 'package:admin/models/user_cashier_model.dart'; import 'package:admin/models/user_library_model.dart'; import 'package:admin/models/user_regis...
import React from 'react'; import GoogleMapReact from 'google-map-react'; import { Typography, Paper, useMediaQuery } from '@material-ui/core'; import LocationOnOutlinedIcon from '@material-ui/icons/LocationOnOutlined'; import Rating from '@material-ui/lab/Rating'; import useStyles from './styles'; import mapStyles f...
LR = 0.01 import os import time import numpy as np import tensorflow as tf from tf_agents.networks import q_network from tf_agents.agents.dqn import dqn_agent from snake import Game import keras from multiprocessing import Process, freeze_support def CreateModel(input_shape, num_actions): model = keras.models.S...
# Week 4 - Challenge 2 ## Formulario React & TypeScript Crea con React un formulario de tres pasos. - En cada paso habrá un grupo de campos, y sólo se debe ver un paso a la vez. - Pon en cada paso un botón para navegar al siguiente y otro para navegar al anterior (en el primer paso no debe verse el botón de anterior...
// Logika do zapisywania charakterystyk import { useState } from 'react'; import { FormStatus } from '../screens/types'; import { API_URL } from '../lib/const'; import { useUserContext } from '../providers/user-provider/UserProvider'; import { CharacteristicsType } from '../providers/user-provider/types'; export defa...
#include <iostream> using namespace std; class Employee { protected: string name; string company; int age; public: virtual void fun() = 0; // this is a pure virtual function // a pure virtual function makes a class an abstract class void setName(string name) { ...
# Copyright 2023 Huawei Technologies Co., Ltd # # 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...
/** * @example isNumber(123) * @example isNumber('abc') * @description Checks that the value is a valid number. * @returns true if the value is a valid number, false otherwise. */ function isNumber(value: unknown): boolean { if (value === null || value === undefined || typeof value === 'boolean') { return fa...
<?php class CreatePdfThumbnailsJob extends Job { /** * Flags for thumbnail jobs */ const BIG_THUMB = 1; const SMALL_THUMB = 2; /** * Construct a thumbnail job * * @param $title Title Title object * @param $params array Associative array of options: * page: page number for which the thu...
from flask import Flask, render_template, request import httpretty import json import mysql.connector import requests import time app = Flask(__name__) @app.route('/') def index(): return render_template('index.html', title='トップページ') @app.route('/analyze', methods=['POST']) def analyze(): # APIのmock-upを有効化 enable...
% !TeX root = ./0_Manuscript.tex \section{Introduction \ddc} \label{chap:1;sect:intro} %BEGIN LanguageTool In our time, almost every business sector and every part of our surroundings, directly or indirectly, uses integrated electronics circuits. It ranges from smart-cards to supercomputers, through military devices, ...
<div class="droppable-root h-100 grid-container" [attr.data-folder-id]="'root'"> <mat-grid-list [cols]="numberOfItemsPerRow" rowHeight="250px" gutterSize="15px" class="grid-container"> <ng-container *ngFor="let document of documents; let i = index; trackBy: trackByFn"> <div (contextmenu)="onOpen...
#include <stdio.h> #include <stdlib.h> #include <math.h> int mod_inverse(int a, int m) { int m0 = m, t, q; int x0 = 0, x1 = 1; if (m == 1) return 0; while (a > 1) { q = a / m; t = m; m = a % m; a = t; t = x0; x0 = x1 - q * x0; x1 = t; ...
import { Button, Flex, Heading, Stack, useColorModeValue, } from "@chakra-ui/react"; import { Form, Formik } from "formik"; import { NextPage } from "next"; import { useRouter } from "next/router"; import React from "react"; import authService from "../../../services/authService"; import { toErrorMap } from "...
import React, { useState, useEffect } from "react"; import "./App.css"; import endSound from "./end-sound.mp3"; // Importing end sound files. import originalWords from "./words.json"; // Import original word sequences. // Functions for shuffling arrays(Fisher-Yates shuffle algorithm) function shuffleArray(array) { c...
package com.example.listfirebase.predefinedlook import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Row import androidx.compose.foundation...
/* Copyright 2021, Milkdown by Mirone. */ import { defaultValueCtx, Editor, rootCtx } from "@milkdown/core"; import { slash } from "@milkdown/plugin-slash"; import { commonmarkNodes, // commonmarkPlugins, commonmark, // image, } from "@milkdown/preset-commonmark"; import { nord } from "@milkdown/theme-nord...
package ca.nait.dmit.batch; import jakarta.batch.api.BatchProperty; import jakarta.batch.api.chunk.AbstractItemReader; import jakarta.batch.runtime.context.JobContext; import jakarta.inject.Inject; import jakarta.inject.Named; import java.io.BufferedReader; import java.io.FileReader; import java.io.Serializable; impo...
import { createSlice } from '@reduxjs/toolkit'; const initialState = { value: 0, state: 'idle' } const counterSlice = createSlice({ initialState, name: 'counter', reducers: { increment: (state) => { state.value += 1; }, decrement: (state) => { state....
/*! * * * \brief Calculates the hypervolume covered by a front of non-dominated points. * * * * \author T.Voss * \date 2010 * * * \par Copyright 1995-2017 Shark Development Team * * <BR><HR> * This file is part of Shark. * <http://shark-ml.org/> * * Shark is free software: you ca...
import { styled } from '@mui/material/styles'; import Typography from '@mui/material/Typography'; import { Box, Container } from '@mui/system'; import clsx from 'clsx'; import { ipcRenderer } from 'electron'; import { FC, ReactNode } from 'react'; import NavDrawer from './NavDrawer'; import TitleBar from './TitleBar';...
# AGameState > INFO > > With 4.14, the GameState Class got split into AGameStateBase and AGameState. GameStateBase has fewer features because some games might not need the full feature list of the old GameState Class. The class AGameState is probably the most important class for shared information between the server ...
from abc import abstractmethod import datetime from typing import Any, Iterable import uuid from enum import IntEnum from pydantic import BaseModel, ConfigDict from sqlalchemy import ( BigInteger, Column, DateTime, func, Integer, TypeDecorator, Select, select, ) from sqlalchemy.ext.decl...
package com.phonecommerce.phonestore.controller; import com.phonecommerce.phonestore.dto.PhoneDTO; import com.phonecommerce.phonestore.service.PhoneService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import org.springframework.beans.factory.an...
/** Programacion orientada a objetos - seccion 10 * Luis Francisco Padilla Juárez - 23663 * Ejercicio 1, Overloading * 13-08-2023 */ import java.util.ArrayList; import java.util.Scanner; public class MU { public static void main(String[] args){ //Intancia de sedes Sede sede1, sede2, sede3; ...
<template> <v-container> <v-row class=""> <v-col cols="12" sm="12" md="12"> <v-form v-model="valid"> <v-container> <v-row> <v-col cols="12" md="3" > <v-text-field v-mod...
# 拯救世界的 5 种 Rails 迁移模式 > 原文:<https://dev.to/jasterix/5-rails-migrations-to-save-the-day-kpe> 提前道歉,因为这篇文章的格式有点古怪。最初的目标是有一个编号的列表,但是没有成功。 然而,每个迁移都建立在前面的基础上,所以我希望它能帮助您理解设置 Rails 迁移的流程。 创建新的模型用户 * rails g 模型用户:姓名:城市 ``` class CreateUsers < ActiveRecord::Migration[5.2] def change create_table :users do |t| ...
- day: Mon 16/01 contents: Introduction to the course; administrative details; algorithms for integer multiplication - what constitutes a good algorithm? slides: https://drive.google.com/file/d/1F21tBuUGVUf62bTXjWu6lp8M2T9ye65P/view?usp=share_link notes: references: - Section 0.2 - Erickson misc: <a href...
import React from "react"; import "./InterviewerListItem"; import InterviewerListItem from "./InterviewerListItem"; import PropTypes from 'prop-types'; export default function InterviewerList(props){ return( <section className="interviewers"> <h4 className="interviewers__header text--light">Interviewer</h4...
final int screenWidth = 720, screenHeight = 480; PImage imgBg; int originX, originY; Crewmate crew1, crew2; void setup() { size(720, 480); originX = screenWidth / 2; originY = screenHeight / 2; imgBg = loadImage("bg.jpg"); PImage imgCyanCrew = loadImage("cyan_crew.png"), ...
char data= 0; int ledPin = 9; // choose the pin for the LED int inputPin3 = 3; int inputPin2 = 2; // choose the input pin (for PIR sensor) int pirState = LOW; // we start, assuming no motion detected int val = 0; int val2 = 0; // variable for reading the pin status int Lightsensor=0; void se...
--- title: "Percentage Children suffering exactly two deprivation" output: html execute: echo: false warning: false message: false --- #### Khaman Singh - 22266466 - Assignment 2 - MT5000 ![Logo](logo.JPG){fig-align="right"} ![Child](child.JPG) ```{r} library(tidyverse) unicef_indicator_1<- read_csv("/cloud/proje...
package com.craft.apps.countdowns.ui.util import android.content.Context import com.craft.apps.countdowns.core.model.Countdown import com.craft.apps.countdowns.core.ui.R import com.craft.apps.countdowns.util.daysUntilNow import com.craft.apps.countdowns.util.hoursUntilNow import com.craft.apps.countdowns.util.isAfterN...
import React, { useEffect, useState } from 'react' import { DataContextProvider, type IDataContext } from './contexts/DataContext' import { BuildContextProvider, DEFAULT_BUILD_CONTEXT, type IBuildContext } from './contexts/BuildContext' import { SnackArea } from './components/SnackArea'; import { Link } from 'react-rou...
'use strict' const assert = require('assert') const Buffer = require('buffer').Buffer const realZlib = require('zlib') const constants = exports.constants = require('./constants.js') const Minipass = require('minipass') const OriginalBufferConcat = Buffer.concat const _superWrite = Symbol('_superWrite') class ZlibE...
-- Enable CLI headers .headers on .mode box .separator ROW "\n" .nullvalue NULL CREATE TABLE IF NOT EXISTS node ( path TEXT PRIMARY KEY, content TEXT, -- virtual columns from JSON extractions -- alt_urls TEXT GENERATED ALWAYS AS (json_extract(content, '$.altUrls')), -- id TEXT GENERATE...
# -*- coding: utf-8 -*- # # # Mozilla Public License Version 2.0 # Copyright (c) 2023, Flepis from . import haisettings from .haisettings import INVISIBLE, READ_ONLY, READ_WRITE from .HaiErrors import * import numbers import math import typing import os import sys import time def MAIN_VEC_TYPE_CHECKING(fuc): ...
type TDataType = keyof any | object; interface GeneralResData { code: number | string; data: { [key: string]: TDataType } | TDataType | TDataType[]; msg?: string; status?: number; } interface LoginResData { retcode: number; retmsg?: string; result: Partial<{ command: string; ...
""" The parser is the most important and complex part of the project and, so I thought it necessary to divide it into multiple files - Pre Declaration covers everything that happens before a class declaration such as imports - Class Declarations covers things like method lists and parameters - Statements Semicolons ar...
import React, {useEffect, useState} from 'react'; export const UseEffectReset = () => { const [text, setText] = useState('') const handler = (e: KeyboardEvent) => { setText((state) => state + e.key) console.log(e.key) } useEffect(() => { window.addEventListener('keypress', handl...
import { Component, signal } from '@angular/core'; import { CommonModule } from '@angular/common'; import { Task } from './models/task.model'; import { FormControl, ReactiveFormsModule, Validators } from '@angular/forms'; @Component({ selector: 'app-home', standalone: true, imports: [CommonModule, ReactiveFormsMo...
import React, { useContext, useState } from "react"; import chat from "../../assets/chat.svg"; import arrowUp from "../../assets/arrow-up.svg"; import arrowUpBlue from "../../assets/arrow-up-blue.svg"; import arrowDown from "../../assets/arrow-down.svg"; import arrowDownRed from "../../assets/arrow-down-red.svg"; impor...
import { FormControl, FormLabel, Input, Textarea, Text, Heading, Switch, NumberInput, NumberInputField, NumberInputStepper, NumberIncrementStepper, NumberDecrementStepper, HStack, Tooltip, Flex, FormErrorMessage, } from "@chakra-ui/react"; import { useField } from "formik"; import React ...
<?php get_header(); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); // start the loop ?> <article id="post-excerpt-<?php the_ID(); ?>" class="post-excerpt"> <h2> <a href="<?php the_permalink(); // link to the posting ?>"><?php the_title(); // the posting title ?></a> </h2> <s...
import express, { Request, Response, NextFunction } from "express"; import multer from "multer"; import { AddFood, GetFoods, GetVendorProfile, updateVendorCoverImage, UpdateVendorProfile, UpdateVendorService, VendorLogin, } from "../controllers"; import { Authenticate } from "../middlewares/CommonAuth"; ...
'use strict'; const btn = document.querySelector('.btn-country'); const countriesContainer = document.querySelector('.countries'); /* const getContryData = function(country){ const request = new XMLHttpRequest(); request.open('GET',`https://restcountries.com/v3.1/name/${country}`); request.send(); // console.log(re...
<nav class="sb-topnav navbar navbar-expand navbar-dark bg-dark"> <!-- Navbar Brand--> <a class="navbar-brand ps-3" >Start Bootstrap</a> <!-- Sidebar Toggle--> <button (click)="bukaTutup()" class="btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0" id="sidebarTog...
package christmas.domain; import christmas.constant.Event; import java.time.DayOfWeek; import java.time.LocalDate; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Optional; public class Calendar { private static Calendar instance; public sta...
#include "SpriteBatch.hpp" #include "Log.h" namespace DroidBlaster { SpriteBatch::SpriteBatch(TimeManager &pTimeManager, Graphics::Manager &pGraphicsManager) : m_timeManager(pTimeManager), m_graphicsManager(pGraphicsManager), m_sprites(), m_spriteCount(0), m_vertices(), m_v...
// // NIBCalculatorStack.h // NIBCalculator // // Created by Lieu Vu on 9/27/17. // Copyright © 2017 LV. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** `NIBCalculatorStack` acts as the stack data structure. */ @interface NIBCalculatorStack<ObjectType> : NSObject <NSCopyin...
import React, { useState } from "react"; import "./Login.css"; import { Link, useNavigate } from "react-router-dom"; import { auth } from "./firebase"; function Login() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const navigate = useNavigate(); const signIn = (e) =...
/** Angular Imports */ import { Component } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { MatDialog } from '@angular/material/dialog'; /** Custom Services */ import { LoansService } from 'app/loans/loans.service'; import { SettingsService } from 'app/settings/settings.service...
import React, { useEffect, useState } from 'react'; import axios from 'axios'; import { toast } from 'react-toastify'; import SearchMap from '../Maps/SearchMap' import sunny from '../../resources/image/sunny.png' import cloudy from '../../resources/image/cloudy.png' import lightRain from '../../resources/image/lightra...
import React, { useEffect, useState } from "react"; import { BsFillPauseFill, BsFillPlayFill } from "react-icons/bs"; import { useDispatch } from "react-redux"; import { useNavigate, useParams } from "react-router-dom"; import { getPlaylist } from "../../apis/playlist/getPlaylist"; import FavoriteButton from "../../com...
- What is SSMS? SQL Server Management Studio (SSMS) is an integrated environment for managing any SQL infrastructure. Use SSMS to access, configure, manage, administer, and develop all components of SQL Server, Azure SQL Database , Azure SQL Managed Instance, SQL Server on Azure VM, and Azure Synapse Analytics...
import React, { lazy, Suspense } from "react"; import { BrowserRouter as Router, Routes, Route, useNavigate, } from "react-router-dom"; import "./App.css"; import { Toaster } from "react-hot-toast"; import { useParams } from "react-router-dom"; import Navbar from "./components/Navbar/Navbar"; import Chat from ...
import store from "../../../store"; import { fallbackArray } from "../../utils/array"; import { buildNum } from "../../utils/format"; import { getSequence } from "../../utils/math"; const requirementStat = 'farm_seedBox'; const requirementBase = () => store.state.upgrade.item[requirementStat].highestLevel; export def...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tugas 4a Internet dan Teknologi Web - Latihan Box Model</title> <link rel="stylesheet" href="T4b233040075.css"> </head> <body> <nav class="navbar"> <di...
#pragma once #if ENABLE_BARCODE #include <view/view.h> #include <string> #include <zint.h> struct zint_symbol *symbol; namespace cdroid{ class BarcodeView:public View{ public: enum BorderType{NO_BORDER=0, TOP=1 , BIND=2, BOX=4}; enum AspectRatioMode{IgnoreAspectRatio=0, KeepAspectRatio=1, CenterBarCode=2}; ...
import React, { useState, useEffect } from 'react'; import { useNavigate } from 'react-router-dom'; import axios from 'axios'; import DeleteUser from './DeleteAccount'; import "../styles/UpdateUser.css" export default function UpdateUser({ userId }) { const navigate = useNavigate(); // eslint-disable-next-line...
#pragma once #include "Lamp/Utility/PlatformUtility.h" #include "Lamp/AssetSystem/Asset.h" #include "ImGuiExtension.h" #include <imgui.h> #include <imgui_internal.h> #include <imgui_stdlib.h> #include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> #include <string> #include <vector> namespace Lamp { class Texture2...
function tnt_ftprocess_tla_wrapper(whichStages) % tnt_ftprocess_tla_wrapper(whichStages) % % To run on dream, at the command line type: distmsub tnt_ftprocess_tla_wrapper.m % % To run on a local computer, type the command in MATLAB % % There is only one stage: % stage1 = call wrapper that calls create_ft_struct (which...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>E-COMMERCE PAGE</title> <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> ...
/* * PwnChat -- A Bukkit/Spigot plugin for multi-channel cross-server (via bungeecord) chat. * Copyright (c) 2013 Pwn9.com. Sage905 <ptoal@takeflight.ca> * * 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 Softw...
<template> <div> <EmptyState v-if="workbench.currentInteractions?.length === 0" title="Nothing here yet." description="Add your first option by clicking on the button below." /> <Container v-else lock-axis="y" drag-handle-selector="button.handle" orientation="ver...
SELECT /* [NAME] - HANA_Security_SecureStore [DESCRIPTION] - SAP HANA secure store overview [SOURCE] - SAP Note 1969700 [DETAILS AND RESTRICTIONS] [VALID FOR] - Revisions: all - Statistics server type: all [SQL COMMAND VERSION] - 2018/11/12: 1.0 (initial version) [INVOLVED TABLES] - M_SECUR...
/// <reference types="cypress" /> describe('Intermediate typescript v1 course page', () => { beforeEach(() => { cy.visit( 'http://localhost:8000/course/intermediate-v1', ).waitForRouteChange(); }); it('course sections appear', () => { cy.get('.course-article__title').should( 'have.length...
# Getting Started with Create React App This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). ## License This project is licensed under the following licenses: - MIT License - Apache License 2.0 - Creative Commons Zero v1.0 Universal - BSD 3-Clause License - ISC Licens...
import React, { useContext, useState } from "react"; import { AiFillEye, AiFillEyeInvisible } from "react-icons/ai"; import * as S from "../styles/styleLogin"; import { Context } from "../context/AuthContext"; import { useNavigate } from "react-router-dom"; function LoginPage() { const navigate = useNavigate(); ...
import React from 'react' import { useTranslation } from 'react-i18next' import { StyleSheet } from 'react-native' import colors from 'libs/ui/colors' import { Box, Button, Link, Modal, ModalProps, Text } from 'libs/ui' type Props = ModalProps & { closeModal: () => void onPress: () => void categoryName?: string ...
// @ts-check import React from "react" import { formatAmount } from "medusa-react" import translations from "../../translations/success.json" const TotalPrice = ({ cart, locale }) => { return ( <section className="mt-4 mb-2 py-4 border-y border-y-lightGrey"> <div className="flex justify-between text-xs"> ...
package com.accolite.app.entity; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.*; import jakarta.persistence.*; @Getter @Setter @NoArgsConstructor @AllArgsConstructor @Entity public class TestCaseOutput { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE) private Long id; @Col...
--- title: 在 Office 365 進階電子文件探索中檢視分析結果 f1.keywords: - NOCSH ms.author: chrfox author: chrfox manager: laurawi titleSuffix: Office 365 ms.date: 9/14/2017 audience: Admin ms.topic: article ms.service: O365-seccomp localization_priority: Normal search.appverid: - MOE150 - MET150 ms.assetid: 5974f3c2-89fe-4c5f-ac7b-57f214...
import { forwardRef, MiddlewareConsumer, Module, NestModule, RequestMethod, } from '@nestjs/common'; import { ACCOUNT_TFA, GOOGLE_ACCOUNT_TFA, LOCAL_ACCOUNT_TFA, MANAGE_DATA_SERVICE, TFA_ROUTE, } from 'src/lib/constants'; import { TypeOrmModule } from '@nestjs/typeorm'; import { TwoFactorAuth } from...
(numericals.common:compiler-in-package numericals.common:*compiler-package*) (define-polymorphic-function rand:gaussian (&key (loc 0) (scale 1) size shape (mean 0) (std 1) out type) :documentation "Returns a scalar or an array of shape SHAPE (or SIZE) filled with rand...
package miu.mdp.assignment7.animal.ui.addspecies import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.FragmentManager import miu.mdp.assignment7.animal.model.Species import miu.mdp.assignment7.databinding.DialogAddSpeciesBinding...
from rest_framework import serializers from post.models import Post from subreddits.models import Subreddit from post.models import UpVote , DownVote from comments.models import Comment from comments.serializers import ListCommentSerializer class ListPostSerializer(serializers.ModelSerializer): upvote = s...
import { DatePipe } from '@angular/common'; import { Component, OnInit } from '@angular/core'; import { AbstractControl, FormControl, FormGroup, ValidatorFn, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { MenuItem, MessageService } from 'primeng/api'; import { Meeting } from 'src...
#include <iostream> #include <stdio.h> #include <algorithm> using namespace std; //endl 쓰면 느리다. -> 한번 호출될때마다 출력버퍼 밀어 초기화됨. //아래 3문장 또는 scanf와 printf를 추천한다. void hanoi(int N, int num1, int num2, int num3) { if (N == 1) { //cout << num1 << " " << num3 << endl; printf("%d %d\n", num1, num3); return; } else {...
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; abstract class Crud extends Command { protected static function checkIfFileExists(string $file_path): bool { return !empty(glob($file_path)); } protected static function getSourceFile(...
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>v-if条件渲染</title> <script src="./vue.js"></script> </head> <body> <div id = 'app'> <!-- 条件渲染——VUE会操作DOM,但为fals...
#!/usr/bin/perl -w use strict; use FS::UID qw(adminsuidsetup); use FS::Record qw(qsearch); use FS::cust_svc; use FS::svc_acct; &untaint_argv; #what it sounds like (eww) my($user, $action, $groupname, $svcpart) = @ARGV; adminsuidsetup $user; my @svc_acct = map { $_->svc_x } qsearch('cust_svc', { svcpart => $svcpa...
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.AspNetCore.ResponseCompression; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using System.Linq; using NBG.Visit...
package vn.ztech.software.ecomSeller.ui.order.order import android.util.Log import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.flow.collect import kotlinx.coroutines.flow.flowOn import ko...
#' First clear the environment of variables rm(list=ls(all=TRUE)) # get root director of project root.dir <- getwd() # setwd(dir = "/Group/react2_study5/report_phases_combined/projects/omicron_symptom_profiling/") outpath <- paste0(root.dir,"/output/") figpath <- paste0(root.dir,"/plots/") source("E:/Group/functions...
package io.ebean.migration.runner; import io.avaje.applog.AppLog; import io.ebean.migration.MigrationConfig; import io.ebean.migration.MigrationException; import io.ebean.migration.MigrationResource; import java.sql.Connection; import java.sql.SQLException; import java.util.List; import static java.lang.System.Logge...
<!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>Dženis</title> <link rel="stylesheet" href="styles.css" /> <link rel="stylesheet" href="https:...
''' Creates the theme to be used in our bar chart. ''' import plotly.graph_objects as go import plotly.io as pio THEME = { 'bar_colors': [ '#861388', '#d4a0a7', '#dbd053', '#1b998b', '#A0CED9', '#3e6680' ], 'background_color': '#ebf2fa', 'font_family'...
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using ICSharpCode.NRefactory; using ICSharpCode.PythonBinding; using NUnit.Framework; namespace PythonBinding.T...
package com.medvedomg.a20220803_vadymzhdanov_nycschools.domain import kotlinx.coroutines.Dispatchers import org.koin.core.qualifier.named import org.koin.dsl.module object DispatchersName { const val IO = "DispatcherIO" const val Main = "DispatcherMain" const val Immediate = "DispatcherImmediate" } inter...
class Particle { constructor(x, y) { this.pos = createVector(x, y); this.vel = createVector(random(19, 20), 0); this.vel.rotate((TAU / 360) * random(0, 360)); // this.vel.mult(3); this.acc = createVector(0, 0); this.mass = 10; this.rad = 10; this.lifespan = 60; // this.color = colo...
import React, { FormEvent, useState } from 'react' import { useSession } from 'next-auth/react' import Image from 'next/image' import Link from 'next/link' import moment from 'moment' import { MdModeEditOutline } from 'react-icons/md' import { BsFillTrashFill } from 'react-icons/bs' import { IoMdSend } from 'react-icon...
<!DOCTYPE html> <html> <head> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="manifest" href="/s...
import React, { useEffect } from 'react' import { Meteor } from 'meteor/meteor' import { Accounts } from 'meteor/accounts-base' import Avatar from '@material-ui/core/Avatar' import LockOutlinedIcon from '@material-ui/icons/LockOutlined' import Typography from '@material-ui/core/Typography' import { makeStyles } from '@...
'use client'; import React from 'react'; import SliderComponent from "@/components/SliderComponent"; import SliderPopulares from "@/components/SliderPopulares"; import '../globals.css'; import { register } from "swiper/element/bundle"; import MovieSearch from '@/components/MovieSearch'; import { useRouter } from 'next/...
package Hackerthon; import java.util.Scanner; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; public class Patterns { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int t = scanner.nextInt(); // Number of test cases scanner...
# tx_simulation The `tx_simulation` tool facilitates transaction simulation using `aiken tx simulate` in conjunction with Koios. The simulation script assumes the contracts are implemented using PlutusV2, relies on reference script UTxOs, and operates under the assumption that within a transaction, only the scripts ...
import Form from '@/components/modules/Form'; import moment from 'moment' import { useEffect, useRef, useState } from 'react'; import axios from '@/services/axiosConfig'; import { useRouter } from 'next/router'; const EditCustomerPage = ({ data, customerId }) => { const date = data.date ? moment(data.date).utc().fo...
import { UsersService } from './users.service'; import { UpdateUserDto } from './dto/update-user.dto'; import { Body, Post, Controller, Get, Param, Patch, /* Post, */ UseGuards, UseFilters, } from '@nestjs/common/decorators'; import { User } from './entities/user.entity'; import { AuthUser } from 'src...