text stringlengths 184 4.48M |
|---|
package com.ortega.tshombo.feature.myStore.domain.useCase
import com.ortega.tshombo.core.utils.PreferencesManager
import com.ortega.tshombo.feature.myStore.domain.entity.StoreEntity
import com.ortega.tshombo.feature.myStore.domain.repository.IMyStoreRepository
import retrofit2.HttpException
import java.io.IOException
... |
import React, { useState, useEffect } from "react";
import axios from "axios";
import { User } from "../../../models/user";
import "./ViewUsersGeneral.css";
import { useNavigate } from "react-router-dom";
const apiUrl = "http://localhost:3000";
//const apiUrl='//api.bankitos.duckdns.org';
function ViewUsersGeneral({ ... |
---
title: "Unlock Windows 10 Booting Secrets: Learn the Easy Way to Clone Your Drive and Supercharge Your PC Performance!"
ShowToc: true
date: "2023-06-25"
author: "Carol Brown"
---
*****
# Unlock Windows 10 Booting Secrets: Learn the Easy Way to Clone Your Drive and Supercharge Your PC Performance!
Windows 10 is on... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Image = void 0;
var _react = _interopRequireWildcard(require("react"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = n... |
extends ../layouts/default.pug
block config
//- Global Page Configuration
- var pageTitle = 'Multipurpose'
append css
link(rel='stylesheet', href='https://unpkg.com/aos@next/dist/aos.css')
block content
//- * * * * * * * *
//- * * Navbar * *
//- * * * * * * * *
include mixins/navbar.p... |
<template>
<button
class = 'drawer-item'
@mousedown.left = 'addRipple'
@mouseup.left = 'ripples = []'
>
<transition-group
class = 'drawer-item__ripples'
name = 'drawer-item__ripple-grow'
tag = 'div'
>
<div
v-for = 'ripple in ripples'
:key = 'ripple.id'
... |
/*
* Kuali Coeus, a comprehensive research administration system for higher education.
*
* Copyright 2005-2015 Kuali, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, eithe... |
<template>
<h2 :style="{ color: color }">COLOR CHANGING</h2>
</template>
<script>
import { ref, computed } from "vue";
import { useTransition, TransitionPresets } from "@vueuse/core";
export default {
setup() {
// 色值/位置
const source = ref([255, 255, 255]);
const output = useTransition(source, {
... |
from typing import Optional
from sqlalchemy.orm.session import Session
from domain.api_key.entities import ApiKey, UserApiKey
from domain.api_key.repositories import IUserApiKeyRepository
from .data_mappers import ApiKeyDataMapper, UserApiKeyDataMapper
from .models import ApiKeyModel, UserApiKeyModel
class ApiKeyRe... |
import dotenv from "dotenv";
import path from "path";
import { createProduct, deleteProductById, getProductBy, getProducts, updateProduct } from "./";
import { createCategory, deleteCategoryById } from "../category";
import { ProductReturnType, ProductFullInterface } from "../../interfaces/Product";
import { Category... |
<!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>Wishlist</title>
<link href="/admin/favicon/favicon.ico" rel="icon">
<style>
.gradient-cust... |
<template>
<div class="credential-list">
<b-container class="credential-list__header mb-2 p-0" fluid>
<b-row no-gutters>
<b-col cols="7" sm="9" class=" pl-2 pr-3">Name</b-col>
<b-col cols="4" sm="2">Updated</b-col>
<b-col cols="1" class="text-center">
<font-awesome-icon :ic... |
<template>
<v-table>
<tr>
<th class="py-2 text-left">Elève</th>
<th>
<div class="bg-blue-lighten-1 rounded py-1 px-1">Moyenne</div>
</th>
<th v-for="tr in props.travaux" :key="tr.Id">
<div class="bg-blue-lighten-4 rounded mx-2 my-1 py-1 text-subtitle-1">
{{ props.... |
package com.eztech.fitrans.service;
import com.eztech.fitrans.constants.PositionTypeEnum;
import com.eztech.fitrans.model.Department;
import com.eztech.fitrans.model.Role;
import com.eztech.fitrans.model.UserEntity;
import com.eztech.fitrans.repo.DepartmentRepository;
import com.eztech.fitrans.repo.RoleRepository;
imp... |
DDL (Data Definition Language 데이터 정의)
테이터의 스키마 객체를 생성 변경 제거 하거나 권한의 부여나 박탈 주석 자료버림등을 수행
데이터베이스 구조를 정의하고 관리
객체를 생성, 수정, 삭제하는데 사용한다.
대표적인 명령문
CREATE(생성), ALTER(수정), DROP(삭제), COMMENT(주석), GRANT, REVOKE (권한부여), TRUNCATE(자료버림)
CREATE(생성) :
CREATE TABLE : 새로운 테이블 생성
CREATE VIEW : 가상 테이블을 생성해서 데이터 베이스 일부 데이터에 대한 뷰를 정의
CREA... |
---
title: "Weather App"
date: 2020-11-15
lesson: 35
---
<!-- Setting the html code -->
{% set html %}
<div id="app" class="weatherApp l-stack">Checking the weather near you...</div>
{% endset %}
<!-- Setting the js code -->
{% set js %}
<script>
// Variables
let locationAPI = 'https://ipapi.co/json'
let city;... |
import React, { useState } from 'react';
import AddPhotoAlternateIcon from '@mui/icons-material/AddPhotoAlternate';
import { useNavigate } from 'react-router-dom';
import Alert from '@mui/material/Alert';
import { makeStyles } from '@mui/styles';
import Footer from '../../shared/components/Footer.jsx';
import NavLogin ... |
from __future__ import absolute_import, division, print_function
import copy
from lib2to3.pytree import Base
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
import numpy as np
import rospy
from drone_env.envs.base_env import BaseEnv
from drone_env.envs.common.action import Action
from drone_env.e... |
# Premise
Contains all software and notebooks to reproduce the figures for a yet to be published study on the interrelation between wearable-derived physiology and self-assessed wellbeing.
Unfortunately, the input data is not yet publicly available but will hopefully be publised together with the paper.
Package struc... |
const jwt = require("jsonwebtoken");
const bcrypt = require("bcrypt");
const dotenv = require("dotenv");
const userRepository = require("../repositories/userRepository");
const secretKey = "phan-thanh-luc-2003";
const EmailCode = require("../email/successBookingEmail");
dotenv.config();
class UserController {
async r... |
<%
view_only_html ||=false
%>
<style>
.html_editor_container {
height: 550px;
}
.html_editor {
border: 1px solid red;
text-align: left;
}
.html_text {
background-color: whitesmoke;
min-height: 400px;
text-align: left;
padding: 10px;
}
.html_results {
<% if !view_only_html %>
border:1px solid black;... |
#ifndef EVENT_HPP_
#define EVENT_HPP_
#include <sstream>
#include <vector>
#include <map>
#include <set>
#include <string>
using namespace std;
#include <assert.h>
#include <stdint.h>
enum EventType {
INVALID_EVENT,
ROI_START, ROI_FINISH, /** Tracking the Parsec region-of-interest */
THREAD_START, /** When a ... |
"use client";
import Link from "next/link";
import { useState } from "react";
import Rating from "@mui/material/Rating";
// LOCAL CUSTOM COMPONENTS
import ProductPrice from "./components/product-price";
import FavoriteButton from "./components/favorite-button";
// GLOBAL CUSTOM COMPONENTS
import HoverBox from "compone... |
import { FunctionComponent, Suspense } from "react";
import { QueryClient, QueryClientProvider } from "react-query";
import { ReactQueryDevtools } from "react-query/devtools";
import Body from "./Body";
export const queryClient = new QueryClient({
defaultOptions: {
queries: {
refetchOnWindowFocus: false,
... |
#pragma once
#include <QString>
#include "qf4cplus_global.h"
#include <QObject>
#include "QState.h"
#include "Interfaces/IQHsm.h"
#include "QFEvent.h"
#include "QSignal.h"
#include "QSignals.h"
#include "TransitionChain.h"
#include "TransitionChain.h"
#define Q_STATE_DECL(state_) \
Q_INVOKABLE QString state_(shared_p... |
import React from "react";
export function pickFromSyntheticEvent<T extends HTMLElement>() {
return <K extends keyof T>(key: K) =>
<E extends (t: T[K]) => void>(fn: E) =>
(event: React.SyntheticEvent<T>) =>
fn(event.currentTarget[key]);
}
// Для получения данных из любого события
//
// Применение
exp... |
<?php
/**
* @file
* Contains \Drupal\language\Form\NegotiationUrlForm.
*/
namespace Drupal\language\Form;
use Drupal\system\SystemConfigFormBase;
/**
* Configure the URL language negotiation method for this site.
*/
class NegotiationUrlForm extends SystemConfigFormBase {
/**
* Implements \Drupal\Core\For... |
import translationIT from "../../public/locales/it/it.json";
import translationEN from "../../public/locales/en/en.json";
import translationFR from "../../public/locales/fr/fr.json";
import HeroWorks from "@/components/heros/heroWorks";
import SezioneIntro from "@/components/worksItem/sezioneIntro";
import Image from "... |
import numpy as np
import george
from george import kernels
import matplotlib.pyplot as plt
import scipy.optimize as op
def initialize_state_covariance(initial_state, initial_state_estimate):
state_covariance = np.outer(initial_state - initial_state_estimate, initial_state - initial_state_estimate)
return stat... |
import {Controller, SubmitErrorHandler, SubmitHandler, useForm} from "react-hook-form";
type AddForm = {
name: string;
age: number;
cardNumber: number;
}
const normalizeCardNumber = (value: string) => {
return value.replace(/\s/g, "").match(/.{1,4}/g)?.join(" ").substr(0, 19) || "";
}
const AddTechni... |
from django.db import models
from cores import models as core_models
class EasyFood(core_models.TimeStampedModel):
class Meta:
verbose_name = "간편식"
verbose_name_plural = "간편식"
name = models.CharField(max_length=140, null=True, verbose_name="간편식", unique=True)
description = models.TextFiel... |
import { getFirestore, collection, query, getDocs } from "firebase/firestore";
import app from "@/shared/FirebaseConfig";
import React, { useEffect, useState } from "react";
import PostItem from "@/components/Home/PostItem";
import { Ghost, TrashIcon } from "lucide-react";
import Toast from "../../components/Home/Toast... |
package Tuan3;
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
import static java.util.stream.Collect... |
// Copyright 2020 Redpanda Data, Inc.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.md
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Versi... |
'use client';
import { useEffect, useState } from 'react';
import { Controller } from 'react-hook-form';
import { useForm } from 'react-hook-form';
import {
Form,
FormControl,
FormField,
FormItem,
FormLabel,
FormMessage,
} from '@/components/ui/form';
import * as z from 'zod';
import { zodResolver } from '@... |
package splunk
import "context"
// A sink serves as the last stage of a processing pipeline. All sinks are implemented as blocking calls which don't start any new goroutines.
// Drain receives all values from the provided channel and returns them in a slice.
// Drain blocks the caller until the input channel is close... |
<%= render "shared/header" %>
<div class='wrapper'>
<div class='side-ber'>
<div class="side-ber__header">
<h3 class='side-ber__title'>参加メンバー</h3>
</div>
<div class="side-ber__footer">
<% @users.each do |user| %>
<div class="room-user__list">
<%= link_to user.full_user, user_... |
package ${package}.${moduleName}.controller;
import java.util.Arrays;
import java.util.Map;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.anno... |
import React, { useEffect, useState } from "react";
import { Link, useNavigate } from "react-router-dom";
import auth from "../services/authService";
import axiosInstance from "../services/axiosInstance";
const SignUp = () => {
const navigate = useNavigate();
const [error, setError] = useState(null);
const [user... |
const router = require('express').Router();
const { Dealership, Car } = require('../../models');
// Retrieve all Cars
router.get('/', async (req, res) => {
try {
const carData = await Car.findAll();
res.status(200).json(carData);
} catch (err) {
res.status(500).json(err);
}
});
// Retrieve One Car ... |
'''
case:
Write a Class that can summarize the given data
- Named the class with `Data`
- Initialize the object with no input
- `Data` has several attributes:
- `data` --> return the input data
- `size` --> return the size of the input data
- `Data` has several methods:
- `read_data(data)` --> to read the input... |
import { delay, lastValueFrom, map, of } from "rxjs";
import { ObjectValidator } from "./object-validator";
interface UserFormOutput {
name: string;
email: string;
hobbies: string[];
age: number;
}
describe('ObjectValidator', () => {
const mockData: UserFormOutput = {
name: 'John',
email: 'email@gm... |
@use 'sass:math';
@import 'base/mixins';
//&display=swap - добавить при подключении через плагин
// Подключить если есть локальные файлы шрифтов
@import 'fonts/fonts';
// Подключить если есть файл иконочного шрифта
//@import "fonts/icons";
$fontFamily: 'Circe';
$fontSize: rem(18);
// Основные цвета
$white:... |
import './App.css';
import Navbar from './components/Navbar';
import TextForm from './components/TextForm';
// import About from './components/about';
import React, { useState } from 'react';
import Alert from './components/Alert';
// import {
// BrowserRouter as Router,
// Routes,
// Route
// } from "react-route... |
<script lang="ts">
import { AnimeTopics, type Settings } from './settings';
import { RangeSlider } from '@skeletonlabs/skeleton';
import { forceUpdateBackground } from '$actions/dynamic-background';
import NumberInput from '$shared-components/number-input.svelte';
import * as m from '$i18n/messages';
import... |
package com.appsmith.server.helpers;
import com.appsmith.server.domains.Application;
import com.appsmith.server.domains.GitArtifactMetadata;
import com.appsmith.server.exceptions.AppsmithError;
import com.appsmith.server.exceptions.AppsmithException;
import com.appsmith.util.WebClientUtils;
import net.minidev.json.JSO... |
part of 'login_bloc.dart';
abstract class LoginEvent extends Equatable {
const LoginEvent();
@override
List<Object> get props => [];
}
class CallbackEvent extends LoginEvent {
const CallbackEvent();
}
class EmailLoginEvent extends LoginEvent {
final String email;
final String password;
const EmailLog... |
# Code4Recovery Spec Composer Package
This package contains a class that makes the most up-to-date meeting types available to your application. Updates are released anytime new meeting types are added.
## Installation
```shell
composer require code4recovery/spec
```
## Instantiation
```php
use Code4Recovery\Spec;
$s... |
<h2>Employee List</h2>
<div class="card">
<p-table [value]="employees" styleClass="p-datatable-striped" responsiveLayout="scroll" [scrollable]="true" scrollHeight="700px">
<ng-template pTemplate="header">
<tr>
<th style="text-align:center">First Name</th>
<th style="text-align:center... |
class Man {
field int x, y; // screen location of the man's top-left corner
field int totalHeight;
field int nooseX;
field int nooseLength;
field int postX;
field int platformWidth;
field int headRadius;
field int bodyHeight;
field int bodyStartY;
field int bodyEndY;
field ... |
const express = require('express');
const socket = require('socket.io');
const cors = require('cors');
const path = require('path');
const mongoose = require('mongoose');
const helmet = require('helmet');
const app = express();
app.use((req, res, next) => {
req.io = io;
next();
});
app.use(helmet());
const test... |
<!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" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
... |
/*
Copyright © 2021 Carl Caum <carl@carlcaum.com>
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 w... |
import Component from 'components/component';
import bind from 'decorators/bind';
import cx from 'classnames';
import {placeCaretAtEnd} from 'helpers/utils';
import React from 'react';
import PropTypes from 'prop-types';
import styles from './index.less';
export default class EditableTitle extends Component {
stati... |
import React, { useState, useEffect } from 'react';
import "./header.css";
import NetflixLogo from "../../assets/images/pngwing.com.png";
import SearchIcon from '@mui/icons-material/Search';
import NotificationsNoneIcon from '@mui/icons-material/NotificationsNone';
import AccountBoxIcon from '@mui/icons-material/Accoun... |
import {BehaviorSubject} from "rxjs";
import {rendezvous} from "../typescript/async/rendezvous";
import onPromiseCompletion from "../typescript/async/onPromiseCompletion";
/**
* A promise of the completion of a behaviour subject.
*
* @param subject
* The subject to monitor for completion.
* @return
* ... |
import { useState } from "react";
import { Link } from "react-router-dom";
import { projectAuth } from "../../Database/firebase/config";
import { useLogin } from "../../Database/Hooks/useLogin";
import "./SL.css";
export default function Login() {
const [email, setEmail] = useState("");
const [password, setPasswor... |
/*
{ "description" : "Search for values in an array."}
*/
interface Search {
/*
{ "@description" : "Search an array for cells matching a template, returning all matching cells.",
"list" : "The array to search.",
"field" : "The field to search against.",
"template" : "An instance of the same type as the da... |
//
// ViewController.swift
// SwitchTuistFinalTest
//
// Created by Muzlive_Player on 2023/08/09.
//
import UIKit
import SnapKit
import RxSwift
import RxCocoa
import AssetsPickerViewController
import Photos
import DateToolsSwift
class ViewController: UIViewController {
private let logoImageView = UIImageVie... |
import React from 'react'
import Paper from '@mui/material/Paper'
import Table from '@mui/material/Table'
import TableRow from '@mui/material/TableRow'
import TableHead from '@mui/material/TableHead'
import TableBody from '@mui/material/TableBody'
import TableCell from '@mui/material/TableCell'
import TableContainer fr... |
import React, { useState, useContext } from 'react';
import Axios from 'axios';
import server from '../../config/service';
import AuthContext from '../../context/AuthProvider';
import { useNavigate } from 'react-router-dom';
import './RegisterStyles.css';
const Register = () => {
const [zipcode, setZipcode] = useS... |
"""
Pow(x, n): https://leetcode.com/problems/powx-n/
Problem: Implement pow(x, n), which calculates x raised to the power n (i.e., xn).
Constraints:
- Power can be negative. Ex: 2^-2 = 1/2^2 = 1/4 = 0.25
Input: x = 2.00000, n = 10
Output: 1024.00000
Input: x = 2.10000, n = 3
Output: 9.26100
Input: x = 2.00000,... |
use crate::schema::{messages, users};
use async_graphql::SimpleObject;
use diesel::{deserialize::Queryable, AsChangeset, Insertable, Selectable};
#[derive(Debug, SimpleObject, Clone, Selectable, Queryable)]
#[diesel(table_name = users)]
pub struct User {
pub id: i32,
pub username: Option<String>,
pub email... |
---
title: 005: Kotlin의 함수: 값 정의, 호출 및 반환
description:
published: true
date: 2023-02-16T02:32:23.662Z
tags:
editor: markdown
dateCreated: 2023-02-16T02:32:22.067Z
---
> 이 문서는 **Google Cloud Translation API를 사용해 자동 번역**되었습니다.
어떤 문서는 원문을 읽는게 나을 수도 있습니다.{.is-info}
- [005: Functions in Kotlin: Defining, Calling, and ... |
package lesson13.practice;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import pageObjects.baseObjects.BaseTest;
import pageFactory.saucedemo.LoginPage;
import pageFactory.saucedemo.ProductPage;
public class ProductPageFactoryTest extends Ba... |
Nome do Componente Curricular: Laboratório de Sistemas Computacionais: Engenharia de Sistemas
Pré-requisitos: Laboratório de Sistemas Computacionais: Arquitetura e Organização de Computadores
Carga Horária Total: 36h
Carga Horária Prática: 28h
Carga Horária Teórica: 08h
Objetivos
Gerais:
Esta unidade curricular faz par... |
package main
import (
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
"github.com/deniskhan22bd/Golang/ProjectGolang/pkg/models"
"github.com/deniskhan22bd/Golang/ProjectGolang/pkg/validator"
"github.com/gorilla/mux"
)
// Define an envelope type.
type envelope map[string]interf... |
# ▣ 입력설명
# 첫 번째 줄은 보석 종류의 개수와 가방에 담을 수 있는 무게의 한계값이 주어진다. 두 번째 줄부터 각 보석의 무게와 가치가 주어진다.
# 가방의 저장무게는 1000kg을 넘지 않는다. 보석의 개수는 30개 이내이다.
#
# ▣ 출력설명
# 첫 번째 줄에 가방에 담을 수 있는 보석의 최대가치를 출력한다.
#
# ▣ 입력예제 1
# 4 11
# 5 12
# 3 8
# 6 14
# 4 8
#
# ▣ 출력예제 1
# 28
if __name__ == "__main__":
n, m = map(int, input().split())
dy = [... |
/**
*
*/
package com.ppx.terminal.common.controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ppx.terminal.commo... |
<!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>Queue | Front | Rear | isEmpty</title>
<script>
let queue = [];
let currentSize = que... |
#!/usr/bin/env node
/*
NOTICE
This (software/technical data) was produced for the U. S. Government under
Contract Number HHSM-500-2012-00008I, and is subject to Federal Acquisition
Regulation Clause 52.227-14, Rights in Data-General. No other use other than
that granted to the U. S. G... |
<?php
/*
* Copyright 2011 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* 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 requir... |
package jehc.zxmodules.dao.impl;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import jehc.xtmodules.xtcore.base.impl.BaseDaoImpl;
import jehc.zxmodules.dao.ZxJudgeApplyDao;
import jehc.zxmodules.model.ZxJudgeApply;
/**
* 供应商验厂申请单
* 2017-09-25 09:27:09 g
*/
@Repositor... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\categories;
use App\Models\cities;
use App\Models\lawyers;
use App\Models\lawyerreviews;
use App\Models\adminnotifications;
use App\Models\blogs;
use App\Models\nominations;
use App\Models\sitesettings;
use App\Models\unapprovedlawyers;
u... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
use HasFactory;
protected $table = "products";
protected $fillable = ["name", "stock", "price", "category_id", "shop_id", "created_at", "updated_at"];
... |
import unittest
from macrotrends_data_scrapper.utils.manage_driver import DriverManager
class TestManageDriver(unittest.TestCase):
"""Class to be used to test ManageDriver class and its methods.
Methods
-------
setUp():
setUp reused variables/objects
test_set_up_driver():
test se... |
# ComponentGroup
This is a helper object that allows nesting of components into groups. Users never instantiate it
directly in an input file, but indirectly via input file syntax like so:
```
[Components]
[./compA]
[../]
[./group]
[./comp1]
[../]
[./comp2]
[../]
[../]
[]
```
This input file... |
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<!--use the head in frag to replace current head part in this html-->
<head th:replace="_frags :: head(~{::title})">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>归档</title>
<... |
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:lab10/presentation/pages/sign_up_page.dart';
import 'package:lab10/presentation/widgets/form_container_widget.dart';
... |
import { useState } from "react";
import { useDispatch } from "react-redux";
import { addToCart } from "../redux/cartSlice";
const ModalBody = ({ productDetail, img }) => {
const dispatch = useDispatch();
const [quantity, setQuantity] = useState(1);
const decrement = () => {
if (quantity > 1) {
setQua... |
/*
Criador: uZeus_#6777
*/
const hastebin = require('hastebin');
const Event = require('../../structures/Event')
const { MessageEmbed, MessageActionRow, MessageButton, Message } = require('discord.js')
const { Collection } = require('@discordjs/collection');
const { config } = require('dotenv');
const actionRow... |
#include <stdio.h> // printf(), perror()
#include <stdlib.h> // exit()
#include <string.h> // strcpy()
#include <unistd.h> // read(), write(), close()
#include <sys/un.h> // struct sockaddr_un
#include <sys/socket.h> // connect()
int main()
{
int my_socket;
socklen_t socket_addr_len;
struct sockaddr_un socket_addr... |
---
title: "01_regression"
author: "Brenna Kelly"
date: "2024-02-09"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## setup
```{r}
library(sp)
library(sf)
library(tmap)
library(INLA)
library(spdep)
library(dplyr)
library(moments)
library(ggplot2)
library(stringr)
libra... |
"""
Leetcode
934. Shortest Bridge (medium)
2023-05-21
You are given an n x n binary matrix grid where 1 represents land and 0 represents water.
An island is a 4-directionally connected group of 1's not connected to any other 1's. There are exactly two islands in grid.
You may change 0's to 1's to connect the two isl... |
import java.io.File;
import java.io.IOException;
import java.util.*;
public class AudioContentStore {
private static ArrayList<AudioContent> contents;
private static Map<String, Integer> titleSearch;
private static Map<String, ArrayList<Integer>> artistSearch;
private static Map<String, ArrayList<Integ... |
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import PropTypes from 'prop-types';
import React, { useCallback, useEffect, useRef, useState } from 'react';
import {
DropdownItem,
DropdownMenu,
DropdownToggle,
Input,
InputGroup,
InputGroupAddon,
InputGroupText,
UncontrolledDropdown,
} ... |
/*
* Copyright (c) "Neo4j"
* Neo4j Sweden AB [https://neo4j.com]
*
* This file is part of Neo4j.
*
* Neo4j 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... |
import React, { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import jwtDecode from 'jwt-decode';
import { Navigate } from 'react-router-dom';
import { DecodedUser } from 'src/common/packages/user/types/models/User.model';
import { useLazyGetUserQuery } from 'src/common/store/api/packages/us... |
import React from 'react';
import Avatar from '@material-ui/core/Avatar';
import Button from '@material-ui/core/Button';
import CssBaseline from '@material-ui/core/CssBaseline';
import TextField from '@material-ui/core/TextField';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import Checkbox from '... |
#include "CIdioma.h"
#include <iostream>
CIdioma *CIdioma::instanciaIdioma = nullptr;
CIdioma &CIdioma::getInstance()
{
if (instanciaIdioma == nullptr)
{
instanciaIdioma = new CIdioma();
}
return *instanciaIdioma;
};
CIdioma::CIdioma()
{
MemNombre = "";
this->ColIdiomas = map<string,... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { BlogCreateComponent } from './blog-create/blog-create.component';
import { BlogDisplayComponent } from './blog-display/blog-display.component';
import { BlogReadComponent } from './blog-read/blog-read.component';
... |
using Newtonsoft.Json;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using LootLocker;
using LootLocker.Requests;
namespace LootLocker.Requests
{
[System.Serializable]
public class LootLockerSessionRequest : LootLockerGetRequest
{
public string game_... |
require 'metasploit/framework'
require 'metasploit/framework/tcp/client'
require 'metasploit/framework/login_scanner/base'
require 'metasploit/framework/login_scanner/rex_socket'
require 'ruby_smb'
module Metasploit
module Framework
module LoginScanner
# This is the LoginScanner class for dealing with the... |
---
title: OscillatorNode.type
slug: Web/API/OscillatorNode/type
tags:
- API
- OscillatorNode
- Property
- Reference
- Type
- Web Audio API
browser-compat: api.OscillatorNode.type
---
<p>{{ APIRef("Web Audio API") }}</p>
<div>
<p>
The <strong><code>type</code></strong> property of the {{
domxref... |
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Dashboard') }}
</h2>
</x-slot>
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/b... |
package org.orient.otc.dm.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Equals... |
def binary_search(list, item):
low = 0
high = len(list) - 1
while low <= high:
mid = (low + high) // 2
guess = list[mid]
if guess == item:
return mid
if guess > item:
return mid - 1
else:
low = mid + 1
return False
my_list = [... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LoginComponent } from './pages/login/login.component';
import { RegisterComponent } from './pages/register/register.component';
import { WelcomeComponent } from './pages/welcome/welcome.component';
import { authGu... |
package com.example.springstart;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
@SpringBootApplication
public class JavaSpringStartApplication {
public static void main(String[] args) {
... |
package com.michaelflisar.composepreferences.core
import android.content.res.Configuration
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Info
import androidx.compose.material3.Icon
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.MaterialTh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.