text stringlengths 184 4.48M |
|---|
/**
* @file capteurs.h
*
* @author GOURDON Arnaud
* PREVOST Theophile
*
* @brief Fonctions permettant la lecture des donnees des capteurs.
*/
#ifndef __CAPTEURS_H__
#define __CAPTEURS_H__
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#ifndef ADC_CHANNEL
... |
using DomainLayer.Models;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.FileProviders;
using RepositoryLayer;
using RepositoryLa... |
import React, { useEffect } from "react";
import styled from "styled-components";
import PropTypes from "prop-types";
/* Components */
import { FlexContainer } from "./FlexContainer";
import Spinner from "./Spinner";
import Image from "./Image";
/* Data */
import Interactive_Interface from "../../assets/illustration/... |
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "GenericPlatform/HttpRequestImpl.h"
#include "Interfaces/IHttpResponse.h"
#include "PlatformHttp.h"
/**
* Apple implementation of an Http request
*/
class FAppleHttpNSUrlSessionRequest : public FHttpRequestImpl
{
publ... |
package eth_test
import (
"encoding/json"
"os"
"path/filepath"
"reflect"
"testing"
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type dataJson struct {
Data map[string]any `json:"data"`
}
// TestAPIGenesisResponse tests that json unmarshaling a json response... |
// MovieItem.tsx
import React from "react";
import { FaStar } from "react-icons/fa";
// import { useNavigate } from 'react-router-dom';
// interface MovieItemProps {
// movie: Movie;
// handleMovieClick: (movieId: number) => void;
// }
interface Movie {
id: number;
// url: string;
title: string;
year: num... |
//@version=5
// @description Methods associated with Pitchfork and Pitchfork Drawing. Depends on the library PitchforkTypes for Pitchfork/PitchforkDrawing objects which in turn use DrawingTypes for basic objects Point/Line/LineProperties. Also depends on DrawingMethods for related methods
library("PitchforkMethods", o... |
'use server'
import process from 'node:process'
import { Buffer } from 'node:buffer'
import z from 'zod'
import { cookies, headers } from 'next/headers'
import { isoBase64URL } from '@simplewebauthn/server/helpers'
import { revalidatePath } from 'next/cache'
import {
generateAuthenticationOptions,
generateRegistrat... |
.row
.col-md-6
h1 Timesheet - #{@user.department&.name}
.col-md-6
button.btn.btn-primary.float-right.mr-1 data-target="#newEventUploads" data-toggle="modal" type="button"
i.material-icons-outlined.text-white publish
span.ml-2 Upload
#newEventUploads.modal.fade aria-hidden="true" aria-labelle... |
import argparse
import torch
import torchvision.transforms as transforms
from torch.utils.data import DataLoader
import torch.nn as nn
import torch.optim as optim
from help_code_QNN import ToTensor, ECG_DataSET
from models.QNN import Quantum
from torchsummary import summary
def main():
# Hyperparameters
BATCH_... |
@extends('template_backend.home')
@section('sub-judul','Edit Posts')
@section('content')
@if (count($errors)>0)
@foreach ($errors->all() as $error)
<div class="alert alert-danger" role="alert">
{{ $error }}
</div>
@endforeach
@endif
@if (Session::has('success'))
<div class="alert alert-s... |
import { json } from '@remix-run/node';
import type { LinksFunction, MetaFunction } from '@remix-run/node';
import { Link, useLoaderData } from '@remix-run/react';
import type { ReactElement } from 'react';
import { getStoredNotes } from '~/data/notes';
import noteDetailsStyles from '~/styles/note-details.css';
import ... |
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";
const api = createApi({
baseQuery: fetchBaseQuery({ baseUrl: process.env.REACT_APP_API_BASE }),
endpoints: (builder) => ({
// Create element endpoint
createElement: builder.mutation({
query: (payload) => ({
url: "/eleme... |
# Intel-Unnati-Project-Fake-News-Detection-Using-Python-and-Machine-Learning
Our team Machine Minds which includes `Zaid Khan`,`Abhigyan Basak`,`Akshay Singh` from MIT Manipal
As a part of the Intel Unnati Industrial Training.This is our project, we have used several machine learning (ML) and deep learning (DL) models ... |
package object
import (
"io"
"gopkg.in/src-d/go-git.v4/plumbing"
"gopkg.in/src-d/go-git.v4/plumbing/storer"
)
// NewFilterCommitIter returns a CommitIter that walks the commit history,
// starting at the passed commit and visiting its parents in Breadth-first order.
// The commits returned by the CommitIter will ... |
import getData from "../../utils/api";
import Spinner from "../../components/Spinner/Spinner.jsx";
import { useReducer, useEffect } from "react";
import reducer, { initialState } from "../../Helpers/Reducer/bookableReducer.jsx";
import BookablesList from "../../components/Bookables/List.jsx";
import Bookings from "..... |
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.commerce.currency.internal.util;
import com.ibm.icu.text.DecimalFormat;
import com.ibm.icu.text.DecimalFormatSymbols;
import com... |
package UserInterface.Form;
import java.awt.BorderLayout;
import java.awt.Container;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;
import DataAccess.DTO.UsuarioDTO;
import UserInterface.GUI.PnlBorrarCuenta;
import UserInterface.GUI.PnlCambiarContrasena;
import UserInterface.GUI.... |
// You are given an array of n integers, and your task is to find two values (at distinct positions) whose sum is x.
// Input
// The first input line has two integers n and x: the array size and the target sum.
// The second line has n integers a_1,a_2,\dots,a_n: the array values.
// Output
// Print two integers: the p... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef FIPV6FRAME_H
#define FIPV6FRAME_H 1
#include <map>
#include <inttypes.h>
#include <endian.h>
#ifndef htob... |
require 'rails_helper'
RSpec.describe 'Recipes', type: :system do
include Devise::Test::IntegrationHelpers
before(:all) do
Recipe.delete_all
Food.delete_all
User.destroy_all
@user = User.create!(name: 'yashodhi',
email: 'yashodhi@mail.com',
passwo... |
/*
* ChatPlugin - A complete yet lightweight plugin which handles just too many features!
* Copyright 2023 Remigio07
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ... |
package carleton.sysc4907.controller.element;
import carleton.sysc4907.view.DiagramElement;
import javafx.scene.image.ImageView;
import javafx.scene.image.WritableImage;
import javafx.scene.layout.Pane;
/**
* Class responsible for creating and deleting previews when a diagram element is dragged in the diagram.
*/
p... |
import axios from "axios";
import { BigcommerceCartMixin } from "@/bigcommerce/vue/mixins";
import { PricingHelper } from "@/core/vue/mixins";
import {
makeVM,
SubscriptionInterface as subscription,
CheckoutInterface,
} from "@/core/interfaces";
import { BigcommerceCart } from "@/bigcommerce/utils";
/**
*... |
package Snake;
import javax.swing.table.AbstractTableModel;
import java.io.Serializable;
import java.util.*;
/**
* The Score class.
*/
class Score implements Serializable, Comparable<Score>{
private final String playerName;
private final int scorePoint;
private final String date;
/**
* Instant... |
#include <rclcpp/rclcpp.hpp>
#include <sensor_msgs/msg/image.hpp>
#include <std_msgs/msg/string.hpp>
#include <opencv2/opencv.hpp>
#include "atom_logic/FindLines.h" // Replace with your actual message types
#include "atom_logic/PID.h"
#define PID_KP 2.0f
#define PID_KI 0.5f
#define PID_KD 0.25f
#define PID_TA... |
import React, { useState } from 'react';
import { TbCalendarCheck } from 'react-icons/tb';
import { IoRemoveOutline } from 'react-icons/io5';
import { TiTicket } from 'react-icons/ti';
import { TbBasketDiscount } from 'react-icons/tb';
import { FaCartArrowDown } from 'react-icons/fa6';
import { LuCheckCircle } from 're... |
<u>NAME</u>
<b>Toward an Appleton WI Makerspace...</b>
<u>SYNOPSIS</u>
<p><b>The Distributed Hacker Maker Network(DHMN) is working towards an Appleton, WI makerspace/hackerspace.
</b></p>
<u>DESCRIPTION</u>
<p><b><strong>What’s a hackerspace or a makerspace?</strong>
</b></p>
<p><b>
<a href="http://www.flickr.com/ph... |
import os
from typing import List
import h5py
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from beetroots.inversion.results.utils.abstract_util import ResultsUtil
from beetroots.inversion.results.utils.mc import histograms
class ResultsRegularizationWeights(ResultsUtil):
__slots__ = (... |
"""Financiera_KeniaMoreira URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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='ho... |
import React, { useState } from "react"
import { useMediaQuery } from "react-responsive"
import SearchBar from "./SearchBar"
import ResourceCategories from "./ResourceCategories"
const AllResources = () => {
const isMobile = useMediaQuery({ maxWidth: 767 })
const isTablet = useMediaQuery({ minWidth: 768, maxW... |
import React, { CSSProperties } from 'react';
export interface InputProps {
onChange: (value: string) => void;
value: string | number;
label?: string;
placeHolder?: string;
style?: CSSProperties;
className?: string;
type?: InputType;
}
export enum InputType {
text = 'text',
password = 'password',
... |
/*
* Copyright 2015, Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
use cli::get_starting_pile;
use cli::paths::*;
use handy_core::game::*;
use handy_core::solver::*;
use handy_core::utils::*;
fn format_prefix_result(prefix_result: &PrefixResult) -> String {
match prefix_result {
PrefixResult::Event(event, pile) => {
format!("{} {:?}", format_event_for_cli(even... |
# frozen_string_literal: true
module MediaWiktory::Wikipedia
module Actions
# Receive a bounce email and process it to handle the failing recipient.
#
# Usage:
#
# ```ruby
# api.bouncehandler.email(value).perform # returns string with raw output
# # or
# api.bouncehandler.email(value)... |
@extends('layouts.main')
@section('container')
<h1 class="mb-3 text-center">{{ $tittle }}</h1>
<div class="row justify-content-center">
<div class="col-md-6">
<form action="/posts">
@if(request('category'))
<input type="hidden" name="category" value="{{ request('category') }}">
@endif
... |
import express, { Request, Response } from "express";
import { checkAuth } from "../auth/auth";
import { pool } from "../db/db";
import { User } from "../types/user";
import { fileUpload } from "../utils/fileUpload";
export const appRouter = express.Router();
appRouter.get("/", checkAuth, async (req: Request, res: Res... |
import time
def quicksort(arr):
if len(arr) <= 1:
return arr
pivot = arr[len(arr) // 2]
left = [x for x in arr if x < pivot]
middle = [x for x in arr if x == pivot]
right = [x for x in arr if x > pivot]
return quicksort(left) + middle + quicksort(right)
# Example usage
input_array = [8... |
<!--
* The search page
* @author: Bo Pang
* @since: 2023-04-09
* [...slug].vue
-->
<template>
<Head>
<Title>Search: {{ keyword }}</Title>
</Head>
<div class="main-column">
<div class="catNav-wrapper clearfix">
<div pandatab="" class="pf-catNav" active-class=".current-menu-item,.current-... |
import { useMemo } from "react";
import { Connector } from "wagmi";
import { AvailableCosmosWallets } from "~/config/generated/cosmos-kit-wallet-list";
import { CosmosWalletRegistry } from "~/config/wallet-registry";
import { useConnectEvmWallet } from "~/hooks/evm-wallet";
export const WagmiWalletConnectType = "wall... |
#pragma once
#include "imgui.h"
enum ImGuiToggleFlags_
{
ImGuiToggleFlags_None = 0,
ImGuiToggleFlags_Animated = 1 << 0, // The toggle should be animated. Mutually exclusive with ImGuiToggleFlags_Static.
ImGuiToggleFlags_Static = 1 << 1, // The toggle should ... |
const mongoose = require('mongoose');
const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
var userSchema = new mongoose.Schema({
fullName: {
type: String,
required: 'Full name can\'t be empty'
},
email: {
type: String,
required: 'Email can\'t be empty'
... |
import React from "react";
import { Box, Typography, Link, Button } from "@mui/material";
import { Avatar } from "src/components/Avatar";
import { DeveloperType } from "src/types/DeveloperType";
import { UserType } from "src/types/RepositoryType";
import { FireIcon } from "src/components/Icons/FireIcon";
import { Bran... |
from utils.dataset import TilesDatasetFly, TilesDataset
from towbintools.towbintools.deep_learning.augmentation import get_mean_and_std, get_training_augmentation, get_validation_augmentation, grayscale_to_rgb, get_prediction_augmentation
import os
from time import perf_counter
from pytorch_toolbelt.inference.tiles im... |
<script setup>
import BreezeAuthenticatedLayout from '@/Layouts/Authenticated.vue';
</script>
<template>
<Head title="Menus" />
<BreezeAuthenticatedLayout>
<template #header>
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
Menus
</h2>
... |
import {NgModule} from "@angular/core";
import {RouterModule, Routes} from "@angular/router";
import {RecipesComponent} from "./recipes.component";
import {AuthGuard} from "../auth/auth.guard";
import {RecipesUnselectedComponent} from "./recipes.unselected.component";
import {RecipeEditComponent} from "./recipe-edit/re... |
---
title: "Development Setup"
description: "How to set-up your development environment"
---
## Clone the repo
```
git clone https://github.com/nocodb/nocodb
cd nocodb/packages
```
## Build SDK
```
# build nocodb-sdk
cd nocodb-sdk
npm install
npm run build
```
## Build Backend
```
# build backend - runs on port 80... |
"use client"
import React, { useEffect, useState } from 'react';
import { FaHome, FaUser } from 'react-icons/fa';
import Link from 'next/link';
import { useCookies } from 'react-cookie';
import { jwtDecode } from 'jwt-decode';
import axios from 'axios';
import toast from 'react-hot-toast';
const HomePage = () => {
c... |
Birçok mühendis kodlamaya output (çıkış) komutlarını yazarak başlar. Bugün sizlerle birlikte bu output örneklerinin en basitini, C# programlama dilinde nasıl yazıldığını öğreneceğiz ve C# programlama diline kısa bir giriş yapacağız.
```cpp
using System; // ad alanini tanimlama (c++ ve c'deki kutuphaneye
... |
System.register(["vue"], function (exports_1, context_1) {
"use strict";
var vue_1, vue_2;
var __moduleName = context_1 && context_1.id;
return {
setters: [
function (vue_1_1) {
vue_1 = vue_1_1;
vue_2 = vue_1_1;
}
],
execute... |
<template>
<img
:id="id"
crossOrigin="anonymous"
:style="styleObject"
:src="src"
:alt="alt"
@click="clickHandler"
@error="loadErrHandler"
/>
</template>
<script>
export default {
name: "CvImage",
// eslint-disable-next-line vue/require-prop-types
props: ['add... |
import { useState } from "react";
import axios from "axios";
import "./NewsSearch.css";
import { Link } from 'react-router-dom';
const NewsSearch = () => {
const [query, setQuery] = useState("");
const [apiResponse, setApiResponse] = useState(null);
const [loading, setLoading] = useState(false);
const handle... |
from django.db import models
from django.contrib.auth.models import User
from pathlib import Path
from datetime import datetime
import os
CYRILLIC_SYMBOLS = "абвгдеёжзийклмнопрстуфхцчшщъыьэюяєіїґ"
TRANSLATION = (
"a",
"b",
"v",
"g",
"d",
"e",
"e",
"j",
"z",
"i",
"j",
"k... |
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Gentoo Linux Security Advisory GLSA 201404-05.
#
# The advisory text is Copyright (C) 2001-2016 Gentoo Foundation, Inc.
# and licensed under the Creative Commons - Attribution /... |
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from openSUSE Security Update openSUSE-2020-1664.
#
# The text description of this plugin is (C) SUSE LLC.
#
include("compat.inc");
if (description)
{
script_id(141409);
script_version("1.5");
scri... |
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from openSUSE Security Update openSUSE-2019-1527.
#
# The text description of this plugin is (C) SUSE LLC.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (descri... |
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from openSUSE Security Update openSUSE-2018-215.
#
# The text description of this plugin is (C) SUSE LLC.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (descrip... |
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from openSUSE Security Update openSUSE-2013-207.
#
# The text description of this plugin is (C) SUSE LLC.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (descrip... |
#%NASL_MIN_LEVEL 70300
##
# (C) Tenable Network Security, Inc.
##
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(144776);
script_version("1.4");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
script_cve_id("CVE-2015-1788");
script_... |
import SectionTitle from "../../components/SectionTitle"
import { Technology, TechnologyName } from "../../components/Icons"
import styles from './index.module.scss'
import { motion, useAnimation } from "framer-motion"
import { useEffect } from "react"
import { useInView } from "react-intersection-observer"
interface ... |
import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
import UserService, { TypeMail } from 'App/Services/User.service';
import DriverValidator from 'App/Validators/DriverValidator';
import { inject } from '@adonisjs/fold';
import DriverService from 'App/Services/Driver.service';
import Logger from '@... |
package com.example.comtam.screens
import android.content.Context
import android.content.Intent
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrange... |
import React from "react";
import "./index.css";
import { Link } from "react-router-dom";
const STYLES = ["btn--primary", "btn--secondary", "btn--outline", "btn--test"];
const SIZES = ["btn--medium", "btn--large"];
const Button = ({
children,
type,
onClick,
buttonStyle,
buttonSize,
width,
to = "#!",
})... |
import {NavLink} from "react-router-dom";
import s from "./MenuItem.module.css";
type MenuItemPropsType = {
title: string
icon?: string
link: string
onClick?: () => void
}
export const MenuItem = (props: MenuItemPropsType) => {
return (
<NavLink to={props.link} onClick={props.onClick} clas... |
import React from "react";
import { formatearFecha } from "../helpers/formatearfecha";
import useAdmin from "../hooks/useAdmin";
import useProyectos from "../hooks/useProyectos";
const Tarea = ({ tarea }) => {
const { setTarea, setModal, modalEliminarTarea, setModalEliminarTarea, completarTarea } =
useProyect... |
import {roleDefineModel, permissionModel} from '../models';
import userModel from '../../auth/models/index';
const createRole = async (roleData) => {
try {
// Create the new role in the database
const role = await roleDefineModel.create(roleData);
return role;
} catch (error) {
... |
/*
* Copyright (c) 2020 Cognite AS
*
* 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 i... |
import React, { PureComponent } from 'react';
import { inject, observer } from 'mobx-react';
import classNames from 'classnames/bind';
import styles from './index.less';
import UserStore from '@/stores/user';
import formatDate from '@/utils/time';
import capitalize from '@/utils/string';
const cx = classNames.bind(sty... |
package br.com.fiap.locaweb.frontEnd.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx... |
package com.example.r_usecase.usecases.dataUseCase
import android.content.Context
import com.example.a_common.BALANCE
import com.example.a_common.DEBTORS
import com.example.a_common.HISTORY
import com.example.a_common.LENDERS
import com.example.a_common.Type
import com.example.a_common.WALLETS
import com.example.a_com... |
import React, { useContext, useEffect } from "react";
import { Routes, Route, useLocation } from "react-router-dom";
import "./App.css";
// pages
import Home from "./pages/Home.jsx";
import CryptoCurrencies from "./pages/CryptoCurrencies.jsx";
import CryptoExchanges from "./pages/CryptoExchanges.jsx";
import PageNotFo... |
import React from "react";
export const MovieCard = (props) => {
const {
watchlist,
removeFromWatchList,
movieObj,
poster_path,
name,
addToWatchList,
} = props;
const doesContain = (movieObj) => {
for (let i = 0; i < watchlist.length; i++) {
if (watchlist[i].id === movieObj.id)... |
from Employee.models import *
from .models import *
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from django.core.exceptions import ValidationError
from django.contrib import messages
from django import forms
from django.contrib.auth.forms ... |
#! /usr/bin/python3
import os
from pathlib import Path
from typing import List, Union
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
# Dataset used for IKE (few-shot prompts)
ike_few_shot = [
{
'prompt': 'Q: Plagiarizing someone\'s work shows? A:',
'target_new': 'dishon... |
// import { configureStore } from '@reduxjs/toolkit'
// import cartReducer from '../redux/slice/cartSlice'
// import cuisineReducer from '../redux/slice/cuisineSlice'
// import routeReducer from '../redux/slice/routeSlice'
// export default configureStore({
// reducer: {
// cart: cartReducer,
// cuisine: cui... |
<div class="container">
<form (ngSubmit)="onSubmit()" [formGroup]="restaurantForm">
<mat-horizontal-stepper [linear]="true">
<mat-step>
<ng-template matStepLabel>Basic details (*required)</ng-template>
<app-input [label]="'Restaurants Name'" [inputType]="'text'" [control]="restaurantForm.get... |
## Overview
This pattern demonstrate creation and deployment of Model on vertexAI and its real time integration with mongodb changestream. For the scope of this workshop we use **"K-means"** clustering for data segmentation.This model identifies users segments.
**User Clustering**
- Loyalty programs ... |
# Deploying To Mobile Devices
If you have a Pro subscription, you also have the capability to deploy
to mobile devices.
## Deploying to iOS
To deploy to iOS, you need to have a Mac running MacOS Catalina, an
iOS device, and an active/paid Developer Account with Apple. From the
Console type: `$wizards.ios.start` and ... |
from typing import Any, AsyncGenerator
import pytest
from fastapi import FastAPI
from httpx import AsyncClient
from schedule_service.services.vuc_schedule_parser.lifetime import get_workbook_parsers
from schedule_service.services.vuc_schedule_parser.parser import ScheduleParser
from schedule_service.web.application i... |
<!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>Movie Lovers</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<link rel="style... |
<script setup lang="ts">
import networks from '@snapshot-labs/snapshot.js/src/networks.json';
import { shorten } from '@/helpers/utils';
const { env } = useApp();
const defaultNetwork = import.meta.env.VITE_DEFAULT_NETWORK;
const { web3Account } = useWeb3();
const { loadOwnedEnsDomains, ownedEnsDomains } = useEns();... |
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
th:replace="normal/userbase::layout(~{::section})">
<head>
<meta charset="ISO-8859-1">
<title>Home Page</title>
</head>
<body>
<section>
<div class="card mr-4">
<div class="card-body">
<h1 class="text-center">Add Contact</h1>
<div class="contai... |
using Microsoft.JSInterop;
namespace BlazorLaboratory.BlazorUI.Pages;
public partial class CookiesManager
{
private string? _country;
private string _newCookieValue = "";
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
_country = aw... |
package ru.job4j.forum.controller;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.spri... |
package com.example.proportion
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.launch
// экземпляр этого к... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use GuzzleHttp\Client;
use Illuminate\Support\Facades\Cache;
class WeatherController extends Controller
{
public function getWeather()
{
// Check if weather data is cached
if (Cache::has('cached_weather_data'))
{
... |
import UIKit
class FilmCell: UITableViewCell {
private lazy var filmName: UILabel = {
let label = UILabel()
label.font = UIFont(name: "ArialRoundedMTBold", size: 30)
return label
}()
private lazy var directorName: UILabel = {
let label = UILabel(f... |
---
title: Inheritance
layout: default
---
The classes we have learned about so far have been rather simple: a class was just a collection of fields (variables) and methods (functions), plus a special "constructor" method.
But classes can also have relations to other classes through "inheritance" or "subclassing." Co... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { ProductlistComponent } from './productlist/productlist.component';
import { ProductdetailComponent } from './... |
package com.springboot.blog.entity;
import jakarta.persistence.*;
import lombok.*;
import lombok.experimental.SuperBuilder;
import java.util.HashSet;
import java.util.Set;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Entity
@Table(name = "posts", uniqueConstraints = @UniqueConstraint(
... |
import { Heading, Spinner, Text, VStack, Flex, Button, useDisclosure, Icon, useColorMode, HStack, chakra, Editable, EditablePreview, EditableInput, FormControl, FormLabel, Select, NumberInput, NumberInputField, NumberInputStepper, NumberIncrementStepper, NumberDecrementStepper, Tooltip } from '@chakra-ui/react'
import ... |
#Space Fighter Ace is a space invader clone
#Copyright (C) 2006-2008 Han Dao
#
#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 versi... |
class Settings{
constructor(root){
this.root = root;
this.platform = "WEB";
if(this.root.AcWingOS) this.platform = "ACAPP";
this.username = "";
this.photo = "";
this.User_id = 0;
this.$settings = $(`
<div class="ac-game-settings">
<div class="ac-game-sett... |
import React, { useEffect, useRef, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { useAppSelector, useAppDispatch } from '../../memory/hooks';
import { selectors as profileSelectors, getProfileAsync, setProfileAsync, actions as profileActions } from '../profile/profileSlice';
import { ... |
<header class="header-4 header-17">
<div class="total-header-area default-header">
<div class="container">
<div class="row align-items-center">
<div class="logo white-logo">
<%= link_to root_path do %>
<%= image_tag('logo-white.svg')%>
<% end %>
<... |
This chapter is about learning regular languages of finite words. All automata here are deterministic finite automata. The setup is that there are two parties: Learner and Teacher. Teacher knows a regular language. Learner wants to learn this language, and pursues this goal by asking two types of queries to the Teacher... |
package com.nt.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import com.nt.bo.StudentBO;
public class StudentDAOImpl implements StudentDAO {
private static final String GET_A... |
import { FC, useEffect, useRef, useState } from 'react';
import { animated, to, useSpring } from '@react-spring/web';
import { atom, useAtom, useAtomValue, useSetAtom } from 'jotai';
import random from 'lodash/random';
import sample from 'lodash/sample';
import times from 'lodash/times';
import Link from 'next/link';... |
/**
* @file can.h
*/
/**
* @addtogroup CAN
* @{
*/
#ifndef CAN_H_
#define CAN_H_
#ifndef __ASSEMBLER__
#include <stdint.h>
#include <stdbool.h>
#endif
#include "bitops.h"
/**
* @name CAN interrupt bits
*@{
*/
#define CAN_IRQ_BEI Bit(7) /**< Bus error interrupt */
#define CAN_IRQ_ALI Bit(6) /**< Arbitratio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.