text
stringlengths
184
4.48M
using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace R3Modeller.Core.Utils { public static class StringUtils { /// <summary> /// Replaces multiple spaces with a single space. /// where dots are spaces, '.....' or '.........' beco...
--- title: "\"2024 Approved The New Wave of YouTube Channel Titles Perfect for Vloggers (Limited to 156 Characters)\"" date: 2024-05-31T12:42:05.369Z updated: 2024-06-01T12:42:05.369Z tags: - ai video - ai youtube categories: - ai - youtube description: "\"This Article Describes 2024 Approved: The New Wave of...
import * as React from 'react'; import Button from '@mui/material/Button'; import TextField from '@mui/material/TextField'; import Dialog from '@mui/material/Dialog'; import DialogActions from '@mui/material/DialogActions'; import DialogContent from '@mui/material/DialogContent'; import DialogTitle from '@mui/material/...
# --- Amy Jiravisitcul. 2 Apr 2022 ---- rm(list = ls()) # clear working environment setwd("~/Downloads/States from Fall 2021/") install.packages("tidyverse") # install tidyverse library(tidyverse) install.packages("readxl") # CRAN version library(readxl) install.packages("ggplot2") library(ggplot2) install.packages("da...
export function calculateAge(birthday: any) { var ageDifMs = Date.now() - birthday; var ageDate = new Date(ageDifMs); // miliseconds from epoch return Math.abs(ageDate.getUTCFullYear() - 1970); } export function generateAvatar(name: string) { return `https://ui-avatars.com/api/?name=${name}&background=random`;...
package mz.org.fgh.sifmoz.backend.therapeuticRegimen import grails.converters.JSON import grails.rest.RestfulController import grails.validation.ValidationException import mz.org.fgh.sifmoz.backend.utilities.JSONSerializer import static org.springframework.http.HttpStatus.CREATED import static org.springframework.htt...
<div class="row"> <p *ngIf="!tasks"><em>Loading...</em></p> <button type="button" class="btn btn-default" data-toggle="modal" data-target="#myModal">New task</button> <div class="modal fade" id="myModal" role="dialog"> <div class="modal-dialog modal-lg"> <div class="modal-content"> ...
import { Injectable } from '@angular/core'; import { Action, Selector, State, StateContext } from '@ngxs/store'; import { tap } from 'rxjs/operators'; import { patch } from '@ngxs/store/operators'; import { UserListDataService } from '../services/user-list-data.service'; import { GetUserList } from './user-list.actions...
#pragma once #include "clock_time.h" class Clock{ public: Clock(int hour, int minute, int second, double driftPerSecond); virtual ~Clock(); void reset(); void tick(); virtual void displayTime() = 0; protected: ClockTime _clockTime; double _driftPerSecond...
import { useEffect, useState } from "react"; import { Button, Col, Container, Image, Row } from "react-bootstrap"; import { FormattedMessage, useIntl } from "react-intl"; import { useNavigate, useParams } from "react-router-dom"; import { getUsuarioById } from "../../../helpers/backend/usuarioBackend"; import "./Usuari...
// Copyright Maxjestic. #include "Weapon/Weapon.h" #include "Character/BlasterCharacter.h" #include "Components/SphereComponent.h" #include "Components/WidgetComponent.h" #include "Net/UnrealNetwork.h" AWeapon::AWeapon() { PrimaryActorTick.bCanEverTick = false; bReplicates = true; WeaponMesh = CreateDefaultSubo...
package nl.hr.project3_4.straalbetaal.server.resources; import nl.hr.project3_4.straalbetaal.api.*; import nl.hr.project3_4.straalbetaal.server.services.Service; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; import org.apache.log4j.Logger; @Path("/") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaT...
import json import joblib import numpy as np import pandas as pd from flask import jsonify #=== === === === === === RESULT = "result" RESULT_FRAUD = "FRAUD" RESULT_NOT_FRAUD = "NOT-FRAUD" RESULT_UNKNOWN = "UNKNOWN" RESULT_ERROR = "ERROR" DATA_EMPTY_VALUE = "-" def post(request): homo_json ...
The aim of the Maybe type is to avoid using 'null' references. A Maybe<T> represents a possibly non-existent value of type T. The Maybe type makes it impossible (without deliberate effort to circumvent the API) to use the value when it does not exist. A Maybe<T> is either unknown(), in which case a known value does ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <!-- Font --> <link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link ...
import numpy as np import matplotlib.pyplot as plt from replay_buffer import ReplayBuffer from utils.parse_args import parse_args from utils.plot_metrics import plot_metrics from utils.export_results import export_results import sys import pandas as pd from envs.BertrandInflation import BertrandEnv from envs.LinearBer...
import { Module } from '@nestjs/common'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { MongooseModule } from '@nestjs/mongoose'; import { envFilePathConfiguration } from './Configs/EnvFilePathConfig'; import { nestEnvConfiguration } from './Configs/NestEnvConfig'; import { ApplicationModule } f...
<!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>Jamilli Gioielli</title> <!-- Favicon --> <link rel="shortcut icon" href="./assets/img/favicon_avata...
/* * The MIT License * * Copyright 2018 agvico. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:ecommerce/features/shop/models/brand_model.dart'; import 'package:flutter/services.dart'; import 'package:get/get.dart'; import '../../../common/widgets/exceptions/exceptions.dart'; class BrandRepository extends GetxController { static BrandRepo...
use super::constants::{ MANAGE_SERVERS_LONG, MANAGE_SERVERS_SHORT, MANAGE_STREAMS_LONG, MANAGE_STREAMS_SHORT, MANAGE_TOPICS_LONG, MANAGE_TOPICS_SHORT, MANAGE_USERS_LONG, MANAGE_USERS_SHORT, POLL_MESSAGES_LONG, POLL_MESSAGES_SHORT, READ_SERVERS_LONG, READ_SERVERS_SHORT, READ_STREAMS_LONG, READ_STREAMS_SH...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .list-item { display: inline-block; width: 40px; text-align: center; } .list-enter-active, .list-leave-active { transition: all 1s; } .list-enter, .list-leave-to { opacity: 0; ...
import React from "react"; import {createBoard} from "../board/create.js"; import {useForceUpdate} from "../hooks/index.js"; import {Loading} from "../components/Loading.jsx"; import {useDelay} from "../hooks/index.js"; export const BoardContext = React.createContext({}); // Import initial board data const loadBoardD...
@extends('admin.layouts.master') @section('title', 'Create Fast Food') @section('content') <div class="main-content"> <div class="section__content section__content--p30"> <div class="container-fluid"> <div class="row"> <div class="col-3 offset-8"> ...
import { useState } from "react"; import { useRouter } from 'next/router'; import { useSession, signIn, getSession } from 'next-auth/react'; import ReCAPTCHA from "react-google-recaptcha"; import axios from "axios"; import Image from "next/image"; import Link from "next/link"; import Head from "next/head"; // Component...
// Copyright (c) 2023 Sendbird, Inc. All rights reserved. import 'package:isar/isar.dart'; import 'package:sendbird_chat_sdk/sendbird_chat_sdk.dart'; import 'package:sendbird_chat_sdk/src/internal/db/schema/message/c_admin_message.dart'; import 'package:sendbird_chat_sdk/src/internal/db/schema/message/c_file_message.d...
import datetime from wtforms import validators, fields, widgets from flask_wtf import FlaskForm from flask_wtf.file import FileAllowed from .fields import TagListField from banchi_client import models class TransactionForm(FlaskForm): date = fields.DateTimeField( "Date", format="%Y-%m-%d %H:%M:...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
import java.io.*; import java.awt.*; import java.awt.event.*; import java.util.LinkedList; import java.util.Iterator; import java.util.StringTokenizer; /** * @author: Wayne Iba * @date: 3-12-2012 * @version: Beta 0.5 * * BaseAgent controls a GOBAgent by either moving toward the food as given by * the smell se...
import 'package:cinemapedia/domain/entities/movie.dart'; abstract class LocalStorageRepository { // NOTA: Esto lo podemos hacer mandado la pelicula, o simplemente un booleano y de hecho lo vamos a hacer de las dos formas Future<void> toggleFavorite(Movie movie); Future<bool> isMovieFavorite(int movieId); // ...
// GuildMemberData.ts - Module for my "guild member data" class. // Apr 5, 2021 // Chris M. // https://github.com/RealTimeChris 'use strict'; import Level from 'level-ts'; import FoundationClasses from './FoundationClasses'; /** * Class representing the init data for a guild member data structure. */ interface Gui...
#!/usr/bin/env python2 # -*- coding: utf8 -*- # Terminator by Chris Jones <cmsj@tenshu.net> # GPL v2 only """titlebar.py - classes necessary to provide a terminal title bar""" from gi.repository import Gtk, Gdk from gi.repository import GObject from gi.repository import Pango import random import itertools from versi...
<?php /** * Callback function. here we prepare complete table for task * @return array */ function brilliant_pr_task_list_complete() { global $user; //Create a list of headers for Html table if (in_array('administrator', $user->roles) || in_array('curator', $user->roles)) { $header = array( array('...
import React, { useEffect, useState } from "react"; const Clock = () => { const [currentTime, setCurrentTime] = useState(new Date()); useEffect(() => { const tickInterval = setInterval(() => { setCurrentTime(new Date()); }, 1000); return () => { clearInterval(ti...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>mart</title> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400...
const express = require("express"); const dotenv = require("dotenv"); const path = require("path"); const cors = require("cors"); const plaqueRouter = require("./routes/plaqueRouter"); const permisOneRouter = require("./routes/permisRouteOne"); const userRouter = require("./routes/usersRouter"); const permisRouter = re...
// ********************************************************************************************************************* // *** CONFIDENTIAL --- CUSTOM STUDIOS *** // ***************************************************************************...
const Sequelize = require('sequelize'); const {models} = require('./model'); const {log, biglog, errorlog, colorize} = require("./out"); exports.helpCmd = (socket,rl) => { log (socket,"Commandos:"); log (socket," h|help - Muestra esta ayuda."); log (socket," list - Listar los quizzes existentes.");...
import React from 'react'; import { render } from '@testing-library/react'; import '@testing-library/jest-dom/extend-expect'; import renderer from 'react-test-renderer'; import { testComponentRender } from '../../../utils/testingUtils'; import NavigationAction from '../NavigationAction'; const testId = 'navigationAct...
/// # Sample /// Type Declarations /// /// # Description /// User-defined types, or UDTs as they are commonly called, are supported /// in Q#. They are immutable but support a copy-and-update construct. namespace MyQuantumApp { @EntryPoint() operation Main() : Unit { // UDTs are defined with the `newtyp...
# -*- coding: utf-8 -*- """ Brief: Heuristics on the smallest singular value of discrete Gaussian matrices over modules over cyclotomic rings. [Bound testing] """ #-- Import --# from sage.stats.distributions.discrete_gaussian_lattice import DiscreteGaussianDistributionLatticeSampler from scipy import linalg i...
using Data.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Data.Configurations { public class PatientConfiguration : IEntityTypeConfiguration<Patient> { public void Configure(EntityTypeBuilder<Patient> builder) { builder....
use std::io; use advent_of_code_2020_rust::utils::file::lines_from_file; use advent_of_code_2020_rust::day4_common::ValidDocCounter; fn main() -> io::Result<()> { let valid = vec!["byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid"]; let lines = lines_from_file("data/day4.txt")?; let count = SimpleValidDocCo...
#pragma once #include <atomic> #include <condition_variable> #include <memory> #include <mutex> #include <queue> #include <thread> #include "base/message_loop/message_pump.h" #include "base/time/time_ticks.h" namespace base { class DelayedTaskManager { public: struct DelayedTask { bool operator<(const Delaye...
import React, { useEffect } from 'react' import { addToCart, clearCart, decreaseCart, getTotals, selectCartItems, selectcartTotalAmount } from '../features/cartSlice' import { useDispatch, useSelector } from 'react-redux'; import { NumericFormat } from 'react-number-format'; import '../css/cart.css' import { Link } fro...
// Overload -> Uma função se comporta de maneiras diferentes dependendo da quantidade de parâmetros passados // type Adder contem as possíveis maneiras de chamar a nossa função. type Adder = { (x: number): number; (x: number, y: number): number; (...args: number[]): number; }; const adder: Adder = (x: number, y?...
# Conditions and Effects ## Conditions Conditions are essentially the prerequisites or requirements that need to be met for an action to be executed. They are tied to the game's state, represented by `WorldKey`. - **Key**: This is the `WorldKey` that the condition checks. Think of it as a variable or a state in the ...
<?php declare(strict_types=1); namespace Skrepr\IdType\ValueResolver; use Skrepr\IdType\ValueObject\AbstractUuid; use Doctrine\ORM\Mapping\ClassMetadataInfo; use Doctrine\Persistence\ManagerRegistry; use ReflectionNamedType; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Controller\Va...
import { SeverityLevel } from '@microsoft/applicationinsights-web'; import { ThunkAction } from 'redux-thunk'; import { getIndexOfAppointment } from '../utils/AppointmentHelpers'; import { SetNextAppointmentForConsultation, SetPreviousAppointmentConsultation, } from './ConsultationActions'; import { RootState }...
<?php /** * This is the model class for table "forma_pagamento". * * The followings are the available columns in table 'forma_pagamento': * @property integer $id * @property string $nome * @property integer $ativo */ class FormaPagamento extends CActiveRecord { const _TIPO_DINHEIRO_ = 1; /** * @retur...
# Igor The Igor vendoring tool offers generic vendoring of common fragments of text files that allow comments. This tool is named after a character that appears in several Diskworld novels (my favorite is "Thief of Time"). This character offers a nice metaphor for what this tool tries to provide. An Igor is an assist...
package com.example.dailycalories.presentation.screens.meal.add_meal import com.example.dailycalories.domain.model.meal.MealFoodProduct sealed class AddMealEvent { data class AddMealProduct( val mealProduct: MealFoodProduct, ) : AddMealEvent() data class ChangeMealProductGrams( val mealP...
# htmx sorta A demo project where I learn and play with my "Rust web stack": * Rust * Nix flakes for building and dev shell * [redb](https://github.com/cberner/redb) Rust local key-value store database * [astra](https://github.com/ibraheemdev/astra) Rust web server library * [maud](https://github.com/lambda-fairy/mau...
import 'dart:convert'; import 'package:auto_size_text/auto_size_text.dart'; import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; import 'package:provider/provider.dart'; import 'package:safecty/core/navigation/named_route.dart'; import 'package:safecty/feature/home/home_view_model.dart'; im...
/** * Shows a list of annotations as a cloud in different sizes and colors depending on the size of ... * * @class * @extends Biojs.TagCloud * * @author <a href="mailto:johncar@gmail.com">John Gomez</a> * * @requires <a href="../biojs/css/biojs.AnnotationsCloud.css">AnnotationsCloud CSS</a> * @dependency <l...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { AuthService } from 'src/app/services/auth.service'; import { Admin } from 'src/app/types/Admin'; import Swal from 'sweetalert2' @Component({ selector: 'app-signup-page', templateUrl: './signup-page.component.h...
package com.mathiezelat.portfolio.Security.Controller; import java.util.HashSet; import java.util.Set; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.s...
// // RegisterViewController.swift // Assignment 1 Tatiana // // Created by Tatiana Pasechnik on 13/04/23. // import UIKit class RegisterViewController: UIViewController, UITextFieldDelegate{ //outlets @IBOutlet weak var nameTextField: UITextField! @IBOutlet weak var addressTextField: UITextField! ...
/* Copyright 2022 Savvas Dalkitsis 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 in writing, softwar...
from abc import ABC, abstractmethod from pprint import pprint class Gradinita(ABC): @abstractmethod def activitate_practica(self): pass @abstractmethod def ora_de_somn(self): raise NotImplementedError class GradinitaPublica(Gradinita): def activitate_practica(self): prin...
<!DOCTYPE html> <html lang="fr"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <!-- CSRF Token --> <meta name="csr...
# Interview--Java基础 精心收录整理互联网笔试面试题,以及自己发布的文章,欢迎各位star!或者关注微信公众号【1024笔记】,免费获取海量学习资源 . 作者:江夏、 . 简书:https://www.jianshu.com/u/b3263fc54bce . 知乎:https://www.zhihu.com/people/qing-ni-chi-you-zi-96 . GitHub:https://github.com/JiangXia-1024?tab=repositories . 博客地址:https://blog.csdn.net/qq_41153943 ------ ### 1、&和&&的区别...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Mar 22 22:05:35 2019 Description: Generates panel (e) of main Fig. 2, i.e. the Gaussian Process extrapolation results for the static linear decoder, for the PPC manuscript. Unlike Fig. 2d, for this analysis, the "...
package at.hannibal2.skyhanni.features.inventory import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.api.CollectionAPI import at.hannibal2.skyhanni.events.RenderItemTipEvent import at.hannibal2.skyhanni.utils.InventoryUtils import at.hannibal2.skyhanni.utils.ItemUtils import at.hannibal2.skyhanni.uti...
import "../scss/PostApp.scss"; import React from "react"; import { useDispatch, useSelector } from "react-redux"; import { getPosts } from "../redux/postSlice"; import PostItem from "./PostItem"; const PostApp = () => { const dispatch = useDispatch(); const posts = useSelector((state)=>state.post.posts) return ...
<div class="col-xs-8"> <div class="panel panel-primary heading-gap"> <div class="panel-heading">Item Details</div> <table class="table table-hover"> <thead> <tr> <th style="width:10%;">Action</th> <th style="width:40%;">Name</th> <th style="width:35%;">Description</th> ...
--- title: Les frameworks web côté serveur slug: Learn/Server-side/Premiers_pas/Web_frameworks tags: - Débutant - Guide - Server - Web translation_of: Learn/Server-side/First_steps/Web_frameworks --- <div><section class="Quick_links" id="Quick_Links"> <ol> <li data-default-state="closed"><a href="/fr/docs/Le...
% FloatShield grey-box identification procedure % % Identification of a first-principles based grey-box model using experimental data. % % This code is part of the AutomationShield hardware and software % ecosystem. Visit http://www.automationshield.com for more % details. This code is licensed under a Creati...
""" Import libraries """ import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec """ Define functions """ # Use trapezoid rule to integrate a function numerically from a to b def integrate(X, Y): N = len(Y) deltax = (X[-1] - X[0])/N return (Y[0] + Y[N-1] + 2*np.sum(Y[1:N-2...
$(document).ready(function(){ $(window).scroll(function(){ /* sticky navbar on scroll script */ if(this.scrollY > 20){ $('.navbar').addClass("sticky"); }else{ $('.navbar').removeClass("sticky"); } /* scroll-up button show/hide script */ ...
import { Fragment } from 'react' import { Box } from '@intouchg/components' import { ApiTableTitle, ApiTableCell } from './ApiTable' import styleApi from '@/content/apis/style' import { Code } from './Code' const StyleApiTable = ({ themeProperty, ...props }) => ( <Box as="table" width="100%" fontSize={1} marg...
-- luasnip setup local luasnip = require 'luasnip' -- nvim-cmp supports additional completion capabilities local capabilities = vim.lsp.protocol.make_client_capabilities() vim.o.completeopt = 'menuone,noselect' -- Setup nvim-cmp. local cmp = require'cmp' local kind_icons = { Text = "", Method = "", Function = ...
<!-- 5 блочных тегов: <p>, <div>, <form>, <nav>, <ul> - можно создавать структуру веб-страницы 5 семантических тегов: <em>, <small>, <strong>, <s>, <cite> - форматирования текстовых фрагментов 5 одиночный тегов: <br>, <hr>, <img>, <source>, <area> - оперируют с одиночными объектами --> <!DOCTYPE html> <html> <head>...
#pragma once #include "Graphics/GPU/GPUInterface.hpp" /* - none: (default) local read/write memory, or input parameter - const: global compile-time constant, or read-only function parameter, or read-only local variable - in: linkage into shader from previous stage - out: linkage out of ...
package watcher import ( "context" "time" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethclient" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" "github.com/kroma-network/kroma/bindings/bindings" )...
-- creating a stored procedure in MySQL that accepts a year as input and checks whether it is a leap year. DELIMITER $$ CREATE PROCEDURE IsLeapYear(IN year INT) BEGIN DECLARE leapYear BOOLEAN; SET leapYear = FALSE; IF year MOD 4 = 0 THEN IF year MOD 100 = 0 THEN IF year MOD 400 = 0 THEN SET le...
#include <stdio.h> #include <stdbool.h> #include <cstring> // Include for strlen bool validate_string(char *str) { if (*str == '\0') { return true; // Empty string (e) is valid } // Check for production S -> 0S1 if (*str == '0') { int len = strlen(str); if (len > 1 && str[len - 1] == '1') { // ...
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 include "../HKDF/HMAC.dfy" include "../Digest.dfy" include "../../Model/AwsCryptographyPrimitivesTypes.dfy" /* * Implementation of the https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-108r1.pd...
/** * https://adventofcode.com/2020/day/11 */ import {multiLine} from '../../common/parser.mjs'; // Parse Input let inputFilePath = new URL('./input.txt', import.meta.url); const arrInput = multiLine.toArrayofStrArrays(inputFilePath); // Maybe this isn't needed, but surround the whole thing with floor // Honestly,...
import { TodoActionTypes } from '../actions/todo.actions'; import { TodoTask } from '../models/todo-task.model'; export interface TodoState { list: TodoTask[]; loading: boolean; error: Error; } const initialState: TodoState = { list: [], loading: false, // eslint-disable-next-line @typescript-eslint/no-no...
"""Contains basic ui elements""" # pylint: disable=R0903 # pylint: disable=R0902 ###### Python Built-in Packages ###### ###### Type Hinting ###### ###### Python Packages ###### ###### My Packages ###### from pyengine.libs.designer.py_base import PyBase from pyengine.libs.designer.py_attributes import Rectangle, Te...
package com.commerce.inventory.service.saga.helper; import com.commerce.inventory.service.common.DomainComponent; import com.commerce.inventory.service.common.outbox.OutboxStatus; import com.commerce.inventory.service.common.valueobject.InventoryStatus; import com.commerce.inventory.service.common.valueobject.Quantity...
import GDrive from '../gdrive.js'; import multer from 'multer'; import config from 'config'; const drive = new GDrive(); // Instancia de la clase GDrive const upload = multer({ dest: 'uploads/' }); // Configuración de multer export const listarArchivos = async (req, res) => { try { const { page = 1, pageSize = ...
<script lang="ts"> import Textarea from '$lib/components/Textarea.svelte'; import Send from '$lib/icons/Send.svelte'; export let data; const threadInfo = data.trpc.thread.getThreadEmailList.query( { threadId: data.threadId }, { select(res) { if (res.unread) { $markAsRead.mutate({ threadId: data.th...
@extends('layouts.app') {{-- page title --}} @section('seo_title', Str::plural($page->title) ?? '') @section('search-title') {{ $page->title ?? ''}} @endsection {{-- vendor styles --}} @section('vendor-style') @endsection {{-- page style --}} @section('page-style') <link rel="stylesheet" type="text/css" href="{{...
// // TweetTableViewCell.swift // Twitter // // Created by Angel Zambrano on 9/26/22. // Copyright © 2022 Dan. All rights reserved. // import UIKit class TweetTableViewCell: UITableViewCell { static let identifier = "TweetTableViewCell" let userImageView: UIImageView = { let imgview = UIImag...
library(tidyverse) library(ggplot2) #setwd(...) coherence <- read_csv("lobe_averages.csv") # Refactor Categorical Variables --------------------------------------- coherence <- coherence %>% mutate(test_session = fct_relevel(test_session, c("pretest", "posttest")), condition = fct_relevel(condition, c("da...
#include "vector.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <search.h> void grow(vector* v){ v->Maxlength += v->toAdd; v->start = realloc(v->start , v->Maxlength*v->elemSize); assert(v != NULL); } void VectorNew(vector *v, int elemSize, VectorFreeFunction f...
/* eslint-disable */ import React from 'react'; import { Formik, Form } from 'formik'; import { Link, useLocation, useNavigate } from 'react-router-dom'; import useAuth from '../../hooks/useAuth'; import AuthForm from '../../components/AuthForm/AuthForm'; import FormInput from '../../components/FormInput/FormInput'; im...
// Copyright 2021-2024 FRC 6328 // http://github.com/Mechanical-Advantage // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // version 3 as published by the Free Software Foundation or // available in the root directory of this project. //...
# Design Document (Class Records Database) By _Cyrille C. Cervantes_ Video overview: [Student Records Database - CS50 SQL Project](https://www.youtube.com/watch?v=AXD-8H0x8uE) ## Scope ### Purpose The purpose of the database is to efficiently manage and store students records handled by teachers. This involves crea...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCouponsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('coupons', funct...
use std::env; use ansilo_connectors_base::interface::{LoggedQuery, ResultSet}; use ansilo_core::err::Result; use ansilo_e2e::current_dir; use itertools::Itertools; use pretty_assertions::assert_eq; use serial_test::serial; #[test] #[serial] fn test_delete_where_remote() { ansilo_logging::init_for_tests(); let...
import 'package:animated_bottom_navigation_bar/animated_bottom_navigation_bar.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/services.dart'; import 'pack...
import { CommandHandler, ICommandHandler } from '@nestjs/cqrs'; import { Injectable, UnauthorizedException } from '@nestjs/common'; import { LoginCommand } from './login.command'; import { UserService } from '../../domain/services/user.service'; @Injectable() @CommandHandler(LoginCommand) export class LoginCommandHand...
<!doctype html> <html lang="en"> <head> {% load static %} <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootst...
package com.miniproject335b.app.controller; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageR...
import numpy as np from typing import Tuple class AbstractSteeringModel: @property def beta(self): raise NotImplementedError def reset(self): raise NotImplementedError def integrate(self, control, dt): raise NotImplementedError class DirectSteeringModel(AbstractSteeringMode...
from typing import Optional from .tag import SelfClosingTag from .types import ContextBase class img(SelfClosingTag): """ Represents the 'img' HTML tag, a self-closing element used to embed an image into a webpage. This tag requires a source URL specified via the 'src' attribute to function correctly and...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using HaberPortal.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using HaberPortal.ViewModels; using Microso...