text
stringlengths
184
4.48M
import java.util.HashSet; import java.util.Set; // Component abstract class Component { public abstract void operation(); } // Composite class Composite extends Component { private Set<Component> children = new HashSet<>(); @Override public void operation() { System.out.println("Composite Ope...
import React from 'react'; import Grid from '@material-ui/core/Grid'; import DashboardPage from '../utils/DashboardPage'; import Section from '../utils/Section'; import { PowerSummary } from './summary'; import { TimeDomain } from '../vendor/jx/domains'; import { COMBOS, PLATFORMS, TESTS } from './config'; import { fir...
// Copyright 2015 The Crashpad Authors. All rights reserved. // // 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 ...
#!perl -w use strict; use warnings; BEGIN { use lib 't/lib'; use Handel::Test; eval 'use Catalyst 5.7001'; plan(skip_all => 'Catalyst 5.7001 not installed') if $@; eval 'use Catalyst::Devel 1.0'; plan(skip_all => 'Catalyst::Devel 1.0 not installed') if $@; eval 'use Test:...
/// <reference types="cypress" /> describe('new password page testing', () => { beforeEach(() => { cy.visit( '/new-password?hash=4788369dee152009edea24e2d2e4f4ea64be5e49069cd090603fa913ab4e3c7bd79f2dac17a6a16b0c7309ce8106847c' ); }); it('user can not update password if enter data is invalid', () =...
import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; import 'package:work_time_check/auth/firebase_auth/auth_util.dart'; import 'package:work_time_check/flutter_flow/flutter_flow_icon_button.dart'; import 'package:work_time_check/flutter_flow/flutter_flow...
/* Copyright (C) 2017 Alexandru-Valentin Musat (contact@nexuralsoftware.com) 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, co...
class UsersController < ApplicationController before_action :set_user, only: [:show, :edit, :update, :destroy] def index @users = User.all end def new @new_user = true @user = User.new end def edit if current_user.id != @user.id raise AccessDenied end end def create @us...
import React, {useCallback, useContext, useEffect, useState} from 'react' import { View, Text, SafeAreaView, StyleSheet, TouchableOpacity, ScrollView, TouchableWithoutFeedback, Alert, Animated } from "react-native"; import ScreenWrapper from "../../components/ScreenWrapper"; import c...
import React from 'react' import { Helmet } from 'react-helmet-async' const MetaHelmet = ({ title, description, image }) => { return ( <Helmet> <title>{title}</title> <meta name='description' content={description} /> <meta property="og:title" content={title}...
import React, { ReactChild } from "react"; import { FormattedMessage } from 'react-intl' import { FavouritesContainer } from "../../components/favourites"; import { ErrorContainer } from '../../components/error' import { StyledFlexColumnWrapper } from "../../components/styled/flexColumnWrapper"; import { StyledFlexWr...
import { users } from "db/schema/user"; import { eq } from "drizzle-orm"; import { db } from "~/services/db.server"; import { hashPassword } from "~/utils/password"; export type User = typeof users.$inferSelect; export type NewUser = typeof users.$inferInsert; export async function createUser( email: string, pass...
import 'package:country_flags/country_flags.dart'; import 'package:flutter/cupertino.dart'; import 'package:watchlistfy/pages/main/discover/movie_discover_list_page.dart'; import 'package:watchlistfy/pages/main/discover/tv_discover_list_page.dart'; import 'package:watchlistfy/static/constants.dart'; class PreviewCount...
import torch from flask import Flask, render_template, request, jsonify from transformers import AutoModelForSequenceClassification, AutoTokenizer from torch.nn.functional import softmax from flask import Flask, render_template, request, redirect, url_for from flask import Flask, session from flask_mysqldb import MySQL...
import { SimpleNumMap, nil } from "../../shared/util/simpleTypes.js"; const nameCache = new Map<number, string>(); /** * Mixin for the `methods` object on Vue components. Gives the component access * to a global list of EVE ID -> name mappings. * * In order to avoid data duplication, some server endpoints return ...
import { useDispatch } from "react-redux"; import { useSelector } from "react-redux"; import { register } from "../../redux/auth/auth-operations"; import { getAuth } from "../../redux/auth/auth-selectors"; import RegisterForm from "../../components/RegisterForm/RegisterForm"; import Loader from "../../components/Loade...
import pygame import random ############################################################## # 초기화 (반드시 필요) pygame.init() # 화면 크기 설정 screen_width = 480 # 가로크기 screen_height = 640 # 세로크기 screen = pygame.display.set_mode((screen_width, screen_height)) # 화면 타이틀 설정 pygame.display.set_caption("Woong Game") # FPS clock = ...
import React from 'react' import { View } from 'react-native' import { useSelector } from 'react-redux' import PropTypes from 'prop-types' import _noop from '@lodash/noop' import _prependZero from '@lodash/prependZero' import { NEW_GAME } from '@resources/stringLiterals' import Button from '@ui/molecules/Button' ...
package folders import ( "database/sql" "net/http" "net/http/httptest" "regexp" "time" "github.com/DATA-DOG/go-sqlmock" "github.com/stretchr/testify/assert" ) func (ts *TransactionSuite) TestList() { defer ts.conn.Close() tcs := []struct { Desc string ExpectedStatusCode int WithMockErr ...
(function(window) { 'use strict'; var App = window.App || {}; var $ = window.jQuery; function CheckList(selector) { if(!selector) { throw new Error('No selector provided'); } this.$element = $(selector); if(this.$element.length === 0) { throw new Error('Could not find element with...
using System.Net; using MediatR; using Tesodev.Case.Customer.Application.Commands; using Tesodev.Case.Customer.Application.Dtos; using Tesodev.Case.Customer.Application.Queries; using Tesodev.Case.Customer.Application.Utilities.Results; namespace Tesodev.Case.Customer.API.Controllers.V1; [ApiVersion("1.0")] [ApiContr...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Phaser</title> </head> <body> <script src="node_modules/phaser/dist/phaser.min.js"></script> <script> var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update }); function preload() { ...
import React, { FC, useCallback, useEffect, useState } from 'react'; import styles from './ShoppingList.module.scss'; import { IPurchase } from '../../ts/models/shopping.model'; import { testShopping } from '../../data/testShoppingData'; import ShoppingItem from './ShoppingItem/ShoppingItem'; import purchasesApi from ...
/* Laura Mills Nelson Interactive Web I December 17, 2019 CSS Style page for "About Me" website This style sheet uses a colored leaf theme. The three new CSS techniques that were not covered in class that I researched and applied were as follows: 1. Text transparency 2. The Hamburger menu icon/drop down m...
import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:teacher/domain/models/teacher_exam_model.dart'; import '../../../resources/strings_manager.dart'; import '../../../widgets/error_screen.dart'; import '../../../widgets/loading_screen.dart'; import '../../../widgets/top_bar.dart'; im...
.-----------------------------------------------------------------. | PLAYSTATION PATCH FILE VERSION 3.0 FILE-STRUCTURE FOR DEVELOPERS| '-----------------------------------------------------------------' 1. The PPF 3.0 Header: @START_PPF30HEADER .----------+--------+----------------------------------------------. | P...
require "test_helper" class Track::Trophies::ReadFiftyCommunitySolutionsTrophyTest < ActiveSupport::TestCase test "award?" do user = create :user other_user = create :user track = create :track other_track = create :track, slug: 'kotlin' trophy = create :read_fifty_community_solutions_trophy ...
import React, { Component } from "react"; import withStyles from "@material-ui/styles/withStyles"; import { Link } from "react-router-dom"; import ColorBox from "./ColorBox"; import Navbar from "./Navbar"; import PaletteFooter from "./PaletteFooter"; import SingleColorPaletteStyles from "./styles/SingleColorPaletteS...
""" Base.py Defines the Base class for all the ORM models to inherit from, so that SQLAlchemy can relate them together. """ from sqlalchemy.orm import DeclarativeBase, Session, load_only from sqlalchemy import select, Select class Base(DeclarativeBase): """ The declarative base class used by all AutoUmpire's...
<?php /** * The public-facing functionality of the plugin. * * @link http://slushman.com * @since 1.0.0 * * @package Como_Pipeline * @subpackage Como_Pipeline/public */ /** * The public-facing functionality of the plugin. * * Defines the plugin name, version, and two examples hooks for how to * enqueu...
import { DosCommandInterface } from "../js-dos-ci"; export interface GamepadConfig { buttons: string[]; keymap: {[button: string]: number}; mapArrows: boolean; stickThreshold: number; } export interface GamepadOptions { gamepads: GamepadConfig[]; scanEvery: number; scanOnTick: boolean; } ...
package chaos import ( "fmt" "math/big" "testing" "github.com/ethereum/go-ethereum/common" "github.com/onsi/gomega" "github.com/smartcontractkit/seth" "github.com/stretchr/testify/require" ctfClient "github.com/smartcontractkit/chainlink-testing-framework/client" ctf_config "github.com/smartcontractkit/chai...
package com.doyatama.university.service; import com.doyatama.university.exception.BadRequestException; import com.doyatama.university.exception.ResourceNotFoundException; import com.doyatama.university.model.*; import com.doyatama.university.model.Exam; import com.doyatama.university.payload.DefaultResponse; import co...
package com.example.lms.course.controller; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.time.LocalDate; import java.util.List; import java.util.UUID; import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springframe...
// Created by Frederic Jacobs on 16/11/14. // Copyright (c) 2014 Open Whisper Systems. All rights reserved. #import <Mantle/MTLModel+NSCoding.h> @class YapDatabaseConnection; @class YapDatabaseReadTransaction; @class YapDatabaseReadWriteTransaction; @interface TSYapDatabaseObject : MTLModel /** * Initializes a ...
import React from 'react'; import PropTypes from 'prop-types'; import { Form } from 'react-bootstrap'; function Input({ type, name, testID, onChange, labelText, value }) { return ( <div> <Form.Label className="label" htmlFor={ name }>{ labelText }</Form.Label> <Form.Control type={ type } ...
package com.hotel.reservationSystem.controllers; import com.hotel.reservationSystem.models.Category; import com.hotel.reservationSystem.services.CategoryService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; imp...
import 'package:dartz/dartz.dart'; import '../../../../core/errors/failure.dart'; import '../../../../core/params/usecase.dart'; import '../../data/models/flight_offer/flight_offer.dart'; import '../repositories/amadeus_repository.dart'; /// Flight search: users can search for flights by specifying criteria such as /...
using KsqlDb.Domain; using ksqlDB.RestApi.Client.KSql.Linq; using ksqlDB.RestApi.Client.KSql.Query.Options; using ksqlDB.RestApi.Client.KSql.RestApi; using Xunit.Abstractions; using FluentAssertions; using KsqlDb.Configuration; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; us...
const { readFile, writeFile } = require('fs'); // THIS IS ASYNCHRONOUS APPROACH which is good because // files are read in asynchronous manner, which means that the script execution // is NOT BLOCKED for the duration needed for reading the files and NodeJS can do some other tasks. // So the order of console.logs is th...
# install.packages("devtools") # devtools::install_github("phamdinhkhanh/VNDS", force = TRUE) # library(VNDS) library(tidyverse) library(httr) library(rvest) #' @param v vector can convert #' @export ############################### chung cho cac ham ############################ removeBlankCol <- function(df){ df[,...
import { BaseState } from "./BaseState"; import { GumballMachine } from "./GumballMachine"; export class NoQuarterState extends BaseState { constructor(gumballMachine: GumballMachine) { super(gumballMachine); } public override insertQuarter(): void { console.log("You inserted a quarter"); this.gumba...
(* Semantic checking for the LILY compiler *) open Libparser open Ast let preprocess (program_block: program) :program = let get_default_return (t:typ): expr = match t with Int -> LitInt(0) | Bool -> LitBool(false) | Char -> LitChar('a') | Float -> LitFloat(0.0) | List(_) -> Null | _ ->...
<?php namespace App\Notifications; use Filament\Facades\Filament; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class LoginRequest extends Notification { use Queueable; /** * Create a new notification instance. */ pu...
import unidecode import string import random import re import time import math import torch import matplotlib.pyplot as plt from torch.autograd import Variable CHUNK_LEN = 200 TRAIN_PATH = './data/dickens_train.txt' def load_dataset(path): all_characters = string.printable file = unidecode.unidecode(open(p...
import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:project22/utils/app_colors/colors.dart'; import 'package:project22/utils/app_images/app_images.dart'; import 'package:project22/utils/my_size/mysize.dart'; class CustomCheckbox extends StatelessWidget { final bool value; final V...
import { DbSaveArticle } from '@/data/usecases' import { SaveArticlesRepositorySpy } from './mock-article' import { mockArticle } from '@/tests/domain/mocks' type Sut = { saveArticlesRepositorySpy: SaveArticlesRepositorySpy sut: DbSaveArticle } const makeSut = (): Sut => { const saveArticlesRepositorySpy = new ...
<!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 rel="shortcut icon" href="../../images/logo.svg" type="image/x-icon" /> <link rel="stylesheet" href="../.....
<?php namespace App\Form; use App\Entity\User; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Component\Form\Extension\Core\Type\PasswordType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use S...
import numpy as np from scipy.stats import linregress import analysis.data_gathering import pandas as pd from sklearn.preprocessing import MinMaxScaler cities = ["Atlanta city, Georgia", "Baltimore city, Maryland", "Boston city, Massachusetts", "Charlotte city, North Carolina", "Chicago city, Illinois", "Cle...
import React from "react"; import { ComponentMeta, ComponentStory } from "@storybook/react"; import { RadioButton } from "./RadioButton"; export default { title: "RadioButton", component: RadioButton, argTypes: { variant: { control: "select", options: ["Primary", "Secondary", "Success", "Warning...
package com.pinyougou.cart.service.impl; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.transaction.annotation.Transactional; import com...
from server.src.command import Command from server.src.world import World class State(Command): def __init__(self): super().__init__('state') def execute(self, request): if self.valid_request(request): world = World.get_instance() robot = world.get_robot(request["robo...
/************************************* * Filename: Receiver.java *************************************/ import java.util.Random; import java.util.HashMap; public class Receiver extends NetworkHost { /* * Predefined Constants (static member variables): * * int MAXDATASIZE : the maximum size of th...
import { getAccessRequestListParamsAtom } from '../states'; import { useEffect } from 'react'; import useApi from 'src/modules/share/hooks/useApi'; import { AccessRequest, GetAccessRequestListParams } from '../types'; import { useRecoilValue, useResetRecoilState } from 'recoil'; type GetAccessRequestListResponse = { ...
use actix_web::{web, HttpResponse, ResponseError}; use anyhow::Context; use reqwest::StatusCode; use sqlx::PgPool; use uuid::Uuid; #[derive(serde::Deserialize)] pub struct Parameters { subscription_token: String, } #[tracing::instrument(name = "Confirm a pending subscriber", skip(pool, parameters))] pub async fn ...
# Outils de Diagnostic Réseau 🌐 ## 1. PING 🏓 - **Définition** : PING (Packet Internet Groper) est un outil de diagnostic réseau utilisé pour tester la connectivité entre deux nœuds sur un réseau. - **Utilisation** : Envoie des paquets ICMP 'echo request' à une adresse spécifique et attend des réponses. Utilisé pour ...
{% load static %} <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>{% block title %}{% endblock %}</title> <link rel="preconnect" href="https://rsms.me/"> <link rel="stylesheet" href="https://rsms.me/inter/inter.css"> <link href="{% static 'fontawesomefree/css/fontawesome.css'...
package main_test import ( "bufio" "fmt" "github.com/CameronHonis/Mila" . "github.com/onsi/ginkgo/v2" "log" "os" "strconv" "strings" "time" ) const QUIET = true const PRINT_ROOT_MOVE_NODES = false const FOCUS_TEST_IDX = -1 const MAX_DEPTH = 4 var scanner *bufio.Scanner func perft(pos *main.Position, depth ...
<?php namespace Sprockets; use SplFileInfo; use Sprockets\Exception\AssetNotFoundException; use Symfony\Component\Finder\Finder as SymfonyFinder; class Finder { protected $loadPaths; protected $typeExtensions = array( 'stylesheet' => '.css', 'javascript' => '.js' ); public function __construct($loadPaths) ...
<template> <div class="app-container adv-editor-container" v-loading="loading"> <el-container> <el-header height="40px"> <el-row :gutter="10" class="btn-row"> <el-col :span="1.5"> <el-button plain type="info" icon="el-icon-back" ...
// Copyright (C) 2019-2023 Aleo Systems Inc. // This file is part of the snarkVM library. // 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 // ...
export default class PaperDollLoader { constructor(paperDoll) { this.paperDoll = paperDoll this.scene = paperDoll.scene this.shell = paperDoll.shell this.scale = 0.7325 this.photoScale = 0.7 this.flagX = -153 this.flagY = -120 this.flagScale = 0.66 ...
import streamlit as st import pandas as pd #import openai from pathlib import Path import yagmail import google.generativeai as genai # Set your OpenAI API key here #openai.api_key = 'your_openai_api_key' genai.configure(api_key="AIzaSyDVQubOFyqyRDepOELUXwVRBMnbngkHYm8") model = genai.GenerativeModel( model_name="...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Registration</title> <title>Signature Pad</title> <link rel="stylesheet" href="css"> <?!= HtmlService.createHtmlOutputFromFile('css').getContent() ?> </head> <bod...
import express from 'express'; import { ProductStore } from '../models/product'; import { User, usersShopping } from '../models/user'; import supertest from 'supertest'; const app: express.Application = express(); const request = supertest(app); const product = new ProductStore(); const user = new usersShopping(); de...
import React, { useState,useEffect } from "react"; import FNHRecipoCard from "../../Components/FNHRecipoCard/index"; import { Grid } from "@mui/material"; import { Recipe } from "../../constants/index"; import styles from "./style.module.scss"; import FNHText from "../../Components/FNHText/index"; import { Box } from "...
import { MoviesList } from 'components/MoviesList/MoviesList'; import React, { useEffect, useState } from 'react'; import { useSearchParams } from 'react-router-dom'; import { fetchSearchingMovies } from 'services/fetchAPI'; const Movies = () => { const [searchedMovies, setSearchedMovies] = useState([]); const [se...
// // libQuicklyView // #if os(iOS) import UIKit import libQuicklyCore protocol InputToolbarViewDelegate : AnyObject { func pressed(barItem: UIBarButtonItem) } public struct QInputToolbarActionItem : IQInputToolbarItem { public var barItem: UIBarButtonItem public var callback: () -> Void...
import {Builder} from '@logi/base/ts/common/builder' import {Impl} from '@logi/base/ts/common/mapped_types' import {Node} from '@logi/src/lib/hierarchy/core' import {Filter} from './filter' /** * An internal product in the piping process in adviser. Simplify the * in all the information for provider to get candidat...
const taskInput = document.querySelector(".task-input input"), filters = document.querySelectorAll(".filters span"), clearAll = document.querySelector(".clear-btn"), taskBox = document.querySelector(".task-box"); let editId; let isEditedTask = false; let todos = JSON.parse(localStorage.getItem("todo-list")); filters...
package reversevowels func reverseVowels(s string) string { l := len(s) if l == 1 { return s } b := []byte(s) i, j := 0, l-1 for i < j { if isVowel(s[i]) && isVowel(s[j]) { b[i], b[j] = s[j], s[i] j-- i++ } if !isVowel(s[j]) { j-- continue } if !isVowel(s[i]) { i++ } } return...
<template> <v-container style="max-width: 1200px"> <h2 class="mb-4 label-title">外包廠商資料管理</h2> <v-divider class="mx-2 mt-5 mb-4" /> <v-row class="px-2 label-header"> <!-- 控制措施 --> <v-col cols="12" sm="4" md="3"> <h3 class="mb-1"> <v-icon class="mr-1 mb-1">mdi-bank</v-icon>單位...
# This script uses your bearer token to authenticate and retrieve the Usage require 'json' require 'typhoeus' # The code below sets the bearer token from your environment variables # To set environment variables on Mac OS X, run the export command below from the terminal: # export BEARER_TOKEN='YOUR-TOKEN' bearer_tok...
import {yupResolver} from '@hookform/resolvers/yup'; import {Popover, Spin} from 'antd'; import Form from 'antd/lib/form/Form'; import PropTypes from 'prop-types'; import React, {useEffect, useState} from 'react'; import {useForm} from 'react-hook-form'; import * as yup from 'yup'; import SelectField from '~/components...
import "bootstrap"; import React from "react"; import * as ReactDOM from "react-dom"; import * as BCommon from "@/bookmarks/Common"; import * as Search from "@/bookmarks/Search"; import * as Read from "@/bookmarks/Read"; import * as Write from "@/bookmarks/Write"; import * as BNative from "@/bookmarks/Native"; import {...
<div class="card-body floating-label"> @include('partials.errors') <div class="row"> <div class="col-sm-6"> <div class="row"> <div class="col-sm-6 col-sm-offset-3"> @if(isset($user) && $user->image) <img src="{{ thumbnail(200, $user...
#include <TFT_eSPI.h> // Adapted by Bodmer to work with a NodeMCU and ILI9341 or ST7735 display. // // This code currently does not "blink" the eye! // // Library used is here: // https://github.com/Bodmer/TFT_eSPI // // To do, maybe, one day: // 1. Get the eye to blink // 2. Add another screen for another eye // 3. A...
require 'test_helper' class FashionHatsControllerTest < ActionController::TestCase setup do @fashion_hat = fashion_hats(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:fashion_hats) end test "should get new" do get :new assert_respons...
<mat-form-field> <input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter"> </mat-form-field> <mat-table [dataSource]="dataSource" matSort class="mat-elevation-z8"> <!-- Name Column --> <ng-container matColumnDef="name"> <mat-header-cell *matHeaderCellDef mat-sort-header> Name ...
package com.zerozero.AndroidAppAutoTestCases; import static org.junit.Assert.*; import java.net.MalformedURLException; import java.net.URL; import java.util.List; import org.junit.After; import org.junit.Before; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.MethodSorters; import or...
package fr.galaxyoyo.spigot.nbtapi; import com.google.common.collect.Maps; import org.apache.commons.lang3.Validate; import org.bukkit.entity.Entity; import java.util.Arrays; import java.util.Map; import static fr.galaxyoyo.spigot.nbtapi.ReflectionUtils.*; public class EntityUtils { /** * Get the transformed Tag...
import React, { Component } from "react"; import { Recorder } from 'react-voice-recorder' import './css/recorder.css' import axios from 'axios'; import { getToken } from "../Authenticator"; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import Navbar from "../components/Navbar"; var spaceCheck; /**...
import React from "react"; import Header from "../components/header.jsx"; import { useState } from "react"; import axios from "axios"; import styles from "../styles/weather.module.css"; export default function Weather() { const [zipCode, setZipCode] = useState(""); const [weatherData, setWeatherData] = useState(nu...
#include <stdio.h> #include <stdlib.h> #include "main.h" /** * set_bit - Sets the value of a bit to 1 at a given index * @n: The number containing the bit * @index: The index of the bit to set * * Return: 1 if it worked, or -1 if an error occurred */ int set_bit(unsigned long int *n, unsigned int index) { /* Ch...
import config from "../config"; import { generateUTCToLimaDate } from "../helpers/generators"; import { OPERATION_TYPE } from "../models/DocumentType"; import { Setting, Module, Role, SystemUser, Category, Product, Gender, DocumentTypeDB, User, Reception, } from "../models/Entities"; import { CAT...
<template> <!-- 添加用户界面 --> <view> <view class="info-box"> <!-- 个人信息项 --> <view class="info-item" v-if="userType==='教师'"> <text class="text">入职年份:</text> <view class="inp-item"> <picker :range="yearList" :value="yi" @change="changeYear">{{yearList[yi]}} <!-- V 图标...
import React, { FC, useCallback, useEffect, useState } from "react"; import { Button, View, Text, FlatList, StyleSheet, Image, TextInput, } from "react-native"; export interface IUser { id: number; email: string; first_name: string; last_name: string; avatar: string; } export const AccountScre...
package com.gmail.bukkitSmerf.killPoints; import java.io.File; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import org.bukkit.Bukkit; import org.bukkit.entity.Player; p...
package data import ( "context" "log" "time" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo/options" ) var client *mongo.Client func New(mongo *mongo.Client) Models { client = mongo return Models{ Ima...
import { Client } from "@pepperi-addons/debug-server/dist"; import { AddonData, CodeJob, PapiClient } from "@pepperi-addons/papi-sdk"; import { CommonMethods } from "./CommonMethods"; import { PNSSubscribeHelper } from "./PNSSubscribeHelper" export class DataIndexActions{ client: Client; papiClient: PapiCli...
import { useWindowSize } from '@react-hook/window-size'; import React, { MutableRefObject } from 'react'; import TinderCard from 'react-tinder-card'; import { Translation } from '../../graphql/translation/types'; import { Direction } from '../Flashcards'; import './Flashcard.css'; interface FlashcardProps { transla...
/* This file is part of darktable, Copyright (C) 2009-2022 darktable developers. darktable 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 opti...
import axios from 'axios' import { useEffect, useState } from 'react' import { getEmployee, updateEmployee } from '../api/employee' import TextField from './TextField' type UpdateFormCardPropsType = { refreshData?: () => void id?: number } const UpdateFormCard = ({ refreshData, id: employeeId, }: UpdateFormCa...
interface RowData { fullName: string warName: string registration: string birthDate: string rg: string cpf: string placeOfBirth: string ufNatural: string civilState: string cep: string address: string number: string neighborhood: string city: string complement: string uf: string email:...
package et.com.sample.Security.Filters; import com.auth0.jwt.JWT; import com.auth0.jwt.JWTVerifier; import com.auth0.jwt.algorithms.Algorithm; import com.auth0.jwt.interfaces.DecodedJWT; import org.springframework.http.MediaType; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; i...
/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow strict-local */ import React, { useContext, useEffect, useState } from 'react'; import { Alert, StyleSheet, View } from 'react-native'; import 'react-native-gesture-handler'; import * as firestore from '../../actions/fir...
import styled from "styled-components"; export const IconSvgContainer = styled.div<{ width: string; height: string; color: string; hoverColor: string; padding: string; position: string; opacity: number; pointer: string; backgroundColor: string; zIndex: number; rotate: number; margin: string; }>...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { WaiterService } from '../../services/waiter.service' import { ActivatedRoute, Router } from '@angular/router'; import { QuestionsService } from '../../services/add.question.service' import { Subject } from 'rxjs' import { takeUntil } from 'rxjs/ope...
import React from 'react' import { withRouter } from 'react-router-dom' import { withSnackbar } from 'notistack' import { TextField, Button, Paper, Tooltip } from '@material-ui/core' import { HelpOutline } from '@material-ui/icons' import { CorporationComboBox, GeographicComboBox, KeywordComboBox, Perso...