text stringlengths 184 4.48M |
|---|
#pragma once
#include "action.h"
#include "controls.h"
#include "state.h"
class Pick : public Action
{
State * state;
public:
Pick(State &state)
{
this->state = &state;
}
void call()
{
if(state->menuIndex == 0)
{
state->isOnMainMenu = false;
}
else if(state->menuIndex == 1)... |
<div class="mod-list-market">
<div class="m-button">
<button nz-button nzType="primary" (click)="showAddModal()" *ngIf="authService.getPermissions().includes('market:create')">
<i nz-icon nzType="plus" nzTheme="outline"></i>
<span>Add market</span>
</button>
</div>
<nz-table
#rowSelection... |
return {
"hrsh7th/nvim-cmp",
lazy = true,
event = "InsertEnter",
dependencies = {
{ "lukas-reineke/cmp-under-comparator" },
{ "andersevenrud/cmp-tmux" },
{ "f3fora/cmp-spell" },
{ "kdheepak/cmp-latex-symbols" },
},
opts = function(_, opts)
local icons = {
kind = require("user.icons").get("kind"),
... |
import { InputAdornment, Box, Button, TextField } from "@mui/material";
import SearchIcon from "@mui/icons-material/Search";
import ReactPaginate from "react-paginate";
import SectionHeading from "../Components/SectionHeading/SectionHeading";
import cashierImg from "../../assets/Cashier.png";
import { CartsType, Catego... |
// Copyright 2017 The Nomulus 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 a... |
{
// Only Number만 가능
function checkNotNullBad(arg: number | null): number {
if(arg == null){
throw new Error('not valid number!')
}
return arg;
}
// 타입 보장 X
function checkNotNullAnyBad(arg: any | null): any {
if(arg == null){
throw new Error('... |
// move_semantics5.rs
// Make me compile only by reordering the lines in `main()`, but without
// adding, changing or removing any of them.
// Execute `rustlings hint move_semantics5` for hints :)
fn main() {
//Rajout des commentaires pour comprendre le cheminement.
// L'opérateur * permet de pointer vers une... |
import { MessagesRepository } from '../../domain/MessagesRepository';
import Message from '../../domain/Message';
import { Client, LocalAuth } from 'whatsapp-web.js';
import qrcode from 'qrcode-terminal';
import { EventBus } from '../../../Shared/domain/EventBus';
import { WhatsappMessageReceivedDomainEvent } from '..... |
package project.persistence.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import project.persistence.entities.Cabinet;
import java.util.List;
import java.util.Optional;
/**
* By exte... |
import pandas as pd
from sklearn.preprocessing import LabelEncoder, StandardScaler
from sklearn.metrics import accuracy_score
from sklearn.naive_bayes import GaussianNB
from sklearn.linear_model import LogisticRegression
from sklearn.neighbors import KNeighborsClassifier
from sklearn.svm import SVC
from sklearn.model_s... |
//===- HWLegalizeModulesPass.cpp - Lower unsupported IR features away -----===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// Import the employee service
const employeeService = require("../services/employee.service");
// Create the add employee controller
async function createEmployee(req, res, next) {
// Check if employee email already exists in the database
const employeeExists = await employeeService.checkIfEmployeeExists(
req.body... |
/*
SINTESIS FM:
Historia:
La síntesis FM fue desarrollada e introducida por John Chowning en los años 60 y 70 en el Instituto de Investigación de Música Computacional de la Universidad de Stanford. Posteriormente, esta técnica fue popularizada por Yamaha con su icónico sintetizador DX7 en 1983. Desde entonces, la sínte... |
import React, {useContext, forwardRef} from 'react';
import {makeStyles, Theme, createStyles} from '@material-ui/core/styles';
import {useFormik} from 'formik';
import * as yup from 'yup';
import Button from '@material-ui/core/Button';
import IconButton from '@material-ui/core/IconButton';
import TextField from '@mater... |
// Capturo el div contenedor y traigo las notas del localStorage
const contenedor = document.querySelector('.contenedor');
const notes = JSON.parse(localStorage.getItem('notes'))
// Si existen las notas, creo el html para agregarlas con el formato correspondiente
if (notes) {
for (let i = 0; i < notes.length; i++) ... |
<template>
<div class="navbar">
<hamburger
:is-active="sidebar.opened"
class="hamburger-container"
@toggleClick="toggleSideBar"
/>
<breadcrumb class="breadcrumb-container" />
<div class="right-menu">
<el-dropdown class="avatar-container" trigger="click">
<div class="a... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { PlagaEnfermedadService } from 'src/app/services/plaga-enfermedad.service';
@Component({
selector: 'app-plaga-enfermedad',
templateUrl: './plaga-enfermedad.component.html',
styleUrls: [... |
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.android_webview.test;
import android.graphics.Bitmap;
import android.graphics.Picture;
import android.net.http.SslError;
import andr... |
from dash import html, callback, Output, Input, dcc, register_page
import pandas as pd
import pathlib
import os
import plotly.express as px
import plotly.graph_objs as go
# Registering page
register_page(__name__, path='/')
# Incorporating data
data_dir = pathlib.Path("data")
data = {}
dropdown_options = []
for file... |
; Name: Vansh Nagpal
; Email: vnagp002@ucr.edu
;
; Lab: lab 5, ex 3
; Lab section: 022
; TA: Karan Bhogal, Cody Kurpanek
;
.orig x3000
; Initialize the stack. Don't worry about what that means for now.
ld r6, top_stack_addr ; DO NOT MODIFY, AND DON'T USE R6, OTHER THAN FOR BACKUP/RESTORE
lea r1, array
ld r4, sub_... |
import abc
from abc import ABC
import numpy as np
import scipy
import torch
from torch import nn
from data_utils.data_corruption.corruption_type import CorruptionType
from data_utils.data_corruption.covariates_dimension_reducer import WeightedZReducer
from data_utils.data_corruption.data_corruption_masker import Data... |
package config
import (
"context"
"github.com/getCompassUtils/go_base_frame/api/system/log"
"go_company_cache/api/includes/type/db/company_data"
)
// GetList получаем информацию о нескольких записях конфига из кэша
func (store *Storage) GetList(ctx context.Context, companyDataConn *company_data.DbConn, keyList []s... |
import { Directive, ElementRef, HostListener, Input } from '@angular/core';
@Directive({
selector: 'input[max-length],textarea[max-length]',
host: {
'(input)': '$event',
},
})
export class MaxLengthDirective {
lastValue: string;
@Input('max-length') maxLenght: number = null;
constructor(public ref: El... |
package com.yh.devicehelper.activities.main_activity.recycles_views
import android.graphics.Rect
import android.view.DragEvent
import android.view.View
import android.view.View.OnDragListener
import android.widget.Toast
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerV... |
import java.util.Random;
class lab9{
// Student: Oscar Ricaud, Professor: Julio Urenda, TA: Saif
// Lab9 Info:
// In the main method of lab9.java it creates the values for n
// for example it does a for loop of, 100,200,300,400
// While it does this it calls 2 methods the, HeapSortMagic
// and the BinarySearc... |
/*****************************************************************************
*
* This file is part of NCrystal (see https://mctools.github.io/ncrystal/)
*
* Copyright 2015-2022 NCrystal developers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance ... |
package com.ixigo.sdk.payment.gpay
import android.app.Activity
import com.google.android.apps.nbu.paisa.inapp.client.api.PaymentsClient
import com.google.android.apps.nbu.paisa.inapp.client.api.Wallet
import com.ixigo.sdk.payment.data.GpayPaymentInput
import org.json.JSONArray
import org.json.JSONException
import org.... |
import React, { ChangeEvent, FC, InputHTMLAttributes, memo, useEffect, useRef } from 'react';
import { classNames } from '@/shared/lib/classNames/classNames';
import style from './Input.module.scss';
type InputExtends = Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value' | 'readOnly'>;
type InputTheme =... |
Play Codenames with Glove
This repository implements a simple single-player version of the codenames game
by Vlaada Chvátil.
You can play as the agent or the spymaster, and the Glove word vectors will
take the role of your partner, as you try to find the 8 marked words in as few
rounds as possible.
```
$ git clone ... |
//
// ContentView.swift
// D35_Multiplication_Table
//
// Created by MacBook on 26.7.2023.
//
import SwiftUI
struct NextQuestionButton: View {
let nextQuestion: () -> Void
let questionsAsked: Int
let amountOfQuestions: Int
let questionAnswered: Bool
var buttonText: String {
if questions... |
class WineListsController < ApplicationController
# GET /wine_lists
# GET /wine_lists.json
def index
@wine_lists = WineList.all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @wine_lists }
end
end
# GET /wine_lists/1
# GET /wine_lists/1.json
def sh... |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
static class Point{
int r;
int c;
public Point(int r, int c){
this.r = r;
this.c = c;
}
}
private static int moveRow[] = {1,-1,0,0};
private ... |
import * as React from 'react';
import {
Autocomplete,
AutocompleteInputChangeReason,
TextField,
} from '@mui/material';
import { SyntheticEvent } from 'react';
import { Controller } from 'react-hook-form';
import { VariableSizeList, ListChildComponentProps } from 'react-window';
function renderRow(props: ListCh... |
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/autofill/core/browser/test_payments_data_manager.h"
#include "base/uuid.h"
#include "components/autofill/core/browser/personal_data_manager.h"
namespace ... |
// Copyright © 2022 Polar. All rights reserved.
import XCTest
@testable import iOSCommunications
final class PpiDataTest: XCTestCase {
func testProcessPpiRawDataType0() throws {
// Arrange
// HEX: 03 00 94 35 77 00 00 00 00 00
// index dat... |
import TodoItem from "./TodoItem";
import { Todo } from "./types";
interface TodoListProps {
todos: Todo[] | undefined; // Ensure todos can be undefined
onEditTodo: (id: number, updatedTitle: string) => void;
onDeleteTodo: (id: number) => void;
}
const TodoList: React.FC<TodoListProps> = ({
todos,
onEditTod... |
import type { Credential, CredentialData } from '../../../slices/types'
import { motion } from 'framer-motion'
import { startCase } from 'lodash'
import React from 'react'
import { fadeX } from '../../../FramerAnimations'
import { StateIndicator } from '../../../components/StateIndicator'
import { useCredentials } fr... |
using Database.Constants;
using Database.Entities;
using Database.Enums;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using System.Globalization;
namespace Database;
/// <summary>
/// Контекст базы данных.
/// </summary>
public sealed class Context : IdentityDbConte... |
import {
Entity,
Column,
PrimaryGeneratedColumn,
} from 'typeorm';
export type UserRoleType = "admin" | "user"
@Entity()
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column('varchar')
name: string;
@Column('varchar', {
unique: true,
})
email: string;
@Column('varchar')
pas... |
## 思考和练习
请思考下面的问题。
### Attention
1. 你怎么理解Attention?
2. 乘性Attention和加性Attention有什么不同?
3. Self-Attention为什么采用 Dot-Product Attention?
4. Self-Attention中的Scaled因子有什么作用?必须是 `sqrt(d_k)` 吗?
5. Multi-Head Self-Attention,Multi越多越好吗,为什么?
6. Multi-Head Self-Attention,固定`hidden_dim`,你认为增加 `head_dim` (需要缩小 `num_heads`)和减少 `head_... |
Container Class
It is just a class that have access directly to the Application State (Redux).
More Info
REACT-REDUX
React and Redux are not at all connected. They are a totally separed projects and to connect them we need to use a specific library named ReactRedux.
So, you must to import a special component... |
import React, { useState } from 'react';
import { useDispatch } from 'react-redux';
import { selectItem } from 'features/products/views/slice';
import { Box, Grid, IconButton, ListItem } from '@mui/material';
import GridItem from 'common/components/dataDisplay/GridItem';
import EditCategory from 'features/products/cat... |
import { useLocalization } from '@fluent/react';
import { useState } from 'react';
import {
SetPauseTrackingRequestT,
RpcMessage,
TrackingPauseStateResponseT,
TrackingPauseStateRequestT,
} from 'solarxr-protocol';
import { useWebsocketAPI } from '@/hooks/websocket-api';
import { BigButton } from './commons/BigB... |
(in-package regression)
(macrolet ((make-updater-step (name estimator updater)
`(defun ,name (A Y X estimate err sigma rho)
(declare ((simple-array single-float) Y A X estimate err))
(declare (single-float rho sigma))
(with-matrixes ,estimator :declarations nil :target estimate)
(with-matrixes (- Y estim... |
import { prisma } from '@/lib/prisma'
import { checkRateLimit } from '@/lib/ratelimit'
import { setToolsOccurrences, slugger } from '@/lib/slugger'
import { toolsSchema } from '@/schema/tools.schema'
import { authOptions } from '@/utils/authOptions'
import { getServerSession } from 'next-auth'
import { NextResponse } f... |
import React from "react";
import { Outlet } from "react-router-dom";
import Dashboard from "../dashboard/Dashboard";
import Header from "../header/Header";
import SideBar from "../Sidebar/SideBar";
import style from "./style.module.scss";
import { Navigate } from "react-router-dom";
import { useSelector } from "react-... |
const fs = require('fs');
const uid = require('uid');
const readFile = require('node:fs/promises').readFile;
const writeFile = require('node:fs/promises').writeFile;
// reading from json file
const readData = async (path) => {
try {
const data = await readFile(path, 'utf8');
// console.log(data);
if (!da... |
#pragma once
#include "ECS/ECS.hpp"
#include "Util/Profiler.hpp"
#include "ECS/Component/RenderingComponent/AlphaTestComponent.hpp"
#include "ECS/Component/RenderingComponent/PhongShaderComponent.hpp"
#include "ECS/Component/RenderingComponent/MeshComponent.hpp"
#include "ECS/Component/RenderingComponent/OpaqueCompon... |
/*
ISC License
Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
... |
def merge_sort(arr):
if len(arr) > 1:
mid = len(arr)//2
left_half = arr[:mid]
right_half = arr[mid:]
merge_sort(left_half)
merge_sort(right_half)
i, j, k = 0, 0, 0
while i < len(left_half) and j < len(right_half):
if left_half[i] < right_half[j]... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\PostController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your applicatio... |
import styled from '@emotion/styled';
import { FunctionComponent, ReactNode } from 'react';
import { Color } from './tokens/colors'
import { OutsideClick } from './utils/outside-click';
import { Wrapper } from './wrapper';
import { Box } from './box';
interface OverlayProps {
title: string;
description: string... |
package com.beck.springbootebookaws.api.payload.book;
import com.beck.springbootebookaws.db.enums.BookLanguage;
import com.beck.springbootebookaws.db.enums.Genre;
import com.beck.springbootebookaws.db.enums.RequestStatus;
import com.beck.springbootebookaws.db.enums.TypeOfBook;
import com.fasterxml.jackson.databind.Pro... |
import React from 'react';
import Stack from '@mui/material/Stack';
import { ComponentMeta, ComponentStory } from '@storybook/react';
import ToggleButtonComp from './mui/ToggleButton';
export default {
title: 'Pano/ToggleButtonComp',
component: ToggleButtonComp,
} as ComponentMeta<typeof ToggleButtonComp>;
cons... |
package com.vogulev.list_randomizing_telegram_bot.service;
import com.vogulev.list_randomizing_telegram_bot.entity.PbClient;
import com.vogulev.list_randomizing_telegram_bot.entity.PbUser;
import com.vogulev.list_randomizing_telegram_bot.repository.NamesRepository;
import lombok.RequiredArgsConstructor;
import lombok.... |
---
title: "taskScope vars in callee"
date: 2020-10-07T00:11:18+1010:00
draft: false
weight: 1190
---
##### This is a test case to show that the taskScope var could be passed to callee task and it will override what has been defined in callee if the var name is same
### Demo
[source](https://github.com/upcm... |
use std::fmt::Debug;
use std::fs::File;
use std::io::{BufRead, BufReader};
use std::iter::Flatten;
use std::path::Path;
use std::str::FromStr;
pub fn read_lines<T: AsRef<Path>>(filename: T) -> Flatten<std::io::Lines<BufReader<File>>> {
let file = File::open(filename).unwrap();
BufReader::new(file).lines().flat... |
/* -*- C++ -*- */
/**
* @file Dirent_Selector.h
*
* Dirent_Selector.h,v 4.8 2003/11/01 11:15:12 dhinton Exp
*
* Define a portable C++ interface to the <ACE_OS_Dirent::scandir> method.
*
* @author Rich Newman <RNewman@directv.com>
*/
#ifndef ACE_DIRENT_SELECTOR_H
#define ACE_DIRENT_SELECTOR_H
#inclu... |
package com.jgitfx.base.dialogs;
import java.util.List;
import org.eclipse.jgit.api.CheckoutCommand;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.lib.Ref;
import org.reactfx.value.Val;
/**
* A base class RevertChangesDialog class that handles most of th... |
package main
//BU kod Udemy Cihan Özhan Golang kursundan alntılanmıştır.
import (
"fmt"
"strconv"
)
func CarExecute(c Carface) {
fmt.Print("\n")
fmt.Println("Araç Bilgisi : \n" + c.Information())
fmt.Print("\n")
msg := ""
isRun := c.Run()
if isRun {
msg = "Calismiyor"
} else {
msg = "Calisiyor"
}
fm... |
#define private public
#include "directory.h"
#undef private
#define protected public
#include "orch.h"
#undef protected
#include "ut_helper.h"
#include "mock_orchagent_main.h"
#include "mock_sai_api.h"
#include "mock_orch_test.h"
#include "gtest/gtest.h"
#include <string>
EXTERN_MOCK_FNS
namespace mux_rollback_test
... |
\chapter{Objetivos}
% En este apartado deberán aparecer con claridad los objetivos inicialmente previstos en la
% propuesta de TFG y los finalmente alcanzados con indicación de dificultades, cambios y
% mejoras respecto a la propuesta inicial. Si procede, es conveniente apuntar de manera precisa
% las interdependencia... |
import { chromium } from 'playwright'
import { compareTwoStrings } from 'string-similarity'
import csv from 'csv-parser'
import chalk from 'chalk'
import inquirer from 'inquirer'
import { createReadStream, existsSync } from 'fs'
import * as fs from 'fs'
class Scraper {
constructor() {
this.FALLBACK_URL = 'https:... |
import React from "react";
import Greeting from "./Greeting";
import Login from "./Login";
import Logout from "./Logout";
class Auth extends React.Component {
constructor(props) {
super(props);
this.state = {
isLoggedIn: false
}
console.log(props)
}
handleLogin = () => {
this.setState({... |
#include "variadic_functions.h"
#include <stdarg.h>
/**
* sum_them_all - return the sum of all its parameters.
* @n: the number of parameters to the function.
* @...: a variable number of parameters to calculate the sum of.
* Return: if n == 0 - 0.
*/
int sum_them_all(const unsigned int n, ...)
{
va_list sa;
un... |
<!-- FORM CONTAINER -->
<div fxFlex="100" fxLayout="column" class="basic-info-container"
*ngIf="formCreate" id="textCreateBasicInfo">
<p>{{'secure.products.create_product_unit.basic_information.basic_product_information'
| translate}}</p>
<!-- BASIC INFORMATION FORM-->
<form class="basic-info" [formGroup]="... |
import argparse
import glob
import json
import os
from shutil import copyfile, copytree
from diff import diff_dir
def get_crispresso2_info_path(result_dir):
potential_paths = glob.glob(os.path.join(result_dir, 'CRISPResso2*_info.json'))
if len(potential_paths) > 1:
raise Exception('More than one CRIS... |
# NJUPT-login
南京邮电大学校园网登录脚本。大概是Python新手的第一次尝试(不要喷我)。
[English](https://github.com/WiIIiamWei/NJUPT-login/blob/main/README-EN.md)
## 如何使用
**! 请注意:本脚本会在当前文件夹生成config.bin储存你的登录信息,请不要随意删除或传播该文件,此举会导致你的密码泄露!**
您可以直接在Release界面找到使用`pyinstaller`生成的可执行文件,也可以下载源代码直接运行(需要`requests`库)。
为了方便辨认,可执行程序使用了南京邮电大学的logo。此行为未经授权,故只用于... |
import React from 'react'
function GuideBtn () {
return (
<div className='guide-container'>
<div className="guide-inner">
<h2>가이드페이지</h2>
<div className='guide-item'>
<p className='guide-title'>1. 기본타입 버튼
<p className='guide-sub'>기본타입 버튼입니다.</p>
</p>
... |
import { FaTicketAlt, FaHockeyPuck, FaChair } from "react-icons/fa";
import { getUserCount, requireUserSession } from "~/data/auth.server";
import { useLoaderData, Link } from "@remix-run/react";
import SideNav from "~/components/NavigationMenu";
import { getTicketsCount } from "~/data/tickets.server";
export default ... |
import { css, html, TemplateResult } from 'lit';
import { customElement, property, state } from 'lit/decorators.js';
import { classMap } from 'lit/directives/class-map.js';
import '@material/web/checkbox/checkbox';
import '@material/web/icon/icon';
import '@material/web/list/list';
import '@material/web/list/list-item... |
<template>
<div>
<!-- 面包屑导航区域 -->
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
<el-breadcrumb-item>商品管理</el-breadcrumb-item>
<el-breadcrumb-item>添加商品</el-breadcrumb-item>
</el-bre... |
import React, { useState, useEffect } from "react";
import { View, Linking, ScrollView, FlatList } from "react-native";
import { getAuth, signOut } from "firebase/auth";
import {
Layout,
Button,
TopNav,
useTheme,
themeColor,
} from "react-native-rapi-ui";
import { Ionicons } from "@expo/vector-icons";
import... |
import { SlashCommandBuilder } from '@discordjs/builders'
import axios from 'axios'
import Vibrant from 'node-vibrant'
import { MessageActionRow, MessageButton, MessageEmbed } from 'discord.js'
import type { CommandInteraction, ColorResolvable } from 'discord.js'
import type { Command } from '../../Types/Command'
impor... |
.. _sm_install_license:
*****************
Install a License
*****************
Before running the Solution Manager for the first time, you have to configure
the global license. The *Solution Manager Installation Guide* explains how to
install its first license either
:ref:`during the installation <sm-configure-local-l... |
module.exports = function categorySchema(opts) {
const { categoryController, Joi } = opts;
const read = ({ fastify }) => {
return {
method: "GET",
url: "/category/read",
handler: categoryController.getCategories,
};
};
const readByID = ({ fastify }) => {
return {
method: "G... |
package com.vg7.messenger.adapter;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
im... |
/*****************************************************************************
* VLCMediaList.m: VLCKit.framework VLCMediaList implementation
*****************************************************************************
* Copyright (C) 2007 Pierre d'Herbemont
* Copyright (C) 2007 the VideoLAN team
* $Id: 65522536d... |
library(shiny)
library(tidyverse)
library(leaflet)
library(excelR)
# Define UI for application that draws a histogram
ui <- fluidPage(
column(width = 6,
leafletOutput(outputId = "plot",height = 700),
h3(textOutput("compile_status"), align = "center"),
div(style = "display: flex;",
... |
@page "/Admin/Operations"
@inject IOperationsService OperationsService
@inject NavigationManager NavigationManager
@inherits FragmentNavigationBase
<link href="css/admin.css?v=@(DateTime.Now.ToString("MMddyyyyHHmmss"))" rel="stylesheet" />
<AuthorizeView Roles="Admin">
<Authorized Context="Auth">
<div id="wrappe... |
#ifndef RAY_H
#define RAY_H
#include "vec3.h"
/**
* @file ray.h
* @description representation of ray
*
* @author Rohit Nimkar
* @verion 1.0
* @date 2023-06-18
*
* @copyright Copyright 2023 Rohit Nimkar
* @attention
* Use of this source code is governed by a BSD-style
* license that can be found in the LICE... |
/*
* str.c - String helper functions that don't need string.h or ctype.h
*
* Copyright (C) 2006 Red Hat, Inc. All rights reserved.
*
* 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; eith... |
function fcn_VD_plotCompareLongitudinalTireForce(ref_time,ref_lon_tire_force,...
ref_sim_name,time,lon_tire_force,sim_name,varargin)
%% fcn_VD_plotCompareLongitudinalTireForce
% Purpose:
% To plot longitudinal tire force(s) against time
%
% Inputs:
% ref_time, time: A Nx1 vector of time [sec]
% ref_lon_tire_f... |
import { useState } from "react"
import UseFetchHook from "../../common/hooks/UseFetchHook";
import { getFullDay } from "../../common/utils/utils";
import { Line } from 'react-chartjs-2';
import { weatherInfo } from "../../common/models/weathermodel";
interface IData {
label: string;
data: weatherInfo
}
functio... |
import { type Dispatch, type SetStateAction } from "react";
import { Input } from "./ui/input";
import { Label } from "./ui/label";
interface ImageUploaderProps {
setValue: Dispatch<SetStateAction<File | undefined>>;
isLoading: boolean;
isUploading: boolean;
label: string;
}
export default function ImageUploa... |
<template>
<div class="chat-container">
<!-- 顶部导航栏 -->
<van-nav-bar
class="app-nav-bar"
title="小智同学"
left-arrow
@click-left="$router.back()"
/>
<!-- 消息展示区 -->
<div class="msgList" ref="msgList">
<van-cell
v-for="(msg, index) in msgList"
:key="index"
... |
package com.commafeed.frontend.resource;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.annotation.Timed;
import com.commafeed.CommaFeedApplication;
import com.commafeed.CommaFe... |
#include "function_pointers.h"
#include <stdio.h>
/**
* array_iterator - Executes a function on each element of an array
*
* @array: The array to iterate over
* @size: The size of the array
* @action: A pointer to the function to be executed on each element
*/
void array_iterator(int *array, size_t size, void (*a... |
<!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="stylesheet" href="style.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-a... |
package br.com.codeflix.catalog.admin.application.genre.retrieve.get;
import br.com.codeflix.catalog.admin.domain.exceptions.NotFoundException;
import br.com.codeflix.catalog.admin.domain.genre.Genre;
import br.com.codeflix.catalog.admin.domain.genre.GenreGateway;
import br.com.codeflix.catalog.admin.domain.genre.Genr... |
using deftq.BuildingBlocks.Exceptions;
using deftq.Pieceworks.Application.GetDocument;
using deftq.Pieceworks.Domain.projectDocument;
using deftq.Pieceworks.Infrastructure;
using deftq.Pieceworks.Infrastructure.projectDocument;
using Xunit;
namespace deftq.Pieceworks.Test.Application.GetDocument
{
public class Ge... |
package uk.ac.ebi.pride.gui.component.peptide;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.bushe.swing.event.EventSubscriber;
import uk.ac.ebi.pride.data.controller.DataAccessController;
import uk.ac.ebi.pride.data.controller.DataAccessException;
import uk.ac.ebi.pride.gui.GUIUtilities;
i... |
import { useState, useContext } from 'react';
import { Navigate } from 'react-router-dom';
import { UserContext } from '../../context/UserContext';
import { CartContext } from '../../context/CartContext';
import DispatchCheckout from './DispatchCheckout';
import getStepContent from '../../helpers/getStepContent';
im... |
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:rive/rive.dart';
import 'package:thetiptop_client/src/presentation/themes/default_theme.dart';
import 'package:thetiptop_client/src/presentation/widg... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_margin="8dp"
>
<!-- 전체적인 margin ==... |
<template>
<div class="page-wrap contact">
<decoration />
<div class="parallax parallax-left">
<parallax />
</div>
<v-snackbar
v-model="snackbar"
:timeout="4000"
location="top right"
class="notification"
>
<div class="action">
Message Sent
</div>
... |
import create from "zustand";
import agent from "../api/agent";
import { combineAndImmer } from "./types/combineAndImmer";
import {
ICard,
ICreateBoard,
ICreateCard,
IEditCard,
IGetAllBoards,
IGetAllListFromBoard,
IKanbanList,
IList,
} from "./types/kanban.types";
import { cloneDeep } from "lodash";
imp... |
/*
* Copyright (C) 2005-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#pragma once
#include "Window.h"
#include "guilib/GUIWindow.h"
namespace XBMCAddon
{
namespace xbmcgui
{
#ifndef SWIG
... |
<!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>Portfolio</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="ht... |
SUDO_PLUGIN(1m) MAINTENANCE COMMANDS SUDO_PLUGIN(1m)
NNAAMMEE
sudo_plugin - Sudo Plugin API
DDEESSCCRRIIPPTTIIOONN
Starting with version 1.8, ssuuddoo supports a plugin API for policy and
session logging. By default, the _s_u_d_o_e_r_s policy plugin and an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.