text
stringlengths
184
4.48M
import yaml import pandas as pd with open("params.yaml") as conf_file: CONFIG = yaml.safe_load(conf_file) CONSTRUCTOR_STATUSES = [ "engine", "transmission", "clutch", "electrical", "hydraulics", "gearbox", "radiator", "suspension", "brakes", "overheating", "mechanical", "tyre", "driver seat", "punc...
<template> <div> <form class="bootbox-form" id="dzongkhagId"> <div class="card-body"> <div class="row form-group"> <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"> <label>Dzongkhag/Thromde:<span class="text-danger">*</span></label> ...
/* Imports: */ var express = require('express'); var bodyParser = require('body-parser'); var path = require('path'); var expressValidator = require('express-validator'); var mongojs = require('mongojs'); var db = mongojs('customerapp', ['users']); var ObjectId = mongojs.ObjectId; var app = express(); /* var logge...
import { useEffect, useState, useContext } from 'react' import { Navigate, useNavigate } from 'react-router-dom' import TaskContext from '../contexts/TaskContext' export default function HomeList() { const {tarefas, listaTarefas, removeTarefa} = useContext(TaskContext) const [loading, setLoading] = useState(false)...
import { PageContainer } from '@ant-design/pro-layout'; import { EllipsisOutlined, PlusOutlined } from '@ant-design/icons'; import { ActionType, ProColumns, ProTable, TableDropdown, ProForm, ProFormText } from '@ant-design/pro-components'; import { Button, Dropdown, Menu, Space, Tag, Switch, message, Modal } from 'antd...
<%@page import="java.util.ArrayList"%> <%@page import="kr.co.jboard1.bean.ArticleBean"%> <%@page import="java.util.List"%> <%@page import="java.sql.ResultSet"%> <%@page import="kr.co.jboard1.config.SQL"%> <%@page import="java.sql.PreparedStatement"%> <%@page import="java.sql.Connection"%> <%@page import="kr.co.jboard1....
package browser; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import io.github.bonigarcia.wdm.We...
package com.kiran.blog_app_rest.payload; import jakarta.validation.constraints.Email; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotEmpty; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @Data @AllArgsConstructor ...
<%= stylesheet_link_tag 'appposts', :media => "all" ,'data-turbolinks-track': 'reload' %> <% provide(:title, 'Webサービス登録') %> <div class="container"> <h2>Webサービスを登録する</h2> <p>全ての項目を入力して<span class="btn btn-success">Webサービスを登録する</span>をクリックしてください</p> <div class="web-service-post"> <%= form_for @apppost do |f...
import { Test, TestingModule } from '@nestjs/testing'; import { UsersService } from './users.service'; import { PrismaService } from '../prisma.service'; import { User } from '@prisma/client'; describe('UsersService', () => { let service: UsersService; let prismaService: PrismaService; beforeEach(async () => { ...
<script setup lang="ts"> import type { Form } from "@/types/Forms"; import { ShowChosen } from "@/components"; import { computed, onMounted, reactive, ref, watch } from "vue"; import proteinas from "@/utils/proteinas"; // TODO: depois pensar em passar esse proteinLimit como uma props de um componente pai. Dessa forma,...
<!doctype html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="csrf-token" content="{{ csrf_token() }}"> <link rel="dns-prefetch" href="//fonts.gstatic.com"> <link href="http...
# MacOS Setting up a development box. ## Profile Info .zprofile : z-shell configuration sourced when logging into account (bash see .bash_profile). Sets environment variables, aliases, etc. .zshrc : new terminal window configuration (bash see .bashrc). Sets shell specific aliases, and custom prompts. - U...
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/* * Copyright 2024 NGApps Dev (https://github.com/ngapp-dev). All rights reserved. * * 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 * *...
""" A mixin for all agents that can dispatch KeyEvents. """ # Python standard library from typing import Callable, Union from inspect import signature # Dependencies on other PyTT components from util.interface.api import * # Internal dependencies on modules within the same component from .KeyEventType import K...
import 'package:flutter/material.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; class ChangeUsernamePage extends StatefulWidget { const ChangeUsernamePage({Key? key}) : super(key: key); @override _ChangeUsernamePageState createState() => _ChangeUs...
const mongoose = require('mongoose'); const productSchema = new mongoose.Schema({ title:{ type:String, required:true, trim:true, }, slug:{ type:String, required:true, unique:true, lowercase: true, }, description:{ type:String, ...
import { Link, useNavigate } from "react-router-dom"; import { AuthContext } from "../../context/AuthContextProvider"; import { useContext, useState } from "react"; import avengers_logo from "../../assets/avengers_logo.png"; const Navbar = () => { const { user, userLogout } = useContext(AuthContext); const [showUse...
<!DOCTYPE html> <head> <meta charset="utf-8"> <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>Real Estate Website Landing Page</title> <link rel="stylesheet" type="text/css" href="https://c...
import styles, { layout } from '../config/styles' import { features } from '../constants' import Button, { ButtonLogIn } from './Button' import { motion } from 'framer-motion' const FeaturedCard = ({ icon, title, content }) => { return ( <motion.div initial="hidden" whileInView="vi...
import 'package:hive/hive.dart'; import 'package:json_annotation/json_annotation.dart'; part 'sets.g.dart'; @HiveType(typeId: 2) @JsonSerializable() class Sets { @HiveField(0) final int count; @HiveField(1) final int weight; Sets({required this.count, required this.weight}); Sets copyWith({int? count, ...
import * as Djs from "discord.js" import * as UseScope from "./use_scope" export interface ReplyOptions extends Djs.BaseMessageOptions { tts?: boolean // TODO ephemeralIfPossible } type ContextGeneralSource = UseScope.AllScopedCommandInteraction | Djs.Message export abstract class Context<SourceT extends ...
(load "./src/lib/util.scm") (define new-withdraw (let ((balance 100)) (lambda (amount) (if (>= balance amount) (begin (set! balance (- balance amount)) balance) "Insufficient funds")))) (define (make-withdraw balance) (lambda (amount) (if ...
document.addEventListener('DOMContentLoaded', function() { const estadosECidades = { "AC": ["Rio Branco"], "AL": ["Maceió"], "AP": ["Macapá"], "AM": ["Manaus"], "BA": ["Salvador"], "CE": ["Fortaleza"], "DF": ["Brasília"], "ES": ["Vitória"], "GO...
<template> <div class="markdown-body"> <p class="text-2xl pb-5 pt-5 ml-5 text-sans text-white">{{ title }}</p> <div class="p-5"> <div v-if="items.length == 0"> <span class="text-white">No snapshots taken yet</span> </div> <div v-else> <div class="wrapper"> <div v-f...
import { Inject, Injectable, Logger } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository, In } from 'typeorm'; import { MessageQueueJob } from 'src/engine/integrations/message-queue/interfaces/message-queue-job.interface'; import { Workspace } from 'src/engine/core-modules...
<!-- Notes on using the CrowdFlower Instructions <h3><strong>Overview</strong></h3> <!-- BEGIN CUSTOMIZABLE OVERVIEW SECTION --> REPLACE - Rules: The goal of the research is to categorize tweets in different types of sexist categories and non-sexist categories.The information gathered will be used to examine and e...
<!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>FabricJS editor</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstra...
use crate::postgres_config::PostgresConfig; use chrono::{TimeZone, Utc}; use log::*; use mango_feeds_connector::metrics::{MetricType, MetricU64, Metrics}; use postgres_query::Caching; use service_mango_fills::*; use services_mango_lib::postgres_configuration::PostgresConfiguration; use std::{ sync::{ atomic...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateContactsSiteTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('contacts_s...
import faker from "@faker-js/faker"; import { IMovieTrending } from "@/src/domain/models/movies"; import { HttpStatusCode } from "@/src/data/protocols/http"; import { UnexpectedError } from "@/src/domain/errors/enexpected-error"; import { OverloadedError } from "@/src/domain/errors/server-overloaded"; import { mockMovi...
import enums from "#utils/enums.mjs"; import {HttpStatus} from "#structs/route.mjs"; import {getModel} from "#db/index.mjs"; import {UniqueConstraintError, ValidationError} from "sequelize"; import {randomString} from "#utils/strings.mjs"; export async function createSession (res, payload) { const { name, gender, sk...
local Component = require("scripts/utilities/component") local HealthExtensionInterface = require("scripts/extension_systems/health/health_extension_interface") local PropHealthExtension = class("PropHealthExtension") PropHealthExtension.init = function (self, extension_init_context, unit) self._unit = unit self._he...
# Codebook for Getting Data Project Content 1. Variables Description 2. Steps taken for the transformation to tidy.txt dataset 1. Variables Description Feature Selection The features selected for this database come from the accelerometer and gyroscope 3-axial raw signals tAcc-XYZ and tGyro-XYZ. These time domain...
import { presetPalettes, presetDarkPalettes } from '@ant-design/colors'; import type { ArcoColorType } from '@arco-design/color'; import { getPresetColors } from '@arco-design/color'; export interface Options { /** * 决定根据何种算法生成调色板,arco的质感更加浪漫,ant则偏向务实 * * @default 'arco' */ type?: 'arco' | 'ant'; /*...
<%-- Document : crear-usuario Created on : 23-sep-2019, 1:04:43 Author : helmuthluther --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="t...
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/Pawn.h" #include "Collider.generated.h" UCLASS() class BOSSSHOOTER_API ACollider : public APawn { GENERATED_BODY() public: // Sets default values for this pawn's properties ...
class Solution { public List<List<Integer>> fourSum(int[] nums, int target) { Set<List<Integer>>set = new HashSet<>(); int n = nums.length; for(int i = 0; i<n; i++){ int sum = 0; for(int j = i+1; j<n; j++){ for(int z = j + 1; z<n; z++){ ...
# Regents.R # This is for reconciling regents scores in the regents workbook, powerschool, and the accountability workbook # Note: Run "Regents Workbook.R" first. # Save the raw versions in case the raw data is needed later (e.g., restarting this script without rerunning MainScript) R.bs = Regents.bestScores R.bs.ne =...
import getMonday from "../utils/getMonday"; const DatabaseController = () => { const init = () => { // Add key to store projects if (!localStorage.getItem("projects")) { localStorage.setItem("projects", JSON.stringify([])); } // Create inbox project if not existing ...
import React, { FC, PropsWithChildren, createContext, useCallback, useContext, useEffect, useRef, useState, } from 'react'; import { start, isStarted, onMessage, newNode, peerID, connect, stop, Config, StoreQuery, ContentFilter, storeQuery, filterSubscribe, FilterSubscription, ...
<?php namespace common\models; use Yii; /** * This is the model class for table "block_rec". * * @property int $id * @property string $name * @property string $color * @property int|null $status */ class BlockRec extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ public static function ta...
#ifndef UTILS_HANDLER_DISPATCHER_H_ #define UTILS_HANDLER_DISPATCHER_H_ #pragma once #include <memory> #include <string> #include <unordered_map> using std::shared_ptr; using std::string; using std::unordered_map; template <class HandlerType> class HandlerDispatcher { HandlerDispatcher(const HandlerDispatcher&) = ...
(ns ttt.t-core (:use midje.sweet) (:use [ttt.core])) (fact (:board (init-position)) => '[- - -, - - -, - - -]) (fact (possible-moves (init-position)) => (range 0 9)) (fact (:board (move (init-position) 0)) => '[x - -, - - -, - - -]) (fact (other-turn 'x) => 'o) (fact (other-turn 'o) => 'x) (fact (:dim (init-positi...
import { Color } from "../src/mygame/data/color" describe("color", () => { test("create a color from hex", () => { let color = Color.fromHex(0xaabbcc) expect(color.red).toBe(0xaa) expect(color.green).toBe(0xbb) expect(color.blue).toBe(0xcc) }) test("create a color from rgb...
import { createBrowserSubscription, createCassiopeia } from '@cassiopeia/vue' import '@unocss/reset/normalize.css' import { createPinia, type StateTree } from 'pinia' import 'uno.css' import { createSSRApp } from 'vue' import { createMemoryHistory, createRouter, createWebHistory } from 'vue-router' import App from './c...
<div class="header bg-gradient-danger pb-8 pt-5 pt-md-8"> <div class="container-fluid"> <div class="header-body"> <div class="row"> <div class="col"> <div class="card shadow"> <div class="card-header bg-transparent"> ...
import { createProductMedium, createNavigation } from "./generateTemplate"; import { mockCatalogueIntroData } from "./mockData"; import { getProductsBysubcatagory } from "./requests"; document.addEventListener('DOMContentLoaded', async () => { const cookie = document.cookie.split(';'); const cookieMap: Array<{...
"use client"; import {type FC} from 'react'; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "@/components/ui/dialog"; interface ModalProps { title: string; description: string; isOpen: boolean; onClose: () => void; children?: React.ReactNode...
#### pyenv > 다양한 파이썬 버전/배포판을 손쉽게 관리하기 위함. > Scoop 을 통한 pyenv 패키지가 설치 되었다고 가정합니다. ```bash # 설치 가능한 파이썬 버전/배포판 내역을 다시 읽습니다. pyenv update # 설치 가능한 파이썬 버전/배포판 출력 pyenv install --list # 지정 버전/이름의 파이썬을 설치 pyenv install 3.10.6 # 지정 버전을 디폴트(글로벌) 버전으로 설정 pyenv global 3.10.6 # (파워쉘 고유명령) python 경로가 pyenv 내에 있음을 확인 get-com...
import { Component, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete'; import { ActivatedRoute, Router } from '@angular/router'; import { Observable, map, mergeMap } from 'rxjs'; import { Area } from 'src/app/core/m...
package xyz.kurozero.notes.ui.activities import android.app.Activity import android.app.DatePickerDialog import android.content.Intent import android.os.Bundle import android.view.Menu import android.view.MenuItem import android.view.View import android.widget.EditText import android.widget.Toast import com.afollestad...
// Copyright (c) 2021-2022 THL A29 Limited // // This source code file is made available under MIT License // See LICENSE for details import React, { useState, useEffect } from 'react'; import cn from 'classnames'; import { isEmpty, pick, isArray } from 'lodash'; import { saveAs } from 'file-saver'; import { Dropdo...
// ItinerariesComponent.jsx import React, { useState, useEffect } from "react"; import axios from "axios"; // Import axios import "./ItinariesComponent.css"; import Navbar from "../Navbar/Navbar.js"; import "./ItinariesComponent.css"; const ItinerariesComponent = ({ history }) => { const [itineraries, setItinerarie...
package com.example.storyapp.ui.authentication.register import android.animation.AnimatorSet import android.animation.ObjectAnimator import android.os.Bundle import android.text.Editable import android.text.TextWatcher import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import and...
<!DOCTYPE html> <html lang="es"> <head> <!-- Metadatos --> <meta charset="utf-8" /> <meta name="author" content="Piano House" /> <meta name="description" content="Tienda online de instrumentos musicales" /> <meta name="keywords" content="Instrumento, Sonido, Audio, Musica, Voz, Posadas, Misiones" /...
module; #include <cstdlib> #include <iostream> #ifdef __cpp_lib_generator #include <generator> #endif export module CoroutineLibrary; using namespace std; export class CoroutineLibrary { #ifdef __cpp_lib_generator static auto generateRandom(int randomNumbers) noexcept { std::cout << "Generating rando...
#pragma once /*- -*- THE C STANDARD LIBRARY -*- -*/ #include <stddef.h> #include <string.h> /*- -*- THE C++ STANDARD LIBRARY -*- -*/ #include <algorithm> #include <initializer_list> #include <stdexcept> #include <functional> /*- -*- REINVENTING THE WHEEL LIBRARY -*- -*/ #include "iterator.tcc" /** * @brief Cl...
class User{ constructor(email, name){ this.email = email; this.name = name; this.score = 0; } login(){ console.log(this.email, 'just logged in'); return this; } logout(){ console.log(this.email, 'just logged out'); return this; } update...
import './index.css' import 'epfl-elements/dist/css/elements.min.css' type Callback = () => void; type MetaboxProps = { eventTitle?: string; metaboxDetails?: Array<any>; onClickFn?: Callback; labelButton?: string; organizer?: Array<any>; } export function Metabox ({ eventTitle, metaboxDet...
import numpy as np import matplotlib.pyplot as plt #A1: Develop the above perceptron in your own code (don’t use the perceptron model available from package). Use the initial weights as provided below. W0 = 10, W1 = 0.2, w2 = -0.75, learning rate (α) = 0.05. Use Step activation function to learn the weights of the net...
import { Request, Response } from "express"; import { File } from "./file.entity"; import fileService from "./file.service"; import { verifyTokenMiddleware } from "../middlewares/verifyTokenMiddleware"; import userService from "../User/user.service"; import { FileProps, FileType } from "./file.types"; import fileManage...
public class EditDist { //O(n+m) public static int editDistance(String str1, String str2) { int n = str1.length(); int m = str2.length(); int dp[][] = new int[n + 1][m + 1]; // initialize for (int i = 0; i < n + 1; i++) { for (int j = 0; j < m + 1; j++) { ...
import { Body, Controller, Post, Get, UploadedFiles, UseGuards, UseInterceptors, Patch, Param, Delete, } from '@nestjs/common'; import { PostsService } from '../services/posts.service'; import { AuthGuard } from '@nestjs/passport'; import { FilesInterceptor } from '@nestjs/platform-express'; import ...
// // CityDetailPresenter.swift // MyWeather // // Created by Rustam Nigmatzyanov on 21.08.2021. // import Foundation // Presenter - отвечает за преобразование сырых данных и передает данные для отображения // заголовки для таблицы private enum Title: String, CaseIterable { case name = "Город" cas...
import React from "react"; import { Container, Image, Button } from "react-bootstrap"; import CityForm from './CityForm.jsx'; import Listy from './Listy.jsx'; import AlertComp from './AlertComp.jsx'; import Weather from './Weather.jsx'; import MovieCards from "./MovieCards.jsx"; import FoodList from "./FoodList.jsx"; i...
#ifndef TECTONIC_GAMECAMERA_H #define TECTONIC_GAMECAMERA_H #include "camera/Camera.h" #include "meta/Signal.h" #include "meta/Slot.h" /** * Represents a controllable game camera. Usually only one per scene. * This camera can be controlled with keyboard and mouse by calling handleKeyEvent and handleMouseEvent. * ...
document.addEventListener("DOMContentLoaded", function () { const itemsPerPage = 6; let currentPage = 1; async function displayRepositories() { try { const repositories = [ { "name": "QuantumFluxAnalyzer", "description": "A cutting-edge quantum c...
import PropTypes from "prop-types"; import React, { useReducer } from "react"; import ArrowLeft from "@/assets/svg/ArrowLeft"; import Bookmark from "@/assets/svg/Bookmark"; import styles from "./index.module.scss"; interface Props { size: "XS" | "m" | "s"; icon: JSX.Element; stateProp: "hover-active" | "disabl...
import { Meta, StoryObj } from "@storybook/react"; import LoginForm from "./LoginForm"; import { fn } from "@storybook/test"; const meta: Meta<typeof LoginForm> = { title: "Molecules/LoginForm", component: LoginForm, decorators: [ (Story) => ( <div className="flex justify-center items-center min-h-scre...
<!DOCTYPE html> <html lang="en-us"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>About Me</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.c...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strdup.c :+: :+: :+: ...
from drf_yasg import openapi from drf_yasg.utils import swagger_auto_schema from rest_framework import mixins, response from rest_framework.decorators import action from rest_framework.viewsets import GenericViewSet from rest_framework.pagination import PageNumberPagination from django_filters.rest_framework import Dj...
#include "../inc.h" class Solution { public: vector<double> calcEquation(vector<vector<string>>& equations, vector<double>& values, vector<vector<string>>& queries) { unordered_map<string, unordered_map<string, double>> dict; int esize = equations.size(), qsize = ...
""" Nomear argumentos----------------------------- def cidade(parte1, parte2): print(parte1 + ' ' + parte2) cidade('São', "Paulo") cidade('Paulo', "São") cidade(parte1='São', parte2='Paulo') cidade(parte2='Paulo', parte1='São') #Parametro padrão #função que não exige parametros print() input() #função que e...
import Link from "next/link" import styles from "./LatestNews.module.scss" import localFont from "next/font/local" import { convertTimeUTC } from "@/app/libs/date" import "../../styles/fontello/css/fontello.css" import { useAppContext } from "@/app/Hooks/Hook" const MontserratExtraBold = localFont({ src: '../../fonts/...
use std::collections::HashSet; use advent_of_code::{Compass, Grid}; use itertools::Itertools; use strum_macros::FromRepr; advent_of_code::solution!(16); #[repr(u8)] #[derive(Debug, Clone, Copy, PartialEq, Eq, FromRepr)] enum Mirror { None = b'.', Forward = b'/', Back = b'\\', Horizontal = b'-', V...
/** * Copyright © 2017 Jan Schmidt * * 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 program is distr...
package com.yolt.creditscoring.usecase; import com.yolt.creditscoring.configuration.annotation.UseCase; import com.yolt.creditscoring.service.audit.UserAuditService; import com.yolt.creditscoring.service.client.ClientStorageService; import com.yolt.creditscoring.service.creditscore.storage.CreditScoreStorageService; i...
import { Notice } from '../interfaces/Notice' import moment from 'moment' import { getShortedDescription } from './NewCard' import { Bookmark } from './shared/Bookmark' interface Props { notice:Notice onClick: () => void handleSaveNotice: () => void } export const TopNewCard = ({ notice, onClick, handleSaveNoti...
#include <iostream> #include <map> #include <set> #include <utility> #include <string> using namespace std; struct Token{ string type; string val; int line; Token(string t,string v,int l=0){ type = t; val = v; line = l; } string toString(){ string s; ...
const mongoose = require("mongoose"); const slugify = require("slugify"); const books = require("../data/booksData"); const bookSchema = new mongoose.Schema( { title: { type: String, required: [true, "Book must have a title"], unique: true, validate: { validator: function (val) {...
<%@ page contentType="text/html; charset=UTF-8" language="java" %> <html> <head> <meta charset="utf-8"/> <title>BLOG | YOUR BEST CHOICE</title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta content="width=device-width, initial-scale=1.0" name="viewport"/> <meta http-equiv="Content-type...
-- Databricks notebook source -- MAGIC %md -- MAGIC ##Getting started with Azure Databricks -- COMMAND ---------- -- MAGIC %md -- MAGIC ### Ingest Data to the Notebook -- MAGIC -- MAGIC ##### • Ingest data from dbfs sources -- MAGIC ##### • Create Sources as tables -- COMMAND ---------- -- MAGIC %sql -- MAGIC SELE...
/** * 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...
<?php namespace TravelPSDK\Flight; use TravelPSDK\Traits\OptionsAware as OptionsAwareTrait; class SearchParameters extends \ArrayObject { use OptionsAwareTrait; /** * @param array $params */ public function __construct(array $params = null) { parent::__construct(); if ($p...
// // MovieViewModel.swift // TheMovieApp // // Created by Berkay Sazak on 6.11.2023. // import Foundation class MovieViewModel { private let webService : MovieService? var movieOutput : MovieViewModelOutput? init(webService: MovieService) { self.webService = webService } ...
/// name : "Ahmed Abd Al-Muti" /// email : "nabil1@route.com" /// phone : "01234567801" /// password : "$2a$12$Wp7A2bycw/orhD/vdlR9HeU3s0j7nNtdtidlLdOs4uRVwu5eDW3rm" /// role : "user" /// _id : "63cd78f9c57ec80280491b4d" /// createdAt : "2023-01-22T17:57:13.885Z" /// updatedAt : "2023-01-22T17:57:13.885Z" /// __v : 0 ...
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>AdminLTE 3 | Project Add</title> <!-- Google Font: Source Sans Pro --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?f...
use std::io::{ Error, ErrorKind }; // async fn my_async_call(url: &str) -> Result<serde_json::Value, reqwest::Error> { // let response: serde_json::Value = reqwest::get(url).await?.json::<serde_json::Value>().await?; // Ok(response) // } async fn my_async_call(url: &str) -> Result<serde_json::Value, Error> { ...
// { Driver Code Starts #include<iostream> #include<bits/stdc++.h> using namespace std; /* Link list Node */ struct Node { int data; struct Node *next; Node(int x) { data = x; next = NULL; } }; int intersectPoint(struct Node* head1, struct Node* head2); Node* inputList(int size) ...
<!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>3D Transformation</title> <style> #header{ background-color: darkturquoise; ...
package Java.lebin.Training.InterviewCases.SortArray; /* 367. 有效的完全平方数 给你一个正整数 num 。如果 num 是一个完全平方数,则返回 true ,否则返回 false 。 完全平方数 是一个可以写成某个整数的平方的整数。换句话说,它可以写成某个整数和自身的乘积。 不能使用任何内置的库函数,如 sqrt 。 示例 1: 输入:num = 16 输出:true 解释:返回 true ,因为 4 * 4 = 16 且 4 是一个整数。 示例 2: 输入:num = 14 输出:false 解释:返回 false ,因为 3.742 * 3.742 = 14 但 ...
(* An implementation of shift0 and shift. *) effect Ctrl O R = { shift0 : type A. ((A ->[|R] O) ->[|R] O) => A } let reset c = handle c () with | return v => v | shift0 v => v resume end let _ = printInt (100 + reset (fn () => 10 + shift0 (fn k => k (k 1)))) let _ = printInt (reset (fn () => 100 + (res...
import { ValueObject } from '../../../shared/domain/ValueObject'; import { Result } from '../../../shared/core/Result'; import { Guard } from '../../../shared/core/Guard'; import { AmountErrors } from './AmountErrors'; import { BaseError } from '../../../shared/core/AppError'; interface AmountProps { value: number; ...
<template> <div class="register"> <!-- 头部 --> <AppHeader to=".app-header" title="注册" left-arrow back></AppHeader> <div class="container"> <van-form ref="regForm" @submit="onSubmit" validate-first validate-trigger="onChange"> <van-cell-group inset> <van-field v-model="tel" name="tel...
--- slug: setup-jenkins-ui append_help_link: true title: Jenkins UI hide_title: true description: Configure Jenkins to send the correct branch name to Semgrep Cloud Platform. tags: - Semgrep Supply Chain - Team & Enterprise Tier --- import MoreHelp from "/src/components/MoreHelp" <ul id="tag__badge-list"> { Objec...
/**************************************************************************//** \file misc_feat.cc \brief This source file implements the function of software system information display. \author Yanzhen Zhu \version V1.0.1 \date 21. November 2022 ************************************************...
package com.crazyidea.alsalah.adapter import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import androidx.recyclerview.widget.RecyclerView import com.crazyidea.alsalah.data.room.entity.Ayat import com.crazyidea.al...