text stringlengths 184 4.48M |
|---|
<!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>
</head>
<body>
<main>
<section>
<!--La etiqueta video permite ingres... |
import {keysOf} from "@lucilor/utils";
import {sample} from "lodash";
import {SkillSetGetter} from "./types";
export const getAomiSkillSet: SkillSetGetter = () => [
{
name: "aomi",
data: {
charlotte: true,
superCharlotte: true,
mark: true,
intro: {
content: (storage, player) =... |
import { SafeAreaView } from 'react-native-safe-area-context'
import { StyleSheet, Dimensions } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import HeroesList from '../../screens/Heroes/HeroesList';
impo... |
//
// MapView.swift
// AnimalsPlus
//
// Created by Abdullah Bilgin on 7/30/23.
import SwiftUI
import MapKit
struct MapView: View {
// MARK: - PROPERTIES
@State private var region: MKCoordinateRegion = {
var mapCoordinates = CLLocationCoordinate2D(
latitude: 6.600286,
... |
package com.example.warg.domain.views
import android.widget.Space
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import android... |
package com.jd.user.increase.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.jd.user.increase.common.HttpResult;
import com.jd.user.increase.dao.GraphSnapshotDao;
import com.jd.user.increase.domain.GraphNodeData;
import com.jd.user... |
from django.db import models
import uuid
import random
class BaseModel(models.Model):
uid= models.UUIDField(primary_key=True, default=uuid.uuid4,editable=False)
create_at=models.DateField(auto_now_add=True)
updated_at=models.DateField(auto_now=True)
class Meta:
abstract=True
... |
use starknet::ContractAddress;
#[starknet::contract]
mod TokenBridge {
use nimbora_yields::token_bridge::interface::{
ITokenBridge, IMintableTokenDispatcher, IMintableTokenDispatcherTrait
};
use openzeppelin::upgrades::UpgradeableComponent;
use openzeppelin::{token::erc20::interface::{IERC20Cam... |
import React,{useEffect, useState} from 'react';
import SearchIcon from './search.svg';
import MovieCard from './MovieCard';
const Api= "https://www.omdbapi.com?apikey=ea493709";
const Main=()=>{
const [movies,setMovies]=useState([]);
const [dearch,setdearch]=useState("");
const GetApi=async (title)=>{
const ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Transaksi;
use App\Models\Margin;
use App\Models\SalesOrder;
use App\Models\DeliveryOrder;
use App\Models\Customer;
use App\Charts\MarginChart;
use Haruncpi\LaravelIdGenerator\IdGenerator;
use Illuminate\Support\Facades\DB;
use Symfony\... |
<?php
namespace madxartwork;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* madxartwork box shadow control.
*
* A base control for creating box shadows control. Displays input fields for
* horizontal shadow, vertical shadow, shadow blur, shadow spread and shadow
* color.
*
* @sinc... |
import '../styles/globals.css'
import 'tailwindcss/tailwind.css'
import { ThemeProvider } from 'next-themes'
import type { AppProps } from 'next/app'
import Layout from '../comps/Layout'
import Head from 'next/head'
import { LoginStatusContextProvider } from '../context/userLogin'
import LoadingSpinner from '../comps... |
package datastructure.sparsearray;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
/**
* SparseArray--稀疏数组
*/
@SuppressWarnings(value = "all")
public class SparseArray2 {
private static File fileInputStream;
public static void main(String[] args) {
/**
* 初始化二维数组
... |
import requests
import json
from tkinter import *
root = Tk()
root.geometry("570x500")
root.title("Weather App")
lat = StringVar()
lat.set("")
lon = StringVar()
lon.set("")
def insert_text(text):
test_widget.insert(END, text)
def clear_text():
test_widget.delete("1.0", "end")
def weekly_forecast(lat, ... |
import { Service } from 'typedi';
import { DB } from '@database';
import { CreateOrderDto, UpdateOrderDto } from '@/dtos/orders.dto';
import { HttpException } from '@/exceptions/httpException';
import { Order } from '@interfaces/orders.interface';
import { OrderItem } from '@/interfaces/order-items.interface';
@Servic... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('villages', function (Blueprint $table) {
... |
<!DOCTYPE html>
<html lang="es">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<link rel="icon" href="favicon.ico" sizes="any">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<title>Les Pe... |
<!DOCTYPE html>
<html lang="hu"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8"/>
</head>
<body>
<nav th:fragment="header" class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-to... |
<template>
<div class="pagination mt-5">
<!-- Previous page -->
<button
class="changePage"
@click="previousPage"
v-if="current_page != 1"
>
<i class="fas fa-chevron-left"></i>
</button>
<button
v-for="page in pagesAr... |
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(21118);
script_version("$Revision: 1.16 $");
script_cvs_date("$Date: 2011/04/20 01:55:04 $");
script_cve_id("CVE-2006-1338");
script_bugtraq_id(17161);
script_osvdb_id(24014);
script_name(english:"MailEnable W... |
<template>
<div class="task-list-container pt-2 pb-2">
<b-list-group class="mb-2">
<b-list-group-item v-if="tasks.length === 0">
No tasks!
</b-list-group-item>
<Task
v-for="(task, i) in tasks"
:key="`task${i}_${task.name}`"
:task="task"
:idx="i"
ro... |
defmodule PragstudioLiveviewCodeWeb.LicenseLive do
use PragstudioLiveviewCodeWeb, :live_view
alias PragstudioLiveviewCode.Licenses
import Number.Currency
def mount(_params, _session, socket) do
if connected?(socket) do
:timer.send_interval(1000, self(), :tick)
end
expiration_time = Timex.s... |
package site.assad.springcluodnetflix.fallback;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.netflix.zuul.filters.route.FallbackProvider;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
impo... |
package problem3;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class PerishableFoodItemTest {
private PerishableFoodItem item;
@Before
public void setUp() {
item = new PerishableFoodItem("Perishable",
34.5,
90,
10,
40);
}
@T... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Server-side Pagination and Sorting for Dynamic Data</title>
<style type="text/css">
/*
margin and padding on body element
... |
import { useEffect, useState } from "react";
// Interfaces
import IShorterProps from "../../shared/interfaces/shorter";
// Components
import Card from "../../components/Card";
import CardList from "./CardList";
import FormShorterLinks from "../../components/FormShorterLinks";
import LinkButton from "../../component... |
// src/screens/BookListScreen.tsx
import React from 'react';
import {View, Text, Button} from 'react-native';
import {useQuery} from 'react-query';
import {getBooks} from '../services/MovieService';
import BookList from '../components/BookList';
import {useTranslation} from 'react-i18next';
const BookListScreen: React... |
#Deliverable 1
library(dplyr)
MechaCarMpg_data <- read.csv('MechaCar_mpg.csv') #import dataset
head(MechaCarMpg_data)
lm(mpg ~ vehicle_length+vehicle_weight+spoiler_angle+ground_clearance+AWD,MechaCarMpg_data) #create a linear model
summary(lm(mpg ~ vehicle_length+vehicle_weight+spoiler_angle+ground_clearance+AWD,M... |
import { useParams } from "react-router-dom"
import { useEffect, useState } from "react"
import { IoIosArrowBack } from 'react-icons/io'
import { getPokeData, getAbilityDesc } from "../../services/poke-individual"
import { ClipLoader } from "react-spinners"
import { useContext } from "react"
import { ThemeeContext } fr... |
# Q1. 인덱스에 정규표현식을 쓸 수 있는지?
# A1. 와일드 카드를 제외한 정규표현식 사용 불가
POST test1
{
"test": "TTT"
}
POST test2
{
"test": "TTT"
}
DELETE test[0-9]
DELETE test*
# Q2. 클러스터 샤드 라우팅 primaries, new_primaries 의 차이
# A2. 상황별로 정리
# 각 모드별로 클러스터 내에 노드가 모두 있을 때
# [인덱스 추가]
# primaries - 모든 노드에 새롭게 추가되는 인덱스에 대해서만 프라이머리 샤드만 추가, 레플리카는 unass... |
package com.example.myapplication.ui
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.Box
import androidx.compose.foundation.layout.Column
import androi... |
package com.medico.api.core.entity;
import com.medico.api.adapters.dto.request.DadosAtualizarMedico;
import com.medico.api.adapters.enums.EspecialidadeEnum;
import jakarta.persistence.*;
import lombok.*;
@Table(name = "medico")
@Entity(name= "Medico")
@Getter
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(... |
package Learning;
import java.time.Duration;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.interact... |
import React from 'react'
import {useForm} from 'react-hook-form'
import { useDispatch } from 'react-redux';
import {setSignUpData} from '../../../slices/authSlice'
import {sendOpt} from '../../../services/operations/authAPI'
import { useNavigate } from 'react-router-dom';
const SignUpForm = () => {
const dispatc... |
import React from 'react'
import { mochain, overusedGrotesk } from '@/utils/Fonts'
import Experience from '@/components/Experience'
import Project from '@/components/Project'
import Tools from '@/components/Tools'
import BlogRoute from '@/components/BlogRoute'
const Home = () => {
return (
<main className="trans... |
import React, { Component } from 'react';
export default class ErrorBoundary extends Component {
constructor(props){
super(props)
this.state = {
hasError: false
}
}
static getDerivedStateFromError(error){
return {
hasError: true
}
}
componentDidCatch(error, errorinfo... |
import { PrismaClient, Role } from '@prisma/client';
import { generateId } from 'lucia';
import { webcrypto } from 'node:crypto';
import { Argon2id } from 'oslo/password';
const db = new PrismaClient();
const main = async () => {
globalThis.crypto = webcrypto as Crypto;
console.log('Started Seeding');
const id =... |
# Implementation notes for "Curve Fitting" (curve-fitting)
## Model
The model of curve-fitting uses a series of AXON properties to update the curve. Each data point is represented in the
model as `Point`. `Point` stores its position and error. Each data point is kept in the observable array Points that
handles the co... |
package com.example.foodrecommenderapp.admin.report.presentation
import android.content.res.Configuration.UI_MODE_NIGHT_NO
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.la... |
package com.slothdeboss.enefte.ui.screens.onboarding.presentation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.navigation.NavHostController
import com.slothdeboss.enefte.... |
import React, { Component } from "react";
import Title from "../Title";
import CartColumns from "./CartColumns";
import EmptyCart from "./EmptyCart";
import CartList from "./CartList";
import { ProductConsumer } from "../../context";
import CartTotals from "./CartTotals";
import firebase from "firebase";
export defaul... |
/*
* Nextcloud Talk application
*
* @author Mario Danic
* Copyright (C) 2017-2018 Mario Danic <mario@lovelyhq.com>
*
* 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 t... |
import {
IconButton,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
Paper,
} from "@mui/material";
import {
DownloadOutlined,
PauseCircleOutlineOutlined,
PlayCircleOutline,
StopCircleOutlined,
} from "@mui/icons-material";
import useAuth from "../hooks/useAuth";
const DockerC... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { isEmpty, merge } from 'lodash';
import type {
Aggregati... |
package fr.pederobien.mumble.server.event;
import java.util.StringJoiner;
import fr.pederobien.mumble.server.interfaces.IParameter;
public class MumbleParameterValueChangePostEvent extends MumbleParameterEvent {
private Object oldValue;
/**
* Creates an event thrown when the value of a parameter has changed.
... |
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
class CardExampleProjectCountWidget extends StatelessWidget {
const CardExampleProjectCountWidget({super.key});
@override
Widget build(BuildContext context) {
// return Column(
// children: [
// Text("Projects"),... |
"use client";
import { CarCardProps } from "@/types";
import { useState } from "react";
import Image from "next/image";
import { CustomButton } from ".";
import { calucalateCarRent } from "@/utils";
import { CarDetails } from ".";
import { get } from "http";
import getCarImages from "@/services/car-image-api";
const C... |
import DateFnsUtils from '@date-io/date-fns';
import {
AppBar,
Box,
createStyles,
Fade,
Grid,
Icon,
IconButton,
makeStyles,
MenuItem,
Slide,
TextField,
Theme,
Toolbar,
Typography,
useTheme,
} from '@material-ui/core';
import {
KeyboardDatePicker,
KeyboardTimePicker,
MuiPickersUtilsPr... |
import { ethers } from 'ethers';
import { writable } from 'svelte/store';
import type { Readable, Writable, Subscriber, Unsubscriber } from 'svelte/store';
import networks from '$lib/networks.json';
interface IContractState {
hasWallet: boolean;
correctChain: boolean;
chainId: number;
currentAccount: string;
}
... |
package esercizi;
import java.util.Scanner;
public class CifrarioDiCesare {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// Input del testo e del numero di spostamenti
System.out.print("Inserisci il testo: ");
String testo = scanner.nextLine()... |
package net.minecraft.world.entity.animal;
import java.util.Locale;
import javax.annotation.Nullable;
import net.minecraft.SystemUtils;
import net.minecraft.core.BlockPosition;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.syncher.DataWatcher;
import net.minecraft.network.syncher.DataWatcherObj... |
package todo
import (
"os"
"testing"
)
// Setup/cleanup for each test case.
// Call by doing defer setupDB()() before each test case.
func setupDB() func() {
Start("testing")
return func() {
err := os.Remove("testing.db")
if err != nil {
panic("failed to delete testing.db file")
}
}
}
// Test adding a ... |
{% extends "base.html"%}
{% load static %}
{% block css_imports %}
<script data-ad-client="ca-pub-5234591008009724" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<link href="{% static 'challenge/challenge.css' %}" rel="stylesheet">
{% endblock %}
{% block content %}
<div class="... |
import { Button, Flex, VStack } from "@chakra-ui/react";
import Card from "../../../components/Card/Card";
import { useForm } from "react-hook-form";
import FormInput from "../../../components/Form/FormInput/FormInput";
import FormSelect from "../../../components/Form/FormSelect/FormSelect";
import useClient from "../.... |
import { KeystoneContext } from '@keystone-6/core/types'
async function addToCart(
root: any,
{ productId }: { productId: string },
context: KeystoneContext,
) {
const { session, query } = context
if (!session.itemId) {
throw new Error('You must be logged in.')
}
const allCartItems = await query.Ca... |
/*******************************************************************************
* Copyright (c) 2006, 2008 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distrib... |
# Some refactoring
rm(list = ls())
library('R2jags')
## How many iterations?
nIterations <- 10000
## Collect all priors
priors <- list(mean_alpha = 0.0,
sd_alpha = 1/sqrt(.1),
mean_beta = 0.0,
sd_beta = 1/sqrt(.1),
shape_tau = 2.0,
rat... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<script>
function Animal(type, name, sound) {
console.log(this.type);
console.log(type);
th... |
package 코딩인터뷰완전분석.Ch_08._Recursion_and_Dynamic_Programming.Q8_04_Power_Set;
import java.util.ArrayList;
public class QuestionA {
public static ArrayList<ArrayList<Integer>> getSubsets(ArrayList<Integer> set, int index) {
ArrayList<ArrayList<Integer>> allsubsets;
if (set.size() == index) { // Base... |
import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import HamburguerAdmin from './HamburguerAdmin';
... |
//
// connection_info_.h
// IJKMediaFramework
//
// Created by 帅龙成 on 2019/6/27.
// Copyright © 2019 kuaishou. All rights reserved.
//
#pragma once
#include <memory>
#include "download/input_stream.h"
#include "data_spec.h"
#include "../include/cache_defs.h"
#include "ac_log.h"
namespace kuaishou {
namespace cach... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... |
#+author: Juan E. Gómez-Morantes, PhD
#+title: Hoja de estilo no oficial para documentos simples de la Pontificia Universidad Javeriana usando LaTex
#+property: header-args :tangle ./docsimplepuj.sty
* Introducción
La presente hoja de estilo de LaTex tiene como objetivo tener una formato estandarizado para la generaci... |
#pragma once
#include "chars.h"
#include "iterator.h"
#include "string_view.h"
#include <algorithm>
#include <memory>
namespace std {
class locale;
}
namespace uxs {
// --------------------------
template<typename InputIt, typename InputFn = nofunc>
unsigned from_hex(InputIt in, unsigned n_digs, InputFn fn = Inpu... |
<?php
namespace App\Http\Controllers;
use App\Models\Subscription;
use App\Models\SubscriptionPlan;
use App\Models\UserTransaction;
use App\Repositories\SubscriptionPlanRepository;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;
use Illuminat... |
//
// FlowNavigationStackV2.swift
//
//
// Created by Gerardo Grisolini on 13/10/22.
//
import SwiftUI
import Combine
import Resolver
public class FlowNavigationStackV2: ObservableObject {
@Injected var navigation: NavigationProtocol
@Published public var routes: [String] = []
@Published public var presentedVi... |
import 'package:expense_tracker/custom_widgets/custom_button.dart';
import 'package:expense_tracker/custom_widgets/custom_dropfield.dart';
import 'package:expense_tracker/custom_widgets/custom_spacing.dart';
import 'package:expense_tracker/custom_widgets/custom_textfield.dart';
import 'package:expense_tracker/custom_wi... |
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import type { RootState } from '../store/store';
export interface UserInterface {
id: string,
name: string,
room: string,
type: 'cpu' | 'human',
}
export interface UsersState {
users: UserInterface[],
}
const initialState: UsersState = {
user... |
<h1>Sign Up Page</h1>
<%= form_with(model: @user,url: sign_up_path, data: { turbo: false }) do |form|%>
<div>
<% @user.errors.full_messages.each do |message| %>
<div><%= message %></div>
<% end %>
</div>
<div class="form-outline mb-4">
<%= form.label :username%>
<%= form.text_field :username, ... |
public class Individual {
private boolean[] chromosome;
private double fitness = -1;
private KnapsackProblem problem;
public Individual(KnapsackProblem problem) {
this.problem = problem;
this.chromosome = new boolean[problem.getItems().size()];
}
public void generateIndividual... |
use async_stream::stream;
use dogbox_tree_editor::DirectoryEntryKind;
use dogbox_tree_editor::NormalizedPath;
use dogbox_tree_editor::OpenFile;
use futures::stream::StreamExt;
use std::sync::Arc;
use tracing::error;
use tracing::info;
#[derive(Clone)]
pub struct DogBoxFileSystem {
editor: Arc<dogbox_tree_editor::T... |
using CitiesManager.WebAPI.DataBaseContext;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace CitiesManager.WebAPI.Controllers.v2
{
[ApiVersion("2.0")]
public class CitiesController : CustomControllerBase
{
private readonly ApplicationDbContext _context;
public... |
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:getxmvvm/Resources/getx_localization/languages.dart';
import 'package:getxmvvm/Resources/routes/Routes.dart';
import 'package:getxmvvm/View/SplashScreen/SplashScreen.dart';
void main() {
runApp(const MyApp());
}
class MyApp exte... |
import React, { useEffect, useState } from "react";
import axios from "axios";
import { Link, useNavigate } from "react-router-dom";
import { useForm } from "react-hook-form";
import classNames from "classnames";
import Starlogo from "../../assets/img/logo.png";
import { Button } from "rsuite";
import "rsuite/dist/rsui... |
---
title: "What is a Neural Network? Visualising & Understanding a Neural Network In-depth."
date: 2020-04-22 00:20:28
published: true
math: true
---
In this article, we will discuss the history, current usage, and development of Neural Networks. We will try to understand each of the segments while visualizing them.
... |
<script setup>
import { onMounted, reactive, ref } from "vue";
import {
getFirestore,
collection,
query,
where,
// orderBy,
// limit,
// startAt,
// endAt,
getDocs,
} from "firebase/firestore";
import { UserFirebase } from "@/firebase/UserFirebase.js";
import SpinnerGif from "../components/SpinnerGif.... |
// Challenge 3
// Rewrite the 'calcAverageHumanAge' function from Challenge #2, but this time as an arrow function, and using chaining!
// Test data:
// § Data1:[5,2,4,1,15,8,3] § Data2:[16,6,10,5,6,1,4]
const calcAverageHumanAge = (ages) => {
const average = ages
.map((age) => {
if (age <= 2) {
... |
Alchemical Finances - Manual Personal Finances
Alpha Version 1.7 - 20200909
Beaker Labs llc. [Comming? Maybe? Different Name?]
------------------------------------------------------------------
Purpose to Developer:
------------------------------------------------------------------
The information provided in the next... |
package todolist.todo;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import todolist.exceptions.Resource... |
package com.example.shipping.presentation.detailsorderscreen
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compo... |
/*
MIT License
Copyright (c) 2016 Mariano Trebino
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... |
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../bower_components/paper-card/paper-card.html">
<link rel="import" href="../bower_components/neon-animation/neon-animation-runner-behavior.html">
<link rel="import" href="../bower_components/neon-animation/animations/fade-in-a... |
%% Reading data from an UFF file recorded with the Verasonics CPWC_L7 example
%
% In this example we show how to read channel and beamformed data from a
% UFF (Ultrasound File Format) file recorded with the Verasonics example.
% You will need an internet connectionto download data. Otherwise, you can
% run the *CPWC_L7... |
const express = require('express');
const cors = require('cors');
const bodyParser = require('body-parser');
const createCsvWriter = require('csv-writer').createObjectCsvWriter;
const app = express();
const port = 3000;
app.use(bodyParser.json());
app.use(cors());
app.get('/', (req, res) => {
res.send('🟢 App Onlin... |
<form>
<div class="form-group">
<ion-item>
<ion-label position="floating" for="name">Name</ion-label>
<ion-input
ngModel name="name"
id="name"
required
minlength="3"
maxlength="10"
#name=ngModel
type="text"
class="form-c... |
import { motion, useScroll } from 'framer-motion';
import { useRef } from 'react';
import { getImgUrl } from './getImgUrl';
import { useParallax } from './useParallax';
import './Section.css';
type Props = {
id: string;
};
export function Section({ id }: Props) {
const ref = useRef(null);
const { scrollYProgres... |
---
layout: "codefresh"
page_title: "Provider: Codefresh"
sidebar_current: "docs-codefresh-index"
description: |-
The Codefresh provider is used to manage Codefresh resources.
---
# {{ .ProviderShortName | title }} Provider
The {{ .ProviderShortName | title }} Provider can be used to configure [Codefresh](https://c... |
__kupfer_name__ = _("Google Search")
__kupfer_actions__ = ("Search", )
__description__ = _("Search Google with results shown directly")
__version__ = ""
__author__ = "Ulrik Sverdrup <ulrik.sverdrup@gmail.com>"
import urllib
from kupfer.objects import Action, Source, Leaf
from kupfer.objects import TextLeaf, UrlLeaf
... |
/**
* ************************************
*
* @module Main
* @author Tu Pham
* @date 1-3-2022
* @description MovieModal component to display detailed information within the Modal component about the movie when Modal is triggered
* ************************************
*/
import React from 'react';
import {set... |
package oodb2324_20.savingmoneyunina.Controller;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.chart.PieChart;
import oodb2324_20.savingmoneyunina.BoundaryController.New.NewCategoryController;
import oodb2324_20.savingmoneyunina.BoundaryController.New.NewMoneyboxController;
import javafx.... |
% eeg_latencyur() - transform latency of sample point in the continuous
% data into latencies in the transformed dataset.
%
% Usage:
% >> lat_out = eeg_latencyur( events, lat_in);
%
% Inputs:
% events - event structure. If this structure contain boundary
% events, the length of th... |
/**
* @description: remark插件,删除重复的h1 的 Header
* @refer: https://github.com/alvinometric/remark-remove-comments/blob/main/transformer.js
*/
import { visit } from 'unist-util-visit';
export default function remarkRemoveMdLinks() {
return (tree, file) => {
visit(tree, 'heading', (node, index, parent) => {
if (no... |
//
// Copyright (C) 2005-2022 Alfresco Software Limited.
//
// This file is part of the Alfresco Content Mobile iOS App.
//
// 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.... |
<template>
<div class="wrap">
<h1>{{ height }}px</h1>
<div ref="myRef">
<img v-for="i in items" :key="i" :src="i" alt="" srcset="" />
<!-- <h2 v-for="i in items" :key="i">{{ i }}</h2> -->
</div>
</div>
</template>
<script>
import { nextTick, onMounted, reactive, toRefs, ref, watch } from 'v... |
import * as _ from "lodash";
import {
createContext,
ReactNode,
useContext,
useReducer,
useCallback,
} from "react";
export type CtaFormPerson = {
name: string;
foodChoice: string;
allergies: string;
};
export type FormState = "input" | "isSending" | "hasSent";
export type CtaFormValu... |
const express = require("express");
const path = require("path");
const app = express(); //save express function in an (app) variable
// app.com
// app.com/help
// app.com/about
// app.com/weather
// Define paths for Express config
const publicDirPath = path.join(__dirname, "../public");
const views = path.join(__di... |
<script setup>
import { ref, reactive, onMounted } from 'vue';
import { Plus, Search, View } from '@element-plus/icons-vue';
import { useRouter } from 'vue-router';
import { useAppStore } from '@/stores/app';
import RoleService from '@/service/RoleService';
const roleService = new RoleService();
const router = useRout... |
import Link from "next/link";
import styled from "styled-components";
import { AiOutlineArrowRight } from "react-icons/ai";
import colors from "../../../styles/colors";
import { Article } from "../../../utils/posts";
const PostContainer = styled.a`
display: flex;
flex-direction: column;
gap: 16px;
svg {
d... |
## Type Constraints
https://developer.hashicorp.com/terraform/language/expressions/type-constraints
Setting List,Maps, Tuples, and Objects
```
terraform {
}
// List
variable "planet" {
type = list
default = ["mars", "earth", "venus", "jupiter"]
}
// Map
variable "names_titles" {
type = map
default = {
... |
import {
Controller,
Get,
Param,
Post,
Body,
Put,
Delete,
UsePipes,
ValidationPipe,
Query,
UseFilters,
} from '@nestjs/common';
import { ProductService } from './product.service';
import { DocumentType } from '@typegoose/typegoose';
import { Product } from './product.type';
import { createProductI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.