text
stringlengths
184
4.48M
import 'package:e_commerce_app/utilities/constants.dart'; import 'package:flutter/material.dart'; import 'big_text.dart'; class GeneralButton extends StatelessWidget { const GeneralButton({ Key? key, required this.onPressed, required this.text, this.width=170, this.borderRadius=5, }) : super(key: key); ...
import 'dart:io'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:open_filex/open_filex.dart'; import 'package:path_provider/path_provider.dart'; import '../../../data_layer/network.dart'; import '../../../domain_layer/models.dart'; import '../../../domain_layer/use_cases.dart'; import '../../extensi...
import { createContext, ReactNode, useContext, useEffect, useState } from 'react'; import { api } from '../services/api'; interface Medicine { nome: string, efeito: string, id: number, descricao:string } interface MedicinesProviderProps { children: ReactNode; } interface Params { medicineId : numb...
import { LitElement, css, html } from 'lit'; import { property, customElement } from 'lit/decorators.js'; @customElement('app-menu') export class AppMenu extends LitElement { @property({ type: String }) title = 'Spacefight'; @property() enableBack: boolean = false; static get styles() { return css` #...
import { AxiosRequestConfig } from 'axios' import Card from 'components/Card' import ReviewForm from 'components/ReviewForm' import ReviewListing from 'components/ReviewListing' import ReviewSynopsis from 'components/ReviewSynopsis' import { useEffect, useState } from 'react' import { useParams } from 'react-router-dom...
!> \\file init.f03 module init use HDF5 use fft implicit none contains ! generate the initial form of the wavefunction function init_wav(x,y,z,init_type,gauss_sig) double precision, intent(in) :: x(:), y(:), z(:) integer, intent(in) :: init_type double precision, intent(in) :: gaus...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Prime Calculator</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <link rel="stylesheet" href="bootstrap.min.css" media="screen"> </head> <body> ...
import * as React from 'react' import { PropsWithChildren, useEffect, useState } from 'react' import classNames from 'classnames/bind' const cx = classNames.bind(styles) import styles from './Switch.module.scss' export interface SwitchProps { checked?: boolean onChange(e: React.ChangeEvent<HTMLInputElement>): voi...
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle ...
package my.gov.kpn.quiz.core.model.impl; import my.gov.kpn.quiz.core.model.*; import javax.persistence.*; import java.util.Date; /** * @author rafizan.baharum * @since 7/10/13 */ @Table(name = "QA_STDN") @Entity(name = "QaStudent") public class QaStudentImpl extends QaActorImpl implements QaStudent { @ManyT...
-- Bongo x Bongo, by Mr Speaker. -- https://www.mrspeaker.net --[[ Welcome to Bongo x Bongo. This script makes modifications to the game Bongo, written by John Hutchinson for JetSoft in 1983. * General cheatin' and tweaks for practising * OGNOB mode: new challenge - try to complete the game in reverse! ...
// Copyright 2021 Matrix Origin // // 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 ...
# 一、Shell的基本功能 一般用于脚本自动化、系统管理及配置。 shell命令通过空格分隔,如果在命令中需要使用到空格,则需要进行转义操作“\ ”;如果希望执行多条语句,则需要用“;”进行分隔。 对于一个程序来讲,一般来讲为: ```text 执行路径或相对路径下程序 > 别名 > Bash内部命令 > 环境变量定义下第一个对应命令 ``` 在开发过程中,我们往往会使用到一些快捷键以帮助开发,例如:(^表示ctrl,例如`^a`表示`ctrl+a`) - ^a,将光标移动至行首 - ^e,将光标移动至行尾 - ^c,强制终止当前命令 - ^l,清屏(与直接使用clear命令不同) - ^u,删除光标之前命令 - ^k...
<template> <v-toolbar tabs dense :absolute="absolute" class="custom-toolbar elevation-0"> <slot name="left"></slot> <template v-for="(item, i) in items"> <v-checkbox v-if="item.select" :key="i" v-model="item.selected" class="shrink" :color="getColor(item)" ...
import React, { useEffect, useRef, useState } from 'react'; import { AlertStatus } from '../types'; type AlertContextValue = { alert: AlertStatus; alertText: string | undefined; success: (text: string) => void; error: (text: string) => void; }; export const AlertContext = React.createContext<AlertContextValue>({ ...
import { Component, inject } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatInputModule } ...
import {ClientType} from "../../types"; import {ValidationError} from "../../utils/errors"; import {pool} from "../../utils/db"; import {FieldPacket} from "mysql2/promise"; type AdRecordResults = [ClientType[], FieldPacket[]]; export class Client implements ClientType { address: string; birth: string; cit...
<template> <div> <div class="page-heading"> <div class="row"> <div class="col-12 col-md-6 order-md-1 order-last"> <h3>Manage Sellers</h3> </div> <div class="col-12 col-md-6 order-md-2 order-first"> <nav aria-label="breadcrumb" c...
# Example: Abstract Factory from abc import ABC, abstractmethod class Button(ABC): # Abstract interface for buttons @abstractmethod def paint(self): raise NotImplementedError class WinButton(Button): # Concrete product for Windows buttons def paint(self): print("WinButton") ...
/*** * @project: Firestorm Freelance * @author: Meltie2013 * @copyright: 2017 - 2018 */ #ifndef ADVANCEDANTICHEATHMGR_H #define ADVANCEDANTICHEATHMGR_H #include "AdvancedAnticheatData.h" #include "Common.h" #include "SharedDefines.h" #include "ScriptMgr.h" #include "Player.h" class ChatHandler; class Antiche...
const { useState, useEffect } = require("react"); const useTextToSpeech = () => { const [inputText, setInputText] = useState(""); const [spokenText, setSpokenText] = useState(""); const [utterance, setUtterance] = useState(null); const [voice, setVoice] = useState(null); console.log("voice", voice); // useEffe...
package nasa.apod.single.vm import androidx.lifecycle.SavedStateHandle import app.cash.turbine.test import io.mockk.coEvery import io.mockk.mockk import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.test.runTest import kotlinx.datetime.LocalDate import kotlinx.datetime.Month import nasa.apod.data.repo.Failu...
import logging from atm.application.dto import BankAccountRead from atm.application.dto import BankAccountUpdate from atm.application.dto import BankCustomerCreate from atm.application.dto import BankOperationCreate from atm.application.dto import BankOperationRead from atm.application.dto import DepositRequest from a...
from fastapi import APIRouter, Depends, Body from fastapi.responses import JSONResponse from app.models import Product, Inventory from sqlalchemy.orm import Session from datetime import datetime from app.db import get_db from typing import Optional router = APIRouter() LOW_STOCK_THRESHOLD = 10 @router.get("/invento...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover"/> <meta name="description" content="A PERT chart: a diagram for visualizing and analyzing task dependencies and bottlenecks."/> <link rel="stylesheet...
package com.github.angel.raa.modules.prototype.models; import com.github.angel.raa.modules.prototype.Prototype; import java.util.Arrays; public class Products implements Prototype { private String name; private String description; private int price; private String[] items; public Products(Strin...
@c @c COPYRIGHT (c) 1988-2008. @c On-Line Applications Research Corporation (OAR). @c All rights reserved. @c @c $Id$ @c @chapter Network Commands @section Introduction The RTEMS shell has the following network commands: @itemize @bullet @item @code{netstats} - obtain network statistics @item @code{ifconfig} -...
/* 백준 1992번 쿼드 트리 풀이: 문제를 읽다가 방금 풀었던 2630 색종이 만들기와 동일한 문제임을 알았다. 역시 재귀로 풀면 된다. 입력 방식과 출력 방식만 다르게 하고 1->2->4->3 사분면 순서대로 잘 분할 정복해서 출력하면 풀 수 있는 문제이다. */ #include <iostream> using namespace std; int n; string board[64]; bool divisionCheck(int startX, int startY, int N) { //분할 해야 할지 아닐지 판단 for (int i = startY; i ...
import os from Prompt_templates.constant import openai_key from langchain.llms import OpenAI import streamlit as st from langchain.prompts import PromptTemplate from langchain.chains import LLMChain ## streamlit framemwork os.environ['OPENAI_API_KEY']=openai_key st.title("Celebrity Search Result") input_text=st.text...
// mat_a: row major matrix ( real components followed by imaginary components) // mat_b: row major matrix ( real components followed by imaginary components) // mat_num_row: number of rows in matrix, Assumption: mat_a and mat_b are square matrices-> number of rows=number of columns // mat_out: output matrix also row ma...
import React, {useState} from 'react' import {useTranslation} from 'react-i18next' import {StyleSheet} from 'react-native' import {analytics} from '../../Analytics' import {UserModel} from '../../models' import {makeTextStyle} from '../../theme/appTheme' import {ms} from '../../utils/layout.utils' import {profileShort...
import { useState } from 'react' import { Theme, Size, Tokens, Profile } from './types' import { getContainerStyle, getTextStyle } from './utils' import { Web3Provider } from '@ethersproject/providers' import { ethers } from 'ethers' import { client } from './graphql/client' import { challenge, authenticate, profileB...
import numpy as np from collections import defaultdict as D from collections import namedtuple as T from simplify.plotting import plot from simplify.MinHeap import MinHeap from typing import Dict, Tuple import random from simplify.utils.types import HeapStruct Solution = T("Solution", "error currentIdx currentOrder pr...
const express = require("express") const bodyParser = require("body-parser") const PORT = 3000 const date = require("./date") const app = express() app.use(bodyParser.urlencoded({ extended: true })) app.use(express.static("public")) app.set("view engine", "ejs") let newItems = ["Buy Food", "Cook Food", "Eat foo...
package com.tanhua.config.template; import cn.hutool.core.collection.CollUtil; import com.easemob.im.server.EMProperties; import com.easemob.im.server.EMService; import com.easemob.im.server.model.EMTextMessage; import com.tanhua.config.properties.HuanXinProperties; import lombok.extern.slf4j.Slf4j; import java.util....
<!doctype html> <head> <meta charset="UTF-8"> <meta name="Author" content="ninachow"> <meta name="Keywords" content="ninachow,blog"> <meta name="Description" content="ninachow 的博客首页,对前端开发都一些总结文章和作品"> <link rel='stylesheet' type='text/css' href='https://fonts.googleapis.com/css?family=Freckle+Face'>...
#include <string.h> #include <ctype.h> #include <cda.h> #include <stack_calc.h> typedef const char *CSTR_p_t; #define ADD (0) #define SUB (1) #define MUL (2) #define DIV (3) #define XOR (4) #define LOR (5) #define AND (6) #define LSH (7) #define RSH (8) #define SUM (9) static ...
import asyncHandler from "express-async-handler"; import bcrypt from "bcryptjs"; import { User } from "./../../models/User/User.js"; import { generateToken } from "../../utils/generateToken.js"; import { getTokenFromHeader } from "../../utils/getTokenFromHeader.js"; import { verifyToken } from "../../utils/verifyToken....
import { useState, useEffect } from "react"; import { Link } from "react-router-dom"; import "../style/Mod.css"; import blogFetch from "../axios/config"; import axios from "axios"; import Modal from "react-modal"; import MeuModal from "../components/modal"; // ... Modal.setAppElement("#root"); const Mod = () => {...
require "application_system_test_case" class TasksTest < ApplicationSystemTestCase setup do @task = tasks(:one) end test "visiting the index" do visit tasks_url assert_selector "h1", text: "Tasks" end test "should create task" do visit tasks_url click_on "New task" fill_in "Email",...
// // CheckoutView.swift // SwfitUI-CupcakeCorner // // Created by JimmyChao on 2024/4/21. // import SwiftUI struct CheckoutView: View { let code = Locale.current.currency?.identifier ?? "USD" @Bindable var viewModel: ViewModel var body: some View { ScrollView { VStac...
import 'package:hyper_ui/core.dart'; import 'package:flutter/material.dart'; class QAutoComplete extends StatefulWidget { final String label; final String? hint; final List<Map<String, dynamic>> items; final String? Function(String? item)? validator; final Function(dynamic value, String? label) onChanged; ...
@file:OptIn( ExperimentalMaterialApi::class, ExperimentalMaterial3Api::class, ExperimentalTime::class, ) package ca.amandeep.path.ui.main import android.Manifest.permission.ACCESS_COARSE_LOCATION import android.Manifest.permission.ACCESS_FINE_LOCATION import android.content.Intent import android.net.Uri i...
import { useCallback, useState } from "react"; import { Merge } from "@/utils"; import { Column } from "@/components"; import styles from "./styles"; type BaseProps = {}; type Value = never; type OwnProps = { value?: Value; defaultValue?: Value; onChange?: (value: Value) => void; disabled?: boolean; error?: ...
package heap; import java.util.*; public class DesignTwitter355 { class Tweet{ int tweetId; int time; public Tweet(int tweetId, int time){ this.tweetId = tweetId; this.time=time; } } Map<Integer, List<Tweet>> userTweetMap; Map<Integer, Set<Inte...
import { ADD_EXPENSE, REMOVE_EXPENSE, EDIT_EXPENSE, SET_EXPENSES, START_SET_EXPENSES, } from './types'; import database from '../firebase/firebase'; // ACTIONS NEEDED // // ADD_EXPENSE export const addExpense = (expense) => (dispatch) => { dispatch({ type: ADD_EXPENSE, expense, }); }; // FIREBA...
const nodemailer = require("nodemailer"); export const SendReminderEmail = async ( name: string, email: string, taskTitle: string, taskDesc: string, taskId: string, url: string | null, status: string ) => { try { const transporter = nodemailer.createTransport({ host: "smtp.gmail.com", s...
import { DropdownValue } from '../../components/styles/Dropdown' import { Item } from '../stores/items/item.model' import { inventoryValues } from './filterValues' export interface SearchFilterValues { item?: Item itemCharacter: DropdownValue itemSlot: DropdownValue itemEvent: DropdownValue itemRarity: Dropd...
% Path integral Eigenfunctions %% eigenfunctions for duffing system clc; clear; close all; %% system description % nonlinear ode x_dot = f(x) % linearization at (0,0) saddle Dom = [-2 2]; x = sym('x',[2;1]); delta = 0.5; f = -[x(2); + x(1) - delta*x(2) - x(1)^3]; % get quiver grid = Dom(1):0.5:Dom(2); [X,Y] = meshgr...
import unittest import sys from pathlib import Path import json sys.path.append(str(Path(__file__).resolve().parent.parent)) from src import messages from src import database def big_msg_open(): with open("tests\msg_with_above_225_char.txt", "r") as f: text = f.read() return t...
package br.com.vpereira; import java.math.BigDecimal; import br.com.vpereira.dao.ProdutoDaoMock; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import main.java.br.com.vpereira.dao.IProdutoDAO; import main.java.br.com.vpereira.domain.Produto; import main.java.br.com.vpereira.exceptions.Tipo...
import firebase_admin from firebase_admin import credentials, db from flask import Flask, request, jsonify from flask_cors import CORS from datetime import datetime app = Flask(__name__) CORS(app) cred = credentials.Certificate( "C:\\Users\\vitht\\PycharmProjects\\pythonProject4\\firebase_db_connection\\test-71f0...
import { useState } from "react"; import { postVoluntario } from "../../services/VoluntarioService"; import "./Voluntario"; const Voluntario = () => { const [nome, setNome] = useState(""); const [cpf, setCpf] = useState(); const [email, setEmail] = useState(""); const [dataNasc, setDataNasc] = useState(""); ...
<!-- - @copyright 2022 Christoph Wurst <christoph@winzerhof-wurst.at> - - @author Michael Blumenstein <M.Flower@gmx.de> - @author 2022 Christoph Wurst <christoph@winzerhof-wurst.at> - @author 2023 Richard Steinmetz <richard@steinmetz.cloud> - - @license GNU AGPL version 3 or any later version - - This...
# Проект Explore-with-me ## EDT схема ![Cхема](https://github.com/SergeiBrin/java-explore-with-me/blob/main/EDT%20ewm.png) ## Описание проекта Приложение explore-with-me - это сервис, который позволяет пользователям делиться информацией об интересных событиях и находить компанию для участия в них, а также подписыв...
// // Models.swift // RickAndMorty // // Created by Daniel Agbemava on 02/01/2023. // import Foundation struct Episode : Codable, Hashable { var id: Int var name: String var airDate: String var episode: String var characters: [String] var url: String enum CodingKeys : String, Codin...
###################################################### # Bar plots Similar to Jagsi Paper and Correlations # # Between Dim 2 and Other Continuous Variables # ###################################################### library( tidyverse ) library( ggpubr ) # for arranging subplots library( Hmisc ) # for correlation ...
/************************************************************************** FRISC 2.0: FRISC 2.0 je temeljen na procesoru FRISC 1.0 Autor arhitekture: Danko Basch, 30.XII.2005. Autor prve verzije modela za ATLAS: Danko Basch FRISC 1.0: Autor arhitekture: Mladen Tomic (mentor: Mario Kovac) ...
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <%@ include file="../../include/head.jsp"%> <body class="hold-transition skin-blue sidebar-mini layout-boxed"> <div class="wrapper"> <!-- Main Header --> <%@ include file="../../include/main_header.jsp"%> <!-- Left side column. co...
import 'package:flutter/material.dart'; import 'package:music_player_app/themes/dark_theme.dart'; import 'package:music_player_app/themes/light_theme.dart'; class ThemeProvider extends ChangeNotifier { static ThemeProvider instance = ThemeProvider(); ThemeData themeData = lightMode; bool get isDarkMode => them...
<!-- Массивы бывают многомерными, для этого в каждый элемент массива следует расположить еще один массив. Таким образом возможно реализовать n-мерный массив. --> <html> <head> <title>Двумерная матрица</title> <script> // Создание многомерного массива. let table = ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class WaveSpawner : MonoBehaviour { [SerializeField] private List<Transform> EnemyPrefabs; // List of enemy prefabs to spawn [SerializeField] private float spawnDelay; [SerializeField] private float BonusTime; // UI ...
@isTest public with sharing class AFSExemptionTriggerHandlerTest { public static AFS_Exemption__c initialSetup() { AFS_Exemption__c exemp = new AFS_Exemption__c(); exemp.AFS_First_Name__c = 'Gwen'; exemp.AFS_Middle_Name__c = 'Elizabeth'; exemp.AFS_Last_Name__c = 'Stacy'; ...
import { store } from '../../store/store'; import { getClient } from '../../utils'; import { gql } from 'graphql-request'; import moment, { Moment } from 'moment'; import React, { useState } from 'react'; import { Dimensions, View, ScrollView, Text } from 'react-native'; import { useQuery } from 'react-query'; import {...
<?php /** * 按产品统计的研发需求规模总数。 * Scale of story in product. * * 范围:product * 对象:story * 目的:scale * 度量名称:按产品统计的研发需求规模总数 * 单位:工时 * 描述:按产品统计的研发需求规模总数表示产品种所有研发需求的总规模。这个度量项可以反映团队需进行研发工作的规模,可以用于评估产品团队的研发需求规模管理和成果。 * 定义:产品中研发需求的规模数求和;过滤父研发需求;过滤已删除的研发需求;过滤已删除的产品; * * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao ...
package com.dilatush.monitor.monitors.yolink; import com.dilatush.monitor.monitors.AMonitor; import com.dilatush.mop.Mailbox; import com.dilatush.mop.Message; import org.json.JSONException; import org.json.JSONObject; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import ...
"use client"; import React from 'react'; import { Button, Divider, Dropdown, DropdownItem, DropdownMenu, DropdownSection, DropdownTrigger } from "@nextui-org/react"; import {SlOptions} from "react-icons/sl"; import {AiOutlineLike} from "react-icons/ai"; import {GoBookmark} from "react-icons...
// IIFE to create a pokemonRepository variable that is not global and can be accessed publicly // with functions add, addv, getAll, and findByName let pokemonRepository = (function () { let pokemonList = []; let apiUrl = 'https://pokeapi.co/api/v2/pokemon/?limit=150'; let modalContainer = document.querySelector('...
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( title: 'Flutter Switch', debugShowCheckedModeBanner: false, theme: ThemeData(...
@model AllMissionsQueryModel @{ ViewBag.Title = "All Missions"; } <h2 class="text-center">@ViewBag.Title</h2> <hr /> <form method="get"> <div class="row"> <div class="form-group col-md-3 d-flex justify-content-between"> <div class="form-group"> <label asp-for="MissionType">...
import {body, param} from "express-validator"; import {UsersRepository} from "../repositories/users-repository"; import {container} from "../composition-root"; import {BlogsRepository} from "../repositories/blogs-repository"; import {LikeStatus} from "../types/types"; const usersRepository = new UsersRepository() exp...
import React from "react"; import { FieldAction, FieldInput, FieldLabel, } from "@strapi/design-system/Field"; import { Stack } from "@strapi/design-system/Stack"; import Refresh from "@strapi/icons/Refresh"; import styled from "styled-components"; export default function Index({ name, value, onChange, intlLabe...
// Copyright 2023 RISC Zero, 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...
import React, { useReducer } from "react"; import { TasksContext } from "./TasksContext"; import { TasksReducer } from "./TasksReducer"; const initialState = { todos: [ { id: 1, title: "Hey please works..this time....", completed: "To do", priority: "Low", }, { id: 2, title: "Hey please works....
//===- HandshakePlaceBuffers.h - Place buffers in DFG -----------*- C++ -*-===// // // Dynamatic is 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 // //===----------------------------------------...
"use client"; import React, { useEffect, useRef, useState } from "react"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { PaperPlaneIcon, ShadowInnerIcon } from "@radix-ui/react-icons"; import { postMessage } from "@/services/MessageService"; import { useApi } fr...
import '../../base/common/document_types.dart'; import '../../base/common/operators_def.dart'; import '../../base/operator_expression.dart'; import '../../query_expression/query_expression.dart'; import '../base/aggregation_stage.dart'; /// `$limit` aggregation stage /// /// ### Stage description /// /// lRestricts en...
import { MenuItem, useColorMode, useColorModeValue } from '@chakra-ui/react' import { MdOutlineLightMode, MdOutlineDarkMode } from 'react-icons/md' const MobileThemeToggle = ({}) => { const { colorMode, toggleColorMode } = useColorMode() return ( <MenuItem icon={ colorMode ...
import React, { useState, useEffect } from 'react'; import { useNavigate } from 'react-router-dom'; import { Card } from 'react-bootstrap'; import '../css/list-item-role.css'; import axios from 'axios'; const ListItemAuthors = ({ key, element, setAuthors, refreshRate, setRefreshRate }) => { const navigate = useNav...
(module translator (lib "eopl.ss" "eopl") (require "lang.scm") (require "environments.scm") (provide translation-of-program) (define translation-of-program (lambda (pgm) (cases program pgm (a-program (exp1) (a-program (translation-of exp1 (init-en...
package com.android.systemui.qs.tiles; import android.content.Intent; import android.content.res.Resources; import android.hardware.SensorPrivacyManager; import android.os.Handler; import android.os.Looper; import android.view.View; import android.widget.Switch; import androidx.appcompat.R$styleable; import androidx.l...
#ifndef modes_h #define modes_h /* Project Scope */ #include "display/display.h" #include "display/displayEffects.h" /* Libraries */ #include <Button2.h> /* Arduino Core */ #include <Arduino.h> /* C++ Standard Library */ #include <memory> #include <vector> class GameOfLife; struct ButtonReferences { Button2& ...
// // BreedListViewModelTests.swift // TheCatAppTests // // Created by revangelista on 08/05/2024. // import XCTest @testable import TheCatApp final class BreedListViewModelTests: XCTestCase { private var mockedBreedRepository: MockedBreedRepository! private var sut: BreedListViewModel! override func ...
-- Databricks notebook source -- MAGIC %md -- MAGIC ###Overview -- MAGIC This notebooks contains complete SPARK SQL / DELTA LAKE SQL Tutorial -- MAGIC ###Details -- MAGIC | Detail Tag | Information -- MAGIC |----|----- -- MAGIC | Notebook | SQL DRL HAVING Clause Statement details -- MAGIC | Originally Created By | Ra...
"use client"; import { Chart as ChartJS, CategoryScale, LinearScale, PointElement, LineElement, Title, Tooltip, Legend, Filler, } from "chart.js"; import { useState } from "react"; import { Line } from "react-chartjs-2"; ChartJS.register( CategoryScale, LinearScale, PointElement, LineElement,...
/* * Copyright 2015 Mikhail Titov. * * 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...
#pragma once #include <string> #include <string_view> #include "base/strings.h" #include "url_parser.h" namespace dash { class URL { public: URL(std::string url) : url_(std::move(url)) { TrimPrefixAll(&url_, ' '); TrimSuffixAll(&url_, ' '); http_parser_url_init(&parser_url_); par...
import Link from 'next/link'; import { css, Interpolation, Theme } from '@emotion/react'; import { User } from '../util/database'; import { AnchorHTMLAttributes } from 'react'; const headerStyles = css` padding: 12px 12px; margin: 12px; border-radius: 8px; /* background-image: linear-gradient( to right top...
<template> <div class="main"> <h1>Este es mi primer componente en vue 👻</h1> <div> <h3>{{mi_primer_variable}}</h3> <h4>{{otra_variable}}</h4> <h5>{{variableEstatica}}</h5> <p>Aqui estoy utilizando una variable computada para hacer que {{otra_variable}} se convierta en {{double}}</p> <p>Aqui est...
<?php /** * @file * Tests for the qforms extra module. */ class QformsExtrsTestCase extends DrupalWebTestCase { // Here we do not test custom format we test only ordinary date format // In selenium test custom format is tested const dateFormat = 'Y.d.m'; private function getQformExtraDefinition() { r...
/** * Loads a Wavefront .obj file with materials * * @author mrdoob / http://mrdoob.com/ * @author angelxuanchang */ THREE.OBJMTLLoader = function () {}; THREE.OBJMTLLoader.prototype = { constructor: THREE.OBJMTLLoader, /** * Load a Wavefront OBJ file with materials (MTL file) * * Loading progress is i...
import { useContext, useEffect } from 'react'; import OskariRPC from 'oskari-rpc'; import { ReactReduxContext } from 'react-redux'; import styled from 'styled-components'; import { useAppSelector } from '../../state/hooks'; import strings from '../../translations'; import { setActiveAnnouncements, setAllGroups,...
<?php declare(strict_types=1); namespace OrderService\Console\Commands; use Illuminate\Console\Command; use OrderService\UseCases\MarkOrderAsShipped as UseCase; use OrderService\ValueObjects\Exception\InvalidID; use OrderService\ValueObjects\ID; class MarkOrderAsShipped extends Command { /** * @var string ...
import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.preprocessing import MinMaxScaler from sklearn.metrics import mean_absolute_error, mean_squared_error import torch import torch.nn as nn # Define the LSTM model class MultiVariableLSTM(nn.Module): def __init__(self, input_size, hid...
import { Injectable, inject } from '@angular/core'; import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest, HttpErrorResponse } from '@angular/common/http'; import { Observable, catchError, switchMap, throwError } from 'rxjs'; import { AuthService } from '../services/auth.service'; /** Auth interceptor. Interc...
// // Created by gruzi on 15/03/2023. // #ifndef PROJECT_SOFTWARE_PRACTICUM2_METRONETVALIDATOR_H #define PROJECT_SOFTWARE_PRACTICUM2_METRONETVALIDATOR_H #include "MetroObject/IMetroObjectValidator.h" #include "Exceptions/MetronetInconsistentException.h" #include "Metronet.h" /** * @brief This serves as the Metrone...
import { JoinedResult } from '../../models/result' import { ResultsAction, FETCH_RESULTS_FULFILLED, FETCH_RESULTS_PENDING, FETCH_RESULTS_REJECTED, } from '../actions/results' interface ResultsState { data: JoinedResult[] | undefined error: string | undefined loading: boolean } const initialState: Result...
TF(1) TF(1) NAME tf - TinyFugue, a MUD client SYNOPSIS tf [-ffile] [-lnq] [world] tf [-ffile] host port DESCRIPTION...
<?php namespace App\Livewire\Componentes\Paneladmin; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; use Livewire\Component; use Livewire\WithFileUploads; use Illuminate\Support\Facades\Session; use Illuminate\Validation\ValidationException; class Recetaedit extends Component { use With...
// // ComicsEndpoint.swift // KingtakWongDisneyCruise // // Created by Kingtak Justin Wong on 4/4/22. // import Foundation class ComicEndpoint: BaseNetworkClass, NetworkEndpointProtocol { typealias dataType = ComicResponse //Endpoints are statically defined here to help define getting to the end v...