text stringlengths 184 4.48M |
|---|
/*
This software is subject to the license described in the license.txt file
included with this software distribution. You may not use this file except in compliance
with this license.
Copyright (c) Dynastream Innovations Inc. 2014
All rights reserved.
*/
/**@file
* @defgroup ant_broadcast_rx_example ANT Broadcast R... |
<?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:f="http://xmlns.jcp.org/jsf/core"
xmlns:p="http://x... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Canvas</title>
<style>
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
</style>
</head>
<body>
... |
---
title: 'Complex join'
---
# Complex join
You can provide a function as the second argument to get a join
builder for creating more complex joins. The join builder has a
bunch of `on*` methods for building the `on` clause of the join.
There's basically an equivalent for every `where` method
(`on`, `onRef` etc.). Y... |
const router = require("express").Router();
const { Category, Product } = require("../../models");
const { sequelize } = require("../../models/Category");
// The `/api/categories` endpoint for get all -- status code 500 = error on the server-side
router.get("/", (req, res) => {
Category.findAll({
include: [{ ... |
import { NextFunction, Request, Response } from 'express';
import Category from './model';
import { categorySchema } from './validator';
import unprocessableEntity from '../../errors/unprocessable-entity';
import { UniqueViolationError } from 'objection';
import categoriesErrors from './errors';
import badRequestError ... |
import React from "react";
import { useNavigate } from "react-router-dom";
class CreateProject extends React.Component { constructor(props) {
super(props);
this.state = {title: '', description: '', image: null, url_name:'',url:'',};
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.ha... |
<%@ Page Title="" Language="C#" MasterPageFile="HrMaster.master" AutoEventWireup="true" CodeBehind="Specifics.aspx.cs" Inherits="SkyServer.Proj.Teachers.Advanced.HR.Specifics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HrContent" runat="server">
<div id="transp">
<table WIDTH=600 border=0 cellspacing="3" cell... |
<template>
<div>
<div class="text-start">
<router-link to="/AddTask" class="btn btn-success btn-lg"
>Add task</router-link
>
</div>
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Description</th>
<th>Actions</th>
... |
/*
* Copyright (C) 2022 The Android Open Source Project
*
* 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 app... |
<!DOCTYPE html>
<html>
<head>
<title>AppRails</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { VocabularyInterface } from '@app/interfaces/vocabulary.interface';
import { LessonsInterface } from '@app/interfaces/lessons.interface';
import { ExerciseInterface } from '@app/inte... |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/c... |
import { ZodObject, TypeOf, ZodTypeAny } from 'zod';
import {
DatabasePool,
DatabaseTransactionConnection,
IdentifierSqlToken,
QueryResult,
QuerySqlToken,
sql,
} from 'slonik';
import { EventEmitter2 } from '@nestjs/event-emitter';
import { AggregateRoot, Mapper } from 'src/domain/ddd';
import { Repository... |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>ARFA6.1 - Goals</title>
<link rel="stylesheet" href... |
#include <stdio.h>
#include <stdlib.h>
typedef struct No {
int dado;
struct No* proximo;
struct No* anterior;
} No;
No* criarNo(int dado)
{
No* novoNo = (No*)malloc(sizeof(No));
if (novoNo == NULL) {
printf("Erro: Falha na alocação de memória\n");
exit(1);
}
novoNo->dado =... |
// Copyright (C) 2004-2018 by The Allacrost Project
// All Rights Reserved
//
// This code is licensed under the GNU GPL version 2. It is free software
// and you may modify it and/or redistribute it under the terms of this license.
// See http://www.gnu.org/copyleft/gpl.html for deta... |
package main
import (
"bytes"
"context"
"encoding/json"
"fmt"
"log"
"os"
"time"
"github.com/detrin/lunch-watchdog-backend/watchdog"
"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
)
func main() {
var menus []watchdog.Menu
menuKolkovna, err := watchdog.ScrapeMenuKolkovna()
i... |
/*
Arduino Chicken Coop Controller
Based loosely on code by Will Vincent <will@willvincent.com>
This Sketch is designed to work on a ESP-8266 MUANODE 0.9 board
*/
#include "options.h"
#include <FS.h> //this needs to be first, or it all crashes and burns...
#include <Wire.h> // https:/... |
package com.example.uptrend;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.annotation.SuppressLint;
import android.os.Bundle;
import com.example.uptrend.Ada... |
package dev.marco.example.springboot.rest;
import dev.marco.example.springboot.exception.*;
import dev.marco.example.springboot.model.Dashboard;
import dev.marco.example.springboot.service.DashboardService;
import dev.marco.example.springboot.util.ApiAddresses;
import dev.marco.example.springboot.util.ControllerUtil;
... |
import { Observable, ReplaySubject, tap } from 'rxjs';
import { ApiService } from './../../core/services/api/api.service';
import { Injectable } from '@angular/core';
import { User } from 'src/app/shared/models/user.model';
@Injectable({
providedIn: 'root',
})
export class AccountService {
readonly apiUrl: string ... |
import React, { Component } from 'react'
export default class Item extends Component {
constructor() {
super();
this.state={
inEdit:false
}
this.myInput=React.createRef();
}
//更改Item组件自身状态值this.state.inEdit
changeInEdit=()=>{
let {todo} = this.props;
... |
package practice;
import java.util.ArrayList;
class Util
{
static void sleep(long millis)
{
try
{
Thread.sleep(millis);
}
catch (InterruptedException ex)
{
ex.printStackTrace();
}
}
}
class CommonTaskThread extends Thread
{
@Override
public void run()
{
while(true)
{
synchronize... |
/* Copyright (C) 2011 [Gobierno de Espana]
* This file is part of "Cliente @Firma".
* "Cliente @Firma" 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 2 of the License, or (at your ... |
pragma solidity 0.8.19;
// SPDX-License-Identifier: AGPL-3.0-or-later
// Temple (v2/strategies/TempleTokenBaseStrategy.sol)
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { ITempleBaseStrategy } from "contracts/interfaces/v2/strategies/ITempleBaseStrategy.sol";
import { Ab... |
import unittest
from trees.CheckCompletenessOfABinaryTree import is_complete_tree
from trees.TreeNode import TreeNode
class MyTestCase(unittest.TestCase):
def test_is_complete_tree(self):
root = TreeNode(
val=1,
left=TreeNode(
val=2,
left=TreeNode(4... |
/* global $STM_Config */
import { isDefaultImageSize, defaultSrcSet } from 'app/utils/ProxifyUrl';
import { getPhishingWarningMessage, getExternalLinkWarningMessage } from 'shared/HtmlReady'; // the only allowable title attributes for div and a tags
import { validateIframeUrl as validateEmbbeddedPlayerIframeUrl } from... |
import { Button, Select, Table } from "antd";
import { useEffect } from "react";
import { ImEye } from "react-icons/im";
import { IoTrashOutline } from "react-icons/io5";
import { RiEditLine } from "react-icons/ri";
import { useDispatch, useSelector } from "react-redux";
import { Link } from "react-router-dom";
import ... |
/* Copyright (C) 2024, Manuel Meitinger
*
* 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 2 of the License, or
* (at your option) any later version.
*
* This program is dis... |
import { useMemo, useRef } from "react";
import { formatDate, formatTimes } from "../core/dateFunctions";
import { Settings, SuitableTime } from "../weather/interpretWeather";
export function Result({
suitableTime,
settings,
}: {
suitableTime: SuitableTime;
settings: Settings;
}) {
const tempIndicatorCss = u... |
<template>
<div class="color-picker">
<span
v-for="(color, index) in props.colorOptions"
:key="index + color"
class="color-option-label"
:class="{ selected: color === selectedColor }"
:style="{ backgroundColor: color }"
@click="selectColor(color)"
></span>
</div>
</templa... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<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"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao... |
import * as React from 'react';
import {Table, TableBody, TableCell, TableContainer, TableHead, TableRow } from '@mui/material';
import { useEffect, useState } from 'react';
import { getSirenUsersWhere, setSirenUser } from '../../firebase/queries';
import ApproveDeny from './ApproveDeny';
import { SirenUser } from '../... |
import { Product } from '../entities';
import { HttpService } from './http-service';
export class ProductsService {
private httpService: HttpService;
constructor() {
this.httpService = HttpService.getInstance();
}
async create(name: string, quantity: number) {
try {
const response = await this.... |
"use client";
import { NavBarBox } from "@/app/components/NavBarBox";
import { pasingCsv } from "@/app/lib/parsingCsv";
import Link from "next/link";
import React, { useState } from "react";
export default function ParseCsv() {
const [result, setResult] = useState([]);
const handleSumbit = async (event: React.Form... |
module;
#include <cstdint>
#include <cassert>
#include <ranges>
#include <compare>
export module Brawler.FileMagicHandler;
import Brawler.NZStringView;
export namespace Brawler
{
class FileMagicHandler
{
public:
consteval explicit FileMagicHandler(const NZStringView magicStr);
consteval FileMagicHandler(const... |
import unittest
import time
from selenium import webdriver
class TestSauceDemo(unittest.TestCase):
@classmethod
def setUpClass(cls):
# Configurar o driver do Selenium
cls.driver = webdriver.Chrome()
cls.driver.get("https://www.saucedemo.com/")
# CT01 | Login com credenciais vál... |
-- Table Tweets
+----------------+---------+
| Column Name | Type |
+----------------+---------+
| tweet_id | int |
| content | varchar |
+----------------+---------+
-- tweet_id is the primary key for this table.
-- This table contains all the tweets in a social media app.
-- Write an SQL quer... |
# Import required libraries
from langchain import PromptTemplate
import streamlit as st
from langchain.llms import OpenAI
from dotenv import load_dotenv
# Load the environment variables from the .env file
load_dotenv()
# Define the template for the email conversion task
query_template = query_template = """
Below... |
function tf = loadtf(fname,variable,preprocess,postprocess)
%LOADTF Load output of tflab.
%
% tf = LOADTF(filename) load all output of a tflab run.
%
% var = LOADTF(filename, varstring) load a top-level structure variable.
%
% Example:
% In = LOADTF(filename, 'In');
% Out = LOADTF(filename, 'Out');... |
<template>
<div class="bg-gray-100 rounded shadow flex items-center justify-between p-2">
<p v-if="!props.done" class="font-semibold">{{props.title}}</p>
<del v-else class="font-semibold">{{props.title}}</del>
<div>
<button @click="isDone" class="bg-blue-500 shadow-md hover:bg-blue... |
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="zh-CN">
<head>
<title>书城首页 - 书城</title>
<%@ include file="../common/head.jsp" %>
<link rel="stylesheet" href="static/css/index.css">
</head>
<body class="d-flex flex... |
import { useEffect, useState } from 'react'
import PropTypes from 'prop-types';
import { TransitionGroup, CSSTransition } from 'react-transition-group'
import '../../pages/Chat.css'
const ChatMessages = ({messages}) => {
const [currentUsername, setCurrentUsername] = useState(null)
useEffect(() => {
setCurren... |
package com.goldax.goldax.util;
import android.view.View;
import androidx.annotation.NonNull;
/**
* Glide 이미지 요청 시 필요 데이터 class
*/
public class ImageRequest {
public @NonNull
View view;
public @NonNull
String url;
public int errorResId;
public boolean isRound;
private ImageRequest(Buil... |
package bg.softuni.pcstore.service.impl;
import bg.softuni.pcstore.events.UserRegistrationEvent;
import bg.softuni.pcstore.exception.ObjectNotFoundException;
import bg.softuni.pcstore.model.entity.UserEntity;
import bg.softuni.pcstore.model.entity.VerificationToken;
import bg.softuni.pcstore.repository.UserRepository;... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSupplierGroupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(!Schema::hasTable('su... |
// 배달
// https://www.acmicpc.net/problem/1175
#include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
typedef pair<int, int> pr;
typedef pair<pr, pr> prrr;
int dx[4] = { -1, 0, 1, 0 };
int dy[4] = { 0, 1, 0, -1 };
int main(void) {
cin.tie(NULL);
ios_base::sync_with_stdio(fal... |
#!/usr/bin/python3
"""The followiong scripts starts a Flask web application:"""
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_hbnb():
"""Return “Hello HBNB!” string when route quired"""
return "Hello HBNB!"
@app.route('/hbnb')
def hello_hbnb2():
"""Return a "HBNB" string when... |
<?php
/**
* @file
* Tests for the File (Field) Paths module.
*/
/**
* Class FileFieldPathsTestCase
*/
class FileFieldPathsTestCase extends FileFieldTestCase {
var $content_type = NULL;
var $public_files_directory = NULL;
/**
* @inheritdoc
*/
function setUp() {
// Setup required modules.
$m... |
/*
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3 only, as
* published by the Free ... |
<template>
<nav>
<router-link to="/">
<img src="../assets/logo.png">
</router-link>
<Hamburger />
<div class="site-menu">
<ul>
<li
v-for="(category, index) in categories[0]"
:key="index"
:style="{
backgroundColor: '#' + colors[categorie... |
/************************************************************************
**
** @file abstracttest.cpp
** @author Roman Telezhynskyi <dismine(at)gmail.com>
** @date 7 5, 2015
**
** @brief
** @copyright
** This source code is part of the Valentina project, a pattern making
** program, whose allow cre... |
#ifndef BST_H
#define BST_H
#include <iomanip>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
template <class TKey> class bst {
struct node {
node(int = 0);
void print();
TKey key;
int ID;
// parent info
node *pLink;
node *link[2];
};
public:
class it... |
=== GoUrl WooCommerce - Bitcoin Altcoin Payment Gateway Addon ===
Contributors: gourl, GoUrl.io
Plugin Name: GoUrl WooCommerce - Bitcoin Altcoin Payment Gateway Addon. White Label Solution
Plugin URI: https://gourl.io/bitcoin-payments-woocommerce.html
Author URI: https://gourl.io
Tags: woocommerce, bitcoin, accept bitc... |
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<script type="text/javascript" src="/bjc-r/llab/loader.js"></script>
<title>Unidad 8 Laboratorio 4: Construir funciones de orden superior, Página 2</title>
</head>
<body>
<h2>Generalizar el modelo <code>mapear</code></h2>
<div class="learn">
... |
import { IsNotEmpty, MinLength } from 'class-validator';
import { Field } from '../decorators/Field';
import { ErrorMessages } from '../lib/errors/ErrorMessage';
import { createErrorMessageOption } from '../lib/errors/createErrorMessage';
export class ResetPasswordRequestDto {
@IsNotEmpty({ message: 'Missing reset... |
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" int... |
package productsapi.api.rest.adapters.endpoints;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework... |
// This module contains integration tests for the my_encryption_lib crate.
#[cfg(test)]
mod integration_tests {
// Importing the modules from the library to test.
use my_encryption_lib::{mel_presets, mel_912, mel_mdp};
// Tests for the mel_1 function from mel_presets module.
#[test]
fn test_mel_1()... |
{% liquid
assign section_anchor_id = section.settings.section_anchor_id | handleize
assign color_scheme = section.settings.color_scheme
assign title = section.settings.title
assign pt_mob = section.settings.pt_mob
assign pb_mob = section.settings.pb_mob
assign pt_tab = section.settings.pt_tab
assign pb_... |
package com.example.comickufinal.network
import okhttp3.CacheControl
import okhttp3.Interceptor
import okhttp3.Response
import java.util.concurrent.TimeUnit
abstract class OfflineInterceptor : Interceptor {
private val HEADER_CACHE_CONTROL = "Cache-Control"
private val HEADER_PRAGMA = "Pragma"
abstract fu... |
## Énoncé
Contrairement à une boucle *tant que* qui s'arrête sur une condition, une boucle *pour* en Python permet de parcourir un ensemble d'éléments.
Bien que ce type de boucle soit tout à fait intuitif, de nombreuses opérations ont lieu dans notre dos dès lors que l'on l'utilise la construction `for X in Y` en Pyth... |
package com.example.bmo.adapters
import android.content.Context
import android.content.res.ColorStateList
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import c... |
//
// CardView.swift
// Movie
//
// Created by Marius Stefanita Jianu on 28.04.2024.
//
import SwiftUI
struct CardView: View {
let movie: Movie
var image: UIImage?
var isFavorite: Bool
var toggleFavorite: () -> Void
var body: some View {
VStack(spacing: 0.0) {
if l... |
import { Component, ComponentFactoryResolver, Input, OnInit, ViewContainerRef } from '@angular/core';
@Component({
selector: 'app-widgets',
templateUrl: './widgets.component.html',
styleUrls: ['./widgets.component.scss']
})
export class WidgetsComponent implements OnInit {
loading: boolean = false;
illegalWi... |
import {
Animated,
Easing,
Image,
StyleSheet,
Text,
TouchableOpacity,
TouchableWithoutFeedback,
View,
} from 'react-native';
import React, {FC, useEffect, useState} from 'react';
import RatingIcon from './ratingIcon';
interface Props{
value: number;
maximumRating: number;
c... |
import { gql, useMutation, useSubscription } from "@apollo/client";
import GoogleMapReact from "google-map-react";
import { useEffect, useState } from "react";
import { FULL_ORDER_FRAGMENT } from "../../fragments";
import {
CoockedOrdersSubscription,
TakeOrderMutation,
TakeOrderMutationVariables,
} from "../../__... |
// Kalyis Alexander|| Spaceship game||Nov 29,22
ArrayList<Rock> rocks = new ArrayList<Rock>();
ArrayList<PowerUp> powerups = new ArrayList<PowerUp>();
ArrayList<Laser> lasers = new ArrayList<Laser>();
Ship s1;
Timer rockTimer, puTimer;
Star []stars=new Star[200];
int score, level;
boolean play;
void setup() {
size(8... |
# How to contribute to this project
* 🔎 Please ensure your findings have not already been reported by searching on the project repository under [Issues](https://github.com/bytemare/crypto).
* If you think your findings can be complementary to an existing issue, don't hesitate to join the conversation 😃☕
* If there's... |
import { NgModule,CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { M... |
# 2020-06-18 William A. Hudson
# rgIic Hardware Register Description.
#---------------------------------------------------------------------------
# See also: perlpod(1) perlpodstyle(1)
=head1 NAME
rgIic Hardware Description -- I2C Master
=head1 SYNOPSIS
Hardware registers of each I2C Master: (iic0, .. iic... |
return {
{
"stevearc/conform.nvim",
-- event = 'BufWritePre', -- uncomment for format on save
config = function()
require "configs.conform"
end,
},
{
"mfussenegger/nvim-lint",
config = function()
local lint = require "lint"
lint.linters_by_ft = {
python = { "ruff"... |
import { useState } from 'react'
import { toast } from 'sonner'
import { NewNoteCard, NoteCard } from './components'
import { INote } from './interfaces/Note'
import logo from './assets/logo-nlw-expert.svg'
export function App() {
const [search, setSearch] = useState('')
const [notes, setNotes] = useState<INo... |
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AppConsentRequestScope File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserv... |
;;; Who Drinks Water? And Who owns the Zebra?
;;;
;;; direct translation of a CLIPS Version 6.0 Example
;;; this is a dangerous benchmark since performance
;;; depends mostly on instantiation order
;;; A much better approach is to use the ECLAIR library
;;; However, the measure of rules/s is interestin... |
package com.weiquding.netty.learning.netty.codecs.protobuf.client;
import com.weiquding.netty.learning.netty.codecs.protobuf.domain.SubscribeReqProto;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io... |
package com.teamforce.thanksapp.presentation.viewmodel.onboarding
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.teamforce.thanksapp.data.response.onboarding.InviteLinkResponse
import com.teamforce.tha... |
from mock import *
from gp_unittest import *
from gppylib.gparray import GpArray, Segment
from gppylib.commands.base import CommandResult
from gppylib.operations.rebalanceSegments import GpSegmentRebalanceOperation
from gppylib.operations.rebalanceSegments import replay_lag
class RebalanceSegmentsTestCase(GpTestCase... |
package sample.model;
import javax.mail.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
import java.util.Properties;
public class Sender {
private String username;
private String password;... |
import router from '@ohos.router'
import { TutorialEntity } from '../../model/entity/TutorialEntity'
import { getTutorialData } from '../../viewmodel/Net'
@Component
export struct TutorialPage {
@State tutorialData: TutorialEntity[] = []
aboutToAppear() {
getTutorialData().then((data: TutorialEntity[]) => {
... |
import { ModelInit, MutableModel, PersistentModelConstructor } from "@aws-amplify/datastore";
export declare class Image {
readonly resMode: string;
readonly image?: S3Object;
readonly thumb?: string;
constructor(init: ModelInit<Image>);
}
export declare class S3Object {
readonly bucket: string;
readonl... |
import React from "react";
import { useNavigate } from "react-router-dom";
import "../CSS/butacahora.css";
import "../CSS/anular.css";
function Butacahora({ data }) {
console.log("Movie ID en Butacahora: ", data.movieId);
const dataAcordion = [
{ id: 'collapseOne', tipoPantalla: '2D', subtitulos: 'DOB... |
"use client";
import useSWR from "swr";
const fetcher = (userInput: string) =>
fetch("/api/suggestions?userInput=" + userInput).then((res) => res.json());
function AISuggestion({ userInput }: { userInput: string }) {
const { data, error, isLoading, isValidating } = useSWR(
"suggestions",
() => fetcher(use... |
# Thiết lập nút đồng thuận
## Tải về <a id="download"></a>
Bạn có thể tải về phiên bản mới nhất của `kcn` trên trang [Tải xuống](../../downloads/downloads.md).
## Cài đặt <a id="installation"></a>
### Phân bổ lưu trữ Linux <a id="linux-archive-distribution"></a>
Tập tin lưu trữ bao gồm tập tin nhị phân thực thi và... |
<?php
namespace App\Http\Controllers;
use App\Models\Project;
use App\Models\Server;
use Illuminate\Http\Request;
use Inertia\Inertia;
class ProjectController extends Controller
{
public function index()
{
$projects = Project::query()
->with('latest_deployment')
->paginate(20)... |
#include <stdio.h>
#include <stdbool.h>
void conversionTabletFromFahrenheitToCelsius(const bool r) {
const int upper = 300;
const int lower = 0;
int fahr = lower;
printf("Temperature conversion table\n");
printf("\nFº\tCº\n");
// If r == true, the table will be printed in reverse order
if ... |
import React, { createContext, useContext, useState, useEffect } from "react";
const ThemeContext = createContext();
export function ThemeProvider({ children }) {
const [theme, setTheme] = useState("theme1"); // Default theme
useEffect(() => {
// Load the theme from local storage if available
const saved... |
<!DOCTYPE html>
<html>
<head>
<title>Lab 17</title>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigi... |
@once
@push('css')
<style>
:root {
--l2p-height: 400px;
--l2p-background-color: aliceblue;
}
.l2p-root,
.l2p-root * {
box-sizing: border-box;
}
.l2p-root {
width: 100%;
... |
import { useEffect, useState } from 'react';
import { nanoid } from 'nanoid';
import { Layout } from './Layout/Layout';
import { Section } from './Section/Section';
import { ContactForm } from './ContactForm/ContactForm';
import { Filter } from './Filter/Filter';
import { ContactList } from './ContactList/ContactList'... |
<template>
<div>
<div v-if="characters.length > 0 || episodes.length > 0 || locations.length > 0">
<div
class="text-6xl text-center font-normal leading-normal mt-0 mb-2 text-pink-800"
>
VOS LIKES
</div>
<!-- list characters -->
<div v-if="characters.length > 0">
... |
/**
* 객체의 키-값 쌍을 FormData 객체에 추가하는 함수
* @param params - 키-값 쌍을 포함한 객체
* @param excludeKeys - FormData에 추가하지 않을 키 목록
* @returns 데이터가 추가된 FormData 객체
*/
export const convertFormData = ({
params,
excludeKeys = [],
}: {
params: { [key: string]: any }
excludeKeys: string[]
}): FormData => {
const formData = n... |
<!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.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha... |
package package_marcus_herbert;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Random;
/**
* Threads used to test the Bakery algorithm for mutual exclusion
*/
public class BakeryProcess extends Thread{
private static ArrayList<BakeryProcess> processes;
... |
// HomeScreen.tsx
import React, { useEffect, useState } from 'react';
import { View, StyleSheet, TouchableOpacity, ActivityIndicator, FlatList, Linking, Pressable } from 'react-native';
import Colors from '../theme/colors'; // Import color palette
import { StackNavigationProp } from '@react-navigation/stack';
import {... |
import React, { useState } from "react";
import {HiMenu, HiMenuAlt4} from "react-icons/hi";
import {AiOutlineClose} from "react-icons/ai";
import logo from "../../images/logo.png";
const NavMenuListitem = ({itemName, itemStyleClass}) => {
return(
<li className={`mx-4 cursor-pointer ${itemStyleClass}`}>{i... |
import { mockAuthenticationParams } from '@/tests/domain/mock-account'
import { LoadAccountByEmailRepositorySpy, HashComparerSpy, EncrypterSpy } from '@/tests/data/mocks'
import { DbAuthentication } from '@/data/usecases/account/db-authentication'
import { throwError } from '@/tests/domain/test-helpers'
type SutTypes... |
const types = [
{ regex: /^-?\d+(\.\d+)?$/, name: "NUMBER" },
{ regex: /^"([^"]*)"$/, name: "STRING" },
{ regex: /^ADD$/, name: "ADD" },
{ regex: /^SUBTRACT$/, name: "SUBTRACT" },
{ regex: /^MULTIPLY$/, name: "MULTIPLY" },
{ regex: /^DIVIDE$/, name: "DIVIDE" },
{ regex: /^CONCAT$/, name: "CONCAT" },
{ r... |
'use client'
import React from 'react'
import { SlidingChoices } from './ui/sliding-choices'
import { cn, useWindowSize } from '@/lib/utils'
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuTrigger
} from './ui/dropdown-menu'
import { Pin, LogOut, LogIn, Home, S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.