text stringlengths 184 4.48M |
|---|
<?php
namespace App\Http\Livewire;
use App\Models\Job;
use Livewire\Component;
use Ramsey\Uuid\Type\Integer;
class Search extends Component
{
public String $query = '' ;
public $jobs = [];
public Int $selectedIndex = 0;
public function incrementIndex()
{
if ($this->selectedIndex === (c... |
package com.palma.ecommerceArte.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.ster... |
<?php
namespace App\Models;
use App\Models\Movie;
use Laravel\Sanctum\HasApiTokens;
use Spatie\Permission\Traits\HasRoles;
use Illuminate\Notifications\Notifiable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
u... |
package;
import Sys.sleep;
#if DISCORD_ALLOWED
import discord_rpc.DiscordRpc;
#end
#if LUA_ALLOWED
import llua.Lua;
import llua.State;
#end
using StringTools;
class DiscordClient
{
public static var isInitialized:Bool = false;
#if DISCORD_ALLOWED
public static var queue:DiscordPresenceOptions = {
details: "In ... |
import React, { useState } from 'react';
import bookImg from '../../images/books.jpg';
import { useHistory } from 'react-router-dom';
import {
Card,
Typography,
CardActions,
CardMedia,
CardContent,
Button,
} from '@mui/material';
export default function BookDashboardCard({ books }) {
const history = useHistory(... |
<x-layout>
<x-breadcrumbs class="mb-4" :links="['Jobs'=>route('jobs.index')]" />
<x-card class="mb-4 text-sm" x-data="">
<form x-ref="filters" id="filtering-form" action="{{route('jobs.index')}}" method="GET">
<div class="mb-54 grid grid-cols-2 gap-4">
<div>
... |
<div class="timepicker">
<ul class="nav nav-tabs" role="tablist" ng-init="tab = 'filter'">
<li ng-class="{active:tab == 'filter'}">
<a href ng-click="tab = 'filter'">Time Filter</a>
</li>
<li ng-class="{active:tab == 'interval'}">
<a href ng-click="tab = 'interval'">Refresh Interval</a>
</... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class accountValidator extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get ... |
signature
=========
Ever wanted to have witty and pithy sigs attached to your e-mail and
news postings, but got tired having the same old one attached every
time?
That's where signature comes in. signature is a free, open-source
producer of dynamic signatures for livening up your e-mail and news
postings. It will all... |
<template>
<section :style="{ left: posX + 'px', top: posY + 'px' }" class="doodle">
<div @mousedown="startDrag" class="name">
<div class="line"> </div>
<div class="line"> </div>
<div class="line"> </div>
<h1 class="name"> Doodle a duck</h1>
<div ... |
// 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.omnibox.suggestions.querytiles;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static or... |
import React, {useState, useRef} from "react";
import CommonSection from "../components/UI/CommonSection";
import Helmet from '../components/Helmet/Helmet'
import {Container, Row, Col} from 'reactstrap'
import '../styles/Shop.css'
import products from '../assets/data/products'
import ProductList from '../components/UI/... |
import { TestBed } from '@angular/core/testing';
import { sampleWithRequiredData, sampleWithNewData } from '../organization-member-role.test-samples';
import { OrganizationMemberRoleFormService } from './organization-member-role-form.service';
describe('OrganizationMemberRole Form Service', () => {
let service: Or... |
# LiLi-OM (LIvox LiDAR-Inertial Odometry and Mapping)
## -- Towards High-Performance Solid-State-LiDAR-Inertial Odometry and Mapping
This is the code repository of LiLi-OM, a real-time tightly-coupled LiDAR-inertial odometry and mapping system for solid-state LiDAR (Livox Horizon) and conventional LiDARs (e.g., Velodyn... |
<?php
namespace App\Controllers;
use App\Controllers\BaseController;
class LoginController extends BaseController
{
public function index()
{
return view('auth/index', $this->data);
}
public function login()
{
if($this->request->getMethod('POST')) {
$data = $this... |
#include <iostream>
#include <unistd.h>
#include <iomanip>
using namespace std;
void printMainMenu()
{
system("clear");
cout << "\n\t 1. Regisration";
cout << "\n\t 2. Login";
cout << "\n\t 3. Exit";
}
void printSubMenu()
{
system("clear");
cout << "\n\t 1. Send a message";
cout << "\n\t ... |
#include <ESP8266WiFi.h>
#include <NTPClient.h>
#include <WiFiUdp.h>
// Replace with your network credentials
#define WIFI_SSID "Tahsin"
#define WIFI_PASSWORD "Rasel@@@@1988"
// Define NTP Client to get time
WiFiUDP ntpUDP;
NTPClient timeClient(ntpUDP, "pool.ntp.org");
// Variable to save current epoch time
unsigned... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Generate path files for pypaw
:copyright:
Ridvan Orsvuran (orsvuran@geoazur.unice.fr), 2017
:license:
GNU Lesser General Public License, version 3 (LGPLv3)
(http://www.gnu.org/licenses/lgpl-3.0.en.html)
"""
from __future__ import division, absolute_import
fr... |
import { Container, Brand, Menu, Search, Content, NewNote } from "./styles";
import { FiPlus, FiSearch } from "react-icons/fi";
import { Header } from "../../components/Header/index";
import { ButtonText } from "../../components/ButtonText/index";
import { Input } from "../../components/Input";
import { Section } from ... |
import { NextFunction, Response } from 'express';
import { AuthRequest } from '@/interfaces/routes.interface';
import { ApplyJobDto, DetermineJobDto, InterviewDto, JobOfferDto } from '@/dtos/jobs.dto';
import JobsService from '@/services/jobs.service';
import { DIRECTOR, WORKER } from '@/utils/userTypes';
class JobsCo... |
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<title>Agregar Movimiento</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script... |
using ECOM.Web.Models;
using ECOM.Web.Services.IService;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System.Diagnostics;
using System.IdentityModel.Tokens.Jwt;
namespace ECOM.Web.Controllers;
public class HomeController : Controller
{
private readonly IP... |
/*
* Copyright (C) 2000-2013 The Exult Team
*
* 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 2 of the License, or
* (at your option) any later version.
*
* This pr... |
# 이 함수는 주어진 보드의 특정 위치에 숫자를 배치할 수 있는지 여부를 확인
# 1. 해당 숫자가 이미 같은 행에 있는지.
# 2. 해당 숫자가 이미 같은 열에 있는지.
# 3. 해당 숫자가 현재 위치의 3x3 박스 내에 있는지.
import json
def is_valid(board, row, col, num):
# Check if num is present in the specified row
for x in range(9):
if board[row][x] == num:
return False
# C... |
import { Module } from '@nestjs/common';
import { GraphQLModule } from '@nestjs/graphql';
import { UsersModule } from './users/users.module';
import { AuthModule } from './auth/auth.module';
import { ConfigModule } from '@nestjs/config';
import { join } from 'path';
import { ApolloDriver, ApolloDriverConfig } from '@ne... |
Either / Neither = Tampoco
> **Either**: Pronombre + Auxiliar `-` / to be `-` / v. modal `-` + Either
> **Neither**: Neither + Auxiliar `+` / to be `+` / v. modal `+` + Pronombre
> Nombre + Neither
> Pronombre objeto + Neither
> Sujeto + Neither
### Examples:
A. I wouldn't go with them.
B. I wouldn't ... |
import React from 'react';
import './Header.css';
import SearchIcon from '@material-ui/icons/Search';
import logo from './images/logo.png';
import HeaderOption from './HeaderOption';
import HomeIcon from '@material-ui/icons/Home';
import ChatIcon from '@material-ui/icons/Chat';
import NotificationsIcon from '@material-... |
import * as React from 'react';
interface ImageProps {
source: string;
fallback: string;
alt?: string;
width?: number;
height?: number;
}
function getType(file: string) {
return `image/${file.substring(file.lastIndexOf('.') + 1)}`;
}
function Image({ source, fallback, alt, width, height }: ImageProps) {
... |
# Golang Bindings
In order to build the underlying ICICLE libraries you should run the build script `build.sh` found in the `wrappers/golang` directory.
Build script USAGE
```
./build <curve> [G2_enabled]
curve - The name of the curve to build or "all" to build all curves
G2_enabled - Optional - To build with G2 en... |
<!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>Barbershop</title>
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400... |
import {
Controller,
Post,
Body,
Put,
Param,
HttpStatus,
HttpException,
Get,
UseGuards,
Request,
Query,
HttpCode,
Headers,
Delete,
} from '@nestjs/common';
import { ApiBearerAuth, ApiCreatedResponse, ApiTags } from '@nestjs/swagger';
import { AuthGuard } from '@ne... |
import argparse
import logging
import os
import json
import random
import numpy as np
import torch
from transformers import BertConfig
from models import ner_model
from tool_utils import data_helper, train_helper, util
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(name)s - %(message)s',
... |
import React, { useState } from 'react';
import { Container, Text, Paper, Group, Checkbox, Badge, Title, Button, TextInput, Flex, Modal, Center } from '@mantine/core';
import { useParams } from 'react-router-dom';
import { createTask, getListById, getTasks, removeList, removeTask, toggleTask } from '../api';
const Tas... |
import torch
import torch.nn.functional as F
import torch.nn as nn
import numpy as np
class GRU_Cell(nn.Module):
def __init__(self, dim_in, dim_hidden, dim_meta):
super(GRU_Cell, self).__init__()
self.dim_in = dim_in
self.dim_hidden = dim_hidden
self.dim_meta = dim_meta
de... |
<!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>Mafaz || Portfolio</title>
<link rel="shortcut icon" href="Asset/Image/Fav-Icon.jpg" type="image/x-icon"... |
#include <shg/mathprog.h>
#include "tests.h"
namespace TESTS {
BOOST_AUTO_TEST_SUITE(mathprog_test)
using SHG::Simplex;
using SHG::Matdouble;
using SHG::Vecdouble;
using SHG::Vecint;
using SHG::faeq;
BOOST_AUTO_TEST_CASE(simplex_gass_76) {
Matdouble const A{3,
4,
{... |
import { createSlice } from '@reduxjs/toolkit'
import type { PayloadAction } from '@reduxjs/toolkit'
import type { RootState } from '..'
interface employeeState {
employeeList: {
key: number,
prefix: string,
firstName: string,
lastName: string,
birthDate: Date,
natio... |
import { createRoot } from 'react-dom/client';
/** @jsxImportSource @emotion/react */
import { css } from "@emotion/react";
import { useEffect, useState } from 'react';
import { Autocomplete, Button, TextField } from '@mui/material';
import { v4 as uuid } from "uuid";
import toast, { Toaster } from 'react-hot-toast';
... |
package com.example.myapplication;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.SeekBar;
import android.widget.TextView;
import androi... |
<?php
// Settings page callback
function woocommerce_sales_insights_settings()
{
// Get the site's timezone from WordPress settings
$site_timezone = get_option('timezone_string');
// Set the timezone
if ($site_timezone) {
date_default_timezone_set($site_timezone);
}
// Save the settin... |
@extends('layouts.master')
@section('content')
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header align-items-center d-flex">
<h4 class="card-title mb-0 flex-grow-1">Add Inventory</h4>
</div>
... |
import 'package:flutter/material.dart';
import '../../../styles/app_color.dart';
import '../../../styles/app_icon.dart';
class CustomAppbar extends StatelessWidget {
const CustomAppbar({super.key, required this.n});
final int n;
@override
Widget build(BuildContext context) {
return Stack(
children... |
import { formatDuration } from 'date-fns';
import React, { PureComponent } from 'react';
import { SelectableValue, parseDuration } from '@grafana/data';
import { selectors } from '@grafana/e2e-selectors';
import { t } from '../../utils/i18n';
import { ButtonGroup } from '../Button';
import { ButtonSelect } from '../D... |
import {
Body,
Controller,
Delete,
HttpCode,
Optional,
Param,
Post,
Req,
UploadedFile,
UseGuards,
UseInterceptors,
} from '@nestjs/common';
import { CreatePlaylistDto } from './dto/create-playlist.dto';
import { PlaylistsService } from './playlists.service';
import { FileInterceptor } from '@nestj... |
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace Hermes2018.Attributes
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = fals... |
import React, { useEffect, useState } from 'react';
import { useAuth } from '../context/AuthContext';
import { useNavigate, Link } from 'react-router-dom';
import { Box, Button, chakra, Container, FormControl, FormLabel, HStack, Input, Stack, useToast, Image, Flex } from '@chakra-ui/react'
import { FaGoogle } from 'rea... |
$("#image-selector").change(function () {
let reader = new FileReader();
reader.onload = function () {
let dataURL = reader.result;
$("#selected-image").attr("src", dataURL);
$("#prediction-list").empty();
};
let file = $("#image-selector").prop("files")[0];
reader.readAsDataURL(file);
});
let m... |
(function e(t, n, r) {
function s(o, u) {
if (!n[o]) {
if (!t[o]) {
var a = typeof require == 'function' && require;
if (!u && a) return a(o, !0);
if (i) return i(o, !0);
var f = new Error("Cannot find module '" + o + "'");
throw ((f.code = 'MODULE_NOT_FOUND'), f);
... |
import { useState, useEffect } from 'react';
import BadHabit from './BadHabit';
const API = import.meta.env.VITE_API_URL;
const BadHabits = () => {
const [badHabits, setBadHabits] = useState([]);
useEffect(() => {
fetch(`${API}/badHabits`)
.then((response) => response.json())
.then((responseJSON) => {
... |
import Image from 'next/image';
import karta from '../../public/images/karta.jpg';
import Link from 'next/link';
import { calcSumFromBudget } from '@/lib/calc-sum-from-budget';
export default function RequestItem(props) {
if (!props.request) {
return;
}
return (
<>
<Link
href={`/management... |
<script lang="ts" setup>
import DateDisplay from './DateDisplay.vue'
import UseEmojis from '@/composables/UseEmojis'
import type Entry from '@/types/Entry'
import { userInjectionKey } from '@/injectionKeys'
import { inject } from 'vue'
defineProps<{
entry: Entry
}>()
const user = inject(userInjectionKey)
const { fi... |
/*******************************************************************************
* Copyright 2018 Samsung Electronics All Rights Reserved.
*
* 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... |
<script setup>
import { useUsersStore } from "./stores/users";
const usersStore = useUsersStore();
</script>
<template>
<div v-if="user_id > 0">
<router-view />
</div>
<div v-else>
<div
class="all_user"
v-for="(user, index) in usersStore.users"
:key="index"
>
<router-link
... |
from pathlib import Path
from subprocess import PIPE, Popen
import pytest
from mtap import Pipeline, RemoteProcessor, events_client
from mtap.serialization import PickleSerializer
from mtap.utilities import find_free_port
from biomedicus import java_support
@pytest.fixture(name='normalization_processor')
def fixtur... |
NAME
Crypt::JWT - JSON Web Token (JWT, JWS, JWE) as defined by RFC7519,
RFC7515, RFC7516
SYNOPSIS
# encoding
use Crypt::JWT qw(encode_jwt);
my $jws_token = encode_jwt(payload=>$data, alg=>'HS256', key=>'secret');
my $jwe_token = encode_jwt(payload=>$data, alg=>'PBES2-HS256+A128KW', ... |
const mongoose = require('mongoose');
const slugify = require('slugify');
const tourSchema = new mongoose.Schema(
{
name: {
type: String,
required: [true, 'a tour must have a name'],
unique: true,
trim: true,
maxlength: [40, 'Tour name must be at max 40 characters'],
minlength... |
/*
📝 중복문자제거
소문자로 된 한개의 문자열이 입력되면 중복된 문자를 제거하고 출력하는 프로그램을 작성하
세요.
제거된 문자열의 각 문자는 원래 문자열의 순서를 유지합니다.
▣ 입력설명
첫 줄에 문자열이 입력됩니다.
▣ 출력설명
첫 줄에 중복문자가 제거된 문자열을 출력합니다.
▣ 입력예제 1
ksekkset
▣ 출력예제 1
kset
📝 강의 자료
(1) 해당 문자열의 길이만큼 반복문을 돌려서 해당 index에 해당하는 단어를 indexOf로 찾음.
function solution(s){
let answer="";
for(let i=0; i<s.leng... |
import { useState, createContext, useContext } from "react";
const ModalContext = createContext();
export function useNavModal() {
return useContext(ModalContext);
}
export function ModalProvider({ children }) {
const [openModal, setOpenModal] = useState(false);
const [formData, setFormData] = useState({
f... |
using Dapplo.Microsoft.Extensions.Hosting.WinForms;
using OpenIddict.Client;
using static OpenIddict.Abstractions.OpenIddictConstants;
using static OpenIddict.Abstractions.OpenIddictExceptions;
using static OpenIddict.Client.WebIntegration.OpenIddictClientWebIntegrationConstants;
namespace OpenIddict.Sandbox.WinForms.... |
@extends('template')
@section('content')
<form action="{{route('juegos.store')}}" method="post" enctype="multipart/form-data">
@csrf
<div class="modal-body">
<div class="mb-3">
<label for="" class="form-label">Nombre... |
// Copyright 2023 RisingWave Labs
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... |
import React from 'react';
import { styled } from '@mui/material';
import { ChevronRight as ChevronRightIcon } from '@mui/icons-material';
import BadgeLabel from './BadgeLabel';
import { getDisplayedHref } from '../utilities/sitemap';
const Link = styled('a', {
shouldForwardProp: (props) => props !== 'color' && props... |
import { Component, EventEmitter, Output } from '@angular/core';
import { MessageService } from 'primeng/api';
import { catchError, first } from 'rxjs';
import { Conversion } from '../interfaces/conversion';
import { ConversionResult, SalaryRatesResult } from '../interfaces/salary-rates-result';
import { Symbols, Symbo... |
package org.example.entity;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.PositiveOrZero;
import jakarta.validation.constraints.Size;
import org.jetbrains.annotations.NotNull;
import javax.persistence.*;
import java.math.BigDecimal... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('shipping_boxs', functio... |
package com.example.trade_centre.config.JWT;
import com.example.trade_centre.entity.User;
import com.example.trade_centre.model.UserModel;
import io.jsonwebtoken.*;
import lombok.RequiredArgsConstructor;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.... |
import { isValidObjectId } from "mongoose";
import { AsyncHandler } from "../utils/AsyncHandler.js";
import { Like } from "../models/like.model.js";
import mongoose from "mongoose";
import { Video } from "../models/video.model.js";
import { APIResponse } from "../utils/APIResponse.js";
import { Comment } from "../model... |
import React from 'react'
import './Style/Style.css'
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
import Divider from '@mui/material/Divider';
import ListItemText from '@mui/material/ListItemText';
import ListItemAvatar from '@mui/material/ListItemAvatar';
import Avatar from '@m... |
import { Client, Wallet, AccountSet, Import, xrpToDrops } from '@transia/xrpl'
import { validateConnection, Xrpld, getXpopBlob } from '@transia/xpop-toolkit'
export async function main(): Promise<void> {
// BURN CLIENT
const burnUrl = 'wss://s.altnet.rippletest.net:51233'
const burnClient = new Client(burnUrl)
... |
/**
* Функция применяется для того, чтобы подставить 0 перед целым числом для дней или месяцев в тех случаях, где это необходимо
* @param {*} datePart - Является частью даты (день, месяц или год)
* @returns возвращает строку с 0, если число от 1 до 9 и без 0, если больше 9
*/
const addZeroBefore = (datePart: number... |
import pandas as pd
SORTING_ORDER = ["nb_items_int", "positive_feedback_percentage", "rating_avg", "price_dollars"]
def sort_scraped_df(df: pd.DataFrame) -> pd.DataFrame:
"""
Given the DataFrame with scraped data, sorts it along SORTING_ORDER variable
:param df: DataFrame with scraped data
:return: s... |
import {FormControl, FormLabel, Input} from "@chakra-ui/react";
import {ChangeEventHandler, FunctionComponent, HTMLInputTypeAttribute, useEffect} from "react";
interface inputProps {
id: string
title: string
value: string
onChange: ChangeEventHandler
type?: HTMLInputTypeAttribute
}
const MiInput: ... |
package com.glaf.report.core.service;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.session.RowBounds;
import org.mybatis.spring.SqlSessionTemplate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
im... |
import 'package:flutter/material.dart';
import 'package:flutter_snappyshop/config/constants/app_colors.dart';
class CustomButton extends StatelessWidget {
const CustomButton({
super.key,
this.onPressed,
required this.child,
this.width = double.infinity,
this.height = 52,
});
final void Funct... |
#!/bin/bash
# Since: January, 2023
# Author: aalmiray
#
# Copyright 2023 Andres Almiray, Gerald Venzl
#
# 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/LI... |
import React, { useState, useEffect } from "react";
function CountDown({ hours = 0, minutes = 0, seconds = 0 }) {
const [paused, setPaused] = useState(false);
const [over, setOver] = useState(false);
const [time, setTime] = useState({
hours: parseInt(hours),
minutes: parseInt(minutes),
seconds: parse... |
function [status, MEh] = test_pca_2()
% TEST_PCA_2 - Test functionality of pca class
import test.simple.*;
import mperl.file.spec.*;
import physioset.*;
import pset.session;
import safefid.safefid;
import datahash.DataHash;
import misc.rmdir;
import meegpipe.node.*;
MEh = [];
% Number of iterations to perform wh... |
import asyncio
from aiogram import Bot, Dispatcher, F
from aiogram.types import Message
bot = Bot(token='')
dp = Dispatcher()
# Основная команда /start
@dp.message(F.text == '/start')
async def cmd_start(message: Message):
await message.answer('Добро пожаловать!')
# Получение id/имени с помощью message.fro... |
=== Easy Image Gallery ===
Contributors: devrix, nofearinc
Tags: image gallery, image, galleries, simple, easy, devrix
Requires at least: 3.5
Tested up to: 4.9.2
Stable tag: 1.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Easily create an image gallery on your posts, pages or any cust... |
import bcrypt from "bcryptjs";
import mongoose from "mongoose";
const userSchema = new mongoose.Schema({
email: { type: String, required: true, unique: true },
avatarUrl: String,
socialOnly: { type: Boolean, default: false },
username: { type: String, required: true, unique: true },
password: { type: String ... |
/*
Copyright 2014-2015 Harald Sitter <sitter@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or a... |
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*-
;;; Copyright (c) 2020 Smart Information Flow Technologies
;;;
;;; File: "driver"
;;; Module: "drivers;sources:"
;;; Version: May 2020
;; Created 3/20/20 to organize the marshalling and reading of json-based
;; documents with the same range of... |
// let forEach = (arr, callback) =>{
// for(let i = 0; i < arr.length; i++){
// callback(arr[i],i, arr)
// }
// }
let arr = [1,2,3,4,5,6]
// forEach(arr, (element, index) => console.log(element, index))
arr.forEach((element, index) => console.log(element,index))
////////// .map //////////
// let m... |
To begin we will be working in our terminal which can be found if you click on the editor tab in the top left, and then navigating down to the bottom of your screen.
Create a new empty file called `my-new-file` in your home directory
<br>
### Solution
First we make sure we're in our home directory using
```plain
cd ... |
/*
Copyright (c) 2010 Steve Oldmeadow
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distri... |
from __future__ import division
from sklearn import datasets, decomposition
from sklearn.utils.extmath import randomized_svd
from scipy import stats, sparse
import graphtools
import numpy as np
import harmonicalignment
import unittest
import warnings
warnings.filterwarnings(
"ignore",
category=PendingDeprecat... |
// BeginLicense:
// Part of: spacelibs - reusable libraries for 3d space calculations
// Copyright (C) 2017 Carsten Arnholm
// All rights reserved
//
// This file may be used under the terms of either the GNU General
// Public License version 2 or 3 (at your option) as published by the
// Free Software Foundation and a... |
import React, {useEffect, useState} from 'react';
import {
View,
Text,
StyleSheet,
ActivityIndicator,
ScrollView,
} from 'react-native';
import {Card, Avatar} from 'react-native-elements';
import {apiUrl, apiImage} from '../config';
import defaultAvatar from '../img/dosen.jpeg';
import ActionButton from './Ac... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
/*:before 前面 :after 后面 content内容*/
/*伪元素选择器*/
div::before{
/*选中div标签的 前面,可以在div的前面加内容*/
content: "前面";
/*对点缀进行样式的设置*/
color: red;
... |
//
// BleConnectTargetDetailView.swift
// BleSample
//
// Created by 佐藤汰一 on 2023/06/24.
//
import SwiftUI
import CoreBluetooth
struct BleConnectTargetDetailView: View {
@ObservedObject var viewModel: BlePeripheralDetailViewModel
let presenter: BleConnectTargetDetailViewPresenter
var body: so... |
import fs from "fs";
import { PDFDocument, PDFHexString, PDFName, PDFNumber, PDFString } from "pdf-lib";
// Local copy of Node SignPDF because https://github.com/vbuch/node-signpdf/pull/187 was not published in NPM yet. Can be switched to npm package.
const signer = require("./node-signpdf/dist/signpdf");
export cons... |
import 'dart:io';
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:teclix/data/models/customer_search.dart';
import 'package:tecli... |
#include "BLEManager.h"
#include <Arduino.h>
BLEService sensorService("180C"); // Custom service UUID
BLECharacteristic sensorCharacteristic("2A56", BLERead | BLEWrite, 20); // Custom characteristic UUID, max length 20
BLEManager::BLEManager()
{
// Initialization code if needed
}
void BLEManager::initBLE()
{
Ser... |
---
title: In 2024, 4 Ways to Sync Contacts from Apple iPhone 7 to iPad Easily | Dr.fone
date: 2024-05-19T02:47:38.713Z
updated: 2024-05-20T02:47:38.713Z
tags:
- iphone transfer
categories:
- ios
description: This article describes 4 Ways to Sync Contacts from Apple iPhone 7 to iPad Easily
excerpt: This article de... |
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:quiz_app/Data/questions.dart';
import 'package:quiz_app/questions_summary.dart';
import 'package:quiz_app/quiz.dart';
class ResultsScreen extends StatelessWidget {
const R... |
package com.example.rail3.model;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
@Entity
public cl... |
<!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>Veterinary Landing Page</title>
<!-- google font css starts -->
<link href="https://fonts.googleapis... |
= Importing DataWeave Libraries
:page-deployment-options: cloud-ide, desktop-ide
// :page-aliases: import-dataweave-library.adoc
include::reuse::partial$beta-banner.adoc[tag="anypoint-code-builder"]
//LOGO (web, desktop, or both)
// include::partial$acb-ide-logos.adoc[tags="both-ides"]
Use Anypoint Code Builder to i... |
import React, { useState } from 'react';
import { useDispatch } from 'react-redux';
import { addProduct } from '../redux/actions/productActions';
const CreateProduct = () => {
const [name, setName] = useState('');
const [description, setDescription] = useState('');
const [price, setPrice] = useState('');
cons... |
$(function() {
let currentURL = window.location.href;
/**
* Evento para mostrar el formulario de crear un nuevo modulo
*/
$(document).on("click", ".newMensaje", function(e) {
e.preventDefault();
$('#tituloModal').html('Nuevo Mensaje');
$('#action').removeClass('updateMens... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.