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>Online Portfolio</title>
<!-- Link To CSS -->
<link rel="stylesheet" href="./css/style.css">
<!--... |
import { useEffect, useState } from "react";
import pokeApi from "../../api/pokeApi";
import Spinner from "../Spinner";
import PokemonCard from "../PokemonCard/PokemonCard";
import SearchBar from "../SearchBar/SearchBar";
import PokemonModal from "../PokemonModal/PokemonModal";
import noImg from '../../assets/images/no... |
const Discord = require('discord.js');
module.exports = {
name: 'kick',
alias: [],
desc: "Expulsa a alguien del servidor",
usage: "kick <@miembro> [%razon]",
userPerms: ["ADMINISTRATOR", "KICK_MEMBERS"],
botPerms: ["MANAGE_SERVERS"],
cooldown: 1000 * 5,
owner: false,
async execute(... |
library(R.utils)
library(data.table)
library(ggplot2)
library(Hmisc)
library(dplyr)
#download.file("https://storage.googleapis.com/gtex_analysis_v8/rna_seq_data/GTEx_Analysis_2017-06-05_v8_RNASeQCv1.1.9_gene_reads.gct.gz",
destfile = "gtex_read_counts.gct.gz")
#gunzip("gtex_read_counts.gct.gz", remove... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="comlib.js"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.5.0/dist/echarts.min.js"
integrity="sha256-Qvgy... |
import { ButtonPropsColorOverrides, ColorPaletteProp, ModalDialog, Typography } from '@mui/joy';
import Button from '@mui/joy/Button';
import Modal from '@mui/joy/Modal';
import { OverridableStringUnion } from '@mui/types';
interface ConfirmModalProps {
isOpen: boolean;
close: () => void;
title: string;
... |
/*
* Copyright (C) 2010-2012 Dmitry Marakasov
*
* This file is part of glosm.
*
* glosm is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any... |
import React, { useRef } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { useDrop, useDrag } from 'react-dnd';
import PropTypes from 'prop-types';
import Card from './Card';
import AddButton from './AddButton';
import EditableText from './EditableText';
import ac... |
import React, { useState } from 'react'
const Lesson72 = () => {
const [workers, setWorkers] = useState({
employees: [
{ name: 'Serioga', surname: 'Bryk', salary: 800, checked: true },
{ name: 'Grigory', surname: 'Pipka', salary: 1000, checked: true },
{ name: 'Valera', surname: 'Groznyi', sala... |
// React
import React from 'react';
// React router dom
import { useNavigate, Link } from 'react-router-dom';
// Sweet alert
import Swal from 'sweetalert2';
// Mis importaciones
import { elementosPrueba } from '../../data/elements';
export const CollectionDetail = () => {
const options = { weekday: 'long', year: '... |
import Link from 'next/link';
import ThemeToggler from './ThemeToggler';
import { usePathname } from 'next/navigation';
const navigationLinks = [
{
path: '/blog',
label: 'Blog',
},
{
path: '/projects',
label: 'Projects',
},
{
path: 'https://github.com/cakegod',
label: 'Github',
},
... |
namespace ScreenSound.Modelos
{
// O termo internal está relacionado a visibilidade de classes. Apenas o projeto consegue enxergar esta classe.
internal class Avaliacao
{
public Avaliacao(int nota)
{
Nota = nota;
}
public int Nota { get; }
// Os métodos static... |
import React from "react";
import { Solver } from "../solver/Solver";
export const ShowSolutions: ({
solver,
}: {
solver: Solver | undefined;
}) => JSX.Element = ({ solver }) => {
if (solver === undefined) return <></>;
const solutions = solver.solve().map((s) => s.prettyPrint);
return (
<div data-cy="so... |
import React, { useState } from "react";
import AttendedLecture from "./Components/AttendedLecture";
import TotalLectures from "./Components/TotalLectures";
import Button from "./Components/Button";
import Percentage from "./Components/Percentage";
const Attendence = () => {
const [attendedLecture, setAttendedLecture... |
import { useState } from "react";
import {
Button,
Grid,
TextField,
Box,
Typography,
IconButton,
} from "@mui/material";
import RemoveCircleIcon from "@mui/icons-material/RemoveCircle";
import AddCircleIcon from "@mui/icons-material/AddCircle";
import { useMembers } from "../hooks/useMembers";
import shuffl... |
/* mpfr_get_ld, mpfr_get_ld_2exp -- convert a multiple precision floating-point
number to a machine long double
Copyright 2002-2015 Free Software Foundation, Inc.
Contributed by the AriC and Caramel projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library i... |
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*-
;;; copyright (c) 2017 David D. McDonald -- all rights reserved
;;;
;;; File: "gloss-interpretations"
;;; Module: "interface;mumble;"
;;; Version: October 2017
;; initiated 10/12/17 for the code that takes an sexp representing the
;; interpretation ... |
---
title: '2.4.4 - Directory Tree'
---
For relatively small websites, ad-hoc side-loading is available directly from a
folder structure on the hard drive. This is intended for loading manuals,
documentation and similar data sets that are large and slowly changing.
A website can be archived with wget, like this
```... |
<html ng-app="rtfclusterdemo">
<head>
<title>MuleSoft Training</title>
<!-- Load JS libraries -->
<script src="/js/angular-1.4.8.min.js"></script>
<script src="/js/bootstrap-3.3.1.min.js"></script>
<script src="/js/commons.js"></script>
<script src="/js/pagination.min.js"></script>
<script sr... |
document.addEventListener("DOMContentLoaded", function() {
// Sample data for the Bar Chart and Line Graph
const barChartCanvas = document.getElementById("barChart").getContext("2d");
const barChart = new Chart(barChartCanvas, {
type: "bar",
data: {
labels: ["A", "B", "C", "D", "... |
<template>
<div class="top">
<div class="content">
<div class="left" @click="$router.push('/home')">
<img src="@/assets/images/desktop_1.jpg" alt="logo" />
<p>预约挂号统一平台</p>
</div>
<div class="right">
<div class="help">帮助中心</div>
<div class="login" @click="handleLog... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include "huffman.h"
// Intermediate form for trees (gets converted to tables)
typedef struct huffman_node
{
short value;
long freq;
struct huffman_node *left, *right;
} huffman_node;
void build_tree(huffman_node *pos, long prefix, shor... |
/* eslint-disable react/prop-types */
/* eslint-disable react/no-unstable-nested-components */
import React, { useState } from 'react';
import {
Box,
Paper, Tab, Tabs, Typography
} from '@mui/material';
import Login from './Login/Login';
import Signup from './Signup/Signup';
import './auth.css';
function SignInOut... |
// import 'dart:convert';
// import 'dart:math';
// import 'package:firebase_core/firebase_core.dart';
// import 'package:firebase_messaging/firebase_messaging.dart';
// import 'package:flutter/material.dart';
// import 'package:flutter_local_notifications/flutter_local_notifications.dart';
// import 'package:http/ht... |
import { StyleSheet, View } from "react-native";
import React, { useState, useLayoutEffect } from "react";
import { KeyboardAvoidingView } from "react-native";
import { StatusBar } from "expo-status-bar";
import { Button, Input, Text } from "react-native-elements";
import { auth } from "../firebase";
export default fu... |
<script>
import { ArrowUpIcon, HelpCircleIcon } from "vue-feather-icons";
import { Carousel, Slide } from "vue-carousel";
import Navbar from "@/components/navbar";
import Switcher from "@/components/switcher";
import Footer from "@/components/footer";
import Testimonial from "@/components/testimonial";
import Pricing ... |
import {NgModule} from "@angular/core";
import {CommonModule} from "@angular/common";
import {RouterModule, Routes} from "@angular/router";
import {ReactiveFormsModule} from "@angular/forms";
import { RegisterComponent } from './components/register/register.component';
import {StoreModule} from "@ngrx/store";
import {... |
# Center Point Tracking Project
This project focuses on tracking people, through center points, detected in videos using YOLOv3 and OpenCV. It counts the number of center points that enter or leave a specified rectangular region and calculates the time each center point spends inside the region.
The original source co... |
package org.stadium.adminapi.service.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class StadiumDto {
pri... |
using eventRadar.Controllers;
using eventRadar.Data.Dtos;
using eventRadar.Data.Repositories;
using eventRadar.Helpers;
using eventRadar.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tas... |
**AFNI**
```bash
to3d -prefix outDataset.nii -session ./ DICOM/*
3dcopy outDataset.nii output.mnc
```
**ANTs**
There is no native DICOM to MINC conversion in ANTs. Therefore, a common practice is to convert DICOM to NIfTI with dcm2niix, then converting NIfTI to MINC with nii2mnc.
**FSL**
```bash
fslchfiletype ANAL... |
import { UyeDialogComponent } from './../../dialogs/uye-dialog/uye-dialog.component';
import { MyAlertService } from './../../../services/myAlert.service';
import { Sonuc } from './../../../models/Sonuc';
import { Component, OnInit, ViewChild } from '@angular/core';
import { MatDialogRef, MatDialog } from '@angular/mat... |
import "./UpdateActor.css"
import Button from '@mui/material/Button';
import { TextField } from "@mui/material";
import { useNavigate, useParams } from "react-router-dom";
import * as yup from "yup"
import{useFormik} from "formik"
import { useDispatch, useSelector } from 'react-redux';
import { fetchUpdateActor } fro... |
package com.optima.gerai_pay.Activity;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import android.annotation.SuppressLint;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageVie... |
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
# Create a custom profile to go with the user
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
# Change were images are stored in setting.py (add base directories)
im... |
import { useContext, useRef } from 'react'
import { useDispatch } from 'react-redux'
import { ValueContext } from '..'
import { addnewtask } from '../../../redux/features/stateSlice'
import { AreaElement } from './children-component/area/AreaElement'
import { CalenderElement } from './children-component/calender/Calend... |
import React from "react";
import { Link } from "react-router-dom";
// MUI
import {
Avatar,
Box,
Card,
CardContent,
Chip,
Grid,
Stack,
Typography,
} from "@mui/material";
// types
import { TProduct } from "../@types/product";
// component props type
type ProductProps = { product: TProduct };
functio... |
# GPT-3.5 Chat Assistant with Flask
This is a simple Flask web application that utilizes OpenAI's GPT-3.5 model to create a chat assistant. Users can interact with the chat assistant by entering text prompts, and the assistant will respond based on the input.
## Getting Started
These instructions will get you a copy... |
import { Body, Controller, Get, Param } from '@nestjs/common';
import {
ApiResponse,
CreateRoleDto,
UpdateRoleDto,
} from '@myexperiment/domain';
import { RoleService } from '@myexperiment/infrastructure';
import { MessagePattern } from '@nestjs/microservices';
@Controller()
export class AppController {
constr... |
import { csrfFetch } from "./csrf";
const SET_USER = 'session/SET_USER';
const REMOVE_USER = 'session/REMOVE_USER';
// Action Creators
const setUser = (user) => ({
type: SET_USER,
user
});
const removeUser = () => ({
type: REMOVE_USER,
});
// Thunk Actions
export const login = (user) => async dispatch ... |
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:ptnet_plugin/data.dart';
import 'package:ptnet_plugin/permission.dart';
import 'package:ptnet_plugin/ptnet_plugin.dart';
import 'package:flutter_testapp/widget.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidg... |
//TypeScript adds types and visibility modifiers to JavaScript classes.
//Members: Types
//TypeScript adds types to class members, including properties and methods.
class Person {
name: string;
}
const person = new Person();
person.name = "Jane";
console.log(person);
//Members: Visibility Modifi... |
# Copyright 2022 The Nerfstudio Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... |
import pandas as pd
titanic = pd.read_csv("titanic.csv")
# select specific rows
pd_series = titanic["age"]
print(pd_series) # output -> pandas series
print(type(pd_series)) # output: class 'pandas.core.series.Series'
# select multiple columns (create a list)
# most methods are available for both series and dataframe... |
<!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">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha... |
type Message = {
id: number;
content: string;
};
type Conversation = {
id: number;
title: string;
messages: Message[];
};
let conversations: Conversation[] = [
{ id: 1, title: 'Conversation 1', messages: [{ id: 1, content: 'Message 1' }] },
{ id: 2, title: 'Conversation 2', mes... |
package com.google.android.material.progressindicator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.os.SystemClock;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewPar... |
import React, {useState, useEffect, useRef} from "react";
import Blog from "./components/Blog";
import Notification from "./components/Notification";
import LoginForm from "./components/LoginForm";
import BlogForm from "./components/BlogForm";
import Togglable from "./components/Togglable";
import blogService from "./s... |
#! /usr/bin/env bash
# Patch: -pro_powerpc_4xx_use_default_nand_oob
# Date: Fri Aug 15 13:07:03 2008
# MR: 27840
# Source: MontaVista Software, Inc.
# Type: Enhancement
# Disposition: local
# Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
# Description:
# Use default NAND OOB layout for kilauea and canyo... |
using LMS.Application.Interfaces;
using LMS.Application.Services;
using LMS.CoreBusiness.Entities.Accounts;
using LMS.CoreBusiness.Interfaces;
using LMS.CoreBusiness.UnitsOfWork;
using LMS.Infrastructure.Data;
using LMS.Infrastructure.Repositories;
using LMS.Infrastructure.UnitsOfWork;
using Microsoft.AspNetCore.Authe... |
<html>
<head>
<meta charset="utf-8">
<script src="js/jquery-1.10.2.js"></script>
<script>
var url = "/PersonaCXF/service/personas";
var obtenerTodos = function() {
$.ajax(url, {
type : "GET",
dataType : "json"
}).done(function(json) {
$("#resultado").html(JSON.stringify(json)); // stringify convierte un... |
<?php
declare(strict_types=1);
/*
* This file is part of the drewlabs namespace.
*
* (c) Sidoine Azandrew <azandrewdevelopper@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Drewlabs\Soap;
use Drewlabs\Soap... |
import { MAX_ENTRY_LENGTH } from "../config/constants.js";
/**
* Represents an error for a missing or malformed changelog heading in a PR description.
*/
export class InvalidChangelogHeadingError extends Error {
/**
* Constructs the InvalidChangelogHeadingError instance.
*/
constructor() {
const messag... |
\begin{enumerate}
\item[1.7]
Give state diagrams of NFAs with the specified number of states recognizing each of the following languages. In all parts, the alphabet is {0,1}.
\begin{enumerate}
\item The language $\{w|w~ \text{ends with }00\}$ with three states
\... |
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Accueil</title>
<link
rel="stylesheet"
href="/css/produitList.css"
th:href="@{/css/produitList.css}"
/>
<link rel="stylesheet" href="/css/index.css" th:href="@{/css/index.css}" />
... |
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
use IEEE.math_real.all;
-- Test bench para el filtro FIR implementado en VHDL que incluye la generacion de la senal de entrada
-- Autor: Estanislao Crivos
-- Fecha: Junio 2024
-- Trabajo Final - Microarquitecturas y Softcores - CESE CO20 - FI UBA
en... |
import { Field, ObjectType } from '@nestjs/graphql';
import { IsNotEmpty, IsString, IsUUID } from 'class-validator';
import { Answer } from 'src/apis/answer/entities/answer.entity';
import { CompletedSurvey } from 'src/apis/completed-survey/entities/completed-survey.entity';
import { CommonEntity } from 'src/common/ent... |
import { createSlice } from "@reduxjs/toolkit";
import { produce } from "immer";
const initialState = {
item: '',
currentItems: []
}
export const itemSlice = createSlice({
name: 'item',
initialState,
reducers: {
addItem: (state, action) => {
const newItem = action.payload;
... |
<div class="page-content">
<div class="container-fluid">
<!-- start page title -->
<!-- <app-breadcrumb></app-breadcrumb> -->
<app-progress-bar></app-progress-bar>
<!-- end page title -->
<div class="row justify-content-center">
<div class="col-xxl-9">
<div class="card">
... |
#include <stdio.h>
#include "function_pointers.h"
/**
* print_name - Prints a name using the given function
* @name: Name to print
* @f: Function pointer to the printing function
*
* Return: None
*/
void print_name(char *name, void (*f)(char *))
{
if (name != NULL && f != NULL)
f(name);
} |
import itertools
import ipywidgets as widgets
import matplotlib.pylab as plt
import numpy as np
from ipywidgets import GridspecLayout
from src.lib.VizUtils import plot_solutions_together
def visualize_intuition(sm, diffusion_contrast_lower, diffusion_contrast_upper,
num_points_per_dim_to_plo... |
/*
V0.3
*/
/*
Mixins for standard functions
Array, Math, Sting...
*/
import "./mixins.js"
/*
Chance RNG
*/
import "../lib/chance.slim.js"
const chance = new Chance()
/*
Storage - localforage
https://localforage.github.io/localForage/
*/
import "../lib/localforage.min.js"
const DB = {}
DB.games = localfor... |
import { Entity, BaseEntity, PrimaryGeneratedColumn, Column, ManyToOne, JoinColumn, OneToMany } from 'typeorm';
import {User} from './user'
import {Comment} from './comment'
@Entity({ name: 'articles' })
export class Article extends BaseEntity {
@PrimaryGeneratedColumn()
readonly id!: number
@Column()
... |
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'dart:io';
class AdaptativeButton extends StatelessWidget {
final String label;
final Function() onPressed;
const AdaptativeButton(
this.label,
this.onPressed, {
Key? key,
}) : super(key: key);
@override
W... |
<?php
/**
* Blog-layout template.
*
* @author ThemeFusion
* @copyright (c) Copyright by ThemeFusion
* @link http://theme-fusion.com
* @package Avada
* @subpackage Core
* @since 1.0.0
*/
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script acces... |
import { Tab, TableCell, Typography } from "@mui/material";
import React, { useEffect, useState } from "react";
const TimerCell = ({ startTime }) => {
const [timeRemaining, setTimeRemaining] = useState(calculateTimeRemaining());
function calculateTimeRemaining() {
const now = new Date();
const ... |
package routes
import (
rblx "rblx/api"
"rblx/database"
"rblx/structs"
"strconv"
"time"
"github.com/labstack/echo/v4"
)
var (
ValidSizes = []int16{30, 48, 60, 75, 100, 110, 140, 150, 352, 420, 720}
)
var (
InMemoryCache = true; // If this is set to true the images will be stored in memory.
)
func Primary... |
#ifndef STEP_WRITER_ROW_H
#define STEP_WRITER_ROW_H
#include <cstdint>
#include <string>
#include <utility>
#include <vector>
#include "ftxui/component/component.hpp"
enum class highlight_type {
Keyword,
Operator,
Identifier,
Number,
String,
Comment,
Unknown
};
struct highlight_item {
std::pair<uint3... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entities.DataTransferObjects
{
public abstract record BookDtoForManipulation
{
[Required(ErrorMessage ="Title is a required field."... |
#include <algorithm>
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
struct Segment
{
int start, end;
};
bool compare(Segment &a, Segment &b)
{
return a.end < b.end;
}
vector<int> optimal_points(vector<Segment> &segments)
{
sort(segments.begin(), segments.end(), compare);
vector<in... |
package Model;
import java.util.Objects;
import java.util.UUID;
/**
* This is the Authorization Token Model class
*/
public class AuthToken {
/**
* This is the authorization token for the authToken object
*
*/
private String authToken;
/**
* This is the username for the authToken ob... |
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Threading.Tasks;
using AcquiringBank.Data.Models;
using MongoDB.Driver;
namespace AcquiringBank.Data.Repositories.Abstractions;
public abstract class BaseRepository<TModel> : IBaseRepository<TModel> where TModel : ModelBase
{
... |
/** TreeNode: node for a general tree. */
class TreeNode {
constructor(val, children = []) {
this.val = val;
this.children = children;
}
}
class Tree {
constructor(root = null) {
this.root = root;
}
/** sumValues(): add up all of the values in the tree. */
sumValues() {
let toSum = [this... |
import { useState } from "react";
import {
signInWithGooglePopup,
signInAuthUserWithEmailAndPassword,
} from "../../utilities/firebase/firebase.utility";
import FormInput from "../form-input/form-input.component";
import Button from "../button/button.component";
import "./sign-in-form.styles.scss";
import "./sig... |
import React, { useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { Route, Routes } from 'react-router-dom';
import LoadingBar from 'react-redux-loading-bar';
import Header from './component/Header';
import CreateThread from './page/CreateThread';
import Home from './page/Home';
i... |
<?php
// Paso 1: Crear una variable llamada $edad y asignarle un valor numérico.
$edad = 25;
// Paso 2: Crear una expresión que calcule la edad que tendrás en 10 años y guardarla en una variable llamada $edad_futura.
$edad_futura = $edad + 10;
// Paso 3: Utilizar condicionales para mostrar un mensaje según la edad.
i... |
'use client'
import styles from "./signin.module.css"
import React from 'react'
import Image from "next/image"
import Link from "next/link"
import * as Yup from 'yup'
import { useFormik } from 'formik';
import Nft from "@/assets/Images/nft.jpg"
import { Button, Checkbox, Form, Input } from 'antd';
export default functi... |
import { Component } from '@angular/core';
import { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';
import { Store } from '@ngrx/store';
import { AppState } from '../app.reducer';
import * as actions from './todoStore/todo.actions';
@Component({
selector: 'app-todo-add',
standalone: true,
i... |
# Logging volunteer hours
Staff can log actual hours worked by each volunteer on a regular basis which can be useful to track for funder reports.
## How to
Log hours as follows:
1. Go to **Volunteers > Manage Volunteer Projects**
1. Find your project
1. Click **Log Hours**
1. Fill out the **Actual Duration** and *... |
---
marp: true
theme: default
class: invert
paginate: true
---
<style>
.icon img {
border-radius: 50%; /* 丸く切り抜く */
}
</style>
# RailsからReactを剥がした話
---

---
<!-- _class: icon -->
# 自己紹介
- GMOメディア所属
- 西悠太
- フロントエンドエンジニア
- X: Riya31377928

[trans]
### 概述
本策略综合运用移动平均线聚散指标(MACD)和相对强弱指数(RSI)两个强力指标,设定买入和卖出条件,以捕捉股价的反转机会。
### 策略原理
1. 计算MACD指标,包括快线、慢线和信号线。快线和慢线交叉为买卖信号。
2. 计算RSI指标,设置超买区和超卖区阈值。RSI指标可以... |
# 给你一个整数数组 nums 。nums 中,子数组的 范围 是子数组中最大元素和最小元素的差值。
#
# 返回 nums 中 所有 子数组范围的 和 。
#
# 子数组是数组中一个连续 非空 的元素序列。
#
#
#
# 示例 1:
#
#
# 输入:nums = [1,2,3]
# 输出:4
# 解释:nums 的 6 个子数组如下所示:
# [1],范围 = 最大 - 最小 = 1 - 1 = 0
# [2],范围 = 2 - 2 = 0
# [3],范围 = 3 - 3 = 0
# [1,2],范围 = 2 - 1 = 1
# [2,3],范围 = 3 - 2 = 1
# [1,2,3],... |
import { Component, OnDestroy, OnInit } from '@angular/core';
import { CommonModule } from '@angular/common';
import {
FormControl,
FormGroup,
FormsModule,
ReactiveFormsModule,
Validators,
} from '@angular/forms';
import {
IonicModule,
LoadingController,
NavController,
ToastController,
} from '@ionic/... |
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 24 14:26:55 2023
@author: Asus
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# visualization
import seaborn as sns
# Importing the dataset
dataset = pd.read_csv(r"C:\Users\Asus\Downloads\electronics.csv")
# list of first five rows
datas... |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace DuplicatorPro\Symfony\Component\EventDispatcher;
/**
* An EventSubscrib... |
// server.js
const express = require('express');
const bodyParser = require('body-parser');
const cors = require('cors');
const app = express();
const port = 3300;
app.use(cors());
app.use(bodyParser.json());
let issues = [];
app.post('/create', (req, res) => {
const newIssue = req.body;
issues.push(newIssue);
... |
import { useState } from "react";
import { useNavigate } from "react-router-dom";
import classes from "./AboutPage.module.scss";
import Privacy from "./content-section/Privacy";
import Terms from "./content-section/Terms";
import Introduction from "./content-section/Introduction";
import Objectives from "./content-se... |
import React, { useContext, useState } from "react";
import DataContext from "../../context/DataContext";
import { ToastContainer, Zoom } from "react-toastify";
import { Formik, Form, ErrorMessage } from "formik";
import TextField from "../../components/textField/TextField";
import TextAreaField from "../../components/... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSavedBlogsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('saved_blogs'... |
(ns yolk.macros)
(defmacro defbus [name args value-args & body]
`(defn ~name ~args
(fn ~value-args
~@body)))
(defmacro defnotice [name]
`(defn ~name []
(fn [x#]
x#)))
(defn log-sexp [sexp]
`(yolk.bacon/do-action (yolk.bacon/log-action '~sexp)))
(defmacro ->logi
"Skips the fist expres... |
# class Employee:
# def __init__(self, name, id,salary):
# self.name = name
# self.id = id
# self.salary = salary
# def showDetails(self):
# print(f"Details about {self.name}:\n I 'm {self.name}. My id is {self.id} and my salary is {self.salary}\n\n")
# # inheritance
# clas... |
const mysqlExecute = require("../../util/mysqlConnexion");
const fs = require("fs");
const fs2 = require("fs").promises;
const bcrypt = require("bcrypt");
const sharp = require("sharp");
const GeneralDAO = require("./generalDAO");
const { response } = require("express");
// Esta función envuelve la función fs.readFile... |
package com.codedifferently.lesson9.library;
import java.util.List;
/** Represents a Marvel comic in the library. */
public class Book {
private String title;
private String isbn;
private List<String> authors;
private int numPages;
private boolean checkedOut;
public Book(String title, String isbn, List<S... |
<template>
<div class="flex flex-col md:flex-row">
<div class="main-content flex-1 mt-12 md:mt-2 pb-24 md:pb-5">
<div class="flex flex-row flex-wrap flex-grow mt-2">
<div class="w-full p-3">
<div class="bg-white border-transparent rounded-lg shadow-lg">
<div class="p-5">
<JSCha... |
<?php
namespace App\Http\Livewire\Admin\User;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use Livewire\Component;
class NewUser extends Component
{
public $name, $lastname, $email, $matricula, $dni, $password, $password_confirmation;
public function render()
{
return view('livewire... |
import {
Body,
Controller,
Delete,
Get,
NotFoundException,
Param,
Post,
Put,
Query,
} from '@nestjs/common';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { QueryLimitDto } from 'src/common/queryLimit.dto';
import { customResponse } from 'src/common/response';
import {
EvidenciaDto,
Reporta... |
/*Develop an object oriented program in C++ to create a database of student information
system containing the following information: Name, Roll number, Class, division, Date of
Birth, Blood group, Contact address, telephone number, driving license no. and other.
Construct the database with suitable member functions f... |
import {Modal} from "react-bootstrap";
import React, {useEffect, useState} from "react";
import CustomButton from "../../../user/components/CustomButton";
import FormFieldError from "../../../global/components/FormFieldError";
import LoadingScreen from "../../../user/components/LoadingScreen";
import AdminProductSizesC... |
:toc: macro
toc::[]
:doctype: book
:reproducible:
:source-highlighter: rouge
:listing-caption: Listing
== Integrating Spring Data in OASP4J
=== Introduction
This chapter specifies a possible solution for integrating the Spring Data module in devonfw. It is possible to have some services using the Spring Data module... |
using DocumentFormat.OpenXml.Office2016.Drawing.ChartDrawing;
using MedicalClinicApp.DatabaseHandler;
using MedicalClinicApp.Repositories.Classes;
using MedicalClinicApp.Repositories.Interfaces;
using MedicalClinicApp.Services.Classes;
using MedicalClinicApp.Services.Interfaces;
using Microsoft.EntityFrameworkCore;
na... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.