text stringlengths 184 4.48M |
|---|
**free
// WATSONTR3R: This is a demo of Watson's Language Translator V3
// using input/output with JSON documents.
//
// Requires HTTPAPI and YAJL.
// This version uses DATA-INTO and the YAJL generator
// subprocedures.
//
ctl-opt option(*srcstmt) bnddir('HTTPAP... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { BrowserRouter } from 'react-router-dom';
import thunk from 'redux-thunk'
import { createStore, applyMiddleware } from "redux";
import { Provider } from "react-redux";
import... |
import fs from 'fs';
import path from 'path';
import util from 'util';
import mime from 'mime';
import { Client } from 'minio';
import { tempFolder } from '@config/upload';
interface ISaveOptions {
folder?: string;
overrideName?: string;
makePublic?: boolean;
}
interface IHeaders {
ContentType?: string;
'x... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* client.hpp :+: :+: :+: ... |
<?php
namespace App\Http\Controllers\Back;
use App\Http\Controllers\Controller;
use App\Models\Category;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Str;
class CategoryController extends Controller
{
public function index(){
$user = auth()... |
package by.it.group251004.kirlitsa.lesson07;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.Scanner;
/*
Задача на программирование: расстояние Левенштейна
https://ru.wikipedia.org/wiki/Расстояние_Левенштейна
http://planetcalc.ru/1721/
Дано:
... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
import React from "react";
import ReactECharts from "echarts-for-react";
export default function Pointxy(props) {
// 假设有两组数据分别是 data1 和 data2
const data1 = props.data_xy.before_data; // 第一组数据的坐标点 props.before_data
const data2 = props.data_xy.result_data; // 第二组数据的坐标点
//类别名 props.resourceFormat
cons... |
package com.fanji.android.thread.ruler
import com.fanji.android.thread.RulerCounter
import com.fanji.android.thread.RulerLifecycleManager
/**
* > 用于编译插件替换 Kotlin 实现,请勿直接使用
*
* Creates a thread that runs the specified [block] of code.
*
* @param start if `true`, the thread is immediately started.
* @param isDae... |
#include <Arduino.h>
#include <U8g2lib.h>
#ifdef U8X8_HAVE_HW_SPI
#include <SPI.h>
#endif
#ifdef U8X8_HAVE_HW_I2C
#include <Wire.h>
#endif
#define DEG_TO_RAD 0.017453292519943295769236907684886
U8G2_SSD1306_128X64_NONAME_2_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
float angle(float angle_deg) {
float value ... |
import { SortOrder } from "components/Table/type";
import { useCallback, useState } from "react";
export interface FilterState {
term: string
gender: "male" | "female" | ""
sortOrder: SortOrder
sortBy: string
page: number
}
/**
* hooks to handle filter state,
* use for updating and resetting filter state
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// SPDX-License-Identifier: MIT
// Publisher Callback Service definition
//
// The prototype definitions for a Publisher utilizing the Pub Sub Service.
syntax = "proto3";
package publisher;
// The service that a publisher implements to provid... |
import cv2
import numpy as np
from sort.tracker import SortTracker
import math
import multiprocessing
import time
def count_ppl(duration):
speeds = []
counts = []
# Load YOLO
net = cv2.dnn.readNet('./models/yolov3.weights', './models/yolov3.cfg')
layer_names = net.getLayerNames()
output_laye... |
/*
* Copyright (C) 2019 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... |
<?php
/**
* Functions for registering and setting theme widgets. This file loads an abstract class to help
* build widgets, and loads individual widget classes for building widgets into the backend and
* loading their template for displaying in frontend
*
* 'init' hook is too late to load widgets since 'widgets_in... |
import React, { useState, useEffect } from "react";
import { nanoid } from "nanoid";
import ContactsList from './contact/ContactsList';
import Filter from './filter/Filter';
import Form from './form/Form';
import { Container } from './App.styled'
const App = () => {
const [contacts, setContacts] = useState([
{ i... |
import { Signal, WritableSignal, computed, signal } from '@angular/core';
export class SignalStore<T> {
readonly state: WritableSignal<T>;
// readonly state = signal({} as T);
// constructor() {}
constructor(initialState: T) {
this.state = signal(initialState);
}
/**
* Returns a reactive value fo... |
/*
* Mavuno: A Hadoop-Based Text Mining Toolkit
*
* 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... |
//
// KeyboardReactable.swift
// JustBoard
//
// Created by JinwooLee on 5/23/24.
//
import UIKit
import RxCocoa
import RxSwift
// 키보드의 등장에 반응하여 ScrollView UI 변화
protocol KeyboardReactable: AnyObject {
var scrollView: UIScrollView! { get set }
var loadBag: DisposeBag { get set }
}
extension KeyboardReactable ... |
import { useState, useEffect, useCallback } from 'react';
const fetchCurrentWeather = (locationName) => {
return fetch(
`https://opendata.cwb.gov.tw/api/v1/rest/datastore/O-A0003-001?Authorization=CWB-5DE01DD1-3DCA-4AFF-85A7-6D78002F1B20&locationName=${locationName}`
)
.then((response) => respo... |
import 'package:flutter/animation.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main(){
runApp(MaterialApp(home: SimpleAnimation(),));
}
class SimpleAnimation extends StatefulWidget {
const SimpleAnimation({super.key});
@override
State<SimpleAnimation> createSta... |
#include <stdio.h>
#include <stdlib.h>
/* Uso do algoritmo Union Find para detectar os ciclos.
https://en.wikipedia.org/wiki/Disjoint-set_data_structure*/
int findParent(int parent[], int component)
{
if (parent[component] == component)
return component;
return parent[component]
... |
From: sergio.d.lerner@gmail.com (Sergio Demian Lerner)
Date: Fri, 7 Apr 2017 17:52:17 -0300
Subject: [bitcoin-dev] BIP Proposal: Inhibiting a covert optimization on the
Bitcoin POW function
Message-ID: <CAKzdR-rzb6oBq01DQM530pdgNUjzc79yjtYp_HAyF5GZpBPnFw@mail.gmail.com>
<pre>
BIP: TBD
Layer: Consensus
Title: In... |
import React, { Component } from 'react';
import styled, { ThemeProvider } from 'styled-components';
import { Game } from '../components/Game';
import { mapKeyCodeToDirection } from '../constants/directions';
import { gameInit } from '../controller/gameInit';
import { move } from '../controller/move';
import { GameSet... |
import React from 'react';
import '../styles/App.scss';
import Header from './Header';
import GoodList from './GoodList';
import Footer from './Footer';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import GoodDetails from './GoodDetails';
class App extends React.Component {
render() {
retur... |
import 'package:flutter/material.dart';
const Color primaryColor = Color(0xFF497DF9);
const Color secondaryColor = Color(0xFF497DF9);
//
const Color a1 = Color(0xFF252531);
const Color textcolor = Color(0xFFffffff);
const Color background_color = Color(0xFF252531);
const Color tab_color = Color(0xFFffffff);
const Colo... |
def countPerfectSubarrays(nums):
from collections import defaultdict
nums_count = defaultdict(int) # 用于存储数组中每个元素的数量
window_count = defaultdict(int) # 用于存储窗口中每个元素的数量
for num in nums:
nums_count[num] += 1
perfect_count = 0 # 完全子数组的数量
left, right = 0, 0 # 定义滑动窗口的左右边界
w... |
'VB.Net -Exception Handling
'An exception Is a problem that arises during the execution Of a program. An exception Is a response To an exceptional circumstance that arises While a program Is running, such As an attempt To divide by zero.
'Exceptions provide a way To transfer control from one part Of a program To an... |
/*
|--------------------------------------------------------------------------
| Routes file
|--------------------------------------------------------------------------
|
| The routes file is used for defining the HTTP routes.
|
*/
import UserController from '#controllers/user.controller'
import router from '@adonisjs... |
package com.task_management_system.Repository.DAO;
import com.task_management_system.Entity.Member;
import com.task_management_system.Repository.AsMemberRepository;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Repository;
import javax.sql.DataSour... |
@extends('layouts.front')
@section('content')
<div class="card w-100 shadow-sm border-0">
<div class="card-body bg-success">
<div class="d-flex align-items-center justify-content-center">
@include('templates.navbar')
</div>
</div>
</div>
<article cla... |
import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
import { Title } from '@angular/platform-browser';
import { ErrorHandlerService } from '../../core/services/errorHandler.service';
import { co... |
use crate::data::{NowPlaying, ResponseType};
use crate::{Client, SubsonicError};
impl Client {
/// reference: http://www.subsonic.org/pages/api.jsp#getNowPlaying
pub async fn get_now_playing(&self) -> Result<NowPlaying, SubsonicError> {
let body = self.request("getNowPlaying", None, None).await?;
... |
import {
Directive,
HostListener,
Output,
Input,
EventEmitter,
ElementRef
} from "@angular/core";
@Directive({
selector: "[paginationOverflowDetect]"
})
export class PaginationOverflowDirective
{
@Output() public overflowing = new EventEmitter<Event>();
@Output() public notOverflowing = new EventEmit... |
import React, { ReactNode, MouseEvent, SyntheticEvent, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Button } from '@digdir/design-system-react';
import {
MenuElipsisVerticalIcon,
ArrowUpIcon,
ArrowDownIcon,
PencilIcon,
TrashIcon,
} from '@navikt/aksel-icons';
import { Alti... |
import React, { useEffect, useState } from "react";
import Autocomplete from "@mui/material/Autocomplete";
import { getAvailableListings } from "../database/listing";
import TextField from "@mui/material/TextField";
import Stack from "@mui/material/Stack";
import filter from 'lodash/filter';
import { getHost } from '..... |
# Load necessary modules
Import-Module Microsoft.Online.SharePoint.PowerShell -Force
Import-Module Microsoft.Graph -Force
# Prompt for tenant domain name and credentials
$TenantDomain = Read-Host -Prompt "Enter your tenant domain (e.g., 'yourtenant' for 'yourtenant-admin.sharepoint.com')"
$AdminSiteURL = "https://$Ten... |
import { BOARD_COLUMNS, BOARD_ROWS, CENTRAL_CASE_POSITION, INVALID_INDEX, PLAYER_AI_INDEX } from '@app/classes/constants';
import { CustomRange } from '@app/classes/range';
import { BoardPattern, Orientation, PatternInfo, PossibleWords } from '@app/classes/scrabble-board-pattern';
import { PlayerAIService } from '@app/... |
package co.edu.uniquindio.proyectoAvanzada.Controladores;
import co.edu.uniquindio.proyectoAvanzada.dto.*;
import co.edu.uniquindio.proyectoAvanzada.modelo.enums.Especialidad;
import co.edu.uniquindio.proyectoAvanzada.modelo.servicios.interfaces.MedicoServicios;
import co.edu.uniquindio.proyectoAvanzada.modelo.servici... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registration Form</title>
</head>
<body>
<h1>Registration Form</h1>
<form>
<div>
<label>F... |
package com.enaboapps.switchify.service.menu
import com.enaboapps.switchify.service.SwitchifyAccessibilityService
import com.enaboapps.switchify.service.menu.menus.edit.EditMenu
import com.enaboapps.switchify.service.menu.menus.gestures.GesturesMenu
import com.enaboapps.switchify.service.menu.menus.gestures.SwipeGestu... |
#include "opencv2/opencv.hpp"
#include "fstream"
int main()
{
const char* input = "/home/dinhnambkhn/3dv_tutorial/bin/data/chessboard.avi";
cv::Size board_pattern(10, 7);
float board_cellsize = 0.025f;
bool select_images = true;
bool no_selection = true;
// Open a video
cv::VideoCapture v... |
library(tidyverse)
library(ggtext)
fallecimientos_ss <- readRDS("01_Datos/datos_ssalud_fallecimientos.rds")
fallecimientos_ss %>%
mutate(grupo_edad = case_when(between(EDAD, 0, 0) ~ "0 años",
between(EDAD, 1, 10) ~ "1 a 10 años",
between(EDAD, 11, 18) ... |
# ts-rest-hono
<p align="center">🔥 A <a href="https://hono.dev/">hono</a> adapter for <a href="https://www.ts-rest.com">ts-rest 🔥</a></p>
<p align="center">
<a href="https://www.ts-rest.com">
<img src="https://avatars.githubusercontent.com/u/109956939?s=400&u=8bf67b1281da46d64eab85f48255cd1892bf0885&v=4" heig... |
# Flexbox
## 使用 Flex 布局执行哪些操作?
* 表格可以显示为行或列。
* 并遵循文档的写入模式。
* 默认情况下,它们是单行,但也可以要求换行。
* 可以在视觉上对布局中的各个项进行重新排序,使其脱离它们在 DOM 中的顺序。
* 空间可以在项内分布,因此它们会根据父级中的可用空间变大或变小。
* 您可以使用 Box Alignment 属性在封装布局中的项和 Flex 线条周围分配空间。
* 项目本身可以在横轴上对齐。
## 主轴和交叉轴
主轴是您的 flex-direction 属性设置的轴。如果值为 row,则主轴沿行,如果为 column,则主轴沿列。
* row:各项内容以行的形式排列。
* r... |
import express, {Request, Response, response} from 'express';
import jwt from 'jsonwebtoken';
import {body} from 'express-validator';
import {User} from '../models/user';
import { BadRequestError } from '../errors/bad-request-error';
import { validateRequest } from '../middlewares/validate-request';
const router = exp... |
# Summary (B2)
library(dplyr)
library(tidyverse)
populationData <- read.csv("https://raw.githubusercontent.com/info201a-au2022/project-group-1-section-ah/main/data/populationDataset.csv")
View(populationData)
summary_info <- list()
# number of countries
summary_info$num_countries <- length(unique(populationData$Cou... |
import { NodeTypes } from './ast'
const interpolationOpenDelimiter = '{{'
const interpolationCloseDelimiter = '}}'
const ElementCloseDelimiter = '<'
const enum TagType {
Start,
End,
}
export const baseParse = (content: string) => {
const context = createparserContent(content)
// 初始化的时候 标签数组 传递一个 []
return c... |
package item09;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* Created by 殷鑫 on 2017/2/6.
*/
public final class PhoneNumber {
private final short areaCode;
private final short prefix;
private final short lineNumber;
public PhoneNumber(int areaCode, int prefix, int line... |
public struct MovieListResponse: Codable {
enum CodingKeys: String, CodingKey {
case movies = "results"
}
public let movies: [Movie]
}
extension MovieListResponse {
public struct Movie: Codable {
enum CodingKeys: String, CodingKey {
case adult
... |
import { lazy } from 'react';
import { Route, Routes } from 'react-router-dom';
import { SharedLayout } from './components/SharedLayout/SharedLayout';
import { useSelector } from 'react-redux';
import { getIsLoggedIn } from './redux/auth/authSelectors';
const Products = lazy(() => import('./pages/Products'));
const Ca... |
<!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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... |
Database SQL – VIEW
จาการใช้งาน SQL Select statement จะเห็นว่า
ในบางครั้งเรามักจะมี Select statement ที่ต้องใช้งานประจำ
เพื่อดึงข้อมูลออกมาในรูปแบบที่ต้องการ เราสามารถใช้
SQL View นี้ช่วยได้ โดย SQL VIEW จะทำการเก็บรูปแบบการ
query หรือ SQL Select statement ที่เราตั้งไว้ใน SQL VIEW
ซึ่งสามารถทำได้ตั้งแต่ query ข้อมู... |
// @DFS for connected components
import java.util.*;
public class connectedComponentsDfs {
static class Edge {
int source;
int destination;
int weight;
public Edge(int s, int d, int w) {
this.source = s;
this.destination = d;
this.weight = w;
... |
import NavBar from "./components/shared/NavBar/NavBar";
import AppRoutes from "./utils/routes";
import { useEffect, useState } from "react";
import { PcConfiguration, Toast } from "./utils/models";
import axios from "axios";
import { Footer } from "./components/shared/Footer";
function App() {
let [pcConfiguration, s... |
<mat-tree [dataSource]="dataSource" [treeControl]="treeControl">
<mat-tree-node *matTreeNodeDef="let node;" matTreeNodeToggle matTreeNodePadding (mouseover)="onMouseHover(node)"
(mouseout)="onMouseOut(node)">
<div class="chkbox_block">
<mat-checkbox class="checklist-leaf-node" [checked]="checklistSelect... |
{% extends 'base.html.twig' %}
{% block title %}{{ 'navbar.home'|trans }}{% endblock %}
{% block body %}
<!-- Hero Section Begin -->
<section class="hero">
<div class="hero__slider owl-carousel">
<div class="hero__items set-bg" data-setbg="img/hero/hero-1.jpg">
<div class=... |
// This header has all the (extern) declarations of the globals.
// "extern" means "this is instantiated somewhere, but here's what the name
// means.
#include "globals.h"
#include "hardware.h"
// We need to actually instantiate all of the globals (i.e. declare them once
// without the extern keyword). That's what th... |
using System;
using System.Collections.Generic;
using System.Linq;
using AutoFixture;
using FluentAssertions;
using FluentValidation;
using LooseFunds.Shared.Platforms.Kraken.Models.Common;
using LooseFunds.Shared.Platforms.Kraken.Models.Requests;
using LooseFunds.Shared.Platforms.Kraken.Models.Requests.Validators;
usi... |
<template>
<el-dialog
v-model="visible"
:title="`${paramsProps.title}`"
:destroy-on-close="true"
width="580px"
draggable
append-to-body
>
<el-form
ref="ruleFormRef"
label-width="100px"
label-suffix=" :"
:rules="rules"
:model="paramsProps.row"
@submit.e... |
<div class="row">
<div class="col-sm-12">
<div class="card form-card">
<div class="card-header">
<div class="d-flex align-items-center justify-content-between">
<span>Jobs Posted</span>
<button mat-stroked-button class="btn-main" (click)="o... |
//go:build integration
/*
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
Copyright (C) ITsysCOM GmbH
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 o... |
/* $Id: blast_seqalign.hpp 140187 2008-09-15 16:35:34Z camacho $
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under the
* terms of the United States Copyright Act. It was written as... |
/*
* Copyright (C) 2018 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... |
package avro
import (
"testing"
"github.com/matryer/is"
)
func TestRecord_Type(t *testing.T) {
is := is.New(t)
r := Record{}
is.Equal(r.Type(), "record") // record type is "record"
}
func TestRecord_Valid(t *testing.T) {
is := is.New(t)
r := Record{}
is.True(r.Valid() != nil) // nameless record should be ... |
import './Header.css';
/* import { useState } from 'react'; */
import logo from '../../images/LOGO1.svg'
import SearchForm from '../SearchForm/SearchForm';
import { Link, useNavigate } from 'react-router-dom';
import Navigation from '../Navigation/Navigation';
export default function Header({ width, pathname, cart, fa... |
import { DataSource, Entity, EntityCallbacks, FireCMSContext, SaveEntityProps, User } from "../../types";
/**
* @category Hooks and utilities
*/
export type SaveEntityWithCallbacksProps<M extends Record<string, any>> = SaveEntityProps<M> & {
callbacks?: EntityCallbacks<M>;
onSaveSuccess?: (updatedEntity: Enti... |
package br.com.gile.leilao.service;
import br.com.gile.leilao.dao.LeilaoDao;
import br.com.gile.leilao.model.Lance;
import br.com.gile.leilao.model.Leilao;
import br.com.gile.leilao.model.Usuario;
import org.junit.Assert;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mo... |
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
import { Chart } from '@antv/g2';
import { Random } from 'mockjs';
import { NzSafeAny } from 'ng-zorro-antd/core/types';
import { NzMessageService } from 'ng-zorro-antd/message';
import { Websoc... |
package com.mdt.LeetCode.Easy;
/**
* Easy
* <p>
* You are given an integer array cost where cost[i] is the cost of ith step on a staircase. Once you pay the cost, you can either climb one or two steps.
* <p>
* You can either start from the step with index 0, or the step with index 1.
* <p>
* Return the minimum ... |
import {
Count,
CountSchema,
Filter,
FilterExcludingWhere,
repository,
Where,
} from '@loopback/repository';
import {
post,
param,
get,
getModelSchemaRef,
patch,
put,
del,
requestBody,
response,
} from '@loopback/rest';
import {TipoOferta} from '../models';
import {TipoOfertaRepository} fr... |
# 您应该理解的基本 JavaScript 概念
> 原文:<https://javascript.plainenglish.io/the-essential-javascript-concepts-that-you-should-understand-ff2b8546c868?source=collection_archive---------8----------------------->
## 为了成功发展和通过工作面试

作为任何级别的 JavaScript 开发人员,您都需要理解它的基本概念和一些帮助我们开发代码的新想法。在... |
/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil c-basic-offset: 3 -*- */
// vim:cindent:ts=3:sw=3:et:tw=80:sta:
/***************************************************************** phui-cpr beg
*
* phui - flexible user interface subsystem
* phui is (C) Copyright 2002 by
* Chad Austin, Josh Carlson, Johnath... |
import React, { useContext, useEffect, useState } from "react"
import Page from "./Page"
import Axios from "axios"
import { Link, useNavigate, useParams } from "react-router-dom"
import StateContext from "../../StateContext"
import DispatchContext from "../../DispatchContext"
import { useImmerReducer } from "use-immer"... |
import assert from 'node:assert'
export class HTTPError<T = number> extends Error {
errno?: T
status: number
constructor(message?: string, errno?: T, status?: number) {
super(message ?? 'HTTP Error')
this.name = 'HTTPError'
this.status = status ?? 500
this.errno = errno
}
}
export class Clien... |
package sv.edu.udb.form;
import javax.swing.*;
import sv.edu.udb.beans.AbonoBeans;
import sv.edu.udb.datos.AbonoDatos;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;
public class Abono extends JFrame{
private JPanel abonoPanel;
private JRadioButton $500RadioB... |
"use strict";Object.defineProperty(exports, "__esModule", { value: true });var _createClass = function () {function defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in desc... |
<template>
<div id="city-list-wrapper">
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="#">
Home
</a>
</li>
<li class="breadcrumb-item activ... |
import { Link, NavLink } from "@remix-run/react";
type PaginationProps = {
totalCount: number;
pageName1: string;
pageName2?: string;
currentNumber?: number;
};
export const Pagination = ({ totalCount, currentNumber, pageName1 }: PaginationProps) => {
const PER_PAGE = 5;
const LAST_PAGE = Math.ceil(totalC... |
function [tc, dt] = event_fitted_fir(D, e_spec, bin_length, bin_no, opts)
% method to compute fitted event time courses using FIR
% FORMAT [tc, dt] = event_fitted_fir(D, e_spec, bin_length, bin_no, opts)
%
% (defaults are in [])
% D - design
% e_spec - 2 by N array specifying events to combine
% ... |
#pragma once
#include "Geometry/Vector3.h"
class Filter {
public:
// Filter Interface
virtual ~Filter() {}
Filter(const Vector2f& radius)
: radius(radius), invRadius(Vector2f(1 / radius.x(), 1 / radius.y())) {}
virtual Float Evaluate(const Point2f& p) const = 0;
// Filter Public Data
const Vector2f radius, in... |
---
title: "Your Favorite Movies: Analysis 1"
subtitle: "An Example for 431 Project A"
author: "Thomas E. Love, Ph.D."
date: last-modified
format:
html:
toc: true
number-sections: true
date-format: iso
embed-resources: true
code-overflow: wrap
theme: materia
---
# R Packages
```{r}
#| messa... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package it.refill.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.io.Serializable;
import java.util.... |
import React from 'react'
export interface UseLinkProps extends React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
bypass?: boolean;
component?: React.ReactElement | React.ReactNode | any;
componentProps?: any;
}
export function useLink({
bypass = false,
component: C... |
from flask.cli import AppGroup
from .users import seed_users, undo_users
from .restaurants import seed_restaurants, undo_restaurants
from .reviews import seed_reviews,undo_reviews
# Creates a seed group to hold our commands
# So we can type `flask seed --help`
seed_commands = AppGroup('seed')
# Creates the `flask se... |
% $Header$
\documentclass[t,14pt,mathserif]{beamer}
% This file is a solution template for:
% - Talk at a conference/colloquium.
% - Talk length is about 20min.
% - Style is ornate.
% Copyright 2004 by Till Tantau <tantau@users.sourceforge.net>.
%
% In principle, this file can be redistributed and/or modified und... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<script src="https://unpkg.com/vuex@2.0.0"></script>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/css/bootstrap.min.css"
... |
import { Box, Stack, Typography } from '@mui/material'
import React from 'react'
import { motion } from 'framer-motion'
import ChevronsDown from '../../../../public/vectors/chevrons-down.svg'
import { scrollToTarget } from '../../../helpers/scrollToTarget'
import { SlideFromLeftAppearMotion } from '../../common/motion/... |
import { Controller, Get } from '@nestjs/common';
import { DataService } from './data.service';
import { AuthService } from "../auth/auth.service";
import {AuthenticatedUser, Roles, Public, Resource, Scopes} from 'nest-keycloak-connect';
@Controller('data')
@Resource('data')
export class DataController {
constructo... |
import React, { useState, useEffect } from "react";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import NavbarFluid from "./components/NavbarFluid/NavbarFluid";
import Navbar from "./components/Navbar/Navbar";
import content from "./lang/lang";
import Envelope from "./components/Envelope/Envelope";
... |
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.eShopWeb.ApplicationCore.Constants;
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
using Micro... |
// Copyright 2023 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_DEVICES_POWER_DRIVERS_FUSB302_TYPEC_PORT_STATE_MACHINE_H_
#define SRC_DEVICES_POWER_DRIVERS_FUSB302_TYPEC_PORT_STATE_MACHINE_H_
#include <lib/... |
import Foundation
protocol APIManagerProtocol {
func perform(_ request: RequestProtocol, authToken: String) async throws -> Data
}
class APIManager: APIManagerProtocol {
private let urlSession: URLSession
init(urlSession: URLSession = URLSession.shared) {
self.urlSession = urlSession
}
... |
/*
See the LICENSE.txt file for this sample’s licensing information.
Abstract:
The supply gauge.
*/
import SwiftUI
import BackyardBirdsData
public struct BackyardSupplyGauge: View {
var backyard: Backyard
var supplies: BackyardSupplies
@Environment(\.layoutDirection) private var originalLayoutDirect... |
import { Connection } from "typeorm";
import createConnection from "../../../../database";
import request from "supertest";
import { app } from "../../../../app";
import { v4 as uuidV4 } from "uuid";
import { hash } from "bcryptjs";
import { response } from "express";
let connection: Connection;
describe("Show user p... |
// Copyright 2021 ByteDance Inc.
//
// 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 agreed to ... |
from behave import *
from webdriver_manager.chrome import ChromeDriverManager
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support... |
using AutoFixture;
using FluentAssertions;
using Newtonsoft.Json;
using Xunit;
#if DECIMAL
namespace DecimalQuantitativeWorld.Text.Json.Tests
{
using DecimalQuantitativeWorld.TestAbstractions;
using number = System.Decimal;
#else
namespace QuantitativeWorld.Text.Json.Tests
{
using QuantitativeWorld.TestAb... |
import { Dispatch } from "react"
import Button from "./Button"
type SuccessMessageProps = {
setFormSuccess: Dispatch<boolean>
setEmail: Dispatch<string>
setError: Dispatch<string>
email: string
}
const SuccessMessage = ({
email,
setEmail,
setError,
setFormSuccess,
}: SuccessMessageProps) => {
const ... |
import React, { useState } from 'react';
import axios from 'axios';
import 'react-quill/dist/quill.snow.css';
import { Input } from 'antd';
import QuillEditor from '../components/QuillEditor';
const AddDestination = () => {
const [destinationName, setDestinationName] = useState("");
const [destinationLocation,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.