text stringlengths 184 4.48M |
|---|
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<x-app-layout>
<x-slot name="header">
<head>
<meta charset="utf-8">
<title>Blog</title>
<!-- Fonts -->
<link href="https://fonts.bunny.net/css2?f... |
const request = require('supertest')
const app = require('../../src/app')
const connection = require('../../src/database/connection')
describe('ONG', ()=>{
beforeEach(async ()=>{
await connection.rollback()
await connection.migrate.latest()
})
afterAll(async ()=>{
await connection.destroy()
})
it('Should ... |
import { ChangeEvent, FormEvent, useEffect, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import '../css/Signup.css';
import Footer from './Footer';
interface SignupProps {
showAlert: (type: string, message: string) => void;
}
export const Signup: React.FC<SignupProps> = ({ showAlert }) =... |
module.exports = () => {
const { isNumber, log, warn, isFalsy, isObject } = require('x-utils-es/umd')
const config = require('../config')
const { readFile, writeFile } = require('x-fs')({ dir: config.memoryPath, ext: '.json', silent: true })
const Helpers = require('./Walle.helpers')()
return class... |
#include "GameOverState.h"
#include <iostream>
#include "Game.h"
#include "MainMenuState.h"
#include "GameState.h"
using namespace std;
// Begin GameOverState
void GameOverState::Enter()
{
cout << "Entering GAME END..." << endl;
m_vButtons.push_back(new Button("Assets/Sprites/replaySprite.png", { 0,0,440, 128 }, { ... |
import numpy as np
import sympy as sy
from scipy import misc
""" 1. sympy 计算导函数 """
x, y = sy.symbols('x, y')
f = x ** 2 * sy.sin(x)
print(sy.diff(f, x, 1)) # 一阶导函数,参数(方程,自变量,阶数)
print(sy.diff(f, x, 2)) # 二阶导函数
f = x + y + x*y + sy.sin(x*y)
print(sy.diff(f, x, 1, y, 2)) # 偏导数,对 x 求 一阶导,对 y 求二阶导
""" 2. 计算导数值 """... |
"use client";
import React, { useEffect, useRef, useState } from "react";
import { Button, Col, Drawer, FloatButton, Grid, Menu, Modal, Popconfirm, Row, Tooltip, Typography } from "antd";
import { Virtuoso, VirtuosoHandle } from "react-virtuoso";
import { useBoolean } from "ahooks";
import clsx from "clsx";
import Lin... |
# Optimizing DFS on Large Graphs using Bloom Filters & False +ve Caching
## Set Membership Problem in Computer Science
Although we all know the various ways to represent a set, like the Roster Form or the Set Builder Form we studied in the field of Discrete Mathematics, storing sets in the computer's memory, in a way... |
import { useState } from "react";
import axios from 'axios'
import { unauthRedirect } from "../../middlewares/authRedirect";
import Router from "next/router";
const PostTambah = ({token}) => {
const [judul,setJudul] = useState('')
const [isi,setIsi] = useState('')
const handleSubmit = async (e) => {
... |
using System;
using EasyAbp.PaymentService.Payments;
using Volo.Abp.ObjectExtending;
using Volo.Abp.Threading;
namespace EasyAbp.PaymentService.Prepayment.ObjectExtending
{
public static class PaymentServicePrepaymentDomainObjectExtensions
{
private static readonly OneTimeRunner OneTimeRunner = new On... |
class Ability
include CanCan::Ability
def initialize(user)
user ||= User.new # guest user (not logged in)
if user.has_role? :admin
can :manage, :all
else
can :read, :all
can :new, :all
can :create, :all
can :manage, Content, user_id: user.id
... |
import NavBar from "../components/NavBar/NavBar";
import ItemListContainer from "../containers/ItemListContainer";
import CartView from "../components/CartView/CartView"
import Order from "../components/Order/Order";
import{
BrowserRouter,
Routes,
Route
} from 'react-router-dom'
import ItemDetailContainer... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CombatComponent } from './combat/combat.component';
import { FicheComponent } from './fiche/fiche.component';
import { HomeComponent } from './home/home.component';
const routes: Routes = [
{
path: '',
... |
# frozen_string_literal: true
module Queries
class Product::ProductSearch < Queries::BaseQuery
argument :page, Integer, required: false
argument :per_page, Integer, required: false
argument :query, String, required: true
type Types::Models::Product::PaginationType, null: false
def resolve(**p... |
import { SObjectChildRelationship } from ".";
import { Utils } from "../utils/utils";
import { RecordType } from "./recordType";
import { SObjectField } from "./sObjectField";
/**
* Class to represent a SObject
*/
export class SObject {
name: string;
label: string;
labelPlural?: string;
keyPrefix?: ... |
import { NextRequest, NextResponse } from "next/server";
import connects from "@/app/database/db";
import bcrypt from "bcryptjs";
import {
generateAccessToken,
generateRefreshToken,
} from "../tokens/generateTokens";
import { setCache } from "../redis/redisFunctions";
interface UserLogin {
email: string | null;... |
import React from "react";
import useAppContext from "../hooks/useAppContext";
import { Box, Grid } from "@mui/material";
import Legend from "./Legend";
import Layout from "./Layout";
/**
* Summary component to display information.
* @returns {React.ReactNode} - Rendered summary component.
*/
const Summary = () => ... |
# Sorted Squares Exercise
## **sorted_squares**(arr: StaticArray) -> StaticArray:
Write a function that receives a StaticArray where the elements are in sorted order, and returns a new StaticArray with squares of the values from the original array, sorted in non-descending order. The original array must not be modifi... |
package com.thesis.projectopportunities.service;
import java.io.IOException;
import java.net.URI;
import java.util.concurrent.atomic.AtomicBoolean;
import com.thesis.projectopportunities.model.User;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Requi... |
using BackEnd.Models;
using DAL.Implementations;
using DAL.Interfaces;
using Entities.Entities;
using Microsoft.AspNetCore.Mvc;
namespace BackEnd.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class SeatController : ControllerBase
{
private ISeatDAL seatDAL;
... |
import { Column } from "primereact/column";
import { DataTable } from "primereact/datatable";
import { FilterMatchMode, FilterOperator } from "primereact/api";
import { useEffect, useState } from "react";
import GlobalFilter from "../../custom/GlobalFilter/GlobalFIlter";
import ActionIconButton, {
getButtonSectionWid... |
//
// HomeViewModel.swift
// MeMo
//
// Created by Irham Naufal on 08/10/23.
//
import SwiftUI
import SwiftData
extension HomeView {
/// The `HomeViewModel` class is a view model for the `HomeView` view. It is responsible for managing the state of the `HomeView` and providing data to the view.
@Observ... |
// user-registration.use-case.ts
import { Injectable, InternalServerErrorException } from '@nestjs/common';
import { CommandBus } from '@nestjs/cqrs';
import { DeletePermissionCommand } from '@/modules/auth/components/permission/command/delete-permission/delete-permission.command';
import {
DeletePermissionInput,
... |
using Microsoft.Extensions.DependencyInjection;
using ProductImporter.Model;
using ProductImporter.Logic.Shared;
using ProductImporter.Logic.Transformations;
using ProductImporter.Transformations;
namespace ProductImporter.Logic.Transformation;
public class ProductTransformer : IProductTransformer
{
private read... |
/*
* Copyright (c) 2015 Nathaniel Wallace
*
* 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, ... |
package net.lepidodendron.entity;
import com.google.common.base.Predicate;
import net.ilexiconn.llibrary.client.model.tools.ChainBuffer;
import net.ilexiconn.llibrary.server.animation.AnimationHandler;
import net.lepidodendron.LepidodendronConfig;
import net.lepidodendron.LepidodendronMod;
import net.lepidodendron.ent... |
# MongoDB ve Express Projesi README
Bu README dosyası, MongoDB ve Express kullanarak oluşturulan bir projenin temel yapılandırması ve nasıl başlatılacağı hakkında bilgi içerir. Projenin başarılı bir şekilde çalıştırılması için aşağıdaki adımları izleyebilirsiniz.
## Gereksinimler
Projenin başlatılması için aşağıdaki... |
using NUnit.Framework.Legacy;
using NUnit.Framework;
using OrangeHRMTests.Data;
using OrangeHRMTests.PageObjects;
using NUnit.Allure.Core;
namespace OrangeHRMTests.Tests
{
[TestFixture]
[AllureNUnit]
public class LoginTest : BaseLoginTest
{
[Test]
public void A_ValidLoginTest()
... |
import { Navigate, useRoutes } from 'react-router-dom';
// layouts
import DashboardLayout from './layouts/dashboard';
import LogoOnlyLayout from './layouts/LogoOnlyLayout';
//
import Login from './pages/Login';
import Register from './pages/Register';
import DashboardApp from './pages/DashboardApp';
import Products fro... |
import React from "react";
import { Input } from "../../components/ui/input/input";
import { Button } from "../../components/ui/button/button";
import { SolutionLayout } from "../../components/ui/solution-layout/solution-layout";
import Styles from './string.module.css';
import StringAnimation from "../../components/st... |
// std
use std::io::Error as IOError;
// crates.io
use rustyline::error::ReadlineError;
use serde::Serialize;
use thiserror::Error;
// this crate
use crate::rpc::RpcError;
/// Application error type.
#[derive(Debug, Error)]
pub enum AppError {
/// RPC Error
#[error("rpc error happens, err: {0}")]
Rpc(RpcError),
//... |
<script>
/**
* Displays a Modal for starting a new game
* Handles new game logic
* Used by `NewGameButton`
*/
import { game, resetGame } from '$lib/stores/game';
import getRoll from '$lib/util/getRoll';
export let showModal;
function newGame() {
resetGame();
// Set up `numDice` and `players` in `$g... |
import { Request, Response } from "npm:express@4.18.2";
import ClienteModel from "../db/cliente.ts";
const addDinero = async (req: Request, res: Response) => {
const { dni, cantidad } = req.params; // Parámetros que se reciben de la URL
// Convertimos cantidad a número y vali... |
import type webpack from 'webpack';
import type { BundleAnalyzerPlugin } from '../../../compiled/webpack-bundle-analyzer';
export type ConsoleType = 'log' | 'info' | 'warn' | 'error' | 'table' | 'group';
// may extends cache options in the futures
export type BuildCacheOptions = {
/** Base directory for the filesys... |
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { Activity } from '@modules/activities/entities/activity.entity';
import { Division } from '@modules/activities/entities/division.entity';
import { Classe } from '@modules/activi... |
"""課題1実行用ファイル"""
from sklearn.linear_model import LogisticRegression, SGDClassifier
from sklearn.svm import SVC, LinearSVC
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.neighbors import KNeighborsClassifier
from sklearn.naive_bayes import GaussianNB
fr... |
anovaHSD <- function(Y, X1, X2){
stars <- function(p_wartosc) {
s_vec <- c()
for (i in 1:length(p_wartosc)) {
if (p_wartosc[i] < 0.001)
s_vec[i] <- '***'
else if (p_wartosc[i] < 0.01)
s_vec[i] <- '**'
else if (p_wartosc[i] < 0.05)
s_vec[i] <- '*'
else if (p_wart... |
#!/usr/bin/env python
# -*- coding: utf-8
"""A program that computes metabolic enrichment across groups of genomes and metagenomes"""
import sys
import anvio
import anvio.kegg as kegg
import anvio.terminal as terminal
import anvio.filesnpaths as filesnpaths
from anvio.errors import ConfigError, FilesNPathsError
__a... |
#include <stdio.h>
#include <stdlib.h>
#include "fonctions.h"
// Fonctions pour les listes simplement chaînées
Node* creerListe() {
Node *head = NULL;
Node *temp = NULL;
Node *newNode = NULL;
int valeur, i = 1;
printf("=== Creation d'une LSC (-1 pour terminer la saisie) ===\n");
while (1) {
... |
/** @jsxImportSource @emotion/react */
import * as React from 'react';
import {FC} from 'react';
import {css, keyframes} from '@emotion/react';
import {Property} from 'csstype';
const falling = (name: String, offsetX: number, offsetY: number) => keyframes({
"0%" : {
transform: `translate3D(${offsetX}%, ${o... |
import {Component, CUSTOM_ELEMENTS_SCHEMA, OnInit, ViewChild} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {
IonButton,
IonButtons, IonCol,
IonContent, IonFooter, IonGrid,
IonHeader, IonIcon, IonItem, IonLabel, IonList,
IonMenuButton, I... |
package cacher
import (
"sync"
"time"
"github.com/Rajprakashkarimsetti/apica-project/models"
)
type Cache struct {
Capacity int
Cache map[string]*models.CacheData
Head *models.CacheData
Tail *models.CacheData
Mutex sync.Mutex
}
// NewCache creates a new cache with the specified capacity.
// It... |
#pragma once
/**********************************************************************/
// include header files
/**********************************************************************/
#include <Arduino.h>
/**********************************************************************/
// macro define
/************************... |
//
// CityModels.swift
// CitySearch
//
// Created by Hernan G. Gonzalez on 09/01/2020.
// Copyright © 2020 Hernan. All rights reserved.
//
import Foundation
// MARK: - Models
struct Coordinate: Codable {
let lat: Double
let lon: Double
}
struct City: Codable {
let id: Int
let key: String
let... |
#include <stdio.h>
#include <stdlib.h>
#include "unity.h"
#include "../../include/gameplay.h"
#include "../include/gameplay_test.h"
#include "../../include/utils/gameplay_utils.h"
// Test case for initialize_Board function
void test_initialize_Board(void)
{
Board board;
initialize_Board(&board);
TEST_ASSE... |
import React from 'react';
import { listen } from '../utils/events';
function useMedia(query: string): boolean {
const media = React.useMemo(() => globalThis.matchMedia(query), [query]);
const [matches, setMatches] = React.useState(media.matches);
React.useEffect(() => {
const handleChange = (): void => set... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./PatchworkNFTInterface.sol";
/**
@title Patchwork Protocol
@author Runic Labs, Inc
@notice Manages data integrity of relational NFTs implemented with Patchwork interfaces
*/
contract Patchwork... |
import React, { useState } from 'react';
import axios from 'axios';
import Cookies from 'js-cookie';
import { useNavigate } from 'react-router-dom';
import { Form, Button, Container, Row, Col } from 'react-bootstrap';
import styled from 'styled-components';
import { AiOutlineEye, AiOutlineEyeInvisible } from 'react-ico... |
@extends('admin.dashboard_layout')
@section('content')
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-3 text-gray-800">Edit_Products</h1>
<!-- DataTales Example -->
<div class="card shadow mb-4">
<div class="card-hea... |
import Layout from "@/components/desktop-layout";
import { selectSession, useAuthStore } from "@/store/auth";
import { Session } from "@supabase/supabase-js";
import { useState, useEffect } from "react";
import { useNavigate } from "react-router-dom";
import { Menu, X, Sun, Moon, UserCog } from "lucide-react";
import {... |
# 11. Container With Most Water
# https://leetcode.com/problems/container-with-most-water/description/
# @param {Integer[]} height
# @return {Integer}
# O(n) algorithm for largest water container area in array using two indices:
def max_area(height)
# Initialize left and right index for going through array from e... |
/*
* Copyright (C) 2011 Alexandre Quessy
* Copyright (C) 2011 Michal Seta
* Copyright (C) 2012 Nicolas Bouillot
*
* This file is part of Tempi.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of, either version 3 of the License, or
* (at your option) any later vers... |
/*
* The MIT License
*
* Copyright 2013 RBC1B.
*
* 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, m... |
function loadPlasticitySweepData( folderDataPath, fileListFullPath, figureHandle )
% Load the raw data from the file list and pretreat it (organize it in
% sweeps)
% Opens the file list and retrieve all options about data files by
% parsing their names
[nbFiles, fileNames, fileBeginnings, filePaths, op... |
// 풀이 1.
function solution1(strings, n) {
return strings.sort((a, b) => {
if(a[n] > b[n]) return 1;
else if(a[n] < b[n]) return -1;
else if(a[n] === b[n]) {
if(a > b) return 1;
else if(a < b) return -1;
else return 0;
}
});
}
// sort()는 문자열을 사전순으로 정렬한다.
// a > b 이면 사전순 이므로 retu... |
## 9. Range Queries

### 1. Sum Queries
Maintain a prefix sum array, i.e. $sum[i] = \sum_{j=0}^{j=i} a[j]$. Thus, each queries `[a,b]` can be calculated as $sum[b] - sum[a-1]$. Time complexity is `o(n)`, and space complexity is `O(n)`.
## 2. Min/Max Queries
Min and max queries are similar. Thu... |
#---
# script compares priority network between locking in protected areas and not locking in.
# author: Songyan Yu
# date created: 31/01/2022
#---
library(dplyr)
# species representation
rep.sp.files <- list.files("../../Data/R_data/",
pattern = "04_PCA_repSp",
f... |
package com.arematics.minecraft.core.language;
import com.arematics.minecraft.core.configurations.Config;
import com.arematics.minecraft.core.messaging.MessageHighlight;
import com.arematics.minecraft.core.server.CorePlayer;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Pl... |
#include "binary_trees.h"
binary_tree_t *trees_ancestor_first(
const binary_tree_t *first, const binary_tree_t *second);
binary_tree_t *trees_ancestor_second(
const binary_tree_t *first, const binary_tree_t *second);
/**
* binary_trees_ancestor - finds the lowest common ancestor of two nodes
* @first: is a pointe... |
import { Schema, model, Document } from 'mongoose';
import { IUser } from '../interfaces/IUser';
const User = new Schema(
{
name: {
type: String,
require: [true, 'Please enter a full name'],
index: true,
},
email: {
type: String,
lowercase: true,
unique: true,
i... |
import { useContext } from 'react'
import useTheme from '@mui/material/styles/useTheme'
import Typography from '@mui/material/Typography'
import Box from '@mui/material/Box'
import Button from '@mui/material/Button'
import Dialog from '@mui/material/Dialog'
import DialogActions from '@mui/material/DialogActions'
import... |
using System;
using System.Collections.Generic;
using System.Linq;
using EFSamurai.DataAccess.Migrations;
using EFSamurai.Domain;
using EFSamurai.Domain.Entities;
using Microsoft.Data.SqlClient;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Scaffolding.Metadata;
namespace EFSamurai.DataAcce... |
``escape``
==========
.. versionadded:: 1.9.0
The ``css``, ``url``, and ``html_attr`` strategies were added in Twig
1.9.0.
.. versionadded:: 1.14.0
The ability to define custom escapers was added in Twig 1.14.0.
The ``escape`` filter escapes a string for safe insertion into the final
output. It supports ... |
---
title: "Navigate Through Green Screen Muddle on Mac for Smooth YouTubing for 2024"
date: 2024-05-31T12:45:09.700Z
updated: 2024-06-01T12:45:09.700Z
tags:
- ai video
- ai youtube
categories:
- ai
- youtube
description: "This Article Describes Navigate Through Green Screen Muddle on Mac for Smooth YouTubing f... |
<!--
객체 ==> 배열[객체...] web store(sqlite)
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
window.onload=function() {
//객체 선언 => JSON (Boot는 자동 생성 , Framework: 직접 생성)
/*
오라클 ===> 자바 ===> 자바스크립트
~VO {}
List [{},{},{}...]
*/
... |
//Pacote inicial para iniciar o projeto
const express = require('express');
//Importando celebrate: faz a validação dos campos
const { celebrate, Segments, Joi } = require('celebrate');
//Controllers
const UserController = require('./controllers/UserController');
const SessionController = require('./controllers/Sessi... |
function sinLaPrimeraAparicionDe_En_(elemento, lista) {
/*
PROPOSITO: Describe la lista "lista" resultante de eliminar el elemento "elemento"
PRECONDICION: Ninguna
PARAMETROS: "elemento" es un Elemento
"lista" es una Lista de tipo Elemento
TIPO: Lista de tipo Elem... |
package Term::UI::History;
use strict;
use vars qw[$VERSION];
use base 'Exporter';
use base 'Log::Message::Simple';
$VERSION = '0.46';
=pod
=head1 NAME
Term::UI::History - history function
=head1 SYNOPSIS
use Term::UI::History qw[history];
history("Some message");
### retrieve the history in printa... |
import { useEffect, useState } from "react";
const HOC = (Component) => {
function HOCtoReturn() {
const [date, setDate] = useState(new Date());
useEffect(() => {
const interval = setInterval(() => setDate(new Date()), 1000);
return () => clearInterval(interval);
}, [date]);
return (
... |
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_wifi.h"
#include "esp_wpa2.h"
#include "esp_event.h"
#include "esp_log.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_netif.h"
#include "esp_smartconfig.h"
... |
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:routemaster/routemaster.dart';
import 'package:tiktok_clone/controller/video_controller.dart';
import 'package:tiktok_clone/error_text.dart';
import 'package:tiktok_clone/models/postVideo.dart';
import 'pack... |
import { createError } from 'h3'
import { $fetch } from 'ofetch'
import { getQuery, parseURL } from 'ufo'
import { feedsInfo, validFeeds } from '~/composables/api'
import { baseURL } from '~/server/constants'
import { configureSWRHeaders } from '~/server/swr'
const feedUrls: Record<keyof typeof feedsInfo, string> = ... |
<template>
<a-form :model="formState" name="validate_other" v-bind="formItemLayout" @finishFailed="onFinishFailed"
@finish="onFinish">
<a-form-item label="任务类型" name="type" has-feedback :rules="[{ required: true, message: '请选择任务类型' }]">
<a-select v-model:value="formState.type" placeholder="选择任务类型" :opt... |
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import {
NgModule,
ApplicationRef
} from '@angular/core';
import {
removeNgStyles,
createNewHosts,
createInputTransfer
} from '@angularclass/hmr';
import {
Ro... |
<template>
<a-layout>
<a-page-header
style="border: 1px solid rgb(235, 237, 240)"
title="Chi tiết hóa đơn"
sub-title="" />
<a-layout-content style="padding: 0 50px">
<a-table :columns="columns" :data-source="data" :scroll="{ x: 1000, y: 500 }">
<template #body... |
/*
* jQuery FlexSlider v2.7.2
* Copyright 2012 WooThemes
* Contributing Author: Tyler Smith
*/
;
(function ($) {
var focused = true;
//FlexSlider: Object Instance
$.flexslider = function(el, options) {
var slider = $(el);
// making variables public
//if rtl value was not passed and html is in ... |
import tkinter as tk
from tkinter import ttk
import opclabs_quickopc
#import .NET namespaces.
from OpcLabs.EasyOpc.UA import *
from OpcLabs.EasyOpc.UA.OperationModel import *
class MyGUI:
def __init__(self):
# Creating the window
self.root = tk.Tk()
# setting the geometry of the window
... |
package consensus
import (
"context"
"log"
"github.com/alveycoin/alveychain/blockchain"
"github.com/alveycoin/alveychain/chain"
"github.com/alveycoin/alveychain/helper/progress"
"github.com/alveycoin/alveychain/network"
"github.com/alveycoin/alveychain/secrets"
"github.com/alveycoin/alveychain/state"
"github... |
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ContactoComponent } from './contacto/contacto.component';
import { InicioComponent } from './inicio/inicio.component';
import { NosotrosComponent } from './nosotros/nosotros.component';
const routes: Routes = [
... |
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:instagram_clone/resources/firestore_methods.dart';
import 'package:instagram_clone/utils/colors.dart';
impo... |
import {
Box,
Button,
Flex,
FormControl,
FormLabel,
Heading,
Input,
} from "@chakra-ui/react";
import axios from "axios";
import Head from "next/head";
import { useRouter } from "next/router";
import React, { useState } from "react";
import { useMutation, useQueryClient } from "react-query";
import { data... |
<?php
/**
* @file
* Module file for Cesium.
*/
define('CESIUM_BLOCK_INPUT_APPLICATION_TYPE', 'cesium_block_application_type');
define('CESIUM_BLOCK_INPUT_BING_MAPS_API_KEY', 'cesium_block_bing_maps_api_key');
define('CESIUM_BLOCK_INPUT_CONTAINER_ID', 'cesium_block_container_id');
define('CESIUM_BLOCK_INPUT_JS_VARIA... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns... |
import React, { useState, useEffect } from "react";
import { toast } from "react-toastify";
import { Base_url } from "../../utils/Base_url";
import axios from "axios";
import Input from "../../components/Input";
import Button from "../../components/Button";
import Modal from "../../components/modal";
import { MdClose }... |
import { Link, NavLink } from "react-router-dom"
export const Navbar = () => {
return (
<nav className="navbar navbar-expand-lg bg-body-tertiary rounded-3">
<div className="container-fluid">
<Link className="navbar-brand" to="/">useContext</Link>
<button className... |
# -*- coding: utf-8 -*-
"""
@Time : 2023/6/14 21:21
@Auth : 异世の阿银
@File :test_JavaScript.py
@IDE :PyCharm
@Motto:ABC(Always Be Coding)
"""
import re
'''
需求1: 匹配hi
需求2: 加入him,history,high 进行\b边界检测
需求3: 匹配hi jack 加入.*+?
需求4: 匹配三个字符的单词 加入[]{}
需求5: 匹配所有h/H开头的单词,或者a开头的单词.然后后面至少有一个字符的单词
需求6: 匹配字符中号码 加入\d
需求7: 匹配数字和字母 加入 \w
需... |
/**
* This will track all the images and fonts for publishing.
*/
import.meta.glob(["../images/**", "../fonts/**"]);
/**
* Main vue bundler.
*/
import { createApp } from "vue/dist/vue.esm-bundler";
/**
* Main root application registry.
*/
window.app = createApp({
data() {
return {};
},
moun... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... |
<template>
<div class="wrapper">
<img
src="https://cdn.jsdelivr.net/gh/ycshang123/image-hosting@master/login.oms6vaklh5c.webp"
class="wrapper__img"
/>
<div class="wrapper__input">
<input
type="text"
class="wrapper__input__content"
placeholder="用户名"
v-model... |
package engine.model.physicalEngine.shape;
import java.util.ArrayList;
import java.util.List;
import engine.model.physicalEngine.movement.*;
public class Rectangle {
private Position position;
private double width;
private double height;
private boolean moving;
private boolean colliding;
priv... |
探讨数据库的数据存储方式,其实就是探讨数据如何在磁盘上进行有效的组织。因为我们通常以如何高效读取和消费数据为目的,而不是数据存储本身
Hbase语法
https://www.cnblogs.com/guohu/p/13138868.html
http://www.vue5.com/hbase/hbase_installation.html
HBase对比关系型数据库管理系统(RDBMS)
HBase RDBMS
数据类型 只有字符串/字节数组 具有丰富的数据类型
数据操作 只支持增删改查 支持SQL语句
存储模式 列式存储 ... |
1) --> Every opertaion in O(1) solution:
so for N element total, Time Complexity : O(N)
Space Complexity : O(N)
class CustomStack:
def __init__(self, maxSize: int):
self.maxSize =maxSize
self.s =[]
self.incrArray = []
def push(self, x: int) -> None:
if ... |
import React from "react";
import { Text } from "react-native";
import { PPTextStyle } from "./PPText.style";
import { useStyle, useTheme } from "../../hooks";
import { TextProps } from "react-native";
export interface IPPText extends TextProps {
/**
* Weight of the font > light = 300; regular = 400; medium = 50... |
package com.showmeyourcode.projects.algorithms.launcher;
import com.showmeyourcode.projects.algorithms.algorithm.implementation.AlgorithmFactory;
import com.showmeyourcode.projects.algorithms.benchmark.BenchmarkDataGenerator;
import com.showmeyourcode.projects.algorithms.benchmark.BenchmarkProcessor;
import com.showme... |
/*
* Copyright (c) 2024 Kodeco LLC
*
* 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,... |
import * as dotenv from "dotenv";
dotenv.config({ path: "./.env.local" });
import { getAlgodClient } from "../src/clients/index.js";
import algosdk from "algosdk";
import { signAndSubmit } from "../src/algorand/index.js";
const network = process.env.NEXT_PUBLIC_NETWORK || "SandNet";
const algodClient = getAlgodClient(... |
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import javax.swing.JTextArea;
import javax.swing.SwingUtilities;
public class URLChecker implements Runnable {
private String host;
private File fil... |
// components/Navbar.js
import React, { useState } from "react";
import Link from "next/link";
import Image from "next/image";
// import { Menu } from '@headlessui/react';
const Navbar = () => {
const [isOpen, setIsOpen] = useState(false);
return (
<nav className="border-b border-gray-300">
<div classN... |
enum ExpensesDealType {
supermarkets,
home,
taxi,
cafe,
entertainments,
pharmacy;
static String toEntity(ExpensesDealType type) {
return switch (type) {
ExpensesDealType.cafe => 'Кафе',
ExpensesDealType.entertainments => 'Развлечения',
ExpensesDealType.home => 'Для дома',
Expe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.