text stringlengths 184 4.48M |
|---|
#' Descriptive: Table descritive analysis
#' @description Function for generating a data.frame with averages or other descriptive measures grouped by a categorical variable
#' @author Gabriel Danilo Shimizu, \email{shimizu@uel.br}
#' @author Leandro Simoes Azeredo Goncalves
#' @author Rodrigo Yudi Palhaci Marubayashi
#... |
package com.example.luckynumapp
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import org.w3c.dom.Text
import kotlin.random.Random
class LuckyNumberActivity : AppCompatActivi... |
/*
trait field @aliasing does not work when Maps are traited
*/
package openehr.test;
import java.util.*;
import org.drools.factmodel.traits.Alias
global java.util.List list;
declare org.drools.factmodel.MapCore //what is this for
end
declare trait Citizen
@traitable
citizenship : String = "Unknown"
end
decl... |
<template>
<div class="text-selection-demo">
<h2>TextSelection Test</h2>
<h3>基本使用</h3>
<m-text-selection
ref="textRef1"
:text="text"
:defaultList="defaultList"
:optionList="optionList"
@selected="onSelected"
@onBlurContent="onBlurContent"
@onFocusContent="onFocus... |
import { ElasticsearchService } from '@nestjs/elasticsearch';
import { Args, Mutation, Query, Resolver } from '@nestjs/graphql';
import { CreateProductInput } from './dto/createProduct.input';
import { UpdateProductInput } from './dto/updateProduct.input';
import { Product } from './entities/product.entity';
import { P... |
==== QUnit Test Suite for CiviCRM ====
QUnit is a JavaScript-based unit-testing framework. It is ideally suited to
testing pure-JavaScript modules -- for example, jQuery, Backbone, and many
of their plugins test with QUnit. For more details about, see:
http://qunitjs.com/
http://qunitjs.com/cookbook/
CiviCRM is ... |
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import User, Patient, Doctor, Medication, Staff
class CustomUserAdmin(UserAdmin):
# Add user_type to the list display in the Django admin
list_display = ('username', 'email', 'user_type')
# Include user_type in th... |
package data;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import models.Place;
import org.jpl7.Query;
import org.jpl7.Term;
/**
*
* @author Nelson Navarro
*/
public class ExtractData {
private final String prologFile;
public ExtractData(String prologFile) {
this.prolog... |
/**
* Created by Pragma Labs
* SPDX-License-Identifier: BUSL-1.1
*/
pragma solidity 0.8.22;
import { OracleModule } from "./abstracts/AbstractOM.sol";
import { IChainLinkData } from "../interfaces/IChainLinkData.sol";
import { IRegistry } from "./interfaces/IRegistry.sol";
/**
* @title Abstract Oracle Module
* @... |
import styled from '@emotion/styled'
import { FC } from 'react'
import scroll from 'assets/icons/icon_scroll.svg'
import scrollActive from 'assets/icons/icon_scroll_active.svg'
const Wrapper = styled.footer({
width: '100%',
backgroundColor: '#414141',
padding: '56px 16px',
boxSizing: 'border-box',
position: ... |
'''Auction program which adds items into the database, and updates values'''
#Setting the connection#
import sqlite3
DATABASE = "../DB Browser/auction.db"
connection = sqlite3.connect(DATABASE)
cursor = connection.cursor()
#Variables#
ask = True
status = "Unsold"
num = 0
'''~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FCC: Survey Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main>
<h1 id="title">freeCodeCamp Survey Form</h1>
<p id="description">Thank... |
import { NextRequest, NextResponse } from "next/server";
// From: https://nextjs.org/docs/app/building-your-application/routing/internationalization
export const middleware = async (request: NextRequest) => {
const pathname = request.nextUrl.pathname;
if (pathname.startsWith("/uploads")) {
const destination = ... |
"use client"
import { useEffect, useRef, useState } from "react";
import Container from "../components/Container";
import Navbar from "../components/navbar/Navbar";
import Paragraph from "../components/pages/Paragraph";
import { AnimatePresence } from "framer-motion";
import StaticLoader from '../components/reusable/L... |
<?php
class Ecommerceguys_Inventorymanager_Block_Adminhtml_Vendor_Grid extends Mage_Adminhtml_Block_Widget_Grid
{
public function __construct()
{
parent::__construct();
$this->setId('vendorGrid');
$this->setDefaultSort('vendor_id');
$this->setDefaultDir('ASC');
$this->setSaveParameter... |
/*
* Created on Feb 26, 2006
*
* Copyright (c) 2005 Peter Johan Salomonsen (http://www.petersalomonsen.com)
*
* http://www.frinika.com
*
* This file is part of Frinika.
*
* Frinika is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by... |
import React, { FC } from 'react';
import { Box, Divider, Grid, Typography } from '@mui/material';
import { useTranslation } from 'react-i18next';
import KeyboardBackspaceIcon from '@mui/icons-material/KeyboardBackspace';
import { useNavigate } from 'react-router';
import { AuthPageImgGridItem } from '../../../../share... |
package com.jpa.hibernate.controller;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
import com.jpa.hibernate.dao.MotoristaDAO;
import com.jpa.hibernate.m... |
import { View, Text, TextInput } from 'react-native';
import React from 'react';
import { TextInputProps } from 'react-native';
interface Props extends TextInputProps {
title: string;
value: string;
handleChangeText: (text: string) => void;
otherStyles?: string;
}
const FormField = ({ title, value, handleChan... |
import {
Box,
Button,
Center,
Menu,
MenuButton,
MenuDivider,
MenuList,
useColorModeValue,
} from "@chakra-ui/react";
import React from "react";
import MyAvatar from "./MyAvatar";
import AppHeader from "../AppHeader";
import MyUsername from "./MyUser";
function MyMenu() {
const backgroundColor = useCo... |
import SpeedDial from "@mui/material/SpeedDial";
import SpeedDialAction from "@mui/material/SpeedDialAction";
import SpeedDialIcon from "@mui/material/SpeedDialIcon";
import InviteCodeModal from "@components/InviteCodeModal";
import CreateTagModal from "@components/CreateTagModal";
import CreateTodoModal from "@compone... |
import { TestBed, getTestBed } from '@angular/core/testing';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { WardService } from 'app/entities/ward/ward.service';
import { IWard, Ward } from 'app/shared/model/ward.model';
import { WardClassType } from 'app/shared/m... |
import { useState } from "react";
function ChildComponent({
parentData,
sendDataFromChildToParent,
onMessageChange
}) {
const [count, setCount] = useState(0) // state
const handleInputChange = (e) => {
const newMessage = e.target.value;
onMessageChange(newMessage); // Communicate with ... |
import { useCallback, useEffect } from 'react';
import { Text, TouchableOpacity, View } from 'react-native'
import { styles } from '../theme/appTheme'
interface Props {
texto:string,
color?:string,
ancho?: boolean,
accion: (numeroTexto: string) => void,
}
export const BotonCalc = ({texto, color = '#2D... |
/*
* Copyright (C) 2021-2023 Intel Corporation
* SPDX-License-Identifier: MIT
*/
import { forwardRef, ReactNode, useImperativeHandle, useRef, useState } from 'react';
import { Box, Card, CardActions, CardContent, Divider } from '@mui/material';
import LargeCardHeader from '../LargeCardHeader';
import { Formik, Form... |
let scoreBlock, // отбражнение очков
score = 0; // сами очки
const config = { // настройки игры
step: 0, // пропускать игровой цикл
maxStep: 6, // пропускать игровой цикл
sizeCell: 16, // размер одной ячейки
sizeBerry: 16 / 4 // размер ягод... |
<form class="row" #userNameForm="ngForm" (submit)="onSubmit()" *ngIf="app.isLocalAccountEnabled">
<div class="col">
<div class="row">
<div class="col">
<md-input-container class="w-100" *ngIf="app.emailSettings.isEnabled && app.phoneSettings.isEnabled">
<inpu... |
import React, { useState, useRef, useEffect } from 'react'
import axios from "axios"
import { useSelector, useDispatch } from 'react-redux';
import UMCReducer from '../../../redux/umcReducer';
import LoadingScreen from '../../LoadingScreen';
function DeleteChapter() {
const [sectionLoading, setSectionLoading] = us... |
/* eslint-disable @next/next/no-img-element */
import { ImageResponse } from "next/og";
import { ProductGetItemByIdDocument } from "@/gql/graphql";
import { executeGraphql } from "@/app/api/graphqlApi";
import { formatPrice } from "@/app/components/utils";
export const runtime = "edge";
export const alt = "Best shop ... |
import type { VoidFn, Reacty } from './indeps-lookduck'
import { _, injectReact, getInjectedReact } from './indeps-lookduck'
import type {
Lookable, AnyLookableMap, GottenLookableMapValues
} from './lookable'
import { getEachInLookableMap } from './lookable'
import type { EqualityMode } from './observable'
import { m... |
package com.app.fruits.tester;
import com.app.fruits.*;
import java.util.Scanner;
public class FruitBasket {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the Size of Basket: ");
Fruits[] fruitBasket = new Fruits[sc.nextInt()];
boolean exit = false... |
import openpyxl
########################################################################################
#Cpf existente na planilha para teste de atualização de dados
# - 567.890.123-54
# - 456.789.012-43
# - 345.678.901-32
########################################################################################
class ... |
import { parseLambda } from "../../math/lambda/parse.js";
import { richRepr } from "../../math/lambda/repr.js";
import { subs } from "../../math/lambda/subs.js";
import { label } from "../../utils/lang.js";
import { tex } from "../../utils/log.js";
const lb = label({
en : {
invalid: 'is not a valid variable',
... |
# [QA-1] Issue in `mint` Function
## Description
The `mint` function in the contract has a comparison operator issue in the `require` statement, where it checks if the total supply plus the minted amount exceeds the maximum supply.
## Error
The cause of the issue is the incorrect usage of the comparison operator in t... |
import base64
import concurrent
import logging
import os
import tempfile
import requests
from django.core.files import File
from lyrics_extractor import SongLyrics
from youtube_search import YoutubeSearch
from PaulStudios import settings
from base.tasks import increase_progress, update_progress
from songdownloader.mo... |
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator
from django.shortcuts import get_object_or_404, redirect, render
from .forms import CommentForm, PostForm
from .models import Follow, Group, Post, User
POST_NUMBER = 10
def get_page(request, post_list):
# Паджи... |
import 'package:fp_ppb_e8/pages/auth/register_page.dart';
import 'package:fp_ppb_e8/pages/notes/notes_list.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
// import 'package:fp_ppb_e8/components/auth/login_button.dart';
import 'package:fp_ppb_e8/components/auth/text_fie... |
#!/usr/bin/env node
/**
* Module dependencies.
*/
const app = require('../app');
const debug = require('debug')('socket-server:server');
const http = require('http');
const {server: webSocketServer} = require("websocket");
/**
* Get port from environment and store in Express.
*/
const port = normalizePort(process... |
use quote::quote;
use proc_macro::TokenStream;
use syn::{parse_macro_input, DeriveInput, DataStruct, FieldsNamed, Data, Fields, Visibility};
use syn::__private::ToTokens;
use syn::Data::Struct;
use syn::Fields::Named;
#[proc_macro_attribute]
pub fn public(_attr: TokenStream, item: TokenStream) -> TokenStream {
let... |
<div class="container mt-4">
<div class="row">
<div class="col-12">
<table class="table table-bordered border-danger">
<thead>
<tr>
<th>STT</th>
<th>Tên Pipe</th>
<th>Dữ liệu đầu vào</th>
<th>Dữ liệu đầu ra</th>
</... |
'use strict';
const score0El = document.getElementById('score--0');
const score1El = document.getElementById('score--1');
const current0El = document.getElementById('current--0');
const current1El = document.getElementById('current--1');
const player0El = document.querySelector('.player--0');
const player1El = documen... |
/**
* @file treeview.ts
* @author Etienne Cochard
* @license
* Copyright (c) 2019-2021 R-libre ingenierie
*
* 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
*... |
import React, { useEffect } from "react";
import { logoutAction } from "../actions/LoginActions";
import { useSelector, useDispatch } from "react-redux";
import { Link, useNavigate } from "react-router-dom";
import bye from "../images/bye.png";
const Logout = () => {
const dispatch = useDispatch();
const navig... |
require("../env");
require("../../d3");
require("../../d3.geo");
var vows = require("vows"),
assert = require("assert");
var suite = vows.describe("d3.geo.bonne");
suite.addBatch({
"default instance": {
topic: function() {
return d3.geo.bonne();
},
"scale defaults to 200": function(bonne) {
... |
import Blog from '@/public/svgs/blog-sidebar.svg'
import Discord from '@/public/svgs/discord-sidebar.svg'
import AboutXANALIA from '@/public/svgs/icon-about-sidebar.svg'
// import Award from '@/public/svgs/icon-award-sidebar.svg'
import Collections from '@/public/svgs/icon-collections-sidebar.svg'
import Create from '@... |
package com.istad.istadresfulapi.utils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class Response <T>{
public enum Status{
OK, BAD_REQUEST, UNAUT... |
import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import MovieList from './pages/MovieList';
import NewMovie from './pages/NewMovie';
import MovieDetails from './pages/MovieDetails';
import EditMovie from './pages/EditMovie';
import NotFound from './pages/NotFound';
function A... |
import { lazy } from 'react';
import { Route, Routes } from 'react-router-dom';
import SharedLayout from './SharedLayout';
const Home = lazy(() => import('../pages/Home'));
const AboutUs = lazy(() => import('../pages/AboutUs'));
const Adoption = lazy(() => import('../pages/Adoption'));
const PetPage = lazy(() => impor... |
import React, { useState, useEffect } from 'react'
import { Link } from 'react-router-dom'
import { Form, Button, Row, Col } from 'react-bootstrap'
import { useDispatch, useSelector } from 'react-redux'
import Message from '../components/Message'
import Loader from '../components/Loader'
import { login } from '../actio... |
/**
* @author Raju Lakshman
* @date Sept 2020
* @description Test class for the ddMultiSelectPicklist component and framework
*/
@IsTest
public without sharing class CDdMultiSelectPicklistTest {
@IsTest
public static void testObjectRecords() {
CDdMultiSelectPicklistCtrl.InitWrapper initWrapper = C... |
import { create_UUID } from '@/helpers/common'
import { sequelize } from '@/helpers/connection'
import { element as elementPaginate } from '@/helpers/paginate'
import { CustomerResourceModel } from '@/models'
import { CustomerResourceRepositiory } from '@/repositories'
import DateUtils from '@/utils/DateUtils'
import {... |
# -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2008, 2009, 2010, 2011 CERN.
##
## Invenio 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 2 of the
## License, or ... |
#![allow(dead_code)]
use std::{
iter::once,
ops::{Deref, DerefMut},
};
use bytes::{BufMut, BytesMut};
pub struct Message(BytesMut);
impl Message {
pub fn new() -> Self {
Self(BytesMut::zeroed(12))
}
pub fn from(data: &[u8]) -> Self {
Self(BytesMut::from(data))
}
pub fn id(&self) -> u16 {
... |
/**
@page test-introduction Introduction to tests
@tableofcontents
@section overview Overview
A test has several important attributes, and are often referred to in the form:
test-$ENVIRONMENT-$NAME[~$VARIATION]
This identifies a single test instance, with the purpose of executing and
providing a single result (... |
<script type="text/javascript">
// eslint-disable-next-line func-names
(function () {
function validPin(tmppin) {
const tmpPin = parseInt(tmppin, 10);
if (Number.isInteger(tmpPin) && tmpPin >= 0 && tmpPin <= 255) {
return true;
}
return false;
}
... |
import { useContext, useState, useEffect } from 'react';
import PopupWithForm from './PopupWithForm';
import { CurrentUserContext } from '../contexts/CurrentUserContext';
function EditProfilePopup({ isOpen, onClose, onUpdateUser }) {
const currentUser = useContext(CurrentUserContext);
const [name, setName] = useSt... |
"""Модуль предоставляет класс-одиночку `Save` для работы с файлом 'assets/save.json'."""
from enum import StrEnum
from pathlib import Path
from game.contrib.singleton_ import SingletonMeta
from game.contrib.dict_ import alias
from game.contrib.files import save_json, load_json
from game.config import GameConfig
__al... |
import { memo } from 'react';
import { useOnPressEnter } from '../../../hooks';
import Input from '../../ui/Input';
import Button from '../../ui/Button';
import styles from './InputSearch.module.scss';
type InputSearchProps = {
onChange: () => void;
value: string;
textButton?: string;
withOnEnter?: boolean;... |
package com.example.tinycalculator
import android.Manifest
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enable... |
import { createContext, useState } from 'react';
import PropTypes from 'prop-types';
import { Products } from '@/data/products';
import { Shops } from '@/data/shops';
// Creamos el contexto
export const CartContext = createContext();
// Proveedor del contexto
export const CartProvider = ({children}) => {
const [car... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>1.props基本使用</title>
</head>
<body>
<div id="person1"></div>
<div id="person2"></div>
<div id="person3"></div>
<script type="text/javascript" src="../js/react.development.js"></script>
<script
type="text/javas... |
import platform
import sys
import time
import torch
import shutil # 对文件的一些操作
import core.globals
import glob
import argparse
import multiprocessing as mp
import os
from pathlib import Path # 和路径有关
import tkinter as tk # 窗口GUI设计
from tkinter import filedialog
from tkinter.filedialog import asksaveasfilename
from cor... |
import 'dart:io';
import 'package:flutter/material.dart';
class DefaultAvatar extends StatelessWidget {
final String url;
final double borderWidth;
final double size;
final double elevation;
final Color borderColor;
final Color backgroundColor;
final File fileImage;
DefaultAvatar({
@required this... |
import 'dart:convert';
import 'package:faker/faker.dart';
import 'package:flutter/services.dart';
class LargeDataSet {
List<String>? _categories;
List<String>? _venues;
List<String>? _languages;
static final LargeDataSet _instance = LargeDataSet._internal();
// Private Constructor
LargeDataSet._internal(... |
---
title: In 2024, How to Unlock iPhone 8 Passcode without iTunes without Knowing Passcode? | Dr.fone
date: 2024-05-19T07:27:26.809Z
updated: 2024-05-20T07:27:26.809Z
tags:
- unlock
- remove screen lock
categories:
- ios
- iphone
description: This article describes How to Unlock iPhone 8 Passcode without iTun... |
import { useEffect, useMemo, useRef, useState } from "react";
import { debounce } from "lodash";
const LLDebouncedAutoResizeTextarea = ({
value,
onChange,
placeholder,
cols,
autoFocus,
focus,
twStyle,
}: {
value: string[];
onChange: (value: string[]) => void;
placeholder?: string;
cols?: number;... |
@draft2019-09
Feature: maxContains draft2019-09
In order to use json-schema
As a developer
I want to support maxContains in draft2019-09
Scenario Outline: maxContains without contains is ignored
/* Schema:
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"maxContains":... |
<template>
<div class="about">
<h2>{{ route.params.userName }}</h2>
<el-button type="primary" @click="query">查询</el-button>
<el-table :data="data.tableData" style="width: 100%">
<el-table-column label="电影名" prop="title" width="180" />
<el-table-column label="评分" prop="rate" width="180" />
... |
import { useState, useEffect } from 'react';
import { LRUCache } from 'lru-cache';
const cache = new LRUCache( {max: 70 }); // Crea una instancia de la caché con un límite de 50 elementos
export const useCachedImage = (src) => {
const [isInCache, setIsInCache] = useState(false);
const [imageSrc, setImageSrc] ... |
import java.util.concurrent.*;
// Here, I implemented ArrayBlockingQueue instead of ArrayList to the ProducerConsumer
public class Main {
public static void main(String[] args) {
ArrayBlockingQueue<String> buffer = new ArrayBlockingQueue<>(6);
ExecutorService executorService = Executors.newFixedThreadPool(3);
... |
#include "binary_trees.h"
/**
* binary_tree_sibling - finds the sibling of a node in a binary tree
* @node: pointer to the node to find the sibling
*
* Return: pointer to the sibling node, or NULL if node has no sibling,
* node is NULL, or the parent is NULL
*/
binary_tree_t *binary_tree_sibling(binary_t... |
# Admin Dashboard Boilerplate
Laravel 10 and Soft UI Dashboard theme.
[<img src="https://s3.amazonaws.com/creativetim_bucket/products/602/original/soft-ui-dashboard-laravel.jpg" width="100%" />](https://soft-ui-dashboard-laravel.creative-tim.com/dashboard)
## Installation
1. Unzip the downloaded archive
2. Copy and... |
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/style1.css">
<link rel = "stylesheet" type = "text/css" href = "css/style.css">
<link rel="stylesheet" media="screen and (max-wid... |
/*Colours*/
header{
background-color:#e6a5fa;; /* Set background colour of header */
}
h1{
color: #510d91;
background-color:#e6a5fa;
/* Set background colour and text colour */
}
h2{
color:#630db5;
background-color: antiquewhite;
/* Set background colour and text colour */
}
h3{
co... |
/*
* Copyright (c) 2011-2012 The Chromium OS Authors.
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <errno.h>
#include <os.h>
#include <cli.h>
#include <malloc.h>
#include <asm/getopt.h>
#include <asm/io.h>
#include <asm/sections.h>
#include <asm/state.h>
DECLARE_GLOBAL_DATA_PTR;
int sandbox... |
//
// ContentView.swift
// A3_Map
//
// Created by Natalie Sahadeo on 2021-11-09.
//
import SwiftUI
import MapKit
import CoreLocation
struct MyPharmacyView: View {
@StateObject private var viewModel = ContentViewModel()
@State var preferredPharmacy = ""
@State var location: CLLocationCoordinate2D?
... |
const express = require("express")
const mongoose = require("mongoose")
const path = require("path")
const cookieParser = require("cookie-parser")
require("dotenv").config()
const app = express()
app.use(express.urlencoded({urlencoded: true}))
app.use(express.json())
app.use(cookieParser())
app.set("view engine", "e... |
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.compositor.overlays.strip;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
impor... |
// Copyright 2020 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... |
<!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>Move Div</title>
<style>
body{
font-family: Verdana, Geneva, Tahoma, sans-serif;
... |
//
// UIKit+ Factory.swift
//
// The MIT License (MIT)
//
// Copyright (c) 2019 Community Arch
//
// 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 witho... |
<!DOCTYPE html>
<html>
<head>
<title>To Do List</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body{
background-image:url('to do list.jpg');
background-repeat:no-repeat;
background-attachment: fixed;
background-size:100% 100% ;
}
body {
margin: 0;... |
import React, { useEffect, useState } from "react";
import {
Container,
Box,
Image,
Heading,
Center,
Flex,
Grid,
GridItem,
} from "@chakra-ui/react";
import { useParams } from "react-router-dom";
import axios from "axios";
import { BASE_API, URL_Image } from "../../../utils/constants";
... |
import React, { useState } from 'react';
import styled from 'styled-components';
import theme from 'styles/theme';
import { useRouter } from 'next/router';
import en from 'locales/en';
import vn from 'locales/vn';
const StyledViewMore = styled.div<StyledShowProps>`
text-align: center;
color: ${theme.blue};
curso... |
package pageObjects.nopCommerce;
import org.openqa.selenium.WebDriver;
import commons.BasePage;
import pageUIs.nopCommerce.RegisterPageUI;
public class UserRegisterPageObject extends BasePage{
private WebDriver driver;
public UserRegisterPageObject(WebDriver driver) {
this.driver = driver;
}
public void in... |
// 定义一个名为 button-counter 的新组件
Vue.component('button-counter', {
data: function () {//注意:一个组件的 data 选项必须是一个函数,因此每个实例可以维护一份被返回对象的独立的拷贝
return {
count: 0
}
},
template: '<button v-on:click="count++">You clicked me {{ count }} times.</button>'
})
组件是可复用的 Vue 实例,且带有一个名字
<div id="components-demo">
<butt... |
/* GameBase.h
Author: Tong Wu
Email: eric.w@wustl.edu
Purpose: Declaration for all the functions and member variables for the Game base class
*/
#pragma once
#include "helper.h"
class GameBase{
public:
//this function will prints the game board and repeatedly calls turn() done() and draw()
virtual int pl... |
//entry
import express, { Request, Response, NextFunction } from "express";
import bodyParser from "body-parser";
import * as http from "http";
import config from "./core/config";
import { Me } from "./models/me";
import session from "express-session";
import userRoutes from './routes/user'
import professorRoutes from ... |
/* eslint-disable react/jsx-wrap-multilines */
import React from 'react'
import {
Typography,
ListItemAvatar,
ListItemText,
Avatar,
ListItem,
IconButton
} from '@mui/material'
import * as datefns from 'date-fns'
import { enUS, ptBR } from 'date-fns/locale'
import {
MdCheckCircleOutline as CheckIcon,
MdRemoveCi... |
% ldpcut.m
%
% David Rowe 18 Dec 2013
%
% Octave LDPC unit test script, based on simulation by Bill Cowley VK5DSP
%
% Start CML library (see CML set up instructions in ldpc.m)
currentdir = pwd;
addpath '/home/david/Desktop/cml/mat' % assume the source files stored here
cd /home/david/Desktop/cml
CmlStartup ... |
import { Op, Sequelize } from 'sequelize';
import { HttpErrorString } from '../constants/http-error-string';
import Team from '../models/sequelize/team';
import TeamSprint from '../models/sequelize/team-sprint';
import TeamUser from '../models/sequelize/team-user';
import Ticket from '../models/sequelize/ticket';
impor... |
package by.chototam.zhukovich.pmisall.screens
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.found... |
import 'dart:io';
import 'package:face_camera_example/src/features/auth/login_screen.dart';
import 'package:face_camera_example/src/features/home/presentation/screens/home_screen.dart';
import 'package:face_camera_example/src/features/home/presentation/screens/images_screen.dart';
import 'package:face_camera_example/s... |
## uninitialized variables
```
int i, j, k;
```
F# wants you to initialize everything and also doesn't need the type declared (usually). So this would be
```
let i = 0.0
let j = 0.0
let k = 0.0
```
## pointers
```
void SENNA_nn_temporal_max_convolution(float *output, float *bias,
```
If the pointer is to an array... |
import { NgModule } from '@angular/core';
import { TestBed } from '@angular/core/testing';
import { EffectsModule } from '@ngrx/effects';
import { StoreModule, Store } from '@ngrx/store';
import { readFirst } from '@nx/angular/testing';
import * as CommunityActions from './community.actions';
import { CommunityEffects... |
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
/**
* main - program that copies the content of a file to another file
* @ac: number of arguments given to program
* @av: pointer to first string argument provided
* Return: 0 if success
*/
int main(int ac, char **av)
{
int fd_to, fd_f... |
/**
* Copyright (c) 2018-2023, Ouster, Inc.
* All rights reserved.
*
* @file lidar_packet_handler.h
* @brief ...
*/
#pragma once
// prevent clang-format from altering the location of "ouster_ros/os_ros.h", the
// header file needs to be the first include due to PCL_NO_PRECOMPILE flag
// clang-format off
#includ... |
%(BEGIN_QUESTION)
% Copyright 2007, Tony R. Kuphaldt, released under the Creative Commons Attribution License (v 1.0)
% This means you may do almost anything with this work of mine, so long as you give me proper credit
{\it Ethernet} actually encompasses several similar network standards, varying by cable type and bit... |
using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using RestSharp;
namespace WatsonAI
{
//Need to pass the URL for class's constructor that is responsible for making the call, or an instance of RestSharp for it to use.
public class WatsonAssistant
{
/// <summary>
... |
<!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>Document</title>
</head>
<body>
<script>
// 确认对话框 confirm 取消false 确认true
// var res ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.