text stringlengths 184 4.48M |
|---|
/* GANG Software
* GEOM/milieu/ui/ClipPlane.H
* Copyright (C) 2002 Nicholas Schmitt <nick@gang.umass.edu>
* Wed Sep 18 16:39:46 2002
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundatio... |
import React, { Component } from "react";
import axios from "axios";
import url from "./../../UrlConfig";
import "./Books.css";
import Book from "./Book/Book.js";
import { withRouter } from "react-router";
import Pagination from "react-js-pagination";
import Spinner from "../../common/Spinner/Spinner.js";
class Books ... |
import React, { useRef } from "react";
import {
AlertDialog,
AlertDialogContent,
AlertDialogHeader,
AlertDialogBody,
AlertDialogFooter,
AlertDialogOverlay,
Button,
} from "@chakra-ui/react";
import "../style.css";
export default function AlertBox({ isOpen, onClose, handleDelete }) {
const cancelRef = u... |
<template>
<div class="recommend_bg">
<div class="recommend_container">
<!-- 첫 화면의 요소 (showInitialContent 데이터 속성을 사용하여 초기 컨텐츠 표시하거나 숨기기)-->
<div v-if="showInitialContent" class="recommend__front">
<div class="recommend_loader">
<span></span>
</div>
<div class="recomm... |
import {Application, ValueOrPromise} from '@loopback/core';
import {Class, RepositoryMixin, juggler} from '@loopback/repository';
import {RestApplication} from '@loopback/rest';
import {RatelimitStoreSourceProvider} from '../../providers';
import {RateLimitStoreClientType, RateLimitStoreSource} from '../../types';
imp... |
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from the Oracle Third Party software advisories.
#
include("compat.inc");
if (description)
{
script_id(80609);
script_version("$Revision: 1.2 $");
script_cvs_date("$Date: 2015/01/21 15:53:44 $");
... |
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
export type State = {
tasks: {
[key: string]: {
status: 'active' | 'completed';
title: string;
};
};
filteredTasks: {
[key: string]: {
status: 'active' | 'completed';
title: string;
};
};
lastTaskId: number... |
//
// Date: 2019-06-26
// Author: Spicer Matthews (spicer@skyclerk.com)
// Last Modified by: Spicer Matthews
// Copyright: 2019 Cloudmanic Labs, LLC. All rights reserved.
//
import 'rxjs/add/operator/takeUntil';
import * as Highcharts from 'highcharts';
import * as moment from 'moment-timezone';
import { AngularCsv } ... |
import React, { useEffect, useState } from "react";
import { Route, Routes, useNavigate } from "react-router-dom";
// import "./App.css";
import Header from "./Component/Header";
import styled from "styled-components";
import SideBar from "./Component/SideBar";
import Chat from "./Component/Chat";
import Login from "./... |
// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Cilium
package main
import (
"context"
"flag"
"fmt"
"log"
"os"
"runtime"
"runtime/pprof"
"github.com/sirupsen/logrus"
"github.com/cilium/cilium/pkg/hive"
"github.com/cilium/cilium/pkg/hive/cell"
"github.com/cilium/cilium/pkg/hive/job"
"githu... |
import {
Children,
cloneElement,
HTMLAttributes,
PropsWithChildren,
ReactElement,
ReactNode,
useRef,
} from 'react';
import cn from 'classnames';
import { useEventListener, useOnClickOutside } from 'usehooks-ts';
export interface PopoverProps
extends PropsWithChildren,
Omit<HTMLAttributes<HTMLDivEl... |
import React, { Component } from "react";
import { Container, Input, Button ,ListGroup, ListGroupItem,Modal,ModalBody,ModalHeader} from "reactstrap";
import axios from "axios";
import cors from 'cors';
import moment from 'moment';
class App extends Component {
state = {
title: '',
body:'',
post:[],
b... |
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:master_list/common/colors.dart';
import 'package:master_list/controllers/category_controller.dart';
import 'package:master_list/controllers/drawer_controller.dart';
import 'package:master_list/controllers/item_controller.dart';
impor... |
import logging
from airflow import DAG
from airflow.utils.dates import days_ago
from airflow.operators.dummy_operator import DummyOperator
from airflow.operators.bash import BashOperator
from airflow.operators.python_operator import PythonOperator
from airflow.hooks.postgres_hook import PostgresHook
from datetime impor... |
import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { createSelector } from 'reselect'
import { PlayQueueItem } from './PlayQueueItem'
export const PlayQueueListView = React.createClass({
propTypes: {
queuedEpisodeUrls: PropTypes.array.isRequired
},
render: function () {
... |
import axios from "axios";
import {FC, useEffect, useState} from "react";
import {useDispatch, useSelector} from "react-redux";
import {
updateUserExp,
addUserExp,
deleteUserExp,
} from "../../redux/actions/private/applicantActions";
import Storage from "../../services/storage";
import {
Experience,
... |
# HVAC Group
[![GitHub Release][releases-shield]][releases]
[![GitHub Activity][commits-shield]][commits]
[![License][license-shield]](LICENSE)
[![hacs][hacsbadge]][hacs]
![Project Maintenance][maintenance-shield]
[![BuyMeCoffee][buymecoffeebadge]][buymecoffee]
<!-- [![Discord][discord-shield]][discord] -->
[![Comm... |
# NEON AI (TM) SOFTWARE, Software Development Kit & Application Framework
# All trademark and other rights reserved by their respective owners
# Copyright 2008-2022 Neongecko.com Inc.
# Contributors: Daniel McKnight, Guy Daniels, Elon Gasper, Richard Leeds,
# Regina Bloomstine, Casimiro Ferreira, Andrii Pernatii, Kiril... |
//
// CronParserTests.swift
// CronParserTests
//
// Created by Ruben Exposito Marin on 1/9/22.
//
import XCTest
class CronParserTests: XCTestCase {
var sut: CronParser!
let cronField1 = CronField(hours: "1", minutes: "30", command: "/bin/run_me_daily")
let cronField2 = CronField(hours: "*", minu... |
<?php
// J'appelle la classe dont je vais avoir besoin:
require_once('../../Model/AgentRepository.php');
// Pour des raisons de sécurité je souhaite vérifier si l'utilisateur qui souhaite afficher cette page est bien connecté. Pour cela je vais avoir besoin d'utiliser le systeme de session donc je commence par le démar... |
import { calculatorUISelectors } from "./PageData/CalculatorUI";
/**
* Takes a string and returns it wrapped in a data-test-id attribute selector string.
*
* @param testId - The test ID to format.
* @returns The formatted test ID as a string.
* @example
* formatTestId('login-button');
* // Returns '[data-test-... |
import { ref } from 'vue';
import { storeToRefs } from 'pinia';
import { deleteAddressApi } from '@/api/Address';
import { useSnackbarStore } from '@/stores/snackbar';
import { useAddressStore } from '@/stores/address';
export function useDeleteAddress() {
const { address } = storeToRefs(useAddressStore());
const... |
<template>
<div>
<h1>人员列表</h1>
<input type="text" v-model.trim="name"> <button @click="addPerson">添加</button>
<ul>
<li v-for="(item ) in personList" :key="item.id">{{item.name}}</li>
</ul>
</div>
</template>
<script>
import {mapState} from 'vuex'
export default {
name:'Person',
data() {
... |
import 'package:flutter/material.dart';
import 'package:listat/EditList.dart'; // Ensure this path is correct
import 'package:listat/sqldb.dart'; // Ensure this path is correct
import 'package:shared_preferences/shared_preferences.dart';
class BrowseList extends StatefulWidget {
@override
_BrowseListState createSt... |
import torch
import torch.nn as nn
import torch.optim as optim
import numpy as np
import gymnasium as gym
from collections import namedtuple
# Define the Q-network
class QNetwork(nn.Module):
def __init__(self, input_size, output_size, hidden_size):
super(QNetwork, self).__init__()
self.fc1 = nn.Lin... |
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="description" conte... |
//
// StepBarChart.swift
// Walken Track
//
// Created by Ben Morgiewicz on 5/11/24.
//
import SwiftUI
import Charts
struct StepBarChart: View {
@State private var rawSelectedDate: Date?
var selectedStat: HealthMetricContext
var chartData: [HealthMetric]
var selectedHealthMetric: Hea... |
<x-app-layout>
<x-slot name="header">
<div class="flex justify-between items-center">
<x-header-heading :sup="__('Edit question')">
{{ $question->question_text }}
</x-header-heading>
<div class="flex gap-2">
@can('delete', $question)
... |
# AWSTrial, A mechanism and service for offering a cloud image trial
#
# Copyright (C) 2010 Scott Moser <smoser@ubuntu.com>
# Copyright (C) 2010 Dave Walker (Daviey) <DaveWalker@ubuntu.com>
# Copyright (C) 2010 Michael Hall <mhall119@gmail.com>
# Copyright (C) 2010 Dustin Kirkland <kirkland@ubuntu.co... |
import {
Button,
Checkbox,
FormControl,
FormControlLabel,
FormGroup,
InputLabel,
MenuItem,
TextField,
} from "@mui/material";
import { useForm } from "react-hook-form";
import { NavLink, useNavigate } from "react-router-dom";
import CredentialsModel from "../../../Models/CredentialsModel";
import { auth... |
<script setup>
import { reactive, ref, computed } from 'vue'
import {defineEmits} from 'vue'
// defineProps({
// msg: {
// type: String,
// required: true
// }
// })
// const state = ref({ count: 0 })
// function increment(){
// state.value.count++
// }
// const author = reactive({
// name: 'John Doe',
... |
/*
FreeRTOS V7.0.1 - Copyright (C) 2011 Real Time Engineers Ltd.
***************************************************************************
* *
* FreeRTOS tutorial books are available in pdf and paperback. *
* ... |
package commands;
import console.ConsoleOutput;
import console.OutputColors;
import exceptions.IllegalArgumentsException;
import managers.CommandManager;
/**
* Команда 'help'
* Вывести справку по доступным командам
*/
public class Help extends Command {
private final CommandManager commandManager;
private... |
# Radboud FUS measurement kit
<a name="readme-top"></a>
<div align="center">
<img src="/images/Radboud-logo.jpg" alt="ru_logo" width="auto" height="70" />
<img src="/images/fuslogo.png" alt="fus_logo" width="auto" height="70">
<img src="/images/igtlogo.jpeg" alt="igt_logo" width="auto" height="70">
</div>
... |
import {useState, useEffect} from 'react';
import constate from 'constate';
import {useMutation} from 'react-query';
import {pushData} from '../query/mutations';
const useDataContext = () => {
const [name, setName] = useState<string>('');
const [age, setAge] = useState<string>('');
const mutation = useMutation((... |
{% load static %}
<!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">
<meta property="og:type" content="website">
<meta property="og:url" content="https://carwash... |
package in.fssa.fertagriboomi.servlets;
import java.io.IOException;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servle... |
####################### Modals #######################
## Modal to explain what median is
median_modal <- modalDialog(
h3("What is the median?"),
p("This a measure of the typical wait experienced by patients being treated in this Board/specialty who completed their wait in the period. One simple way of explaining ... |
const router = require("express").Router();
const User = require("../models/User");
const CryptoJS = require("crypto-js");
const verify = require("./verifyToken");
//UPDATE
router.put("/:id", verify, async (req, res) => {
if (req.user.id === req.params.id || req.user.isAdmin) {
if (req.body.password) {
req... |
import 'package:app_movil_s2/main.dart';
// ignore: unused_import
import 'package:app_movil_s2/screen/home_screen.dart';
import 'package:flutter/material.dart';
void main() => runApp(const Otro());
class Otro extends StatelessWidget {
const Otro({super.key});
@override
Widget build(BuildContext context) {
... |
# Importing necessary libraries
import pandas as pd
from sklearn.cluster import KMeans
from sklearn.model_selection import train_test_split
from imblearn.over_sampling import SMOTE
from sklearn.preprocessing import MinMaxScaler
from sklearn.ensemble import RandomForestClassifier
from sklearn.neural_network import MLPCl... |
import { FC, useEffect, useRef } from 'react';
interface YouTubePlayerProps {
videoId: string;
}
export const YouTubePlayer: FC<YouTubePlayerProps> = ({ videoId }) => {
const playerRef = useRef<YT.Player | null>(null);
useEffect(() => {
const protocol = window.location.protocol;
const host = window.loc... |
import { Location } from '@angular/common';
import { Injectable } from '@angular/core';
import { NavigationStart, Router } from '@angular/router';
import { RestApiService } from '../rest-api/rest-api.service';
import { Api } from 'src/app/constant/api';
import { Employee } from 'src/app/entities/employee';
import { Tok... |
const { CommandInteraction } = require("discord.js");
const { Colores } = require("../resources");
const DarkShop = require("./DarkShop");
const InteractivePages = require("./InteractivePages");
class Top {
#res = [];
/**
*
* @param {*} users Mongoose Documents
* @param {CommandInteraction} in... |
/*
* timer.h: Threaded timer class
*
* See the README file for copyright information and how to reach the author.
*
*/
#ifndef __XINELIBOUTPUT_TIMER_H
#define __XINELIBOUTPUT_TIMER_H
//
// cTimerCallback : timer callback handler interface
//
class cTimerCallback {
protected:
virtual bool TimerEvent() = 0; ... |
import React, { useEffect, useState } from "react";
import { Grid } from "@material-ui/core";
import { DayTime } from "./DayTime";
import { PontoContext } from "../../Contexts/Ponto";
import MenuPeriod from "./MenuPeriod";
import axios from "axios";
import { APIBaseURL } from "../../Settings/Settings.json";
import Cook... |
from flask import Flask, render_template
app = Flask(__name__)
# Additional page to say hello in the root route
@app.route('/')
def hello_page():
return render_template ("hello.html")
# /play route render a template with 3 blue boxes
@app.route('/play')
def play():
return render_template ("index.html", numbe... |
Computing
Computing
Parallel Interface – durch Arduino gesteuert (3)
Jens Lemkamp
Im dritten Teil der Parallel-Interface- und Arduino-Reihe wollen wir unser erstes Modell zum
Leben erwecken. Es handelt sich um einen Klassiker der MSR-Technik (Messen-SteuernRegeln). Ich habe aus dem Ur-Computing-Kasten (30554) des Jah... |
import { useContext } from 'react';
import { UserContext } from '../../contexts/UserContext';
import { AiOutlineHome } from 'react-icons/ai';
import { CgSearch } from 'react-icons/cg';
import { BsChatDots } from 'react-icons/bs';
import { AiOutlineBell } from 'react-icons/ai';
import { AiOutlineUser } from 'react-ico... |
<!DOCTYPE html>
<html lang="pt" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<title>Pokemon Relatório</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />... |
from datetime import datetime
from typing import NoReturn
from django.contrib import messages
from django.http import HttpRequest, JsonResponse, HttpResponse
from django.shortcuts import render, redirect
from django.views.decorators.http import require_http_methods, require_POST
from backend.models import Invoice
fro... |
public without sharing class GNE_SFA2_Scheduler implements Database.Batchable<sObject>, Database.Stateful {
public Enum JobType {Queued, Processing, Scheduled, Executed, Failed}
private static final String SCHEDULER_JOB_PREFIX = 'SFA Scheduler - ';
private static final String SCHEDULER_JOB_SUFIX_DATE_F... |
import * as tslib_1 from "tslib";
// tslint:disable:no-access-missing-member
import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
import { PagerContextService } from "./pager-context.service";
import { PagerElementComponent } from './pager-element.component';
import { LocalizationServi... |
<!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>Document</title>
<script src="./lib/vue.js"></script>
</head>
<body>
<div id="app">
<!-- v-text指令 -->
<... |
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... |
<?php
namespace App\Http\Controllers\Frontend;
use App\Http\Controllers\Controller;
use App\Models\Prompt;
use Illuminate\Http\Request;
use Inertia\Inertia;
class DiscountController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
pub... |
from datetime import datetime
from pydantic import UUID4, BaseModel
__all__ = (
"PostCreate",
"PostEdit",
"PostGet",
)
class PostBase(BaseModel):
title: str
content: str
is_private: bool = False
class PostCreate(PostBase):
repost_on: str | None = None
class PostEdit(PostBase):
t... |
import React from 'react';
import {
render,
fireEvent,
screen,
} from '@testing-library/react';
import { MemoryRouter, Route, Routes } from 'react-router-dom';
import { Provider } from 'react-redux';
import configureStore from 'redux-mock-store';
import '@testing-library/jest-dom/extend-expect';
import Login from... |
const App = () => {
const name: string = "Edmund";
const surname = "Jackovskij";
const age: number = 31;
const isAdult: boolean = true;
const wife: null = null;
const favoriteColor: undefined = undefined;
const numbers: number[] = [1, 2, 3, 4, 5]; // naudosim sita
const items: (number | string)[] = [1... |
import React, { useEffect, useState, useContext } from "react";
import { makeStyles } from "@material-ui/core/styles";
import PropTypes from "prop-types";
import RegularButton from "components/CustomButtons/Button";
import PopUpCustome from "components/PopUp/PopUp";
import GridItem from "components/Grid/GridItem.js";... |
//
// StringExtensions.swift
// TinkoffNews
//
// Created by Станислав Сарычев on 06.07.17.
// Copyright © 2017 Станислав Сарычев. All rights reserved.
//
import UIKit
extension String {
init(htmlEncodedString: String) {
self.init()
guard let encodedData = htmlEncodedString.data(using: .utf8) ... |
<!DOCTYPE html>
<html>
<head>
<title>数学加减法测试</title>
<meta name="keywords" content="test" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
* html, * html body {
background: #f3f3f3;
background-attachment:fixed
}
table.mathtable {
font-family:"微软雅黑",Microsoft YaHei,Ari... |
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(gene... |
//
// GradebookCell.swift
// SakaiClientiOS
//
// Created by Pranay Neelagiri on 5/13/18.
//
import UIKit
import ReusableSource
/// The table view cell to display a GradeItem in a gradebook
class GradebookCell: UITableViewCell, ConfigurableCell {
typealias T = GradeItem
let titleLabel: UILabel = {
... |
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:maktabat_alharam/screens/all_services/pages/reserve_article_research/new_order/models/all_university.dart';
import 'package:maktabat_alharam/screens/widgets/constants.dart';
import '../../../../../../config/dio_helper/dio.dart';
cl... |
import { Modal } from "antd";
import { ReactNode, SetStateAction, useState } from "react";
type ConfirmModalPropsType = {
title: string;
okButtonText?: string;
open: boolean;
setOpen: React.Dispatch<SetStateAction<boolean>>;
children: ReactNode;
footer?: boolean;
className?: string;
confirmHandler?: Vo... |
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:plants_care_uganda_ltd/auth/forgot_password.dart';
import 'package:plants_care_uganda_ltd/auth1/sign_up.dart';
import 'package:plants_care_uganda_ltd/pages/ad... |
import React, { useState } from 'react';
import Swal from 'sweetalert2';
import withReactContent from 'sweetalert2-react-content';
import "./sign.css"
import { useNavigate } from 'react-router-dom';
const MySwal = withReactContent(Swal);
function SignupForm() {
const [isOpen, setIsOpen] = useState(true);
const... |
import type { PropType, ExtractPropTypes, CSSProperties } from 'vue'
import { makeArrayProp, makeBooleanProp, makeStringProp } from '../common/props'
type SkeletonTheme = 'text' | 'avatar' | 'paragraph' | 'image'
type SkeletonAnimation = 'gradient' | 'flashed'
export type SkeletonRowColObj = {
[key: string]: any
t... |
const fs = require('fs');
const mariadb = require('mariadb');
const {
execSync,
exec
} = require('child_process');
async function main() {
console.log('Script started')
let conn;
try {
const pool = mariadb.createPool({
host: 'localhost',
port: 3306,
user... |
import EventEmitter from 'events';
import { Library } from '.';
const lengths = {
byte: 1,
int: 4,
int32: 4,
uint32: 4,
int64: 8,
uint64: 8,
dword: 4,
short: 2,
long: 8,
float: 4,
double: 8,
bool: 1,
boolean: 1,
ptr: 4,
pointer: 4,
// str: 0,
// string: 0,
// vec3: 0,
// vector3: 0,
// vec4: 0,
//... |
4/22/2018
Pro-Tip: Watch https://www.youtube.com/watch?v=77W2JSL7-r8 for using Github Desktop. :D
## Installing Github Desktop, creating repository, saving files in repository
1. Go to www.desktop.github.com
2. Download and install for Windows/Mac as appropriate
3. Sign in with your Github credentials/create one if y... |
<style>
#material-gradient-chart stop {
stop-color: #00bdae;
}
#fabric-gradient-chart stop {
stop-color: #4472c4;
}
#bootstrap-gradient-chart stop {
stop-color: #a16ee5;
}
#bootstrap4-gradient-chart stop {
stop-color: #a16ee5;
}
#highcontrast-gradient-... |
/*
* 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 entity;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Objects;
import javax.persistence.Entity;
impor... |
package gui.button;
import gui.frame.DescriptionPanel;
import gui.frame.ImagePanel;
import gui.frame.MainFrame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
i... |
#It contains both HTML and CSS style
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3-in-1 Game Website</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
... |
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp( //La clase debe retornar algo! En este caso un Widget de tipo MaterialApp
title: 'Widgets ... |
package me.saniukvyacheslav.message;
import lombok.Setter;
import me.saniukvyacheslav.util.string.RegexUtils;
import me.saniukvyacheslav.util.string.StringUtils;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.regex.Matcher;
/**
* This class used for adding current time to lo... |
unit Unit1;
{$mode objfpc}{$H+}
{
Name : Sutcliffe Pentagon
Desc : example rendering a Sutcliffe Pentagon using the TFPCustomCanvas class helper changed to TPaintbox
by : TRon 2023 (Pay It Forward) changed to TPaintbox by Boleeman
origin : code based on https://github.com/tex2e/p5js-pentagon
thread ... |
import random
import json
import os
import torch
from src.chat.model.NLPTokenizer import NLPTokenizer
from src.chat.model.model import NeuralNet
from src.chat.train import ChatBotModel
class ChatBot:
def __init__(
self,
intents_path="./src/chat/intents.json",
model_save_path="data.pth",
... |
import 'dart:js';
import 'dart:html' as html;
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:key_admin_panel/views/category/bloc/category_page_bloc.dart';
import 'package:key_admin_panel/views/category/category_page_ui.dart';
import 'package:key_admin_panel/view... |
import { View, StyleSheet, TextInput } from "react-native";
import { useFormik } from "formik";
import * as Yup from "yup";
import React, { useState } from "react";
import useAuth from "../../../hooks/useAuth";
import { user, userDetails } from "../../../utils/userDB";
import { AppText } from "../../AppText";
import { ... |
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:recipe_app_bloc/constants/Constants.dart';
import '../../../models/FoodType.dart';
import '../../recipe_info_screen/RecipeInfoScreen.dart';
import '..... |
# Sentence 012
> The staff is friendly and helpful, providing you with a map of the city when you arrive and offering advice if you require some.
> 工作人员态度友善且乐于助人,会在您到达时为您提供城市地图,并在您需要时提供建议。
## 语法笔记
> 本句的主干是The staff is friendly and helpful。providing you with…and offering advice…做伴随状语,其中包含when引导的时间状语从句和if引导的条件状语从句,an... |
"use strict";
const nodeUuid = require("node-uuid"),
_ = require("lodash"),
BeginningState = require("dc-game-states").BeginningState,
GameData = require("dc-engine").GameData,
PresetHelper = require("./preset-helper");
function Game($players, $deckConfig, $choicePro... |
class Solution {
public long maxScore(int[] nums1, int[] nums2, int k) {
var n = nums1.length;
// merge nums1 & nums2 based on index
var combined = new Pair[n];
for(var i=0; i<n; i++) combined[i] = new Pair(nums1[i], nums2[i]);
// sort this combined array by nums2 v... |
package main
import "testing"
func TestFromFeet(t *testing.T) {
t.Run("empty input returns empty error", func(t *testing.T) {
inp := HeightFeet{}
got, err := FromFeet(inp)
want := HeightMetric{}
CheckGotWant(t, got, want)
CheckError(t, err, "please input an imperial height")
})
t.Run("empty input returns... |
import Container from "@material-ui/core/Container";
import React, { useContext } from "react";
import Typography from '@material-ui/core/Typography';
import Footer from "../../components/Footer/Footer";
import Header from '../../components/Header/Header'
import { BoxEndereco, Font, ContainerTela, Flex, ModalCustom} fr... |
package org.sofka.tour.api.teams;
import lombok.RequiredArgsConstructor;
import org.sofka.tour.model.cyclists.Cyclists;
import org.sofka.tour.model.teams.Teams;
import org.sofka.tour.usecase.teams.*;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.... |
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:flutter_hackathon_2023/foundation/supabase/supabase_client.dart';
import 'package:flutter_hackathon_2023/model/user.dart';
import 'package:flutter_hackathon_2023/repository/user/user_repository.dart';
import 'package:supabase_flutter/supabase_flutter.... |
import { Component, inject } from '@angular/core';
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { BehaviorSubject, catchError, EMPTY, Subscription } from 'rxjs';
import { CommonModule } from '@angular/common';
@Component({
selector: 'app-http-req-base',
standalone: true,
imports: ... |
// Aug 15
// 238. Product of Array Except Self
/*
Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i].
The product of any prefix or suffix of nums is guaranteed to fit in a 32-bit integer.
You must write an algorithm that runs in ... |
import { Utils } from '@nativescript/core';
import { isNullOrUndefined } from '@nativescript/core/utils/types';
import { AppDynamicsBreadcrumbVisibility, AppDynamicsErrorSeverityLevel, IAppDynamicsConfig, IAppDynamicsCrashCallback, IAppDynamicsCrashReportSummary } from './common';
export class AppDynamics {
private ... |
document.addEventListener('DOMContentLoaded', function() {
const screens = document.querySelectorAll('.screen');
const loginButton = document.getElementById('loginButton');
const registerButton = document.getElementById('registerButton');
const enterButton = document.getElementById('enterbutton');
c... |
#' **Figure 1B: genome coverage of ncba1.0 and gaps.**
suppressPackageStartupMessages(library(tidyverse))
suppressPackageStartupMessages(library(magrittr))
#suppressPackageStartupMessages(library(GenomicRanges))
#suppressPackageStartupMessages(library(karyoploteR))
setwd('~/share/litt/proj/cow/results/')
knitr::opts_... |
import * as React from "react";
import { useNavigate } from "react-router-dom";
import { useTranslation } from "react-i18next";
import AppBar from "@mui/material/AppBar";
import Typography from "@mui/material/Typography";
import MenuItem from "@mui/material/MenuItem";
import Menu from "@mui/material/Menu";
import YardI... |
import { ChatInputCommandInteraction, EmbedBuilder } from 'discord.js';
import Command from '../../lib/structures/Command';
import LanguageFile from '../../lib/structures/interfaces/LanguageFile';
export default new Command({
name: 'help',
description: 'The help command',
category: 'information',
async execute(cli... |
export function reducer(state, { type, payload }) {
switch (type) {
case "GET_ITEMS":
return{
...state,
items: payload || [],
loading: false,
}
case "ADD_TO_BASKET":{
const itemIndex = state.order.findIndex(
(orderItem) => orderItem.mainId === payload.mainId
... |
<?php
$host = 'localhost';
$dbname = 'comp-1006-lesson-examples';
$username = 'root';
$password = '';
// connect to the DB
$dbh = new PDO( "mysql:host={$host};dbname={$dbname}", $username, $password );
$dbh->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
// build the SQL statment
... |
<?php get_header();
/*
Template Name: Popular Page
*/
?>
<div class="post-title col-xs-12">
<h2>Popular Posts</h2>
<div class="separator"></div>
</div><!-- post-title -->
<ul class="feat-post clear">
<?php
$pop_all = new WP_Query(array(
'post_type' => array( 'post', 'food', 'styl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.