text stringlengths 184 4.48M |
|---|
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
// Redux Setup
import { configureStore, applyMiddleware, compose } from "@reduxjs/toolkit";
import { rootReducer } from "./reducers";
import { Provider } from "react-redux";
import thunk from "redux-thunk";
import { BrowserRout... |
#
# This file is part of Jedi-Plugin-Session
#
# This software is copyright (c) 2013 by celogeek <me@celogeek.com>.
#
# This is free software; you can redistribute it and/or modify it under
# the same terms as the Perl 5 programming language system itself.
#
package Jedi::Plugin::Session::Backend::SQLite;
# ABSTRACT: ... |
import { IO } from '@funkia/io';
import {
accum,
Behavior,
Future,
performStream,
runNow,
sinkFuture,
Stream,
toPromise,
when,
} from '@funkia/hareactive';
import {
Action,
newLogger,
reactionLoop,
setLogLevel,
startDeploymentService,
startOffersRuntime,
startResourcesService,
} from '.';
import * as ya... |
import ast
import csv
import datetime as dt
import os
import numpy as np
def sigmoid(x):
""" Apply sigmoid function.
"""
return np.exp(x) / (1 + np.exp(x))
def dict_to_matrix(data: dict) -> np.ndarray:
# convert dict into matrix
user_ids = data['user_id']
question_ids = data['question_id']
... |
function mesh = meshSetup(mesh,k)
% meshSetup computes required fields on the mesh for the virtual element
% method
%
% SYNOPSIS: mesh = meshSetup(mesh,k)
%
% INPUT: mesh: mesh structure (nodes, elements and boundary nodes)
% k: degree for local spaces (k>1)
%
% OUTPUT: mesh: struct with the following new field... |
# How to get video orientation for assets
Video dimension (width x height) cannot be fetched from Google Ads API.
There are several ways to get this data into App Reporting Pack:
1. [Get video orientation from asset names](#get-video-orientation-from-asset-names)
1. [Get video orientation from YouTube Data API](#get-... |
# DocumentOperationsDemoApp
Document upload, download operations with Spring Boot DB and Local Storage
Dosya İşlemleri ( Yükleme İndirme Güncelleme Silme ) Projesi
Kullanıcı tarafından yüklenecek olan dosyalara ait bilgiler ( isim, uzantı, boyut, path ) Veritabanı üzerinde tutulmaktadır.
Kullanıcı tarafından yüklene... |
import React, {useState, useRef, MouseEvent} from 'react';
import PropTypes from 'prop-types';
import {
ClickAwayListener,
IconButton,
MenuItem,
MenuList,
Paper,
Popper,
Theme,
Typography,
withStyles
} from '@material-ui/core';
import MoreHorizIcon from '@material-ui/icons/MoreHoriz'... |
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import confusion_matrix
from sklearn import metrics
from sklearn.metrics import ConfusionMatrixDisplay
# Importar la base de datos featuredata
archivo = "... |
import {
Card,
CardHeader,
CardBody,
CardFooter,
Typography,
} from "@material-tailwind/react";
import PropTypes from "prop-types";
import {
getBgColor, // estos 2 jalan los colores necesarios del contexto
getTextColor,
useMaterialTailwindController, getTypography, getTypographybold
} from "@/context";
... |
import { Box, Button, Grid, List, ListItemText, Typography } from "@mui/material"
import { FooterTitle, SubscripeTf } from "../../styles/footer";
import { Colors } from "../../styles/theme";
import FacebookIcon from '@mui/icons-material/Facebook';
import TwitterIcon from '@mui/icons-material/Twitter';
import InstagramI... |
function temperature = asatemp(optimValues,options)
%SATEMPERATUREFCNTEMPLATE Template to write custom temperature function
% TEMPERATURE = SATEMPERATUREFCNTEMPLATE(optimValues,options) updates the
% current temperature
%
% OPTIMVALUES is a structure containing the following information:
% x: current... |
import { useState, useEffect } from 'react';
import { Select } from 'antd';
import type { SelectProps } from 'antd';
import { Button, Form } from 'antd';
import { Divider } from 'antd';
import axios from 'axios';
import { getUserPrefrencesURL } from '../services/api';
import { ContentLoader, Spinner } from '../componen... |
/*
* Copyright © 2022 Mark Raynsford <code@io7m.com> https://www.io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS P... |
import React, { useState, useEffect } from "react";
import ShipmentsList from "./ShipmentsList";
import ClientList from "./ClientList";
const EmployeeDashboard = () => {
const [employees, setEmployees] = useState([]);
useEffect(() => {
const fetchEmployees = async () => {
try {
const response = ... |
import React from 'react';
import { ThemeProvider } from 'styled-components';
import ThemeDefault from './config/themes/themeDefault';
import { GlobalStyles } from './config/globalStyles/globalStyles';
import Stack from './components/stack/stack';
//import Card from './components/card/card';
//import Grid from ... |
import React, { useRef, useState, useEffect } from "react";
import { connect } from "react-redux";
import Swal from "sweetalert2";
import colors from "../assets/styles/colors";
import checkPassword from "../utils/checkPassword";
import axios from "../api";
import { logoutRequest } from "../actions";
import {
Grid,
... |
package com.taotao.service.impl;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.Multipar... |
package de.emir.rcp.manager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockin... |
import React from "react";
import { Link } from "gatsby";
import { FiArrowRightCircle } from "react-icons/fi";
interface RecipeCardProps {
title: string;
path: string;
description: string;
image: string;
}
const RecipeCard = ({ title, path, description, image }: RecipeCardProps) => {
return (
<Link to={... |
// Copyright (C) 2019 Bernhard Isemann, oe3bia //
// Copyright (C) 2021 Jon Beniston, M7RCE //
// //
// This program is free software; you can redistribute it and/or mod... |
GOLANG编译器源码流程分析及控制指令集的方法
一、工具准备
GOLANG编译器的代码主要位于cmd/compile目录下,但代码量较多,调用关系复杂,为了便于快速分析,利用go-package-plantuml工具先把代码转化为UML图,然后根据UML图从整体上自上而下地分析。
参考了文档:https://studygolang.com/articles/9719 来生成UML图,但在实践的过程中,需要进行一些修改才跑得通,记录如下:
1、搭建好go的环境
下载go源码、编译go1.4、编译go1.10最新版本,此处不再赘述。
2、安装go-package-plantuml工具
首先下载代码(https://gitee.com... |
# ICaRuS Scoring
{% hint style="success" %}
_**We use this to** .... **so that we can** ...._  
{% endhint %}
ICaRuS scoring is a prioritisation method built on concepts like WSJF and the GIST framework. It takes into account the impact areas that business are currently focused on and uses a mathematical calcula... |
package bouquet;
import static org.junit.jupiter.api.Assertions.*;
import colors.Color;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import flowers.Flower;
public class FlowerBouquetTest {
private FlowerBouquet bouquet;
private Flower rose;
private Accessory ribbon;
@... |
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>expRegulares</title>
<script>
var ejemplos = [
/* opcion ... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>touch events vs pointer events</title>
<style>
pre {
font-size: 48pt;
}
#split {
display: flex;
width: 100%;
user-select: none;
--webkit-user-select: none; /* ... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ProductComponent } from './product/product/product.component';
import { ProductDetailComponent } from './product-detail/product-detail/product-detail.component';
import { ProductOverviewComponent } from './product... |
import "./Skills.scss";
import { useState, useEffect } from "react";
import { motion } from "framer-motion";
import { client, urlFor } from "../../client";
import { AppWrap, MotionWrap } from "../../wrapper";
import { Tooltip } from "react-tooltip";
import React from "react";
const Skills = () => {
const [skills, s... |
import { EditFilled, UserOutlined } from '@ant-design/icons';
import { Avatar, Card, Space, Tabs, Typography, Table, Flex, Form, Input, Switch, Skeleton, Button, Tooltip, Modal } from 'antd';
import React, { useEffect, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { getProfile ... |
/* 695. Max Area of Island */
function maxAreaOfIsland(grid: number[][]): number {
// Empty grid
if (grid.length === 0 && grid[0].length === 0) return 0;
const m = grid.length, n = grid[0].length;
let maxArea = 0;
let islandCounter = 0;
const dfs = (m: number, n: number, i: number, j: number) ... |
const express = require("express");
const cors = require("cors");
const mysql = require("mysql");
const app = express();
app.use(express.json());
app.use(cors());
// Connect to DB
const connection = mysql.createConnection({
host: "localhost",
user: "root",
password: "",
database: "aisugaming",
});
connection... |
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../screens/product_detail_screen.dart';
import '../providers/product.dart';
import '../providers/cart.dart';
import '../providers/auth.dart';
class ProductsItem extends StatelessWidget {
// final String id;
// final String ti... |
package io.github.lawseff.aoc2023.substring
import io.github.lawseff.aoc2023.asInput
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
class FirstLastDigitProblemSolverTest {
private val solver = FirstLastDigitProblemSolver()
@Test
fun `should sum numbers, consisting of first and last di... |
import React, {useState, useEffect} from 'react'
import Swal from 'sweetalert2';
import MealService from '../../services/MealService'
import { Modal, Button } from 'react-bootstrap'
import { Link, useNavigate, useParams } from 'react-router-dom';
import {editItem, deleteItem, deleteAllItems} from '../../store-redux/car... |
using System.Net;
using System.Net.Http;
using System.Net.Http.Json;
using System.Text;
using System.Threading.Tasks;
using Aula7.Api.Models;
using Aula7.Api.Test.Setup;
using AutoFixture;
using FluentAssertions;
using Newtonsoft.Json;
using Xunit;
namespace Aula7.Api.Test.IntegrationTest;
public class GenericControl... |
package com.kenshine.chatnew.server;
import com.kenshine.chatnew.protocol.MessageCodecSharable;
import com.kenshine.chatnew.protocol.ProcotolFrameDecoder;
import com.kenshine.chatnew.server.handler.*;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelDuplexHand... |
<?php
namespace App\Jobs;
use GuzzleHttp\Client;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\F... |
package mindswap.academy.supplier.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.persistence.*;
import mindswap.academy.address.model.Address;
import mindswap.academy.stock.model.StockRequest;
import java.util.List;
@Entity (name = "Supplier" )
public class Supplier {
@Id
@Generate... |
package com.common.enumerate;
public enum DoorCode {
Door1("门牙塔1", 1), Door2("门牙塔2", 2);
// 成员变量
private String name;
private int index;
// 构造方法
private DoorCode(String name, int index) {
this.name = name;
this.index = index;
}
public static String getName(int index) {
for (DoorCode dt : DoorCode.value... |
<!DOCTYPE html>
<html lang="en" xmlns:th ="http://www.thymeleaf.org">
<head th:replace="fragments/head :: head">
<body class="sub_page">
<div class="hero_area">
<header th:replace="fragments/header :: header">
</div>
<!-- about section -->
<section class="about_section layout_padding">
<div class="... |
/**
* Simulation of one axis of an inverted pendulum.
*/
#define dp(x) std::cout << #x<<':' << x << std::endl
#include <iostream>
#include <signal.h>
#include <fstream>
#include <random>
#include <cmath>
#include "linux_src/DataPuffer.h"
#include "linux_src/Regulator.h"
#define L 0.3
#define inv_L 1 / L
#define s... |
import { api } from "~/utils/api";
import "~/styles/globals.css";
import Head from "next/head";
import { ClerkProvider } from "@clerk/nextjs";
import type { AppProps } from "next/app";
import "../utils/i18n";
import { viVN, enUS } from "@clerk/localizations";
import { useRouter } from "next/router";
import TopNav from... |
import React from 'react';
import Highlight, { defaultProps } from 'prism-react-renderer';
import { Element } from '@codesandbox/components';
import css from '@styled-system/css';
import { useAppState } from 'app/overmind';
import { withTheme } from 'styled-components';
import { makeTheme } from '@codesandbox/common/li... |
import {
CategoryDraft,
TCategoryDraft,
} from '@commercetools-test-data/category';
import {
KeyReference,
LocalizedString,
} from '@commercetools-test-data/commons';
import {
ProductTypeDraft,
type TProductTypeDraft,
} from '@commercetools-test-data/product-type';
import {
TaxCategoryDraft,
type TTaxCa... |
import { Component, OnDestroy, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { loginUser } from '@play.app/types/Auth/loginUser';
import { Store } from '@ngxs/store';
import { Login } from '../../@store/Actions/auth.actions';
import { Router } from '@angular/... |
import { Contract } from '@algorandfoundation/tealscript';
type Contact = { name: string; phone: string };
// eslint-disable-next-line no-unused-vars
class TupleInBox extends Contract {
contacts = BoxMap<Address, Contact>();
me = GlobalStateKey<Contact>();
setMyContact(name: string, phone: string): void {
... |
package dao;
import model.Jogo;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;
import java.sql.Date;
import java.util.ArrayList;
import java.util.List;
/**
* Classe JogoDAO, manipula o banco de dados.
*
* @javado... |
pub fn solution(input: &str) -> u32 {
let mut grid = Grid::from(input);
grid.tilt_north();
let mut sum = 0;
let mut load = grid.tiles.len();
for tile_row in &grid.tiles {
for tile in tile_row {
if tile == &Tile::RoundRock {
sum += load;
}
}
... |
const {Personaje, Pelicula}= require("../db");
const Sequelize = require('sequelize');
const buscarPersonajeNombre = async (req, res) => {
try {
const { name } = req.query;
const dbPersonaje = await Personaje.findAll({
attributes: ['nombre', 'imagen', 'edad', 'peso', 'historia', 'pelic... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace PluginDeMo_v2.F1_2023.Participants
{
public class TyreSet
{
// Participant-related variables
Participant Participant { get; set; }
public TyreSet PreviousTyreSet { get; set; } = null;
// Variables rela... |
/**
* Takes input from user about mail details & outputs service cost information or error based on input
*
* @author Iris Carrigg
* @version 8/31/2022
*/
import java.util.Date;
import java.util.Scanner;
public class Project1 {
public static void main ( String[] args ) {
//follow the instructions in ... |
import React, { useEffect, useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import IndividualAbridgedPost from "../AbridgedPostOne";
import { getSubredditPosts } from "../../store/posts";
import { useParams } from "react-router-dom";
import LoadingSpinner from "../LoadingSpinner";
import... |
# Ionosphere Data Prediction
## Introduction
This project aims to analyze radar data collected by a system in Goose Bay, Labrador, focusing on the ionosphere's behavior. Machine learning models Random Forest Classifier and Logistic Regression were used to classify radar returns as either "Good" or "Bad" based on thei... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>REZ</title>
<style>
*, *::before, *::after{
margin: 0;
padding: 0;
font-family: "Poppins", sans-serif;
box-... |
local lsp_zero = require('lsp-zero')
local ls = require("luasnip")
require('mason').setup({})
require('mason-lspconfig').setup({
ensure_installed = { 'tsserver', 'rust_analyzer', 'eslint', 'lua_ls', 'clangd' },
handlers = {
lsp_zero.default_setup,
lua_ls = function()
local lua_opts =... |
const { AppError, catchAsync, sendResponse } = require("../helpers/utils");
const LeaveBalance = require("../models/LeaveBalance");
const LeaveCategory = require("../models/LeaveCategory");
const LeaveRequest = require("../models/LeaveRequest");
const Notification = require("../models/Notification");
const User = requi... |
package users
import (
"carpool-btc/internal/app/models"
"carpool-btc/internal/app/utils"
"github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt/v5"
"net/http"
"os"
"time"
)
type Params struct {
EmailAddress *string `json:"email_address,omitempty"`
Password *string `json:"password,omitempty"`
Confi... |
/*
* bodySystemCpu.cu
*
* Created on: Dec 4, 2013
* Author: alex
*
*/
#include "bodySystemCpu.cuh"
/* ************************************************************************** *
* bodySystemCpu : Public methods
* ************************************************************************** */
void BodySy... |
const express = require('express');
const { v4: uuidv4 } = require('uuid');
const app = express();
app.use(express.json());
const customers = [];
// Middleware
function verifyExistentAccountCpf(request, response, next){
const { cpf } = request.headers;
const customer = customers.find(customer => customer.cpf =... |
import java.util.ArrayList;
import java.util.Scanner;
public class AverageOfSelectedNumbers {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
ArrayList<String> list = new ArrayList<>();
System.out.println("Input numbers, type 'end' to stop");
... |
#include <iostream>
#include <string>
#include <sstream>
#include "TreeNode.hpp"
#include "NodeStack.hpp"
#include "StringStack.hpp"
using namespace std;
string removeDoubleNegation(string expression) {
string result = expression;
size_t length = expression.length();
for (size_t i = 0; i < length - 2; ++... |
package com.example.currencydisplay.screen
import android.content.IntentFilter
import android.graphics.drawable.GradientDrawable.Orientation
import android.net.ConnectivityManager
import android.os.Bundle
import android.view.View
import android.widget.ProgressBar
import android.widget.TextView
import androidx.activity... |
package org.saled
package data.pipeline.csv
import data.structures.table.*
import java.nio.file.Path
import scala.collection.parallel.CollectionConverters.ImmutableIterableIsParallelizable
import scala.io.{BufferedSource, Source}
trait FromCsv {
private val explodeCsvString: (String, String) => List[List[String]] ... |
// EXERCISE 7
// Return an array with a bank account object with the lowest balance but not broke ( balance > 0 )
// In case there is no account that has balance > 0 return an empty array
// Array example: bankAccounts in /data/data.js
// getClientWithLeastBalance(bankAccounts) => [{ name: 'SomeName', balance: 32, ... ... |
import React from "react";
import styled from "styled-components";
import { PancakeRoundIcon } from "../Svg";
import Text from "../Text/Text";
import Skeleton from "../Skeleton/Skeleton";
import { Colors } from "../../theme";
export interface Props {
color?: keyof Colors;
cakePriceUsd?: number;
tokenAddress: str... |
import mongoose from "mongoose";
import validator from "validator";
import bcrypt from "bcrypt";
import jwt from "jsonwebtoken";
import crypto from "crypto";
import * as dotenv from "dotenv";
dotenv.config();
const schema = new mongoose.Schema({
name: {
type: String,
required: [true, "please enter your name... |
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* 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 ... |
import {
Source,
SchemaPointerSingle,
DocumentLoader,
SingleFileOptions,
} from "@graphql-tools/utils";
/**
* Additional options for loading from a JSON file
*/
export interface JsonFileLoaderOptions extends SingleFileOptions {}
/**
* This loader loads documents and type definitions from JSON files.
*
* Th... |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <chrono>
#define _USE_MATH_DEFINES
#include <cmath>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iostream>
#include <iomanip>
#include <iterator>
#include <map>
#include <numeric>
#include <queue... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
<link rel="stylesheet" type="text/css" href="assets/styles.css" />
<script
src="https://kit.fontawesome.com/4aa4b56328.js"
crossorigin="anonymou... |
import KanbanAPI from "./api.js";
import DropZone from "./DropZone.js";
import Item from "./Item.js";
export default class Column {
/* this class is a single column from UI */
constructor(id, title) {
/* From kan.js */
const topDropZone = DropZone.createDropZone(); /* from dropzone.js */
this.element... |
#include <Ethernet.h>
#include <TimerOne.h>
#include "LPD6803.h"
#include <math.h>
#include "ProgressBar.h"
#include <SPI.h>
#include <Time.h>
#define WAITTIME 2000
#define LITER_MAX 10000
#define NUM_LEDS 50
float curr_liters = 0;
int knipperd = 0;
int w = 1000; //wait time for debug
// Choose which 2 pins you wi... |
package Beaver::Bootstrap3::Widget::Form;
use Mojo::Base 'Beaver::Bootstrap3::Widget';
use Mojo::ByteStream 'b';
use Mojo::Collection;
use Mojo::Util qw(xml_escape);
use List::Util qw(any);
use Data::Dumper;
has buttons => sub {new Mojo::Collection};
sub init {
my $self = shift;
$self->SUPER::init(@_);
... |
# Lambda-AWS
Automatizar tareas utilizando AWS Lambda junto con otros servicios de AWS.
Automatizaremos la copia de archivos desde un bucket de Amazon S3 a otro bucket.
la función Lambda se ejecutará automáticamente y copiará ese archivo al bucket-destino. Esto automatiza la tarea de copiar archivos entre buckets de ... |
---
title: "LiDARでスキャンしたデータをブラウザを使ってLooking Glass Portraitに表示するまで" # 記事のタイトル
emoji: "📺" # アイキャッチとして使われる絵文字(1文字だけ)
type: "tech" # tech: 技術記事 / idea: アイデア記事
topics: ["LiDAR", "Looking Glass"] # タグ。["markdown", "rust", "aws"]のように指定する
published: true # 公開設定(falseにすると下書き)
---
# はじめに
Looking Glass Portrait が届いたので、LiDARで... |
"use client"
import * as React from "react"
import { useRouter } from "next/navigation"
import { zodResolver } from "@hookform/resolvers/zod"
import { useForm } from "react-hook-form"
import { toast } from "sonner"
import type { z } from "zod"
import { catchError } from "@/app/utils/utils"
import { storeSchema } from... |
// ignore_for_file: overridden_fields, annotate_overrides
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
enum DeviceSize {
mobile,
tablet,
desktop,
}
abstract class FlutterFlowTheme {
static DeviceSize deviceSize = DeviceSize.mobile;
static FlutterFlowTheme of(Bui... |
import React, { useContext } from "react";
import Modal from "../UI/Modal";
import classes from "./Cart.module.css";
import CartContext from "../../store/cart-context";
import CartItem from "./CartItem";
export default function Cart( props ) {
const cartCtx = useContext( CartContext );
const totalAmount = `$$... |
import React from "react";
import AppRouter from "./Router";
import { useState, useEffect } from "react";
import { authService } from "../fbase";
import { updateProfile } from "firebase/auth";
const App = () => {
const [init, setInit] = useState(false);
const [userObj, setUserObj] = useState(null);
useEffect(()... |
/*
* Copyright 2019 Hippo Seven
*
* 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 ... |
---
title: Mastering Android Device Manager The Ultimate Guide to Unlocking Your Samsung Device
date: 2024-05-19T14:17:42.325Z
updated: 2024-05-20T14:17:42.325Z
tags:
- unlock
- remove screen lock
categories:
- android
description: This article describes Mastering Android Device Manager The Ultimate Guide to Unl... |
import { useState, createContext, useContext, useEffect } from "react";
// Get window size by this context
const ViewContext = createContext(undefined);
export const useView = () => {
const context = useContext(ViewContext);
if (context === undefined) {
throw new Error("useView must be used within a ViewProvi... |
import { PipeTransform,Pipe } from "@angular/core";
import { Student } from "./student";
@Pipe({
name:'filterStudents'
})
export class FilterPipe implements PipeTransform{
transform(students:Student[],filterText:string) {
if(students.length===0 || filterText===''){
return students;
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body {
height: 5000px;
}
#container {
... |
import Table from "./components/table/table/table";
import Layout from "./UI/layout/layout";
import './bootstrap.css';
import SideBar from "./UI/sidebar/sidebar";
import Backdrop from "./UI/backdrop/backdrop";
import { useEffect, useState } from "react";
import useAxios from "./helpers/useAxios";
import { userType } fr... |
from typing import Annotated
from fastapi import APIRouter, Depends, HTTPException, status
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
from pydantic import BaseModel
fake_users_db = {
"johndoe": {
"username": "johndoe",
"full_name": "John Doe",
"email": ... |
import React, { useState } from "react";
import UserContext from "./userContext";
// this is our context provide in .jsx coz now we will wrappe the concern component
// in the UserContext so they all will access the cariable of UserContext.
// here we define provide as a method and pass the children like Outlet mean ... |
import { Disclosure } from "@headlessui/react";
import classNames from "classnames";
import { A } from "components/A";
import { Router, withRouter } from "next/router";
import React from "react";
type NavItemProps = {
name: string;
href: string;
icon?: React.FunctionComponent<React.ComponentProps<"svg">>;
... |
import { IZipCode, TZipCode } from "./zip-code.interface";
export class ZipCode implements IZipCode {
private _zip: string;
private _city: string;
private _state: string;
private _lastSearched: Date = new Date(Date.now());
private _searchCount: number = 1;
constructor(
zipCodeNumber: string,
cityString: str... |
import { Component, OnInit } from '@angular/core';
import { AuthService } from '../auth.service';
import { FormControl, FormGroup, Validators } from '@angular/forms';
@Component({
selector: 'app-updateproduct',
templateUrl: './updateproduct.component.html',
styleUrls: ['./updateproduct.component.css']
})
export ... |
# BigBlueButton open source conferencing system - http://www.bigbluebutton.org/.
#
# Copyright (c) 2022 BigBlueButton Inc. and by respective authors (see below).
#
# This program 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 Fre... |
<!--
* @Author: zhengjiefeng zhengjiefeng
* @Date: 2023-08-31 11:13:16
* @LastEditors: zhengjiefeng zhengjiefeng
* @LastEditTime: 2023-11-17 10:15:52
* @FilePath: \vite-vue3-temp\src\views\components\Layout\SysMenu.vue
* @Description:
*
-->
<template>
<div class="menu-box" :style="{ width: isCollapse ? '60px... |
/**
* COPYRIGHT(c) 2014 STMicroelectronics
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the follo... |
package com.example.bookapp.Database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.example.bookapp.Database.entities.Book
import com.example.bookapp.Database.entities.Category
import com.example.bookapp.Database.entities.User
@Data... |
import * as React from 'react';
import Menu from '@mui/material/Menu';
import MenuItem from '@mui/material/MenuItem';
import { signIn, signOut, useSession } from 'next-auth/react';
import { Avatar, Box, Divider, IconButton, ListItemIcon } from '@mui/material';
import { useColorScheme } from "@mui/material/styles";
impo... |
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>Projeto Strata</title>
<meta charset="utf-8">
<meta name="author"content="Gabriel">
<meta name="description" content="#">
<meta name="keywords" content="#">
<script src="https://kit.fontawesome.com/7d593ee37c.js" cro... |
package com.riwi.performance_test.api.controllers;
import java.util.Objects;
import org.springframework.data.domain.Page;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.we... |
import { useMutation } from "@apollo/client";
import dynamic from "next/dynamic";
import "react-quill/dist/quill.snow.css";
import { useForm } from "react-hook-form";
import { useRouter } from "next/router";
import {
CREATE_USED_ITEM_QUESTION_ANSWER,
UPDATE_USED_ITEM_QUESTION_ANSWER,
} from "./answerNew.query";
imp... |
import React, { useState, useEffect } from 'react';
import fakeData from '../../fakeData';
import { addToDatabaseCart, getDatabaseCart } from '../../utilities/databaseManager';
import Cart from '../Cart/Cart';
import Product from '../Product/Product';
import './Shop.css';
import { Link } from 'react-router-dom';
const... |
package Homeworks.L121314_HW_Java_Collections;
public class TrafficLightDemo {
public static void main(String[] args) {
TrafficLightSimulator tl = new TrafficLightSimulator(TrafficLightColor.GREEN);
for (int i = 0; i < 9; i++){
System.out.println(tl.getColor());
tl.waitForCh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.