text stringlengths 184 4.48M |
|---|
import { CompensationGroup } from "./CompensationGroup";
import { PayoutPreferrences } from "./PayoutPreferrences";
import { Role } from "./enums/Role";
import { Timestamp, DocumentData } from "firebase/firestore";
export class User {
uid: string;
profilePictureSrc: string | null;
firstName: string;
lastName: ... |
= Conversational Agent
:order: 4
:type: challenge
:optional: true
During this course, you have learned about the fundamentals of LLMs, how to interact with them using langchain, and how Neo4j can support the LLM in answering questions.
In this optional challenge you will apply this new knowledge and skills to a new p... |
# Axios 取消请求
## 步骤
1. 发请求时携带取消令牌
2. 在需要取消时(如路由离开时 beforeRouteLeave)调用方法取消所有携带取消令牌的请求
## 用法
```js
const source = axios.CancelToken.source()
axios.get('/api/a', {
// 取消令牌
cancelToken: source.token
}).catch(function (thrown) {
if (axios.isCancel(thrown)) {
console.log('请求已取消', thrown.message)
}
})
axios.... |
package monitor
import (
pb "avatar/services/gateway/protos/pos"
"context"
)
type CreateMonitorInput struct {
Maker string `json:"maker" binding:"required"`
SerialNumber string `json:"serialNumber" binding:"required"`
MonitorStatus string `json:"monitorStatus"`
ResolutionWidth int64 ... |
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import EditarTurno from './EditarTurno';
import './Turnos.css';
function Turnos() {
const [turnos, setTurnos] = useState([]);
const [cliente, setCliente] = useState('');
const [apellido, setApellido] = useState('');
const [c... |
/*
* Caturix, a command processing library
* Copyright (C) Intake team and contributors
* Copyright (C) Caturix team and contributors
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundati... |
<div class="modal fade" id="modal-schedule-appointment">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Schedule Appointments</h4>
<button type="button" class="close" data-dismiss="modal" ... |
#include "duckdb/execution/operator/aggregate/physical_perfecthash_aggregate.hpp"
#include "duckdb/execution/perfect_aggregate_hashtable.hpp"
#include "duckdb/planner/expression/bound_aggregate_expression.hpp"
#include "duckdb/planner/expression/bound_reference_expression.hpp"
#include "duckdb/storage/buffer_manager.h... |
/**
* WordPress dependencies
*/
import { useEffect } from "@wordpress/element";
import {
WRAPPER_BG,
WRAPPER_MARGIN,
WRAPPER_PADDING,
WRAPPER_BORDER_SHADOW,
ICON_SIZE,
BORDER,
BORDER_WIDTH,
} from "./constants";
const {
softMinifyCssStrings,
generateTypographyStyles,
generate... |
import React, { useState, useEffect, useMemo } from 'react';
import { Button, Container, Row, Col, Form, Modal, Spinner } from 'react-bootstrap';
import { FiSearch } from 'react-icons/fi';
import { MdOutlineAddHome } from "react-icons/md";
import { FaEdit ,FaTrash } from "react-icons/fa";
import { SlOptions } from "rea... |
#---------------- Question 1 ----------------
# Find the missing number in an integer array of 1 to 100?
# This list has a msising number
mylist = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 4... |
import BannerPhone from '@assets/images/help-page-banner-image.png'
import AccountSectionHeader from 'components/forms/segments/AccountSectionHeader/AccountSectionHeader'
import Accordion from 'components/forms/simple-components/Accordion'
import Banner from 'components/forms/simple-components/Banner'
import { useTrans... |
package net.minecraft.client.resources.data;
import java.lang.reflect.*;
import com.google.common.collect.*;
import net.minecraft.util.*;
import org.apache.commons.lang3.*;
import java.util.*;
import com.google.gson.*;
public class AnimationMetadataSectionSerializer extends BaseMetadataSectionSerializer implements Js... |
import React, { FC, useState } from "react";
import "./ItemCard.css";
import Carousel from "react-bootstrap/Carousel";
export interface ItemCardProps {
productImages: string[];
batchNumber: string;
productName: string;
productQuantity: string;
productPrice: string;
}
const ItemCard: FC<ItemCardProps> = ({
... |
import { DatabaseService } from '@database/database.service'
import { GameBuilder } from '@packages/testing'
import { sql } from 'kysely'
import { container } from 'tsyringe'
import { InsertGamePriceRepository } from './insertGamePrice.repository'
describe('InsertGamePriceRepository', () => {
let repository: Insert... |
<?php
/**
* @file
* Placeholder module file.
*/
/**
* Implements hook_element_info_alter().
*/
function placeholder_element_info_alter(&$types) {
foreach (array_keys($types) as $type) {
switch ($type) {
case 'textfield':
case 'textarea':
case 'password':
$types[$type]['#process'][... |
syntax = "proto3";
package user;
import "google/protobuf/timestamp.proto";
option go_package = "./pkg/pb/userauth";
service User {
rpc UserSignUp(UserSignUpRequest) returns (UserSignUpResponse) {};
rpc UserLogin(UserLoginRequest) returns (UserLoginResponse) {};
rpc UserEditDetails(UserEditDetailsRequest) return... |
<script setup lang="ts">
import { RouterView, useRouter } from 'vue-router'
import TheHeader from './components/inc/TheHeader.vue';
import TheFooter from './components/inc/TheFooter.vue';
import { computed, onMounted, provide, ref } from 'vue';
import type { IUser } from './lib/interface';
import useUser from './lib/ho... |
package com.rc.springsecurity.security;
import com.rc.springsecurity.service.UserDetailsServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotatio... |
/**
* @ngdoc service
* @name gcms.components.data.service:business.profile
*
* @description
* Represents an business profile data service.
*
*```js
* function myCtrl($scope, ValidatedProfile){
* $scope.identityRequests = [];
* ValidatedProfile.query().$promise.then(function(result){
* $scope.Validate... |
/**
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... |
import React, { memo, useState, useEffect } from 'react';
import { Box, Container, Grid, Typography } from '@mui/material';
import { useFormik } from 'formik';
import { useTranslation } from 'react-i18next';
import { useNavigate, useParams } from 'react-router-dom';
import Input from '../../components/UIComponents/Inp... |
// SPDX-License-Identifier:UNLICENSED
pragma solidity ^0.8.7;
contract ex_enum{
enum steps {command, sending, delivered}
struct product {
uint _SKU;
ex_enum.steps _step;
}
mapping(address => product) CommandStatus;
function command(address client, uint SKU) public{
prod... |
import { useState } from "react";
import Button from "@material-ui/core/Button";
import FormControl from "@material-ui/core/FormControl";
import FormControlLabel from "@material-ui/core/FormControlLabel";
import Paper from "@material-ui/core/Paper";
import Radio from "@material-ui/core/Radio";
import RadioGroup from "@... |
* Install - McStas and the (optional) Webserver *
* --------------------------------------------- *
* Debian 7.1 iso 64bit (DL+install) *
* use ifconfig to find ip address *
System Setup
------------
1) Check out the McCode SVN repos:
mkdir <whatever_build_dir_structure_yo... |
import {createContext, useContext, useReducer, useEffect} from 'react';
import AppReducer from "./AppReducer"
const initialState = {
transactions: []
}
export const Context = createContext();
export const useGlobalState = () => {
const context= useContext(Context)
return context
}
export const GlobalPro... |
Snort++ differs from Snort in the following ways:
* command line and conf file syntax made more uniform
* removed unused and deprecated features
* remove as many barriers to successful run as possible
(e.g.: no upper bounds on memcaps)
* assume the simplest mode of operation
(e.g.: never assume input from or outpu... |
<u>QuickSort</u>
Quicksort is an extremely fast sorting algorithm that is particularly efficient for average scenarios.
While in worst-case scenarios (that is, inversely sorted arrays), it performs similarly to Insertion Sort and Selection Sort, it is much faster for average scenarios - which are what occur most of t... |
type Admin = {
name: string;
priviledges: string[];
};
type NormalStaff = {
name: string;
startDate: Date;
};
// intersection type
type ElevatedEmployee = Admin & NormalStaff;
const E1: ElevatedEmployee = {
name: "Elon",
priviledges: ["Handle CI/CD"],
startDate: new Date(),
}; |
from: https://www.pdflabs.com/docs/pdftk-cli-examples/
PDFtk Server Examples
These examples show you how to perform common PDF tasks from the command-line using pdftk.
1. Collate scanned pages
pdftk A=even.pdf B=odd.pdf shuffle A B output collated.pdf
or if odd.pdf is in reverse order:
pdft... |
import {useState} from 'react'
import { useDispatch, useSelector } from 'react-redux';
import {Link, NavLink} from 'react-router-dom'
import { toast } from 'react-toastify';
import { logoutUser } from '../../../redux/userSlice';
// import css and components
import './navbar.css'
import Bubbles from '../../utility/bubb... |
import * as React from "react";
import { useTranslation } from "react-i18next";
import { toast } from "sonner";
import WebhookSubscription from "~/models/WebhookSubscription";
import WebhookSubscriptionForm from "./WebhookSubscriptionForm";
type Props = {
onSubmit: () => void;
webhookSubscription: WebhookSubscript... |
class UsersController < ApplicationController
def index
users = User.all
render json: users
end
def show
user = User.find(params[:id])
render json: user
end
def showme
user = User.find_by(id: session[:user_id])
if user
render json: user... |
package launch;
import org.apache.catalina.WebResourceRoot;
import org.apache.catalina.WebResourceSet;
import org.apache.catalina.core.StandardContext;
import org.apache.catalina.startup.Tomcat;
import org.apache.catalina.webresources.DirResourceSet;
import org.apache.catalina.webresources.EmptyResourceSet;
import org... |
package util
import (
"crypto/rand"
"fmt"
"math"
"math/big"
)
var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
func RandomString(tkLength int32) string {
s := make([]rune, tkLength)
length := big.NewInt(int64(len(letters)))
for i := range s {
number, _ := rand.Int(r... |
// Modul implementujacy kolejke FIFO
#include <stdlib.h>
#include "memory.h"
#include "queue.h"
// Funkcja tworzaca nowa kolejke.
Queue *queue_init() {
Queue *queue = safe_malloc(sizeof(Queue));
// Poczatkowo kolejka jest pusta.
queue->size = 0;
queue->first_element = NULL;
queue->last_element = N... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<style>
html:-moz-full-screen{
background: red;
}
html:-webkit-full-screen{
background: red;
}
html:fullscreen{
background: red;
}
</style>
<body>
<input type="button" id="... |
import asyncio
import types
import typing
from eyepop.jobs import Job
class SyncJob:
def __init__(self, job: Job, event_loop):
self.job = job
self.event_loop = event_loop
def predict(self) -> dict:
prediction = self.event_loop.run_until_complete(self.job.predict())
return pre... |
package vohohungthinh.lab3.Validator.annotation;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import vohohungthinh.lab3.Validator.ValidUsernameValidator;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.l... |
import {
View,
Text,
RefreshControl,
ScrollView,
StatusBar,
Box,
Button,
Input,
InputField,
Modal,
ModalBackdrop,
ModalCloseButton,
ModalContent,
ModalHeader,
} from '@gluestack-ui/themed';
import { useAppTheme, useAppToast, useAuth, useFirebase, useImageUpload } from '../../../../hooks';
im... |
import React, { useState, useEffect } from 'react';
import { SafeAreaView, StatusBar, Text, View, Image, TouchableOpacity, PermissionsAndroid } from 'react-native';
import firestore from '@react-native-firebase/firestore';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import { launchCamera, launc... |
//
// CurrentUserProfileView.swift
// ThreadsClone
//
// Created by Isidro Chávez on 2024-05-24.
//
import SwiftUI
struct CurrentUserProfileView: View {
@StateObject var viewModel = CurrentUserProfileViewModel()
@State private var showEditProfile = false
private var currentUser: User? {
... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div class="content">
<router-link to="/home">home</router-link>
<router-link to="/news">news</router-link>
<router-view></router-view>
</div>
<template id="homePage">
<div class="">
... |
import {
Facebook,
Instagram,
Linkedin,
Mail,
MapPin,
MessageCircle,
MessageSquare,
Phone,
Twitter,
} from "lucide-react";
import Link from "next/link";
import React from "react";
import { info } from "@/constants/info";
function TopBar() {
return (
<div className="shadow-inner bg-primary-fill... |
import React, { useEffect, useState } from "react";
import Form from "./Form";
import Items from "./Items";
const App = () => {
const API_URL = "http://localhost:3004/comments/";
const [items, setItems] = useState([]);
const [error, setError] = useState(null);
const [loading, setLoading] = useState(false);
c... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.http import HttpResponse, HttpResponseRedirect
from django.core import serializers
from django.contrib.auth.forms import UserCreationForm
from django.contrib import messages
from django.contrib.auth import authenticate, login, logout
... |
# Brain Tumor Detection in Medical Images Using Object Detection Models
## Overview
Object Detection (OD) or object recognition in images is a profound aspect of Computer Vision. It refers to the ability of computer systems and software to locate objects in an image and identify each object, which can be used in vario... |
import path from 'path';
import type { UploadedFile } from 'express-fileupload';
import { v4 } from 'uuid';
import { userService, verificationService } from '../services';
export class UserController {
async registration(req: Ex.Request, res: Ex.Response<{ user: UserDto }>, next: Ex.NextFunction) {
try {
... |
package com.demo.bbq.repository.product;
import com.demo.bbq.config.properties.ServiceConfigurationProperties;
import com.demo.bbq.repository.product.wrapper.request.ProductSaveRequestWrapper;
import com.demo.bbq.repository.product.wrapper.request.ProductUpdateRequestWrapper;
import com.demo.bbq.repository.product.wra... |
import React, { useEffect, useState } from "react";
import { Col, Container, Row, Spinner } from "react-bootstrap";
import Product from "./products";
const ProductStore = () => {
const [products, setProducts] = useState([]);
const [loading, setLoading] = useState(true);
useEffect(() => {
fetch("https://dumm... |
import { useState, useEffect } from 'react'
import { useQuery, useMutation } from '@apollo/client'
import { GET_USER_INFO } from '../../../utils/graphql/queries';
import Auth from '../../../utils/auth'
import { UPDATE_INFO, UPDATE_INTERESTS } from '../../../utils/graphql/mutations';
import { useNavigate, useParams } fr... |
class Classify extends tf.layers.Layer {
constructor() {
super({});
}
computeOutputShape(inputShape) { return inputShape; }
build() {}
call(input) {
return tf.tidy(() => {
return tf.concat([
tf.sigmoid(input[0].slice([0, 0, 0, 0], [-1, -1, -1, 1])),
... |
package com.kosa.shop.domain.entity;
import com.kosa.shop.constant.Role;
import com.kosa.shop.dto.MemberFormDto;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.jetbrains.annotations.NotNull;
import org.springframework.security.crypto.password.PasswordEncoder;
import javax.persistence.*... |
package domain.car;
import java.util.List;
import domain.assembly_line.TaskType;
/**
* TruckModel is a subclass of Model that represents models of trucks.
*
* @author Thomas Vochten
*
*/
public class TruckModel extends Model {
/**
* Initialise a TruckModel with the specified name, option categories,
* de... |
package com.example.passwordmanager.validator;
import com.example.passwordmanager.exception.ExceptionMessages;
import com.example.passwordmanager.exception.RegisterException;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.List... |
<div class="wrapper">
<%= render "shared/header" %>
<div class="side-bar">
<%= render "shared/side_bar" %>
</div>
<div class="main">
<h2>Sign up</h2>
<%= form_with model: @user, url: user_registration_path, id: 'new_user', class: 'new_user', local: true do |f| %>
<%= render "devise/s... |
//
//
// Copyright 2015 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
import {
AnyAction,
createAsyncThunk,
createSlice,
PayloadAction,
} from "@reduxjs/toolkit";
import { AuthWot } from "api/actions/auth_wot";
import { Wot } from "api/actions/wot";
import { RootState } from "app/store";
import { logOutUser } from "helpers/user";
import { ClanResponseInterface } from "interfaces/... |
import React, { useState } from "react";
import { View, StyleSheet, Text, TouchableOpacity, Button } from "react-native";
import { TextInput } from "../components";
import DropDownPicker from 'react-native-dropdown-picker';
import { Formik } from 'formik';
import { db } from "../config/firebase";
import { collection, a... |
//
// AudioViewController.swift
// TersarZoe
//
// Created by Manjunath Ramesh on 22/11/20.
//
import UIKit
import SVProgressHUD
class AudioViewController: BaseViewController {
@IBOutlet weak var collectionView: UICollectionView!
var audioCategoryArray:[MainSubCategory] = []
var selectedSubCatID = 0
... |
package com.nexters.dailyphrase.member.implement.factory;
import java.util.EnumMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.nexters.dailyphrase.common.enums.SocialType;
import com.nexters.d... |
import os
import sys
import mmengine
import torch
import torch.nn as nn
from mmengine.device import get_device
from opencompass.registry import MM_MODELS
def load_package():
"""Load required packages from llama_adapter_v2_multimodal7b."""
current_file_path = os.path.abspath(__file__)
current_folder_path... |
import { Injectable } from '@angular/core';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import { IPublisher, NewPublisher } from '../publisher.model';
/**
* A partial Type with required key is used as form input.
*/
type PartialWithRequiredKeyOf<T extends { id: unknown }> = Partial<Omit<T, ... |
package com.entity.vo;
import com.entity.YishengChatEntity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java... |
<?php
namespace App\Http\Livewire\Petugas;
use App\Models\Motor as ModelsMotor;
use App\Models\Kategori;
use App\Models\Penerbit;
use App\Models\Rak;
use Livewire\Component;
use Livewire\WithPagination;
use Livewire\WithFileUploads;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Storage;
class Motor exte... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Estado, Mercado y Cultura han convertido a nuestros autores en líderes involuntarios de inofensivas endogamias. En TOKONOMA.lit no queremos... |
import solutions.*;
import java.util.*;
public class Main {
private static final Scanner scan = new Scanner(System.in);
private static final ArrayList<SolutionInterface> solutions = new ArrayList<>(
Arrays.asList(
new SolutionTask1(),
new SolutionTask2(),
... |
package br.com.fiap.InovaTechDuo.controller;
import static org.springframework.http.HttpStatus.CREATED;
import static org.springframework.http.HttpStatus.NOT_FOUND;
import static org.springframework.http.HttpStatus.NO_CONTENT;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.d... |
import Head from "next/head";
import tw from "twin.macro";
type Props = {};
import { AiOutlineArrowRight } from "react-icons/ai";
import { RxDividerVertical } from "react-icons/rx";
import { useContext } from "react";
import { AppContext } from "../utils/AppContext";
import { AppContextType } from "../types/dataTypes... |
import React from "react";
import { useParams, useHistory, Link } from "react-router-dom";
import { SingleCharacterProps, IdProps } from "../../types/CharacterType";
import * as S from "./styles";
import { Loading } from "../../pages/CharacterPage/styles";
function SingleCharacter({
character,
likedList,
likeBtn... |
import argparse
import datetime
import os
import requests
from bs4 import BeautifulSoup
from dateutil.parser import parse as parse_date
HOST = 'http://www.lunarbaboon.com'
HEADERS = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,'
'appli... |
import React, { useState } from "react";
import MyPicture from "../assets/oge2.jpg";
import S from "../styles/index.module.scss";
import {
experiences,
myProfile,
links,
frameworks,
languages,
tools,
others,
myContacts,
myProjects,
} from "../constant";
export const Home = () => {
const [active, se... |
import { CommonModule } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { Book } from './book';
import { BookFormComponent } from './book-form.component';
import { BookTableComponent } from './book-table.component';
import { BookService } from './book... |
public class QueueBO {
private static final QueueBO instance = new QueueBO();
private QueueBO(){}
public static QueueBO getInstance() {
return instance;
}
public enum QueueStatus {
CREATED,
SUCCESS,
ERROR
}
private static map<String, IProce... |
// Used by home page, a thumbnail for previewing professionals
import ProfileIcon from "components/ProfileIcon"
import React from "react"
import { useNavigate } from "react-router-dom"
import { ProfessionalUser } from "types/professional.types"
type TTalentPreview = {
talent: ProfessionalUser
}
const TalentPreview:... |
import React, { useEffect, useState } from 'react'
import { Div } from '@vkontakte/vkui'
import { Posts } from '../services/posts'
import { PostsItem } from './PostsItem'
export const PostsList = () => {
const [posts, setPosts] = useState([])
const [isLoading, setIsLoading] = useState(false)
const [isError, set... |
import { useState } from "react";
import { useSignIn } from "../hooks/useSignIn";
import { doc, updateDoc } from "firebase/firestore";
import { db } from "../firebase";
import { useAuthContext } from "../hooks/useAuthContext";
import { useNavigate } from "react-router-dom";
// styles
export function Login() {
const ... |
<!--
Nextcloud - Inventory
@author Raimund Schlüßler
@copyright 2020 Raimund Schlüßler <raimund.schluessler@mailbox.org>
@author Julius Härtl
@copyright 2020 Julius Härtl <jus@bitgrid.net>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE... |
/* SPDX-License-Identifier: GPL-3.0-or-later */
/*
This file is part of Eruption.
Eruption 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 optio... |
import { SemanticClass } from "../../lib/parser";
import { db } from "../state";
import { vscode } from "../vscode";
export class SemanticTokensProvider implements vscode.DocumentSemanticTokensProvider {
legend: vscode.SemanticTokensLegend;
keywordToken: number;
commentToken: number;
variableToken: n... |
import React from "react";
//packages
import { LoaderFunction, useLoaderData } from "react-router-dom";
import InfiniteScroll from "react-infinite-scroller";
import { isAxiosError } from "axios";
import uniqBy from "lodash/uniqBy";
// axios
import axiosInstance from "../../apis/axiosInstance";
// types
import {
GifLi... |
<script lang="ts" setup>
import { reactive, ref, watch } from "vue"
import { noteListApi, noteDeleteApi, noteInfoApi, noteTopicsApi } from "@/api/note"
import { noteListRequest } from "@/api/note/types"
import { type FormInstance, ElMessage, ElMessageBox } from "element-plus"
import { Search, Refresh, CirclePlus, Refre... |
import { DocumentType } from "@typegoose/typegoose";
import { CommandInteraction, Message } from "discord.js";
import AdminCommands from ".";
import Global, { ModulePrices } from "../../models/global";
import User from "../../models/user";
import embeds from "../../util/embed";
import { confirmator } from "../../util/q... |
IP-WATCHER(1) User Contributed Perl Documentation IP-WATCHER(1)
NNAAMMEE
ip-watcher - watch the status of an IP address and notify the user of
it's status.
SSYYNNOOPPSSIISS
ip-watcher <options> <ip-address> <email-address>
See below for more information on the... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\TaskController;
use App\Http\Controllers\CalendarController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you... |
class StopThread implements Runnable {
private boolean flag = true;
public synchronized void run() {
while(flag) {
try {
wait();
} catch (InterruptedException e) {
System.out.println(Thread.currentThread().getName() + "-Exception~!");
... |
import { useContext, useRef, useState } from 'react'
import { AuthContext } from '../../context/authContext'
import './login.scss'
import { Link, useNavigate } from 'react-router-dom'
const Login = () => {
const [state, setState] = useState({
error: "",
status: ""
})
const { login, currentU... |
import React, { useState } from "react";
import {
Paper,
Input,
Button,
FormControl,
InputLabel,
CircularProgress,
Modal,
IconButton,
} from "@mui/material";
import { Candidate } from "../../types/candidate";
import { Formik } from "formik";
import axios, { AxiosError, AxiosResponse } from "axios";
impo... |
#include <Wire.h>
#include <esp_now.h>
#include <WiFi.h>
#include "base64.hpp"
// Pin analog untuk LM35
const int lm35Pin = A0;
esp_now_peer_info_t peerInfo;
// Alamat MAC ESP-NOW penerima
uint8_t receiverMacAddress[] = { 0xc8, 0xf0, 0x9e, 0x4f, 0xe1, 0xb4};
void OnDataSent(const uint8_t *mac_addr, esp_now_send_statu... |
import static org.junit.Assert.assertEquals;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import soccerteam.Player;
import soccerteam.Position;
import soccerteam.Team;
import soccerteam.TeamImpl;
/**
* Tests fo... |
import { Injectable, OnModuleInit } from "@nestjs/common";
import { SSHConfig } from "../interfaces/ssh-config.interface";
import { app } from 'electron';
import { resolve } from "path";
import * as mkdirp from 'mkdirp';
import { readFileSync, writeFileSync } from "fs";
import { HostHelper } from "../helpers";
import {... |
import React, { lazy, Suspense, useEffect, useState } from "react";
import ReactDOM from "react-dom/client";
import Header from "./components/Header";
import Body from "./components/Body";
import About from "./components/About";
import Contact from "./components/Contact";
import { createBrowserRouter, Outlet, RouterPro... |
---
layout: protreptik
show: true
title: Protreptik
image: /images/protreptik/Protreptik.jpeg
header: 'PROTREPTIK'
description: >-
Vi har i CCC altid været optaget af Protreptikken, dvs. den filosofiske samtalekunst, der formår at få os mennesker til at komme i kontakt med det væsentlige i os selv og i det gældende f... |
/* Copyright (C) 2022 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
SPDX-License-Identifier: GPL-3.0-only
Authors: Sergey Gorbunov, Sergei Zharko [committer] */
/// \file L1SearchWindow.h
/// \brief Provides parameterisation for hits searching window in the CA tracking (header)
/// \date 08.11.2... |
import { randomBytes } from "node:crypto";
import mongoose from "mongoose";
const { ObjectId } = mongoose.Types;
import encryptPassword from "../../../../../helpers/encryptPassword.js";
import decryptPassword from "../../../../../helpers/decryptPassword.js";
import { CustomError } from "../../../../common/middlewares... |
using DG.Tweening;
using System;
using System.Collections;
using UnityEngine;
public class MoonController : MonoBehaviour
{
[Header("Options")]
public bool canMoveHorizontal = false;
[Header("Orbit")]
public Transform orbitTarget;
public float orbitRadius = 1f;
public float orbitSpeed = 2f;
... |
const config = require('./utils/config')
const express = require('express')
const bodyParser = require('body-parser')
const app = express()
const cors = require('cors')
const chaptersRouter = require('./controllers/chapters')
const partsRouter = require('./controllers/parts')
const middleware = require('./utils/middlew... |
import React from 'react';
import { Routes, Route } from 'react-router-dom';
import Home from './pages/Home';
import NavbarCustom from './components/Header/Header';
import AdminDashboard from './pages/AdminDashboard';
import CreateBook from './pages/CreateBooks';
import ShowBook from './pages/ShowBook';
import EditBook... |
// Demonstrates various String properties and methods
string value = "Hello, Nathan.";
// Get the total number of chars in the string
int length = value.Length;
Console.WriteLine($"The length of the string: {length}");
// Access a single char
char firstChar = value[0];
Console.WriteLine($"The first character: {first... |
import unittest
import time
from linkedin_scraper import ScraperController
from linkedin_scraper.scrapers.base import BaseScraperWorker
from linkedin_scraper.config import (
LINKEDIN_SCRAPER_GOOGLE_CONCURRENCY,
LINKEDIN_SCRAPER_LINKEDIN_CONCURRENCY,
)
class TestBaseScraperController(unittest.TestCase):
d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.