text stringlengths 184 4.48M |
|---|
import { HttpClient} from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { NgxFuseSearchOptions } from 'ngx-fuse-search';
import {map} from 'rxjs/operators';
type Country = {
name: string;
prefix: string;
code: string;
flag?: string;
phoneLength: number;
}
@Component({
... |
import { JuegoDeCasino } from "./juegoDeCasino";
export class Slots extends JuegoDeCasino {
private typeAnimation : string;
private jackpot : number;
private lines : number;
constructor(name : string, type : string, maxBet : number, minBet : number, typeMoney : string, typeAnimation : string, jackpot... |
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file e... |
import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity('awb_detail', { schema: 'public' })
export class AwbDetail extends BaseEntity {
@PrimaryGeneratedColumn({
type: 'bigint',
name: 'awb_detail_id',
})
awbDetailId: string;
@Column('bigint', {
nullable: false,
na... |
import React from "react";
import { Wrapper } from "../ui";
import { StarCounter } from "../products";
import { Link, useNavigate } from "react-router-dom";
const ProductDetailCard = ({
id,
title,
price,
image,
category,
rating: { rate, count },
description,
}) => {
const nav = useNavigate();
const h... |
import React from 'react';
import Typography from '@mui/material/Typography';
import NumberTextField from "../NumberTextField";
import { TextField } from "@mui/material";
import {BlackAlignedItem, CenterItem, languageDirection, LeftItem, mathJaxConfig} from "../LanguageAndButtonUtility";
import Box from "@mui/material/... |
<?php
class UserModel extends CI_Model
{
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* UserModel constructor.
*
* @param array $data Optional data to initialize the model.
*/
public function __construct(... |
interface Stack<T> {
readonly size: number;
push(value: T): void;
pop(): T;
}
type StackNode<T> = {
readonly value: T;
readonly next?: StackNode<T>;
};
class StackImpl<T> implements Stack<T> {
private _size: number = 0;
private head?: StackNode<T>;
constructor(private capacity: number) {}
get size... |
package com.example.authenticationservice.infrastructure;
import java.nio.charset.StandardCharsets;
import java.security.Key;
import java.util.Arrays;
import java.util.Collection;
import java.util.Date;
import java.util.stream.Collectors;
import com.example.authenticationservice.dto.TokenRequest;
import com.example.a... |
import React, { useState } from 'react'
import { fetchFromApi } from '../assets/fetchFromApi'
import { useEffect } from 'react'
import { FaThumbsUp } from 'react-icons/fa6'
function CommentSection({ commentId, commentCount }) {
const [comments, setComments] = useState([])
const [error, setError] = useState(''... |
import {User} from "../model/User.js";
import { catchAsyncError } from "../middlewares/catchAsyncError.js";
import ErrorHandler from "../utils/errorHandler.js";
import {sendToken} from "../utils/sendToken.js";
import { Course } from "../model/Course.js";
import crypto from "crypto";
import { sendEmail } from "../utils/... |
#include "ds1339.h"
static uint8_t ConvertDataToSet(const T_DS1339TIME *time, uint8_t regType);
static void ConvertDataToGet(uint8_t rData, T_DS1339TIME *time, uint8_t regType);
/*
* @brief 初始化ds1339
*/
void ds1339_init(void)
{
Wire.setPins(2,0);
Wire.begin();
}
/*
* @brief ds1339写寄存器
*
* @param[ad... |
<template>
<div
class="mx-6 md:mx-10 mb-6 md:mb-10 mt-6 md:mt-8"
v-if="loginStore.getLoggedIn && !loader"
>
<NuxtLink
aria-label="Return to account page"
class="goBack flex items-center text-base gap-0 mb-8"
to="/account"
>
<Icon :icon="backIcon" class="w-7" />
Go Back
... |
import React, { useState, useEffect } from 'react';
import { getPost, getPosts } from '@store/post';
import { useAppDispatch } from '@utils/hooksUtil';
import { twitterAPI } from '@utils/axios.wrapper';
import router from 'next/router';
import { ComposeContainer } from '../post/ComposeContainer';
export const Compose ... |
<template>
<v-app>
<v-main>
<v-app-bar>
<v-app-bar-title>글보기</v-app-bar-title>
</v-app-bar>
<v-container>
<v-sheet max-width="800" class="mx-auto mt-16">
<v-form>
<v-row>
<v-col cols="12">
<v-text-field
name=""... |
char *ft_strlowcase(char *str)
{
unsigned int i;
i = 0;
while (str[i] != '\0')
{
if (str[i] >= 'A' && str[i] <= 'Z')
str[i] = str[i] + 32;
i++;
}
return (str);
}
/*
main for it :
int main(void)
{
char str1[] = "HeLLo, WoRLd!";
char str2[] = "!(CODING is FUN)";
write(1, "Original String 1: "... |
import 'package:dio/dio.dart';
import 'package:video2/constants.dart';
import 'package:video2/core/strings.dart';
class DioHelperSearch {
static Dio? dio;
static init() {
dio = Dio(
BaseOptions(
baseUrl: "https://google.serper.dev/",
receiveDataWhenStatusError: true,
),
);
}
... |
-- auto install packer if not installed
local ensure_packer = function()
local fn = vim.fn
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_pa... |
import { useMutation } from '@tanstack/react-query';
import type { GetStaticProps, NextPage } from 'next';
import { useRouter } from 'next/router';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { useReducer, useState } from 'react';
import signUpCaller from 'api-callers/sign-up';... |
package org.example.newsmanager.controller;
import lombok.RequiredArgsConstructor;
import org.example.newsmanager.models.bean.UserRegistrationDataBean;
import org.example.newsmanager.service.UserService;
import org.example.newsmanager.service.exception.ServiceException;
import org.springframework.stereotype.Controller... |
import './App.css';
import * as THREE from 'three';
import { Canvas, extend, useFrame, useLoader, useThree } from '@react-three/fiber';
import {OrbitControls} from "@react-three/drei"
import circleImg from './circle.png';
import { Suspense, useCallback, useMemo, useRef } from 'react';
import { FontLoader } from 'three/... |
import numpy as np
from tensorflow.keras.preprocessing.image import ImageDataGenerator
# 1. 데이터
train_datagen = ImageDataGenerator(
rescale=1./255,
horizontal_flip=True,
vertical_flip=True,
width_shift_range=0.1,
height_shift_range=0.1,
rotation_range=5,
zoom_range=1.2,
shear_range=0.7... |
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { library } from '@fortawesome/fontawesome-svg-core'
import { faArrowsRotate } from '@fortawesome/free-solid-svg-icons'
import { useEffect, useState } from 'react';
library.add(faArrowsRotate)
export default function RefreshButton({setMinutes... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProjectsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('projects', fun... |
import SearchIcon from '@mui/icons-material/Search'
import {
Box,
CircularProgress,
Grid,
LinearProgress,
ListItemButton,
Select,
Stack,
useTheme,
} from '@mui/material'
import Avatar from '@mui/material/Avatar'
import Divider from '@mui/material/Divider'
import IconButton from '@mui/material/IconButton... |
import React from "react";
import { MDBRow, MDBCol, MDBInput } from "mdbreact";
import { Philippines } from "../../services/fakeDb";
export default function AddressSelect({
handleChange = () => {},
address = {},
size = "3",
label = "Address Information",
view = false,
}) {
const handleAddress = (key, value... |
import { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from "@angular/common/http";
import { Injectable } from "@angular/core";
import { MatDialog } from "@angular/material";
import { throwError } from "rxjs";
import { catchError } from "rxjs/operators";
import { ErrorComponent } from "./err... |
package org.example.serverproject.serviceImpl;
import org.example.serverproject.models.Category;
import org.example.serverproject.repositories.CategoryRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Tr... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strmapi.c :+: :+: :+: ... |
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Estudos de IFrames</title>
</head>
<body>
<!-- O IFRAME cria uma janela dentro do página html para exibir um site externo a ela. Essa tag é do tipo display inli... |
<?php
namespace Tests\Feature;
use App\Models\City;
use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;
class CityTest extends TestCase
{
use DatabaseTransactions, WithFake... |
package com.ohgiraffers.section02.set.run;
import java.util.*;
public class Application1 {
public static void main(String[] args) {
/*
* Set 인터페이스를 구현한 Set 컬렉션 클래스의 특징
* 1. 요소의 저장 순서를 유지하지 않는다.
* 2. 같은 요소의 중복 저장을 허용하지 않는다. (null 값도 중복되지 않게 하나의 null만 저장)
* */
/... |
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class ButtonWidget extends StatelessWidget {
final String text;
final VoidCallback onClicked;
const ButtonWidget({
Key? key,
required this.text,
required this.onClicked,
}) : super(key: key);
@override
Widget build... |
package co.com.sofka.questions.model;
import javax.validation.constraints.NotBlank;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
/**
* QuestionDTO class.
* DTO para la colección Question
*/
public class QuestionDTO {
private String id;
@NotBlank
... |
"use client"
import { useThemeStore } from "@/store";
import { useTheme } from "next-themes";
import { themes } from "@/config/thems";
import { ResponsiveContainer, PieChart, Pie, Cell } from 'recharts';
const PieChartWithPaddingAngle = ({ height = 300 }) => {
const { theme: config, setTheme: setConfig } = useT... |
import sys
import os
# Add the parent directory to the sys.path
parent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
sys.path.append(parent_dir)
from solvers import Solver
from rich import print
import random
import csv
import concurrent.futures
def run_thread(solver, user_choice_algorithm, in... |
## Usage
**Want to suggest a new feature or chat with us?** [Join our Discord](https://deno.re/discord)
### Minify Files
When you request a `*.min.js`, `*.min.mjs` or `*.min.jsx` file and the release does not contain such a file, deno.re will automatically minify the file.
```ts
// Since deno-esbuild only comes wit... |
import { Component, OnInit } from '@angular/core';
import { Router, NavigationEnd } from '@angular/router';
import { SidebarService } from '../shared/sidebar/sidebar.service'
import { FormBuilder, Validators, FormGroup } from '@angular/forms';
import { ValidatorsService } from '../shared/services/validators.service';
i... |
import React, {useRef, useState} from 'react';
import TextField from "@material-ui/core/TextField";
import Button from "@material-ui/core/Button";
import Avatar from "@material-ui/core/Avatar";
import IconButton from "@material-ui/core/IconButton";
import {useHistory} from 'react-router-dom'
import {makeStyles} from "@... |
import 'package:audioplayers/audioplayers.dart';
import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
import 'package:frontend/service/utils/sp_provider.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:markdown/markdown.dart' as md;
///
/// Custom chat... |
import React from "react";
import { Link } from "react-router-dom";
import { FaHome } from "react-icons/fa";
import { IoMdSend } from "react-icons/io";
import Translation from "../languages.json";
import styles from "./feedback.module.css";
const Feedback = () => {
return (
<div className={styles.feedbackCont... |
import { IEmployee } from './employee';
import { Component, OnInit } from '@angular/core';
import { EmployeeService } from './employee.service'
@Component({
selector: 'list-employee',
templateUrl: './employeeList.component.html',
styleUrls: ['./employeeList.component.scss'],
// Register EmployeeService... |
"use strict";
// Class definition
var KTSigninGeneral = function() {
// Elements
var form;
var submitButton;
var validator;
// Handle form
var handleForm = function(e) {
// Init form validation rules. For more info check the FormValidation plugin's official documentation:https://formva... |
package com.example.Authentication.configuration;
import com.example.Authentication.helper.JwtUtil;
import com.example.Authentication.service.CustomUserDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
... |
import { storage } from "near-sdk-core"
import { u128, logging, PersistentSet, Context, ContractPromiseBatch } from 'near-sdk-as';
import { AccountId, ONE_NEAR, MIN_ACCOUNT_BALANCE, asNEAR } from '../../utils';
import { Campaign } from './models';
export const ownerIds = new PersistentSet<AccountId>("ci");
/*
RUL... |
//
// AuthenticationEndpoint.swift
// Layers
//
// Created by Michael Sevy on 5/8/17.
// Copyright © 2017 Michael Sevy. All rights reserved.
//
import Foundation
import Alamofire
/**
An enum that conforms to `BaseEndpoint`. It defines
endpoints that would be used for authentication.
*/
enum AuthenticationEndpo... |
<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<link id="import1" rel="import" href="resources/attribute-upgrade.html">
<script>
'use strict';
let reactions = [];
customElements.define('a-a', class extends HTMLElement {
static get ... |
<?php
namespace App\Http\Controllers\Backend\Setup;
use App\Http\Controllers\Controller;
use App\Models\StudentYear;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
class StudentYearController extends Controller
{
/**
* Display a listing of the resource.
*/
public function i... |
Java Persistence API Mapping & Configuring Relationships
Question: Which of the following statements are true about the @JoinTable annotation?
[ ] This sets up a foreign key reference from the entity on the one side of the relationship to the many side of the relationship
[x] The inverseJoinColumns property specifie... |
<script>
import { reactive, computed, watch, watchEffect } from "vue"
export default {
setup() {
// 创建一个响应式对象 reactive() 内部采用是new Proxy(target)
const state = reactive({ sup: 5, opp: 5, per: 0 })
// const { sup, opp } = state;
// 如果用老的写法,所有的变量都需要返回,才能在模板中使用。 最终放到了组件的实例上
// 计算属性只有使用才执行,而且多次取值如果依赖的值... |
<div class="class-wrapper">
<form class="form-wrapper" (ngSubmit)="onSubmit()">
<mat-form-field class="nice-field" appearance="fill">
<mat-label>Nick</mat-label>
<input type="text" #message matInput [formControl]="nickFormControl" [errorStateMatcher]="matcher"
placehold... |
import Button from '@/components/Button/Button';
import Navbar from '@/components/Navbar';
import Name from '@/components/UserProfile/Name';
import ProfilePic from '@/components/UserProfile/ProfilePic';
import Statistics from '@/components/UserProfile/Statistics';
import Match from '@/components/UserProfile/Match';
imp... |
package datapark.SimHashSample3;
import datapark.test.FNVHash;
import datapark.utils.HashUtils;
import datapark.utils.RedisUtils;
import net.sf.json.JSONObject;
import org.apache.log4j.Logger;
import redis.clients.jedis.Jedis;
import java.math.BigInteger;
import java.util.*;
/**
* Created by dpliyuan on 2016/2/29.
... |
//2095. Delete the Middle Node of a Linked List
class ListNode {
int val;
ListNode next;
ListNode(int val) {
this.val = val;
this.next = null;
}
}
public class Day18_Q2 {
public ListNode deleteMiddle(ListNode head) {
if (head == null || head.next == null)
return... |
/* PSPP - a program for statistical analysis.
Copyright (C) 2009, 2011 Free Software Foundation, Inc.
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
... |
package com.atz.service;
import java.lang.reflect.InvocationTargetException;
import java.sql.Timestamp;
import java.text.DecimalFormat;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
... |
class ImagesController < ApplicationController
before_action :set_image, only: %i[ show edit update destroy ]
# GET /images
def index
if params[:id]
@imagelines = Imageline.where(image_id: params[:id])
session[:imagefile] = params[:id]
upload = Upload.find(params[:id])
@imag... |
// import 'package:lost_found/features/components/found/domain/entities/found_item.dart';
// class FoundItemModel extends FoundItem {
// FoundItemModel({
// required super.id,
// required super.updatedAt,
// required super.userId,
// required super.title,
// required super.description,
// req... |
<!DOCTYPE html>
<html>
<head>
<title>
Simple web Development Template
</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/css/splide.min.css">
</head>
<body>
<!-- header section -->
<nav c... |
import React from 'react'
import { Link } from 'react-router-dom'
import ProductSkeleton from '../loading/ProductSkeleton'
import ProductCardDetails from '../product/ProductCardDetails'
const ProductCard = ({caption,page,products,link,isFetching}) => {
return (
<div className='my-4 flex flex-col gap-4'>
<div ... |
import React , { useState, useEffect} from 'react';
import { useParams } from 'react-router-dom';
import parse from 'html-react-parser';
import DOMPurify from 'dompurify';
import { DotPulse } from '@uiball/loaders';
import ShareButton from '../components/Share';
import '../styles/Article.css';
const Article = ({ get... |
import path from 'path'
import type IPFS from 'ipfs'
import { rmrf, connectIpfsNodes } from '../utils'
import { createIPFSInstance } from '../../src/ipfs'
import { PaperOrbitDB } from '../../src/orbit-db'
import type LogStore from 'src/orbit-db/logstore'
const dir0 = path.join(path.dirname(__dirname), 'orbitdb-test-0... |
package reserva;
import basededados.GestorDeBaseDeDados;
import java.security.InvalidParameterException;
import java.time.LocalDate;
import java.util.*;
public class GestorDeReserva {
public GestorDeReserva(){
}
/**
* Esta função é para procurar todas as reservas pelo NIF do cliente
* @param ... |
-- -------------------------------------------------------
-- Crear base de datos
-- -------------------------------------------------------
create database Sales;
use Sales;
-- -------------------------------------------------------
-- Crear base de tabla Brand
-- ---------------------------------------------------... |
import { Request } from 'express';
import { config, createLogger, format, transports } from 'winston';
import { AuthConstants } from '../auth/constants';
import { objectPropertyRegex } from './regex';
const formatOptionConsole = format.combine(
format.cli(),
format.splat(),
format.timestamp(),
format.printf(... |
import React, {useEffect, useState} from "react";
import {useHistory} from "react-router-dom";
import {fetchAllAccounts, fetchAllBookings} from "../../services/service";
import {
Button,
Spin,
Form,
Select,
Input,
DatePicker,
Typography
} from "antd";
const formItemLayout = {
labelCol: {
xs: {
... |
import React, {createContext, useContext, useEffect, useState} from 'react';
import {useAuth} from './Auth';
import dayjs, {Dayjs} from 'dayjs';
import Config from 'react-native-config';
type BalanceContextData = {
balance: number;
loading: boolean;
time_since_updated_string: string;
refresh(): void;
};
const... |
<template>
<div class="main-container">
<span class="extra-message">
<template v-if="user">
只展示用户 <span class="user-info">{{ user.nickname }}({{ user.username }})</span> 最近登录的 {{ historyCount }} 条历史记录
</template>
<template v-else>
只展示最近登录的 {{ historyCount }} 条历史记录
</templat... |
import { AnimateSharedLayout, motion } from "framer-motion";
import { useRouter } from "next/router";
import { isActiveLink } from "lib/utils";
import Link from "./NoScrollLink";
const links: { name: string; href: string }[] = [
{
name: "Home",
href: "/",
},
{
name: "About",
href: "/about",
},
... |
import {Subject} from './observation/Subject';
import {Observer} from "./observation/Observer";
import {Observatory} from "./observation/Observatory";
import {A, A_CLASS_ID} from "./A";
class B{
static readonly CLASS_ID = new B(0);
constructor(public value: number) {}
}
const B_CLASS_ID = new B(0);
class A_O... |
:author: Roman Kofler-Hofer
:listing-caption: Code-Auszug
:source-highlighter: rouge
// path to the directory containing the source code
:src: ../app/src/main
// path to the directory containing the images
:imagesdir: ./images
:toc:
:numbered:
:toclevels: 3
:rouge-style: github
:pdf-themesdir: ./theme
:pdf-theme: basi... |
/*
MIT License
Copyright (c) 2024 Gianluca Russo
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, publish,... |
/* eslint-disable react-hooks/exhaustive-deps */
import React, {
createContext,
useCallback,
useContext,
useEffect,
useMemo,
useState,
} from 'react';
import useCurrentUser from '@/hooks/useCurrentUser';
import useLocalStorage from '@/hooks/useLocalStorage';
import { CartInitialValues, CartItem } from '@/... |
import Button from './Button';
import HomeIcon from './HomeIcon';
import PlusIcon from './PlusIcon';
function App() {
return (
<div id="app">
<section>
<h2>Filled Button (Default)</h2>
<p>
<Button>Default</Button>
</p>
<p>
<Button mode="filled">Filled (De... |
"""
This makes the test configuration setup
"""
# pylint: disable=redefined-outer-name
import os
import pytest
from app import create_app, User
from app.db import db
@pytest.fixture()
def application():
"""This makes the appplication itself"""
os.environ['FLASK_ENV'] = 'testing'
application = create_app()... |
---
permalink: expansion/task_updating_lun_paths_for_new_nodes.html
sidebar: sidebar
keywords: cluster, configure, san, lif, add, update, path, lun, node, update lun paths for the new nodes
summary: Si le cluster est configuré pour SAN, vous devez créer des LIF SAN sur les nouveaux nœuds ajoutés, puis mettre à jour ... |
import React from 'react';
import { render, screen, fireEvent, waitFor } from '@testing-library/react';
import '@testing-library/jest-dom';
import UserSignupForm from '../components/Authentication/UserSignupForm';
import { BrowserRouter } from 'react-router-dom';
global.fetch = jest.fn();
beforeEach(() => {
global... |
export declare interface AccessAttributeNode extends BaseNode {
type: 'AccessAttribute'
base?: ExprNode
name: string
}
export declare interface AccessElementNode extends BaseNode {
type: 'AccessElement'
base: ExprNode
index: number
}
export declare interface AndNode extends BaseNode {
type: 'And'
left... |
package commands
import (
"context"
"os"
"os/signal"
"syscall"
"time"
"github.com/keybrl/chatgpt-cli/pkg/commands/chat"
"github.com/keybrl/chatgpt-cli/pkg/commands/login"
"github.com/keybrl/chatgpt-cli/pkg/commands/logout"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
var (
flagDebug bool
)
// ... |
package ch6;
//https://fluvid.com/videos/detail/8EL-9T3X37SdvPXok#.Yhzeh-dJ0aQ.link
public class InnerClasses {
public static void main(String[] args) {
Outer.InnerStatic ins=new Outer.InnerStatic();
ins.met();
Outer.InnerNonStatic in=new Outer().new InnerNonStatic();
in.met();
}
}
class Outer{
void o... |
import datetime
import streamlit as st
import requests
import os
import json
from pathlib import Path
from elasticsearch_main import search_recipes, es
import spacy
nlp = spacy.load("en_core_web_sm")
PROTOCOL = "https"
HOST = "edbrown.mids255.com"
PORT = 443
#streamlit run app.py
def send_image_to_api(image_path, ... |
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fontes em Css</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;1,700;1,900&display=swap');
... |
/******************************************************************************
*
* Copyright (c) 2019-2023 Fraunhofer IOSB-INA Lemgo,
* eine rechtlich nicht selbstaendige Einrichtung der Fraunhofer-Gesellschaft
* zur Foerderung der angewandten Forschung e.V.
*
****************************************************... |
// ** React Imports
import { forwardRef, ReactElement, ReactNode, Ref } from 'react'
// ** MUI Imports
import Dialog from '@mui/material/Dialog'
import DialogTitle from '@mui/material/DialogTitle'
import DialogContent from '@mui/material/DialogContent'
import Slide, { SlideProps } from '@mui/material/Slide'
import Dia... |
<div align="center">
<img src="https://blogs.cappriciosec.com/uploaders/CVE-2023-29489.png" alt="logo">
</div>
## Badges
[](https://choosealicense.com/licenses/mit/)

![PyPI - Download... |
package com.microservice.currencyexchangeservice.controller;
import com.microservice.currencyexchangeservice.bean.ExchangeValue;
import com.microservice.currencyexchangeservice.repository.ExchangeValueRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotati... |
import fs from 'fs';
import { Instance } from '@server/GameServerInstance';
import { buildCharacter, buildItem, buildPlayer, buildRoom, buildZone, initializeTestServer } from '@server/testUtils';
import { Character, CharacterFlag, ICharacterDefinition, IPlayerDefinition, matchCharacters, Player } from './character';
im... |
// *******************************************************************************
// Copyright (C) 2008 Sanjay Rajopadhye. All rights reserved
// Author: DaeGon Kim
//
// 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... |
import { Request, Response } from "express";
import { RoleModel } from "../../Models/RoleModel";
import { DB } from "../../helpers/DB";
import { JWT } from "../../helpers/JWT";
import { ERROR_MESSAGES, SUCCESS_MESSAGES } from "../../../config/statusMessages/messages";
import { ROLES_PERMISSIONS_TYPE, ROLES_TYPE } from ... |
package org.hyperskill.musicplayer
import android.app.AlertDialog
import android.widget.Button
import android.widget.SeekBar
import android.widget.TextView
import androidx.fragment.app.FragmentContainerView
import androidx.recyclerview.widget.RecyclerView
import org.hyperskill.musicplayer.internals.CustomShadowAsyncD... |
<template>
<div class="detail-shop-info">
<div class="shop-top">
<img :src="shop.logo" alt="">
<span class="shop-title">{{shop.name}}</span>
</div>
<div class="shop-middle">
<div class="shop-middle-item shop-middle-left">
<div class="info-sells">
<div class="sells-count... |
import express from 'express';
import session from 'express-session';
import user_routes from './routers/user.js';
import admin_product_routes from './routers/admin/products.js';
import forAdmin from './controllers/auth.js';
import User from './models/user.js';
const app = express();
const hostname = '127.0.0.1';
con... |
// Importation de la classe Song depuis le fichier de définition de type dans le répertoire "@/types"
import { Song } from "@/types";
// Importation de la fonction `createServerComponentClient` pour créer un client Supabase côté serveur
import { createServerComponentClient } from "@supabase/auth-helpers-nextjs";
// Imp... |
# Split Linked List in Parts
## Problem Description
Given the head of a singly linked list and an integer `k`, your task is to split the linked list into `k` consecutive linked list parts. The length of each part should be as equal as possible, with no two parts differing in size by more than one node. The parts shou... |
/*
Copyright © 2011-2012 Clint Bellanger
Copyright © 2012 Stefan Beller
This file is part of FLARE.
FLARE 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 ... |
<!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>Document</title>
</head>
<body>
<!-- Шапка сайта -->
<header>
Header
<!-- Нав... |
import { Meta, Story } from '@storybook/react/types-6-0';
import React from 'react';
import Button, { ButtonProps } from '../components/Button';
export default {
title: 'Button',
component: Button,
argTypes: {
color: { defaultValue: 'default' },
},
} as Meta;
const Template: Story<ButtonProps> = (args: Bu... |
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="qSupp">
<title>Query Support</title>
<para>To make the usage of sql queries more flexible in dbforms, you can use the query element which can be used to:</para>
<itemizedlist mark="opencircle">
<listitem>
<para>Create
<emphasis role... |
import Image from 'next/image'
import { MouseEventHandler } from 'react'
interface Props {
title: string
lefeIcon?: string | null
rightIcon?: string | null
handleClick?: MouseEventHandler
isSubmitting?: boolean
type?: 'button' | 'submit'
bgColor?: string
textColor?: string
}
const Button = ({
title,... |
package com.mygdx.game.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.