text
stringlengths
184
4.48M
package main import ( "encoding/json" "net/http" "github.com/rs/cors" ) type Message struct { Text string `json:"text"` } func main() { // Create a new CORS middleware corsMiddleware := cors.New(cors.Options{ AllowedOrigins: []string{"http://localhost:3000"}, }) // Message Endpoint http.HandleFunc("/api...
/* * Tupaia * Copyright (c) 2017 - 2023 Beyond Essential Systems Pty Ltd */ import React, { useState } from 'react'; import { Button, ListItemProps, CircularProgress, List, ListItem } from '@material-ui/core'; import styled from 'styled-components'; import { FlexColumn } from '@tupaia/ui-components'; import { Link...
<template> <div> <div class="rightBox"> <h4 class="title">注册</h4> <el-form :model="addForm" :rules="addFromRules" ref="addFormRef" label-width="85px" > <el-form-item label="用户名:" prop="username"> <el-input v-model="addForm.username" ...
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; import 'package:teamproject/others/constants.dart'; class MembersScreen extends StatefulWidget { const MembersScreen({Key? key}) : super(key: key); @override _MembersScreenState createState() => _MembersScreenState();...
/* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04...
//useState,useEffect,useContext,useReducer,useCallback,useMemo,useRef import { useState } from "react"; function App() { // let count =0; // console.log(useState(0)); // const [count,setCounter] = useState(0); // second way const [state, setState] = useState({ count: 0, isClickButto...
#ifndef ALLUVION_DG_KD_TREE_HPP #define ALLUVION_DG_KD_TREE_HPP #include <Eigen/Dense> #include <algorithm> #include <array> #include <functional> #include <iostream> #include <list> #include <numeric> #include <queue> #include <stack> #include <vector> #include "alluvion/dg/bounding_sphere.hpp" namespace alluvion { ...
import { useEffect, useState } from 'react'; import { Route, Switch, useRouteMatch, } from 'react-router-dom'; import '../styles/App.scss'; import getTweets from '../services/api'; import ls from '../services/local-storage'; import Profile from './Profile'; import Header from './Header'; import ComposeModal from './Com...
import 'package:app_leohis/controllers/FCMController.dart'; import 'package:app_leohis/controllers/LocalData.dart'; import 'package:app_leohis/controllers/ThongBaoController.dart'; import 'package:app_leohis/models/ThongBao.dart'; import 'package:app_leohis/views/components/button.dart'; import 'package:app_leohis/view...
// // MovieDetailsViewModel.swift // TeldaMovies // // Created by Ahmed M. Hassan on 24/11/2022. // import Foundation // MARK: MovieDetailsViewModel // final class MovieDetailsViewModel { let networking = TMDBNetworking() let converter = MovieViewModelConverter() let movie: MovieEntity private va...
<chapter id="sidebar"> <chapterinfo> <authorgroup> <author>&Pamela.Roberts;</author> <!-- TRANS:ROLES_OF_TRANSLATORS --> </authorgroup> <date>2011-11-22</date> <releaseinfo>&kde; 4.8</releaseinfo> </chapterinfo> <title>The Sidebar</title> <para>The Sidebar appears as a separate view at the left of &konqueror;'s wi...
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { AuthService } from '../auth/auth.service'; import { LocalStrategy } from '../auth/local.strategy'; import { JwtStrategy } from '../auth/jwt.strategy'; import { ConfigService, ConfigModule } from '@nestjs/config'; import {...
import React, { useState, useEffect } from 'react'; import { collection, addDoc, serverTimestamp, getDocs, doc, updateDoc } from 'firebase/firestore'; import { database } from '../firebaseConfig'; import '../styles/moneyTransfer.scss'; import AOS from 'aos'; import 'aos/dist/aos.css'; const MoneyTransfer = () => { u...
class Api::V1::BondsController < ApplicationController before_action :authenticate_user! def index @bonds = Bond.all render json: @bonds end def show @bond = Bond.find(params[:id]) if @bond render json: @bond else render json: @bond, status: :unprocessable_entity end end ...
import {BrowserModule} from '@angular/platform-browser'; import {NgModule} from '@angular/core'; import {HttpClientModule} from '@angular/common/http'; import { EventsListComponent, EventThumbnailComponent, EventService, EventDetailsComponent, CreateEventComponent, EventListResolver, CreateSessionCompone...
package day16 import day16.Direction.* import println import readInput import java.lang.IllegalArgumentException fun main() { // test if implementation meets criteria from the description, like: val testInput = readInput("day16/Day16_test") check(part1(testInput).also { it.println() } == 46) check(par...
<!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> <!-- Reset CSS --> <link rel="stylesheet" href="./assets/css/resest.css"> <!-- E...
"use server"; import { RegisterProps, UserProps } from "@/types"; import axios from "axios"; import { revalidatePath } from "next/cache"; export const fetchUserData = async ({ take, skip, search, }: { take: number; skip: number; search: string | null; }) => { try { const res = await axios.get( ...
// portion of https://github.com/odin-lang/Odin/raw/master/examples/demo/demo.odin package main import "core:fmt" import "core:mem" import "core:os" /* The Odin programming language is fast, concise, readable, pragmatic and open sourced. It is designed with the intent of replacing C with the following goals: * s...
from flask_cors import cross_origin from functools import wraps from flask import request, jsonify from flask_jwt_extended import get_jwt_identity, verify_jwt_in_request, create_access_token, jwt_required from app.models import Funcion, Grupo, Productor, User, Venta from app import app, db from app.schemas import ( ...
import { Injectable } from '@angular/core'; import { FormGroup, FormControl, Validators } from '@angular/forms'; import { IUserGroupUsers, NewUserGroupUsers } from '../user-group-users.model'; /** * A partial Type with required key is used as form input. */ type PartialWithRequiredKeyOf<T extends { id: unknown }> =...
// ignore_for_file: deprecated_member_use, avoid_print import 'package:angry_coach_beta/extract/my_button.dart'; import 'package:angry_coach_beta/pages/log_in/signup3age.dart'; import 'package:angry_coach_beta/providers/user_properties_provider.dart'; import 'package:flutter/material.dart'; import 'package:fluttertoas...
<template> <div> <v-container class="book" style="max-width: 1000px"> <div class="book-title"> <h2 style="color: #ef5350">THE</h2> <h1 style="color: #ef5350">HOLY BIBLE</h1> <h3 style="color: #ef5350">TRANSLATED FROM<br />THE LATIN VULGATE</h3> <h4>Diligently conferred with the Hebrew, Greek,<br /...
package org.piramalswasthya.cho.work import android.content.Context import android.os.Build import androidx.annotation.RequiresApi import androidx.hilt.work.HiltWorker import androidx.work.CoroutineWorker import androidx.work.WorkerParameters import dagger.assisted.Assisted import dagger.assisted.AssistedInject import...
import { getStock, updateStock, deleteStock } from "@/lib/api/stock"; import Cors from "cors"; import initMiddleware from "@/lib/init-middleware"; import { callTokenValidate } from "@/lib/utils/token"; // Initialize the cors middleware const cors = initMiddleware( Cors({ methods: ["GET", "POST", "PUT", "DELETE"...
<div align="center"> # Alura - Formação - Desenvolva seu primeiro app com Flutter ## O que foi Proposto Domine um dos frameworks de desenvolvimento mobile mais populares atualmente e, já no primeiro curso sobre Flutter, aprenda a criar aplicativos para Android e iOS. ## Mergulhe em Flutter O Flutter é um framework...
"use strict"; /****************************************************************************** * Copyright 2021 TypeFox GmbH * This program and the accompanying materials are made available under the * terms of the MIT License, which is available in the project root. *************************************************...
using System.Runtime.CompilerServices; using IPT.Common.API; using Rage; [assembly: InternalsVisibleTo("CalloutInterface")] [assembly: InternalsVisibleTo("GrammarPolice")] namespace IPT.Common.Handlers { /// <summary> /// Used for managing player status. /// </summary> public static class PlayerHandl...
package br.com.financeiro.api.v1.controller; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.Mockito.verify; import sta...
欽定四庫全書     經部一   周易孔義集說     易類   提要   〈臣〉等謹案周易孔義集說二十卷   國朝沈起元撰起元字子大太倉人康熙辛丑進士官至光祿寺卿是書大㫖以十翼為夫子所手著又未經秦火其書獨完故學易者必當以孔傳為主因取明髙攀龍周易孔義之名別加纂集於古今說易諸書無所偏主惟合於孔傳者即取之其篇次則仍依今本以傳象傳繋於經文之下謂易之亡不亡不係於古本之復不復王氏以傳附經亦足以資觀玩惟大象傳徃徃別自起義文言則引伸觸𩔖以闡易藴皆無容附於本卦故別出之前列三圖一為八卦方位圖一為乾坤生六子圖一為因重圖皆據繫辭説卦之文至於河圖洛書先天後天方圓諸圖則謂此陳邵之易非夫子所本有概從刪薙頗能掃除紛紜轇轕之習其中亦多能推騐舊説引伸新義如乾彖傳大...
import { cmsToFeetInch } from '../utils'; export const MIN_AGE = 18; export const MAX_AGE = 80; export const cardTextTruncateLength = 115; if (MAX_AGE - MIN_AGE < 0 || MAX_AGE - MIN_AGE > 100) { throw new Error(`illegal age range: ${MIN_AGE} - ${MAX_AGE}`); } function freezeObjArray<T>(array: T[]): readonly Readon...
<!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> </head> <body> <script> // 第三层函数只在内部调用,而不加return function hd() { ...
import type { UmbCreatedPackageDefinition, UmbCreatedPackages } from '../../types.js'; import { UMB_PACKAGE_STORE_TOKEN } from './package.store.js'; import { UmbPackageServerDataSource } from './sources/package.server.data.js'; import type { UmbPackageStore } from './package.store.js'; import { isManifestBaseType } fro...
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="css/estilo.css" /> <title>PCWeb2022 - Atividade de Recuperação 1</title> <style> * { font-family: Roboto, Helvetica, sans-serif; ...
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import { MatDialog, MAT_DIALOG_DATA, MatDialogRef, MatDialogConfig } from '@angular/material/dialog'; import { Route, Router } from '@angular/router'; import { ForgotPasswordComponent } from '../forgot-password/forgot-password.component'; import ...
import { Injectable, inject } from '@angular/core'; import { Message, MessageService } from 'primeng/api'; type OmittedKeys = 'severity' | 'detail' | 'closable'; type MessageOptions = Omit<Message, OmittedKeys>; @Injectable({ providedIn: 'root' }) export class ToastService { private messageService = inject(Messag...
#!/usr/bin/env python # Generic driver for the Neato XV-11 Robot Vacuum # Copyright (c) 2010 University at Albany. All right reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source c...
import Image from 'next/image'; import { client } from '../../../../lib/sanity.client'; import { groq } from 'next-sanity'; import urlFor from '../../../../lib/urlFor'; import { PortableText } from '@portabletext/react'; import { RichTextComponents } from '../../../../components/RichTextComponents'; import { getFormatt...
# Created by asetti2002 at 2024/05/01 20:12 # leetgo: 1.4.3 # https://leetcode.com/problems/minimize-the-maximum-of-two-arrays/ from typing import * from leetgo_py import * # @lc code=begin class Solution: def minimizeSet(self, divisor1: int, divisor2: int, uniqueCnt1: int, uniqueCnt2: int) -> int: low = ...
package com.example.wastemanagement import android.content.Intent import android.os.Bundle import android.util.Log import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Button import android.widget.TextView import androidx....
import React from "react"; import { Link } from "react-router-dom"; import { useState } from "react"; const signUpRequest = (setIsHidden, setMessage) => (e) => { e.preventDefault(); let email = e.nativeEvent.srcElement[1].value let password = e.nativeEvent.srcElement[2].value let confirmPassword = e.na...
import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:music/screens/albums/controller.dart'; class AlbumsScreen extends StatefulWidget { const AlbumsScreen({super.key}); @override State<AlbumsScreen> createState() => _AlbumsScreenState(); } class _...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using GardenGlory.Context; using GardenGlory.EfClasses; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.ChangeTracking; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCo...
from django.http import HttpResponse from django.db.models import Sum from django.shortcuts import get_object_or_404 from django.conf import settings from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets, status from rest_framework.decorators import action from rest_framework...
<?php /* For licensing terms, see /license.txt */ require_once __DIR__.'/../../../../vendor/autoload.php'; /** * Test example to user API v2.php. * * Using Guzzle' HTTP client to call the API endpoint and make requests. * Change URL on the first lines of createUser() below to suit your needs. */ use GuzzleHttp\...
import TP2Objetos.* describe "TEST" { const enviosRapidos = new Sector(costoDe = 20) const enviosEstandares = new Sector(costoDe = 15) const enviosVIP = new Sector(costoDe = 30) const unParanoico = new MensajerxEstandar(sector = enviosRapidos, tipoMensajero = paranoico) const unAlegre = new MensajerxEstandar(s...
package main import ( "fmt" "time" "curso.com/m/html" ) func oMaisRapido(url1, url2, url3 string) string { c1 := html.Titulo(url1) c2 := html.Titulo(url2) c3 := html.Titulo(url3) // Estrutura de controle específica para concorrência select { case t1 := <-c1: return t1 case t2 := <-c2: return t2 case ...
import { BadRequestException, Injectable, InternalServerErrorException, NotFoundException, Param } from '@nestjs/common'; import { MarketAbi } from './nftMarket.abi'; import { ethers } from 'ethers' import axios from 'axios'; const pinataSDK = require('@pinata/sdk'); import * as FormData from 'form-data'; import { gene...
import { message } from 'antd' import { useRouter } from 'next/router' import shareDocApi from '../../../../common/api/shareDocApi' import userApi from '../../../../common/api/userApi' import { useAppDispatch, useAppSelector } from '../../../../common/hooks/hooks-redux' import { RootState } from '../../../../common/hoo...
<?php namespace app\model; use support\Model; /** * xs_user * @property integer $uid (主键) * @property string $username 用户名 * @property string $nickname 昵称 * @property string $phone 手机号码 * @property string $email 邮箱地址 * @property string $qq QQ * @property string $wx_credit 微信号 * @property string $wb_credit ...
<?php /** * Template part for displaying page content in page.php * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package HybridMag */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php // Before content hook do_action( 'hybridmag_before_content' ); ...
// Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/ #pragma once #include <array> #include <optional> #include <api/model/api_model_fwd.h> #include <api/model/recording_stats_reply.h> #include <common/common_globals.h> #include <core/resource/resource_fwd.h> #include <nx/vm...
<div align="center"> <p> Transaction Detail (Add) </p> </div> <div *ngIf="transactionForm" align="center"> <form [formGroup]="transactionForm" novalidate> <div class="show_window"> <div class="row margin-top-20"> <div class="col-sm-3 align-left"> <l...
import type { AppContext } from "@webstudio-is/trpc-interface/index.server"; import env from "~/env/env.server"; import { authenticator } from "~/services/auth.server"; import { trpcClient } from "~/services/trpc.server"; import { entryApi } from "./entri/entri-api.server"; import { getTokenPlanFeatures, getUserPla...
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { PostModel } from '../shared/post-model'; import { PostService } from '../shared/post.service'; @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.css'] }) export class Home...
--- title: "Course Project" author: "Group D7" output:html_document --- Reading and Displaying Data ```{r} df<-read.csv("C:/Users/cheta/Desktop/cleaned_reviews.csv") head(df) ``` FINDING ROWS WITH NULL VALUES ```{r} rows_with_null<-df[apply(is.na(df),1,any),] ``` FINDING COLUMNS WITH ANY NULL VALUES ```{r} cols_...
--- title: "iPhone Development: to Objective-C or not to Objective-C ?" author: "Humberto C Marchezi" date: "2011-02-27" categories: [software-engineering] --- When I think of Objective-C, what comes to my mind is a niche programming language for the MacOS and Apple related products. Thus as far as I know this is the ...
--- minutes: 20 --- # Exercise: Logger Trait Let's design a simple logging utility, using a trait `Logger` with a `log` method. Code which might log its progress can then take an `&impl Logger`. In testing, this might put messages in the test logfile, while in a production build it would send messages to a log server...
#' Helper function to run a linear mixed model #' #' @importFrom lmerTest lmer #' @importFrom lme4 lmerControl .single_lmer <- function(data, formula_string, REML = TRUE, ...) { out_model <- tryCatch( lmerTest::lmer( stats::as.formula(formula_string), data = data, REML = ...
import { createEnv } from "@t3-oss/env-nextjs" import { z } from "zod" export const env = createEnv({ /** * Specify your server-side environment variables schema here. This way you can ensure the app * isn't built with invalid env vars. */ server: { NODE_ENV: z.enum(["development", "test", "production...
using MediatR; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using WhatBug.Application.Common.Interfaces; using WhatBug.Application.Common.MediatR; using WhatBug.Application.Common.Securit...
/// MIT License /// /// Copyright (c) 2023 Mac Gallagher /// /// 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, cop...
<!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>Computed Properties</title> <link rel="stylesheet" href="../assets/styles.css" /> <script src...
import { useEffect, useState } from "react"; import axios from "axios"; import { Movie } from "./types"; import { motion, AnimatePresence } from "framer-motion"; function Filter({ movies, setFilterd, active, setActive, }: { movies: Movie[]; setFilterd: React.Dispatch<React.SetStateAction<Movie[]>>; activ...
import React, { useState, useEffect } from "react"; import HighScore, { loadHighScores } from "../Highscore"; import { Card, Typography } from "@material-ui/core"; import Spacer from "./Spacer"; interface Props { selectedGame?: HighScore; } export default ({ selectedGame }: Props) => { const [list, setList] =...
How to Install the WeBWorK Problem Library Version 2.5 --- -- ------- --- ------- ------- ------- ------- --- Installing the problem library can be done in 5 steps. 1. Download and unpack files ---------------------------- The files can be obtained from cd /opt/webwork/libraries http://github.com/openwebwork...
package com.example.vision; import android.annotation.SuppressLint; import android.app.Service; import android.content.Context; import android.content.Intent; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.os...
// routes.h handles the server's routes // Importing Rhys Weatherly's cryptography library to use SHA256 encryption #include <Crypto.h> #include <SHA256.h> // Import the hash calculation function #include "auth_utils.h" // Import the publicIp variable #include "wifi_utils.h" // Import the html files #include "../vie...
<template> <ul class="buttons-list"> <li class="buttons__item" v-for="index of floorsCount" :key="index"> <button class="buttons__button" type="button" @click="callElevator(index)" > {{ index }} </button> </li> </ul> </template> <script> import { mapGetters...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="styles/styles.css" /> <link rel="stylesheet" href="styles/menu.css" /> <link rel="stylesheet" href="https://cdnjs.cloud...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Job Shifts Board</title> <link rel="stylesheet" href="../css/main.css"> <style> </style> </head> <body> <button id="showCalendarByWeek">Week</button> <but...
"""api URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
import { performance } from 'perf_hooks'; /** Number of decimal places to keep in timers */ const TruncateTimers = 4; /** * Utility to record some metrics about the execution of the function * * TODO this should be replaced by open telemetry */ export class Metrics { /** * Start time of all timers */ tim...
# Neo4j EC2 Instance Installation Assuming the EC2 instance is a Debian based distribution, ssh into it and run the following commands: ```shell sudo add-apt-repository -y ppa:openjdk-r/ppa sudo apt-get update wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add - echo 'deb https://debian.neo4...
🔔목차🔔 - [외래 키(Foreign Key)](#외래-키foreign-key) - [참조 무결성](#참조-무결성) - [관계](#관계) - [RDB에서의 관계](#rdb에서의-관계) - [Comment(댓글)](#comment댓글) - [Django Relationship fields](#django-relationship-fields) - [Comment 모델 정의](#comment-모델-정의) - [Django 관계 필드에서 외래 키의 필수 인자](#django-관계-필드에서-외래-키의-필수-인자) - [\(참고) 데이터 무결성](#참...
from django.core.exceptions import ValidationError from habits.models import Habit def validate_frequency(value): """ Проверяет частоту привычки. """ if value < 7: raise ValidationError("Частота привычки не может быть меньше 7 дней.") def validate_time_required(value): """ Проверяет...
<!-- BREADCRUMB --> <div id="breadcrumb" class="section"> <!-- container --> <div class="container"> <!-- row --> <div class="row"> <div class="col-md-12"> <ul class="breadcrumb-tree"> <li><a href="#">Home</a></li> <li><a href="#">{{product.category}}</a></li> <li...
%% EBOT, an erlang web crawler. %% Copyright (C) 2010 ~ matteo DOT redaelli AT libero DOT it %% http://www.redaelli.org/matteo/ %% %% This program is free software: you can redistribute it and/or modify %% it under the terms of the GNU General Public License as published by %% the Free Software Fou...
package com.example.contactsapp import android.annotation.SuppressLint import android.app.Activity import android.app.Instrumentation.ActivityResult import android.content.Intent import android.net.Uri import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.provider.ContactsContract imp...
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Mail; use App\Mail\EmailVerification; use Illuminate\Validation\ValidationException; use Illuminate\Support\Facades\Password;...
use strict; use warnings; # Copyright (C) 2015 Christian Garbs <mitch@cgarbs.de> # Licensed under GNU GPL v2 or later. package Net::Fritz; # ABSTRACT: AVM Fritz!Box interaction via TR-064 =head1 SYNOPSIS use Net::Fritz::Box; my $fritz = Net::Fritz::Box->new(); if ($fritz->error) { die $fritz->...
import { AccountIcon, PasswordIcon, RoleIcon } from "@/components/icons"; import { Button, Card, Form, Input, Select } from "antd"; import "./index.less"; import { useStore } from "@/stores"; import { useNavigate } from "react-router-dom"; import { observer } from "mobx-react-lite"; const Login = () => { const { log...
grammar Desc; options { language = C; output = AST; } @header { #include <vector> #include <string> #include "DataTypeManager.h" using std::vector; using std::string; #ifndef TXT #define TXT(x) ((const char*)(x->getText(x))->chars) #endif #ifndef TXTN #define TXTN(x) ((NormalizeQuotes((const char*)(x->getTex...
<template> <div class="app-container"> <!-- 搜索工作栏 --> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form-item label="状态" prop="status"> <el-select v-model="queryParams.status" placeholder="请选择状态" clearable size="small" sty...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strjoin.c :+: :+: :+: ...
// // MixedEventsStepsStrategyView.swift // TealiumSKAdNetwork_Example // // Created by Enrico Zannini on 09/01/23. // Copyright © 2023 CocoaPods. All rights reserved. // import SwiftUI struct MixedEventsStepsStrategyView: View { @State var events: [Int] = [0, 0, 0] @State var journeyStep = 0 var body...
// // ViewController.swift // Project21_localNotifs // // Created by may on 12/25/22. // import UIKit import UserNotifications class ViewController: UIViewController, UNUserNotificationCenterDelegate { var repeatIn24hrs = false var registered = false override func viewDidLoad() { super.viewDidLoad() navi...
// Copyright 2024 International Digital Economy Academy // // 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 appli...
using BlogAspNet.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace BlogAspNet.Data.Mappings; public class UserMap :IEntityTypeConfiguration<User> { public void Configure(EntityTypeBuilder<User> builder) { //Tabela builder.ToTable("Us...
from .models import * from django.forms import ModelForm, TextInput, Select, ChoiceField class SensorForm(ModelForm): class Meta: model = Sensor fields = ['position', 'description', 'cat', 'units'] widgets = { "position": TextInput(attrs={ 'class': 'form-contr...
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Worksheet4</title> <link rel="stylesheet" type="text/css" href="index.css"> </head> <body onload="showPage()"> <div id="bodyLoad"> <img src="../5314_2.jpg" /> </div> <img src="../5314.j...
import React, { useEffect, useState } from 'react'; import './UserPage.css'; import LogOutButton from '../LogOutButton/LogOutButton'; import { useDispatch, useSelector } from 'react-redux'; import axios from 'axios'; import { GoogleMap, useLoadScript, Marker, InfoWindow } from '@react-google-maps/api'; import {...
export const revalidate = 0; // https://tailwindcomponents.com/component/hoverable-table import { getPaginatedOrders, getPaginatedProductsWithImages } from "@/actions"; import { Pagination, ProductImage, Title } from "@/components"; import DeleteProduct from "@/components/product/delete-product"; import { currencyForm...
@testset "Initialization" begin time_series = CSV.read(joinpath(@__DIR__, "data/timeseries_normal_rws_d1.csv"), DataFrame) y = time_series[:,1] T = length(y) X = rand(T, 2).+10 X_missing = missing stochastic = false @info("Test with Random Walk and Slope without AR and without explan...
import { Component, Input } from '@angular/core'; import { AuthService } from 'src/app/services/auth.service'; import { CartService } from 'src/app/services/cart.service'; import { IMG_API_PRE, IMG_API_SUF } from 'src/constants/constants'; import { ICardDet } from 'src/interfaces/ICardDet'; @Component({ selector: '...
import SystemConfiguration import UIKit @objc(DeviceDetailsModule) class DeviceDetailsModule: NSObject { @objc func getDeviceModel(_ resolve: RCTPromiseResolveBlock, rejecter reject: RCTPromiseRejectBlock) { var systemInfo = utsname() uname(&systemInfo) let machineMirror = Mirror(r...
# Import libraries import pygame import os import random import neat # Setting up AI player and generation ai_player = True generation = 0 # Setting up screen dimensions SCREEN_WIDTH = 500 SCREEN_HEIGHT = 800 # Loading images for the game BARREL_IMAGE = pygame.transform.scale2x(pygame.image.load(os.path.join('img...
import cloudImage from "./assets/cloud.png"; import gameBody from "./assets/game.svg"; import BetBox from "./components/BetBox"; import BroccoliIcon from "./assets/broccoli.svg"; import BreadIcon from "./assets/bread.svg"; import BurgerIcon from "./assets/burger.svg"; import LegIcon from "./assets/leg.svg"; import Pizz...
<template> <div class="demo"> <h2>{{component.__sourceCodeTitle}}</h2> <div class="demo-component"> <component :is="component"/> </div> <div class="demo-actions"> <Button @click="hideCode" v-if="codeVisible">隐藏代码</Button> <Button @click="showCode" v-else>查看代码</Button> </div> ...
body{ margin: 0; /*all side margin is zero regardless of unit*/ color: #40514E; text-align: center; font-family: 'Merriweather', serif; /* font-size: 1em; when you double M to 2em then the h1 and and all other header elements will get double.Beacuse of inheritence. */ } h1{ margin: 60px auto ...