text
stringlengths
184
4.48M
""" URL configuration for groceryshop project. The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.2/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='...
<template> <div class="send d-flex justify-content-between align-items-center px-2"> <div class="d-flex comment flex-row align-items-center chatbox m-3 mr-2 "> <span @click.exact="pickEmoji($event)" ref="emojiPicker" class=" text-grey-500 " > <icon class="" size="lg" n...
<app-product-detail-skeleton *ngIf="!isLoaded"></app-product-detail-skeleton> <div *ngIf="isLoaded" class="w-full mx-auto max-w-[70rem] gap-16 flex lg:flex-row flex-col p-6" > <div class="lg:w-[60%] w-full flex flex-col gap-6"> <img [src]="item?.imageUrl || '../../../assets/images/lazy-image.svg'" ...
import { AppBar, Toolbar, IconButton, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Typography, Box } from "@mui/material"; import { Dehaze, AccountCircle, Inbox, Settings, ExitToApp, } from "@mui/icons-material"; import { useNavigate } from "react-router-dom"; import { useDi...
package org.broadinstitute.ddp.environment; import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.http.client.fluent.Request; import org.apache.http.util.EntityUtils; import org.slf4j.Log...
--- title: revalidatePath description: API Reference for the revalidatePath function. --- `revalidatePath` allows you to purge [cached data](/docs/app/building-your-application/caching) on-demand for a specific path. > **Good to know**: > > - `revalidatePath` is available in both [Node.js and Edge runtimes](/docs/app...
import pandas as pd def output_text_console(text): """ Function to output text to the console. Parameters: text (str): The text to be output. Returns: None """ print("Output text: ", text) def write_file_builtin(text, file_path): """ Function to ...
import React from 'react'; import { useWallets } from '@rango-dev/wallets-react'; function Wallets() { const { connect, providers, state, disconnect } = useWallets(); const list = Object.keys(providers()); return ( <div> <h3>Available Wallets</h3> <div className="wallets"> {list.map((type...
import { Button, Flex, Stack } from "@mantine/core" import React from "react" import ImageContext from "./ImgCtx" export type PixelateImgProps = { src: string width?: number height?: number pixelSize?: number centered?: boolean fillTransparencyColor?: string...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Json.Nodes; using System.Threading.Tasks; using Utilities.Communication; namespace DoctorWPFApp.Networking { /// <summary> /// Can format messages to send to the server. This hides the implementation of ...
import time import pandas as pd from scipy.sparse import csr_matrix from utils import get_prime_map_from_rel, get_sparsity, load_data, set_all_seeds set_all_seeds(42) # Path to projects project_to_path = { "codex-s": "./data/codex-s/", "WN18RR": "./data/WN18RR/", "FB15k-237": "./data/FB15k-237/", "...
package model; import gui.*; import org.mindrot.jbcrypt.BCrypt; import javax.xml.parsers.ParserConfigurationException; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; public class App { private final String filename = "usuarios.bin"; private Users us...
# Templating This section describes the platform reference implementation templating process. All the readme files prefixed with `tpl_` will be parametrized and added to the user's GitOps repository. All the values in files templated with - `<key>` under `/platform` folder will be replaced with corresponding values ...
import axios from "axios"; import React, { useEffect, useState } from "react"; import Card from "@mui/material/Card"; import CardActions from "@mui/material/CardActions"; import CardContent from "@mui/material/CardContent"; import CardMedia from "@mui/material/CardMedia"; import Button from "@mui/material/Button"; impo...
<!doctype html> <html> <head> <title>simple plage</title> <style> :root{ --rotate: -26deg; /* to make it responsive */ --unit: 1vmin; --zoom: 160; --workspace-min: 768; /* device screen height = 768px */ --upx: calc(var(--zoom) *...
// 问题: // 如果 1 对兔子每月能繁殖 1 对小兔子,而每对兔子在它出生后的第 3 个月,又能开始繁殖 1 对小兔子。 // 假定在不发生死亡的情况下,由 1 对兔子开始,1 年后能繁殖成多少对兔子? // 了解的都知道兔子在各月的繁殖数符合 fibonacci 数列,不过这里并不直接从 fibonacci 数列出发,而是采用递推思路 // 追踪每一对兔子在当月的繁殖数是比较困难。可以将兔子分为三类,分析每类兔子在当月的繁殖数。 // 兔子对可以分为三类,1 个月大的兔子,2 个月大的兔子,大兔子。 // 假设 1 个月大的兔子对数量为 x1, 2 个月大的兔子对数量为 x2, 大兔子对数量为 x3 // x3 = ...
import * as service from '../services/productService.js'; export const getAll = async (req, res, next) => { try{ const { limit, page, sort, query } = req.query; const response = await service.getAll(limit, page, sort, query); const next = response.hasNextPage ? `http://localhost:8080/users/...
*{ margin: 0; padding: 0; box-sizing: border-box; } body{ background: #f2f2f2; font-family: Arial, Helvetica, sans-serif; } .contenedor{ width: 80%; max-width: 700px; height: 500px; background: #212d40; /* Los elementos hijos se hacen flexibles, similar a float:left */ ...
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Access-Control-Allow-Origin" content="*"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="https://maxc...
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminTests(TestCase): def setUp(self) -> None: self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='admin@company.com', p...
<!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>Panda Commerce</title> <!-- bootstrap stylesheet --> <link href="https://cdn.jsdelivr.net/npm/boots...
abstract class Animal { String nome; String onomatopeia; // representacao sonora emitida pelo animal String cor; Integer idade; String raca; Animal(String nome, String cor, String raca, Integer idade, String onomatopeia) { this.nome = nome; this.cor = cor; this.raca = ra...
import React, { useState } from 'react'; import { Bloglist, SearchBar, NotFound } from '../../components'; import { bloglist } from '../../demoData'; const Home = () => { const [blogs, setBlogs] = useState(bloglist); const [searchKey, setSearchKey] = useState(''); const formSubmit = (e) => { e.preventDefaul...
from fairseq.criterions.sentence_prediction import SentencePredictionCriterion from fairseq.criterions import register_criterion from dataclasses import dataclass, field from fairseq.dataclass import FairseqDataclass import torch import torch.nn as nn import torch.nn.functional as F @register_criterion("distillation...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateQuizSoalTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('quiz_soal', fu...
"use client"; import { PatientSortOrder } from "@bonfhir/core/r4b"; import { useFhirForm } from "@bonfhir/mantine/r4b"; import { useFhirSearchControllerNext } from "@bonfhir/next/r4b/client"; import { useFhirSearch } from "@bonfhir/query/r4b"; import { FhirInput, FhirPagination, FhirQueryLoader, FhirTable, Fh...
<?php namespace App\Http\Controllers\Api\v1\Devs; use App\Http\Controllers\Controller; use App\Http\Resources\DevsResource; use App\Models\DevsPost; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Validator; use...
import React, { useCallback, useRef } from "react"; import styled from "@emotion/styled"; export interface OverlayProps { children: React.ReactNode; isOpen: boolean; onClose?: () => void; } function Overlay({ children, isOpen, onClose }: OverlayProps) { const overlayRef = useRef<HTMLDivElement | null>(null); ...
// Copyright 2023 Cisco Systems, 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 agre...
<template> <div class="z-carousel" ref="rootRef" @mouseover="showArrow" @mouseleave="hideArrow"> <div ref="carouselContainerRef" class="z-carousel-container" :style="containerStyle"> <!-- 左右两边的按钮--> <transition name="leftArrow"> <button v-show="(isArrowShow&&direction!=='vertical'&&props.ar...
import Image from "next/image"; import EditClipboardIcon from "../Icons/EditClipboardIcon"; import BookmarkIcon from "../Icons/BookmarkIcon"; import { Bookmark } from "../types"; import { useRef, useState } from "react"; interface ArticleButtonMobileProps { imageURL: string; headline: string; summary: string; ...
--- description: "Cara Membuat Kepiting Kuah Pedas yang praktis" title: "Cara Membuat Kepiting Kuah Pedas yang praktis" slug: 2114-cara-membuat-kepiting-kuah-pedas-yang-praktis date: 2020-07-07T07:01:35.213Z image: https://img-global.cpcdn.com/recipes/e522afa92ff0d3c2/751x532cq70/kepiting-kuah-pedas-foto-resep-utama.jp...
import 'server-only'; import { StaticImageData } from 'next/image'; import applylink_dashboard_helpboard_bookmarks from './gallery/applylink_dashboard_helpboard_bookmarks.png'; import applylink_dashboard_helpboard_overview from './gallery/applylink_dashboard_helpboard_overview.png'; import applylink_helpboard from './g...
<template> <button id="button-compo" :disabled="disabled" :width="width" type="button" style="outline: none !important" class="inline-flex items-center transition focus:outline-none" :class="classAtt" > <icon-component :data-svg="type" ...
<template> <field-set-component legend="Listado"> <header-search-detail-component v-if="stateArticle._id" id="header-search-children-feature" :columns-filter="columnsFilterArticleChildrenFeatureDetail" :column-filter-selected-default="'a.nombrecaracteristica'" @on-change-field="onCha...
context("get_regulators") test_that("Functions to retrieve gene regulation work as expected", { ## Connect to the RegulonDB database if necessary if (!exists("regulondb_conn")) { regulondb_conn <- connect_database() } ## Build a regulondb object regdb <- regulondb( d...
// @ts-nocheck import type { NextPage } from "next"; import Head from "next/head"; import Image from "next/image"; import styles from "../styles/Home.module.css"; import React from "react"; const Home: NextPage = ({ comments }) => { return ( <div className={styles.container}> <h1>Homepage</h1> {comme...
import React, { useContext, useEffect, useState } from 'react'; import { Link, useHistory } from 'react-router-dom'; import { ApiContext } from '../../contexts/apiContext'; // Import the ApiContext for accessing product data import api from '../../services/api'; // Import the API service for making requests import { ...
<div class="container" style="margin-top:90px"> <div class="row"> <div class="col-md-12"> <form [formGroup]="signupForm"> <mat-form-field> <input matInput placeholder="First Name" formControlName="firstName" required> </mat-form-field> <!-- <mat-error> <span *ngI...
/* Variables */ // Colors: // Should be assigned to "roles", never used directly. $jade : #00C1A1; $jade-dark : #455E57; $coral : #F46969; $rouge : #FF3B00; $grey-dark : #444444; $grey : #7E7E7E; $grey-med : #E0E6E9; $grey-light : #F2F2F2; $dark-slate : #171B1E; $dim-slate : #23282B; $dan...
export enum Role { visitor = "visitor", manager = "manager", supermanager = "supermanager", contentManager = "contentManager", operator = "operator", admin = "admin", } const rules = { visitor: { static: [ "auth:login", "faq:pretty", "fund:description-pretty", "news:public", ...
import './index.css'; // Fibonacci logic function validateFibInput(inp) { const i = Number(inp.trim()); return [i, Number.isInteger(i) && i >= 0 && i <= 1000]; } function fibonacci(num) { const result = []; const memo = {}; const fib = (n) => { if (!Number.isInteger(memo[n])) { memo[n] = n < 2 ? n...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Windows; using sysWindows = System.Windows; namespace AppDevTools.Extensions { /// <summary> /// Provides a collection of methods that extend the functionality of the System.Windows.Window cl...
import { View, Text, ScrollView, Image, TouchableOpacity, TextInput, PermissionsAndroid, Modal, Pressable, Alert, } from 'react-native'; import React, {useState} from 'react'; import styles from './styles'; import {useDispatch, useSelector} from 'react-redux'; import { getDataUserById, updateDa...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Rainy Days Information about us</title> <link rel="stylesheet" href="style.css"> <link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap" ...
function [ combineddataout ] = streams_combinedata_iscontent( combineddatain ) %streams_combinedata_iscontent() adds .iscontent field to the combineddata % structure indicating whether or not the word is content or function word % based on the Corpus Gesproken Dutch (CGN) POS tag system % % CGN tag system reference: %...
// JavaScript Document "use strict"; $(document).ready( () => { /*The following interactions are based on scrolling*/ $(window).scroll(function() { /*The keyword this looks at the 'current element'. We decide the current element with the following selectors.*/ /*scrollTop looks at the position of t...
const React = require('react'); const ReactDOM = require('react-dom'); const IMAGE_ROOT_URL = "/front-page-assets/"; const icons = { github: <i className="fab fa-github"></i>, html: <i className="fab fa-html5"></i>, css: <i className="fab fa-css3-alt"></i>, js: <i className="fab fa-js"></i>, node: <i classN...
public with sharing class EMS_Sidebar_Controller { public String pageName { get; set; } public List<Note> notes { get { if (notes == null) { notes = new List<Note>(); List<EMS_Sidebar_Configuration__c> sidebarNotes = [ SELECT Id, Page_...
import 'package:blog_models/blog_models.dart'; import 'package:blog_repository/blog_repository.dart'; import 'package:blog_ui/blog_ui.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:go_router/go_router.dart'; import 'package:personal_blog_flutter/blog_over...
import pyttsx3 import re import os from pydub import AudioSegment from pydub.silence import split_on_silence from pydub import AudioSegment from pydub.utils import mediainfo # Set the path to ffprobe executable os.environ["PATH"] += os.pathsep + r"\ffmpeg-master-latest-win64-gpl-shared\ffmpeg-master-latest-win64-gpl-...
import 'dart:math'; import 'package:borough_king/main.dart'; import 'package:flutter/cupertino.dart'; import "package:flutter/material.dart"; import "package:borough_king/widgets/preferiti.dart"; import "package:borough_king/widgets/occasioni_fotografiche.dart"; import 'package:folding_cell/folding_cell.dart'; import '...
import csv import random from faker import Faker # Initialize Faker to generate fake data fake = Faker() # Specify the number of users you want to generate num_users = random.randint(50000, 99000) # Create a list to store user data user_data = [] # Generate data for each user for _ in range(num_users): first_na...
import { useCallback, useEffect } from 'react'; import debounce from 'lodash/debounce'; import { useAppDispatch } from '../../redux-store/redux-store'; import { updateScreenDimensions } from '../../redux-store/layout/layout-slice'; export default function LayoutChangeDetector(): JSX.Element | null { const appDispatc...
package com.cht.admin.catalogo.application.video.create; import com.cht.admin.catalogo.application.Fixture; import com.cht.admin.catalogo.application.UseCaseTest; import com.cht.admin.catalogo.domain.Genre.GenreGateway; import com.cht.admin.catalogo.domain.castmember.CastMemberGateway; import com.cht.admin.catalogo.do...
package me.matsumo.klms.core.model.lms import kotlinx.datetime.Instant import kotlinx.serialization.Serializable import me.matsumo.klms.core.model.lms.entity.OutcomeImportEntity @Serializable data class OutcomeImport( val id: Int, val learningOutcomeGroupId: Int?, val createdAt: Instant, val endedAt: ...
import Dashboard from "@/shared/layout/Dashboard"; import { attendenceService } from "@/shared/services/attendence.service"; import { IAttendence } from "@/shared/typeDef/attendence.type"; import { DeleteOutlined, EditOutlined } from "@ant-design/icons"; import { Button, Col, message, Popconfirm, Row, Space, Table, Tag...
import Image from "next/image"; import { useEffect, useState } from "react"; import { useAccount, useConnect, useSignMessage } from "wagmi"; import { defaultAvatar, snapshotSpace } from "../../../config"; import { useVote } from "../../../hooks/snapshot"; import { postComment } from "../../../utils/firebase/post"; impo...
/* $Id$ */ /* * This file is part of FreeRCT. * FreeRCT 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, version 2. * FreeRCT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
import TreeModelHelper from './TreeModelHelper'; import TaskFactory from '../modules/tasks/TaskFactory'; import { IJsonTaskModel } from '../modules/tasks/models/TaskModel'; import { TasksByProject } from '../modules/tasks/models/TasksByProject'; describe('TreeModelHelper', () => { let testTasks: TasksByProject | und...
import React from 'react'; // @ts-ignore import { action } from '@storybook/addon-actions'; import { skipVisualTest } from 'z-frontend-app-bootstrap'; import { Box } from 'zbase'; import { storiesOf } from '../../.storybook/storyHelpers'; import Checkbox from './Checkbox'; storiesOf('forms|Checkbox', module) .addD...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; // Asegúrate de que esta línea esté presente /** * @swagger * components: * schemas: * Post: * type: object * required: * - title * - content * - date_created * - date_created_gmt ...
// // CurrencyNetwork.swift // AllYouNeed // // Created by Shubham Kumar on 07/02/22. // import Foundation //MARK: CURRECY NETWORK LAYER class CurrencyNetworkLayer { static let shared = CurrencyNetworkLayer() //MARK: FETCH CURRENCY //Using @escaping for completion handler and error handler ...
import { z } from "zod"; import { NEW_REPLY_ERROR } from "../../../commons/constants/domains/replies/new-reply-error"; const NewReplyPayloadSchema = z.object( { content: z.string({ required_error: NEW_REPLY_ERROR.MISSING_PROPERTY, invalid_type_error: NEW_REPLY_ERROR.INVALID_DATA_TYPE, }), ow...
import { NextResponse } from 'next/server'; import { print } from 'graphql'; import { GetSessionDocument, GetSessionQuery, LoginDocument, LoginMutation, getClient, } from '@woographql/graphql'; type RequestBody = ({ auth: string; username: undefined; password: undefined; } | { auth: undefined; use...
#include <stdio.h> #define TILE_SIZE 16 __global__ void mysgemm(int m, int n, int k, const float *A, const float *B, float* C) { /******************************************************************** * * Compute C = A x B * where A is a (m x k) matrix * where B is a (k x n) matrix * ...
<div class="card"> <span class="card__situation" [ngStyle]="{ 'color': SituationColor[getSituation(task.deadline)] }" > {{getSituation(task.deadline)}} </span> <div class="card__divider"></div> <div class="card__info"> <div class="card__info__content" [ngStyle]="{ '...
/* * Copyright (C) 2019 Richard Hughes <richard@hughsie.com> * * SPDX-License-Identifier: LGPL-2.1+ */ #pragma once #include <fwupd.h> #include <xmlb.h> #include "fu-chunk.h" #include "fu-firmware.h" #define FU_TYPE_FIRMWARE (fu_firmware_get_type()) G_DECLARE_DERIVABLE_TYPE(FuFirmware, fu_firmware, FU, FIRMWARE...
document.addEventListener('DOMContentLoaded', () => { const apiKey = '4da392491f9a4cc485873437240806'; // Your WeatherAPI key const weatherInfoDiv = document.getElementById('weather-info'); const forecastInfoDiv = document.getElementById('forecast-info'); const locationInputDiv = document.getElementById...
package com.ssafy.tab.service; import com.ssafy.tab.domain.Survey; import com.ssafy.tab.domain.User; import com.ssafy.tab.dto.SurveyDto; import com.ssafy.tab.dto.SurveyResponseDto; import com.ssafy.tab.repository.SurveyRepository; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; imp...
#include "../inc/Fixed.hpp" const int Fixed::bits = 8; Fixed::Fixed(void) : val(0){} Fixed::Fixed(int num) { this->val = num * (1 << bits); } Fixed::Fixed(float num) { this->val = roundf(num * (1 << bits)); } Fixed::~Fixed(void) { } Fixed::Fixed(const Fixed &cp) { *this = cp; } Fixed &Fixed::operator=(const F...
package org.Learning.MyBag; import java.util.List; import com.microsoft.playwright.Browser; import com.microsoft.playwright.BrowserType; import com.microsoft.playwright.Locator; import com.microsoft.playwright.Page; import com.microsoft.playwright.Playwright; import com.microsoft.playwright.options.SelectOption; pub...
function [wrappedValues, multiplier] = wraparound(values,interval) %WRAPAROUND wraps values onto an interval [a, b) % % SYNOPSIS [wrappedValues, multiplier] = wraparound(values,interval) % % INPUT values : n-by-d array of values to be wrapped % interval : 2-by-1 o4 2-by-d array of intervals. The first row...
// // AppState.swift // MLCChat // // Created by Yaxing Cai on 5/13/23. // import Foundation final class AppState: ObservableObject { @Published var models = [ModelState]() @Published var exampleModels = [ExampleModelConfig]() @Published var chatState = ChatState() @Published var alertMessage = ""...
<?php defined('BASEPATH') or exit('No se permite acceso directo'); //si la constante esta definida se ejecuta el resto del codigo, sino se detiene la ejecución y tira un mensaje require_once ROOT . '/mvc/modelos/tareas_enviar/tareas_enviarmodel.php'; //carga el archivo con el modelo require_once ROOT . '/mvc/system/ses...
#include "bmp.h" // Simple .bmp library #include <iostream> #include <fstream> #include <string> #include <math.h> #include <vector> using namespace std; #define PI 3.14159265358979 int QuantizationMatrix[8][8] = { {3, 5, 7, 9, 11, 13, 15, 17}, {5, 7, 9, 11, 13, 15, 17, 19}, {7, 9, 11, 13, 15, 17, 19, 21}, {9, 11,...
/** * Loads country markers, and highlights a polygon when the user hovers over it. * * This example starts in Southeast Asia to demonstrate hovering multi-marker polygons such as Indonesia, Phillipines, * etc. */ import de.fhpotsdam.unfolding.*; import de.fhpotsdam.unfolding.data.*; import de.fhpotsdam.unfoldin...
--- id: index-gettingstarted title: Getting Started with Node and Redis sidebar_label: Getting Started slug: /develop/node/gettingstarted authors: [ajeet, simon] --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import Authors from '@theme/Authors'; <Authors frontMatter={frontMatter} /> Find ...
// // NetworkingServiceTests.swift // Currency ConverterTests // // Created by Aleksei Kudriashov on 4/1/24. // import XCTest @testable import Currency_Converter final class NetworkingServiceTests: XCTestCase { func testLoadCurrencies() async throws { // Given let networking: Networking = HTTPC...
package org.example.utils; import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.edge.EdgeDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class...
import 'package:flutter/material.dart'; import 'package:wordum/models/dictionary_word.dart'; /// Page about details of a word. /// /// The page for adding and displaying all word data as in [DictionaryWord] model. class WordPage extends StatelessWidget { final DictionaryWord dictionaryWord; final String translati...
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; /** * External dependencies */ import { PlainText } from '@wordpress/block-editor'; import { Button, ButtonGroup } from '@wordpress/components'; import { useKeyboardShortcut } from '@wordpress/compose'; import { forwardRef, useImpe...
<?php namespace Tests\Feature; use App\Models\Contact; use Database\Seeders\ContactSeeder; use Database\Seeders\SearchSeeder; use Database\Seeders\UserSeeder; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facad...
#header << #include <string> #include <iostream> using namespace std; // struct to store information about tokens typedef struct { string kind; string text; } Attrib; // function to fill token information (predeclaration) void zzcr_attr(Attrib *attr, int type, char *text); // fields for AST nodes #define AST_FIE...
from datetime import datetime, timedelta from rest_framework import status # models from clientboards.api.models import Sessions, Users # serializers from clientboards.api.serializers.accounts.login_serializer import LoginSerializer from clientboards.api.serializers.sessions.sessions_serializer import SessionsSerial...
<div [@routerTransition]> <page-header [autoBreadcrumb]="false" title="{{l('TenantsHeaderInfo')}}" [action]="action"> <ng-template #action> <button nz-button ng-if="isGranted('Pages.Tenants.Create')" [nzType]="'primary'" (click)="createTenant()"> <i class="anticon anticon-plus"><...
import { useEffect, useState } from "react" import { useDispatch } from "react-redux" import { useNavigate, useParams } from "react-router-dom" import axios from "axios" import Swal from "sweetalert2" import Cookies from "universal-cookie" import { updateBlog } from "./../redux/api/BlogAPI" import { Form } from "../re...
// ROS functions for publishing messages void publishIMU(unsigned long time) { // require getGyroReadings() and getAccReadings() current_time = nh.now(); dt = double(time) / 1000; //Time in s // integrate angular velocity by timestep to get yaw dth_gyro = gyroZ * dt; theta_gyro += dth_gyro; // accou...
"use client"; import { ChevronsLeftRight } from "lucide-react"; import { useUser, SignOutButton } from "@clerk/clerk-react"; import { Avatar, AvatarImage } from "@/components/ui/avatar"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMen...
const arrayNumbers= [10, 3, 4, 50, 6]; arrayNumbers.forEach(function(currentValue, index, array){ console.log(currentValue, index, array); }); arrayNumbers.forEach(function(currentValue){ console.log(currentValue); }); arrayNumbers.forEach((currentValue)=>{ console.log(currentValue); }); arrayNumbers.for...
// Game constants let inputDir = { x: 0, y: 0 } const foodSound = new Audio('food.mp3'); const gameOverSound = new Audio('gameover.wav'); const moveSound = new Audio('snaketurns.wav'); const musicSound = new Audio('bgmusic.mp3'); let speed = 4; let score = 0; let lastpainttime = 0; let snakeArr = [{ x: 13, y: 15 }] foo...
/* Insecure Web App (IWA) Copyright (C) 2020 Micro Focus or one of its affiliates This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the Lice...
<div fxLayout="column" fxLayoutAlign="center center" fxFlexFill class="item-container"> <h1> Showing all your items </h1> <div fxLayout="row" fxLayoutGap="80px" fxLayoutAlign="center center" class="action-buttons"> <button mat-button (click)="goBack()"><mat-icon>arrow_back</mat-icon>Go Back</button...
from flux_query_builder.functions.base import FluxQueryFunction class Measurements(FluxQueryFunction): """schema.measurements() returns a list of measurements in a specific bucket.Results include a single table with a single column, _value.(Required) Bucket to retrieve measurements from.Oldest time to include in r...
@extends('layouts.kampus') @section('nama-kampus', $kampus->nama_kampus) @section('page-title', 'Tambah Prodi') @section('content') <form action="{{ route('detail-kampus.prodi.store', ['kampus' => $kampus->id]) }}" method="POST"> <div class="card"> <div class="card-header">Form Prodi</div> ...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> <%-- # 배열 데이터 처리 1. 배열을 이용하면 for문과 if문을 통해서 다양한 형식의 웹화면을 처리할 수 있다. 2. 실무 프로그래 1) combo 2) radio 3) checkbox ex) 검색: 사원명[ ...
import logging from typing import Any, Dict, List # The latest migration version of the database. # # Database migrations are applied starting from the number specified in the database's # `migration_version` table + 1 (or from 0 if this table does not yet exist) up until # the version specified here. # # When a migra...
/* Copyright (C) 2013, 2015, 2018, 2021 Bengt Martensson. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is dist...
/* * @lc app=leetcode.cn id=46 lang=cpp * * [46] 全排列 */ #include <iostream> #include <vector> #include <algorithm> #include <unordered_set> using namespace std;// @lc code=start class Solution { public: vector<vector<int>> result; vector<int> path; void backtracking (vector<int>& nums, vector<bool>& ...
import { Command } from '../lib/Command'; import { CommandResult } from '../lib/CommandResult'; import { CommandMessage } from '../lib/CommandMessage'; import { Bot } from '../Bot'; import { MessageEmbed, MessageReaction, ClientUser } from 'discord.js'; import { emojis } from '../lib/Emojis'; import { Question } from '...