text stringlengths 184 4.48M |
|---|
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Emojis</title>
<link rel="stylesheet" href="../css/style.css">
</head>
<body>
<main>
<ul>
<li id="HTML Emojis">
<... |
using Savanna.Data.Data;
using System.ComponentModel.DataAnnotations;
namespace SavannaWeb.ViewModels
{
public class ProfileViewModel
{
public int UserId { get; set; }
[Required(ErrorMessage = "Username is required.")]
[Display(Name = "Username")]
[StringLength(20, ErrorMessa... |
interface Props {
label?: string;
name: string;
id: string;
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
type: "email" | "text";
labelClassName?: string;
inputClassName?: string;
value?: string;
}
function Input({
label,
name,
id,
onChange,
type,
labelClassName,
inputClassName,
value,
}: ... |
#include <stdlib.h>
#include <stdio.h>
#include "string.h"
#include "client_registry.h"
#include <pthread.h>
#include <semaphore.h>
#include <debug.h>
#include <unistd.h>
#include "jeux_globals.h"
//Every function that modified the values of this struct should have a mutex lock
//Originally I thought to put a mutex l... |
#' Make shades
#'
#'Given a colour make n lighter or darker shades.
#'Very interesting package.
#'
#' @param colour The colour to make shades of.
#' @param n The number of shades to make
#' @param lighter Whether to make it lighter (\code{TRUE}) or darker (\code{FALSE})
#'
#' @return A vector of \code{n} colour hex cod... |
<template>
<section
:class="[
'notifications-page-content',
{
'section-is-loading':
isDeletingAllNotificationsInProgress || isDeletingNotificationInProgress
}
]"
>
<user-private-area-notifications-no-items-view v-if="notificationsStore.isListEmpty" />
<div v-else ... |
from keras.preprocessing import sequence
from keras.preprocessing.text import Tokenizer
from keras.utils import pad_sequences
from keras.models import Sequential
from keras.layers import Dense, Flatten, Embedding, Conv1D, MaxPooling1D, Dropout,Activation, Embedding, LSTM
from data_cleaning import df
from prep_training_... |
from urllib.error import URLError
from urllib.request import urlopen
from bs4 import BeautifulSoup
from postgres.models.external_models.telegram_models import ValidateUrl
from pydantic import AnyUrl
from urlextract import URLExtract
class UrlRepository:
PARSER_NAME = 'lxml'
def __init__(self, url_extractor:... |
// test/unit/yannakakis.test.js
const { Relation, JoinTree, JoinNode } = require('../../src/models/joinTree');
const YannakakisProcessor = require('../../src/processors/yannakakis');
describe('Yannakakis Algorithm', () => {
test('should process a simple two-way join correctly', () => {
// Create test relat... |
<script setup lang="ts">
import { ref, reactive, onMounted } from "vue";
import { useCrud } from "@/composables/useCrud";
import useVuelidate from "@vuelidate/core";
import SectionNavigation from "../templates/SectionNavigation.vue";
import ErrorMessage from "../templates_composant/ErrorMessage.vue";
import {
require... |
import express from "express";
import dotenv from "dotenv";
import cookieParser from "cookie-parser";
import cors from "cors";
import { connectDB } from "./lib/db.js";
import authRoutes from "./routes/auth.route.js";
import messageRoutes from "./routes/message.route.js";
import { app, server } from "./lib/socket.js";
i... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="Stylesheet" href="style.css">
<!-- google font link -->
<link href="https://fonts.googleapis.com/css2?family=Lat... |
import mongoose, { isValidObjectId } from "mongoose"
import { Playlist } from "../models/playlist.model.js"
import { ApiError } from "../utils/ApiError.js"
import { ApiResponse } from "../utils/ApiResponse.js"
import { asyncHandler } from "../utils/asyncHandler.js"
//~Create a Playlist :
const createPlaylist = asyncHa... |
#um modelo de classificação de diagnóstico de câncer de mama usando
# o conjunto de dados Breast Cancer Wisconsin (Diagnosis), d
# isponível na biblioteca Scikit-Learn.
# O objetivo é prever se um tumor é benigno (B) ou maligno (M) com base
# em características de biópsias.
# avaliar o modelo de classificação trein... |
'use client'
import type { Transition, Variants } from 'motion/react'
import { motion, useAnimation } from 'motion/react'
import {
iconClassName,
iconTextClassName,
iconWrapClassName,
} from './class-names'
import { cn } from '@burse/design-system/lib/utils'
import { useSidebar } from '@burse/design-system/compo... |
package au.edu.uq.imb.memesuite.data;
import au.edu.uq.imb.memesuite.db.*;
import au.edu.uq.imb.memesuite.util.FileCoord;
import au.edu.uq.imb.memesuite.util.JsonWr;
import java.io.File;
import java.io.IOException;
/**
* This class describes a loci file as a data source
*/
public class LociDataSource extends Seque... |
<template>
<div>
<v-navigation-drawer
v-model="chatBox"
app
overflow
right
temporary
width="300px"
class="chat-box"
>
<div class="whole-chat-list d-flex p-2" v-if="Chat_messages.length > 0">
<div>
<v-icon>mdi-bullhorn-outline</v-icon>
<... |
#ifndef TABLE_H
#define TABLE_H
#include<iostream>
#include<vector>
#include<list>
#include <memory>
// key-value pair to store in the hash map
struct KeyValuePair {
std::string key;
std::vector<std::string> rowValues;
KeyValuePair(std::string k, std::vector<std::string> values)
: key(std::move(... |
#ifndef __YUNI_CORE_SINGLETON_SINGLETON_H__
# define __YUNI_CORE_SINGLETON_SINGLETON_H__
# include "../../yuni.h"
# include "../../thread/policy.h"
# include "../noncopyable.h"
# include "policies/creation.h"
# include "policies/lifetime.h"
namespace Yuni
{
/*!
** \brief Holder for a singleton class
**
** Mana... |
package com.alimert.controller.impl;
import com.alimert.controller.BaseController;
import com.alimert.controller.IAccountController;
import com.alimert.controller.RootEntity;
import com.alimert.dto.DtoAccount;
import com.alimert.dto.DtoAccountIU;
import com.alimert.service.IAccountService;
import jakarta.validation.Va... |
OpenMRS
--------
### Link
`https://www.linuxcloudvps.com/blog/how-to-install-openmrs-on-ubuntu-20-04/`
* **All installations in root user**
### Install Java
* apt-get update -y
* apt-get install openjdk-8-jdk -y
* java -version
### Install mysql
### Install tomcat
* groupadd tomcat
* useradd -s /bin/false -... |
# Autoencoder with 2-layer LSTM for Anomaly Detection in ECG Signals
This repository provides an implementation for detecting anomalies in ECG signals using an autoencoder with a 2-layer LSTM (Long Short-Term Memory) network. The architecture includes LSTM layers in both the encoder and decoder sections. While it is p... |
import { MouseEventHandler, useState } from "react";
import { AnimatePresence, motion } from "framer-motion";
import closeImg from "../../assets/images/icon-close-menu.svg";
import hamburgerMenuImg from "../../assets/images/icon-hamburger.svg";
import logoImg from "../../assets/images/logo.svg";
function DesktopNav() ... |
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/random_box/al/setting/pwrd_modi_succesl_a_l/pwrd_modi_succesl_a_l_widget.dart';
import 'package:flutter/material.dart';
import 'password_modify_b_s_model.dart';
export 'password_modify_b_s_model.dart';
class Passwor... |
import React from "react";
export default function Videos() {
// Data video (hardcoded)
const videos = [
{
title: "Telanjangin Abis Cara Bermain Game Among Us",
channel: "Official XChannel",
image: "/among-us-video.jpg",
},
{
title: "Apa Benar Indonesia Sudah Masuk Resesi?",
... |
package com.saudi.tourism.core.models.app.entertainer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.saudi.tourism.core.models.app.location.PolygonCoordinatesModel;
import com.saudi.tourism.core.utils.CommonUtils;
import lombok.Getter;
import lombok.Setter;
import org.apache.sling.api.resource.Resourc... |
//
// ViewController.swift
// Circular Bar Timer
//
// Created by Павел Яковенко on 28.09.2022.
//
import UIKit
class ViewController: UIViewController {
let nameLabel: UILabel = {
let label = UILabel()
label.text = "Circular Bar Timer"
label.font = UIFont.boldSystemFont(ofSize: 24)
... |
# Realtek AmebaZ
## Introduction
Realtek AmebaZ is a family of Wi-Fi microcontrollers, primarily consisting of two chips - RTL8710BN and RTL8710BX.
RTL8710BX seems to be the same chip but clocked at 62.5 MHz (instead of 125 MHz for BN). However, it seems that firmware compiled for either of the chips can run on the ... |
#!/usr/bin/env python3
"""Simple pagination"""
from math import ceil
from typing import Any, Dict, List, Iterable
from typing import Optional
def index_range(page: int, page_size: int) -> tuple:
"""return a tuple of size two containing a start index and an end index"""
start = (page - 1) * page_size
retur... |
import { useRef, useState, MutableRefObject, useEffect } from "react";
import {
ProjectSectionRight,
ProjectSectionLeft,
ProjectInfo,
} from "../components/ProjectSection";
import B from "../components/B";
import AboutMe from "../components/AboutMe";
import Landing from "../components/Landing";
import ContactIco... |
#include "main.h"
#include <stdio.h>
/**
* _strncpy - function that copies a string
* @dest: pointer to the string
* @scr: pointer source
* @n: integer
* Return: destination
*/
char *_strncpy(char *dest, char *src, int n)
{
int j;
j = 0;
while (j < n && src[j] != '\0')
{
dest[j] = src[j];
j++;
}
whil... |
import React, { useContext } from "react";
import AppContext from "../context/AppContext";
import Login from "./Login";
import Users from "./Users";
import Input from "./Input";
import TextArea from "./TextArea";
export default function Landing() {
const { token, email, forgotPassword, guest, scheduleAppointment } ... |
import React, { useState } from "react";
import { Container } from "./styles";
import Icon from "@/components/Icon";
import theme from "@/theme";
import { Header } from "@/components/Header";
import { Form } from "@/components/Form";
import { Field } from "@/components/Field";
import { Button } from "@/components/But... |
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { LoginForm } from '@models/login-form.model';
import { LoginResponse } from '@models/login-response.model';
import { User } from '@models/user.model';
import { Store } from '@ngrx/store';
import { getToken } from '@st... |
<?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('checkout_addresses', function (Blueprint $ta... |
use crate::auth::authorization_middleware;
use crate::models::app_state::AppState;
use crate::repositories::post_repo::PostRepository;
use crate::repositories::user_repo::UsersRepository;
use crate::routes::post;
use crate::services::amq::AmqClient;
use crate::services::cache_service::CacheService;
use crate::services:... |
import Head from "next/head";
import InfoSection from "@/components/InfoSection/InfoSection";
import { useContext } from "react";
import CMSDataContext from "@/context/CMSDataContext";
import Marquee from "react-fast-marquee";
import ToolCard from "@/components/ToolCard/ToolCard";
export default function About() {
c... |
// Distructuring Variabel /Assignment
// =====Distructuring Pada Array ======
// const nomer = ['Satu', 'Dua', 'Tiga', 'Empat', 'Lima'];
// // const [a, b, c, d, e] = nomer; //MENAMPILKAN SEMUA ISI ARRAY
// const [a, b, , , e] = nomer; // TIDAK MENAMPILKAN ISI ITEM APADA ARRAY, DENGAN CATATAN KOMA (,) HARUS ADA
// ... |
<?php
namespace App\Livewire;
use App\Models\Experience;
use App\Models\Job;
use App\Models\JobCategory;
use App\Models\JobType;
use Livewire\Component;
use Livewire\WithPagination;
class JobSeeker extends Component
{
use WithPagination;
protected $paginationTheme = 'bootstrap';
public $search;
pub... |
import React, { FC, useState } from 'react';
import AccountLogin from './components/AccountLogin'
import SmCodeLogin from './components/SmCodeLogin'
import {Form, Input, Row, Col, Button, message} from 'antd'
const FormItem = Form.Item
import './css/forgetPassword.less'
import {useSelector} from 'umi';
import IconMap f... |
<?php
/**
* Tulipa © Core
* Copyright © 2010 Sasquatch <Joan-Alexander Grigorov>
* http://bgscripts.com
*
* LICENSE
*
* A copy of this license is bundled with this package in the file LICENSE.txt.
*
* Copyright © Tulipa
*
* Platform that uses this site is protected by copyright.
*... |
class Request {
constructor(url) {
this.url = url;
}
getAllProducts() {
return new Promise((resolve, reject) => {
fetch(this.url)
.then((response) => response.json())
.then((data) => resolve(data))
.catch((err) => {
alert("Json server başlatılamadı. Terminalde 'npm start' yazarak başlatabilir... |
"use client"
import React, { useState, useEffect, useRef } from "react"
import { motion, useAnimation, useMotionValue, useSpring } from "framer-motion"
const CursorTracker = () => {
const cursorX = useMotionValue(-100)
const cursorY = useMotionValue(-100)
const springConfig = { damping: 15, stiffness: 150 }
co... |
import React, { useEffect, useRef, useState } from "react";
import Navbar from "../Components/Navbar";
import Footer from "../Components/Footer";
import GoToTop from "../Components/Top";
import grayBg from "../assets/grayBg.png";
import firstSectionSchool from "../assets/first-section-school.174ed857.svg";
import first... |
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter/material.dart';
import 'package:qr_mobile_vision_example/core/api_manager/api_url.dart';
import 'package:qr_mobile_vision_example/core/extensions/extensions.dart';
import 'package:qr_mobile_vision_example/core/util/shared_preferences.dart';
impo... |
package org.hackystat.sensor.xmldata.option;
import java.util.ArrayList;
import java.util.List;
import org.hackystat.sensor.xmldata.XmlDataController;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/**
* Tests if the SetRuntimeOption takes no parameters and is processed correctly.
* @auth... |
import { AxiosError } from "axios";
import api from "../api";
import { SERVICE_DESCRIPTIONS } from "@/constants";
import { Appointment } from "@/src/services/scheduleApi";
export interface Vet {
name: string;
email: string;
role: string;
phoneNumber?: string;
address?: string;
district?: string;
cuit?: st... |
#ifndef _DEF_RTAC_BASE_CUDA_DEVICE_REFERENCE_H_
#define _DEF_RTAC_BASE_CUDA_DEVICE_REFERENCE_H_
#include <cuda_runtime.h>
#include <cuda_runtime_api.h>
namespace rtac { namespace cuda {
/**
* This is an helper to be able to easily modify a host side object with a
* CUDA kernel call.
*
* It work by copying the co... |
#include "json/json.h"
#include "json/json_decode_error.h"
#include "json/test.h"
#include <cassert>
#include <iostream>
#include <sstream>
#include <string>
void testDefaultCstr() {
json::Json j;
assert(j.type() == json::Type::null);
}
void testJsonStrCopyCstr() {
std::string s{"test"};
json::Json j{s};
a... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
const mongoose = require("mongoose");
const connectionRequestSchema = new mongoose.Schema(
{
fromUserId: {
type: mongoose.Schema.Types.ObjectId,
required: true,
ref : "User"
},
toUserId: {
type: mongoose.Schema.Types.ObjectId,
required: true,
ref: "User"
},
sta... |
"""
A model worker executes the model.
"""
import sys, os
from groundingdino.util import box_ops
from segment_anything import build_sam
from segment_anything.predictor import SamPredictor
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
import argparse
import asyncio
import dataclasses
import logging
im... |
//StaticBlock.class
public class StaticBlock {
static int data = 1;
public StaticBlock(){
System.out.println("StaticBlock Constructor");
}
static {
System.out.println("***First static block***");
data = 3;
}
static {
System.out.println("***Second static block***")... |
---
id: 657e18b58d9f6a7ac1544999
title: Passo 75
challengeType: 0
dashedName: step-75
---
# --description--
If the user has rolled both a pair and `Three of a kind`, then they have received a `Full house` resulting in `25` points.
Add an `if` statement to check if both `hasThreeOfAKind` and `hasPair` are `true`. If ... |
package org.firstinspires.ftc.teamcode.subsystems.arm.commands.specimen;
import com.acmerobotics.dashboard.config.Config;
import com.arcrobotics.ftclib.command.ParallelRaceGroup;
import com.arcrobotics.ftclib.command.SequentialCommandGroup;
import com.arcrobotics.ftclib.command.WaitCommand;
import com.arcrobotics.ftcl... |
from unittest import TestCase
import numpy as np
from diffprivlib.mechanisms import Laplace
class TestLaplace(TestCase):
def setup_method(self, method):
self.mech = Laplace
def teardown_method(self, method):
del self.mech
def test_class(self):
from diffprivlib.mechanisms import ... |
export const Instructions = () => {
return (
<>
<h3>Intro</h3>
<p>
Underneath the horizontal line you see widget where we promote our content. Inside the
widget we have an iframe that displays content from our marketing site. Widget and the
included iframe are build to be respo... |
package pk.training.basit.polarbookshop.orderservice.web.controller;
import jakarta.validation.Valid;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.*;
import pk.training.basit.polarbookshop.orderservice.web.dto.PagedResponse... |
import psycopg2
import threading
import time
import queue
import numpy as np
import tkinter as tk
from tkinter import ttk
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
import matplotlib.pyplot as plt
# Функция для генерации сигнала в один момент времени
def create_signal_single_point(time_point, num_... |
<div data-page-name="<%= page_name %>">
<%= render "pets/navbar_dashboard" %>
<div class="container-fluid text-primary py-0">
<div class="container py-5">
<div class="row">
<div class="col-12 col-lg-8 mx-auto text-center">
<h1 class="display-4 display-md-5 fw-bold mb-4">
Hygi... |
import {
Resolver,
Ctx,
Arg,
Mutation,
Field,
ObjectType,
Query,
FieldResolver,
Root,
} from "type-graphql";
import { MyContext } from "src/types";
import { User } from "../entities/User";
import argon2 from "argon2";
import {
COKKIE_NAME,
FORGET_PASSWORD_PREFIX,
PROD_CLIENT_URL,
} from "../cons... |
import express from 'express';
const app = express();
const PORT = 3000;
let bookMap = new Map();
bookMap.set(1, {
title: 'Reactions in REACT',
author: 'Ben Dover',
publisher: 'Random House',
isbn: '978-3-16-148410-0',
avail: true,
who: null,
due: null,
});
bookMap.set(2, {
title: 'Expr... |
package com.automation.cucumber.pages;
import com.automation.cucumber.drivermanager.ManageDriver;
import com.automation.cucumber.utility.Utility;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.CacheLookup;
import org.openqa.... |
Based on the provided content, here's a breakdown of the vulnerability:
**CVE ID:** CVE-2017-6088
**Description:** Multiple SQL injection vulnerabilities were found in EyesOfNetwork (EON) version 5.0. The Eonweb application does not properly sanitize user-supplied input before using it in SQL queries. This allows au... |
// @deno-types="@types/react"
import React from 'react';
import { createLazyRoute } from '@tanstack/react-router';
import { authClient } from '@/lib/auth.ts';
import { api } from '@/lib/api.ts';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@auth-test/ui/src/components/card.tsx';
import { B... |
Exercise 1:
Corporate university wants to maintain the information about participants scores in various modules.
Write a program to store the details of the marks scored in various modules.
Task 1: Create a library project and define a class called Participant. Create the following variables as follow:
EmpId, Name,... |
//----------------------------task-1---------------------------------//
/*Работа с прототипами
важность: 5
В приведённом ниже коде создаются и изменяются два объекта.
Какие значения показываются в процессе выполнения кода?*/
let animal = {
jumps: null,
};
let rabbit = {
__proto__: animal,
jumps: true,
};
alert... |
#pragma once
#include "state.h"
// Base class specifically for minigames
class Game : public State {
public:
Game(SCore* _score, Core* _core, float exp) : State(_score, _core),
difficulty(0.0f), gameStatus(_INTRO), gameTimer(60 * 60),
baseScore(1000), score(0), scoreExponent(exp), currentCombo(0), maximumCombo(0)... |
package com.backtestpro.btp.service;
import java.io.IOException;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.ExecutionException;
import java.time.format.DateTimeFormatter;
import java.time.LocalDate;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.util.... |
import java.util.Scanner;
class TakingInput {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("What is your name? ");
String name = scanner.nextLine();
System.out.printf("Hello %s. How old are you? ", name);
// int age ... |
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class FoodManager {
// static final int MAX = 100;
// static String[] foodNameList = new String[MAX];
// static int[] countList = new int[MAX];
// static String[] expDateList = new String[MAX];
// static String[] descList = new String... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
schema::create('comp_configs', function... |
import React from 'react'
import ReactDOM from 'react-dom/client'
import Home from './page/Home/Home.jsx'
import Logement from './page/Logement/Logement.jsx'
import About from './page/About/About.jsx'
import Error from './page/Error/Error.jsx'
import Footer from './assets/components/Footer/Footer.jsx';
import Navbar fr... |
//给定两个单词 word1 和 word2 ,返回使得 word1 和 word2 相同所需的最小步数。
//
// 每步 可以删除任意一个字符串中的一个字符。
//
//
//
// 示例 1:
//
//
//输入: word1 = "sea", word2 = "eat"
//输出: 2
//解释: 第一步将 "sea" 变为 "ea" ,第二步将 "eat "变为 "ea"
//
//
// 示例 2:
//
//
//输入:word1 = "leetcode", word2 = "etco"
//输出:4
//
//
//
//
// 提示:
//
//
//
// 1 <= word1.len... |
using System;
using System.Collections.Generic;
using System.Buffers.Binary;
using System.Text;
using BinaryEx;
using System.IO.MemoryMappedFiles;
namespace SongLib
{
public unsafe class WavFileWriter : IDisposable
{
public const ushort BitsPerSample = 32;
private const ushort ChannelSize = Bit... |
import AddToBasketButton from "@/components/AddToBasketButton/page";
import { Button } from "@/components/ui/button";
import { getProductBySlug } from "@/lib/getProductBySlug/page";
import { imageUrl } from "@/lib/imageUrl";
// import { PortableText } from "next-sanity";
import Image from "next/image";
import Link from... |
#include <iostream>
using namespace std;
// Time complexity for both function is O(n)
bool isCorrect2(string str) {
int strSize = str.length();
int count = 0;
for(int i = 0; i < strSize; i++) {
if(isupper(str[i]))
count++;
}
// Check if,
// 1. count is zero means all are ... |
#pragma warning disable CS0219, IDE0044, IDE0051, IDE0059, IDE0060
// 命名空间使用帕斯卡命名
namespace testNamespace { } // IDE1006
namespace TestNamespace { }
namespace EditorconfigTest
{
// 类、结构体、枚举、委托使用帕斯卡命名
public class testClass { } // IDE1006
public class TestClass { }
public delegate void testDelegate(... |
package model;
import java.util.ArrayList;
import java.util.List;
import common.Color;
import common.Point;
import common.ModelInfo;
public class Composite extends BoxedElement {
List<Element> children = new ArrayList<Element>();
private static final double max_val = 99999;
private boolean isFirstColor = true;
p... |
from flask import jsonify
from app.domain.DTOs.transaction_dto import TransactionDTO
from app.domain.mappers.base_mapper import BaseMapper
from app.domain.models.transaction import Transaction
class TransactionMapper(BaseMapper[TransactionDTO]):
@staticmethod
def transactionEntityToTransactionDto(entity: Tran... |
import Link from "next/link";
import { useUser } from "../../contexts/UserProvider";
import IconButton from "@mui/material/IconButton";
import { useState } from "react";
import handleData from "../../utility/handleDataApi";
import Menu from "@mui/material/Menu";
import MenuItem from "@mui/material/MenuItem";
import Ve... |
import { Location } from '@angular/common';
import { Component, Input, OnInit } from '@angular/core';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs';
import { Comment } from 'src/app/_models/Comment';
import { User } from 'src/app/_models/User';
import { selectCommentsLikedByUser, selectUser } f... |
import React from 'react';
import { BookOpen, Shield, Users, TrendingUp, Github, Twitter, MessagesSquare } from 'lucide-react';
import { useNavigate } from 'react-router-dom';
const Landing = () => {
const navigate = useNavigate();
// Hero Section
const Hero = () => (
<div className="pt-24 pb-16">
<di... |
from libqtile import widget
from .theme import colors
import subprocess ; from libqtile.widget import GenPollText
def base(fg='text', bg='dark'):
return {
'foreground': colors[fg],
'background': colors[bg]
}
def separator():
return widget.Sep(**base(), linewidth=0, padding=5)
def icon... |
/*
* <кодировка символов>
* Cyrillic (UTF-8 with signature) - Codepage 65001
* </кодировка символов>
*
* <сводка>
* EcoLab1
* </сводка>
*
* <описание>
* Данный исходный файл является точкой входа
* </описание>
*
* <автор>
* Copyright (c) 2018 Vladimir Bashev. All rights reserved.
* </автор>
*
... |
# 关于转录因子-DNA 结合的“深度学习”
> 原文:<https://towardsdatascience.com/deep-learning-about-transcription-factor-dna-binding-1d9753eabcc2?source=collection_archive---------9----------------------->
## 使用卷积神经网络测量转录因子-DNA 结合

> 如果我们能解开基因表达的秘密,我们就能真正解开自己的秘密。
我们淹没在基因信息中。
:
def load_bøker():
with open('varer.json', 'r') as f:
return json.load(f)
def find_bøker(title):
products = load_bøker()
for product in products:
if product['title'] == title:
... |
<?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.
*/
// gitlost removed namespace stuff, renamed to UNFC_Normalizer to avoid conflicts.... |
#pragma once
#include <QString>
#include <QPixmap>
#include "PlayerMessage.h"
/**
* 游戏信息类
* 存储/获取窗口大小、帧率、玩家信息、文件路径等
*/
class Config
{
public slots: //Qt中的一个槽机制
static void fpsCount(); // 帧率计数,应每绘制一帧调用一次
public:
static void updateWH(int w, int h); // 窗口大小更改时调用,传入新的窗口宽高
static int getW(); // 获取当前存储的... |
// import { renderToString } from "preact-render-to-string";
import renderToString from "preact-render-to-string";
import { App } from "../wui/app";
// import { Layout } from "../wui/pages/layout";
import { h } from 'preact';
import type { Request } from 'express';
import 'vite';
import globals from "./globals";
import... |
// import './announcement.css';
// import { Link } from 'react-router-dom';
// import 'bootstrap/dist/css/bootstrap.min.css';
// import {useLocation } from "react-router-dom"
// const Announcements = () => {
// const location = useLocation();
// const userEmail = location.state?.userEmail;
// const initialA... |
---
title: "Brainstorm Ideas Recent Experiences"
tags: ["Content Creation", "Social Media", "Video Script"]
type: "text"
created: "January 6, 2025 8:01 AM"
url: "https://github.com/Steeve-Bennett-aka-MChoquette/prompts/blob/main/brainstorm_ideas_recent_experiences.md"
---
# IDENTITY and PURPOSE
You are an AI assistan... |
#' @title Visualize PCA in 3D
#'
#' @description Plot data in top 3 dimensions of PC space
#'
#' @param input.df The input dataframe. Should contain only numerics.
#' @param color.by A vector to color the points by.
#' @param use.colors A vector of the colors to use.
#' @param ellipse.opacity Denotes opacity of the ell... |
import { useFormik } from 'formik'
import React, { useContext, useRef, useState } from 'react'
import { useNavigate } from 'react-router-dom';
import SkillCard from '../components/SkillCard';
import UserContext from '../Context/UserContext';
function FormPage() {
const userContextData = useContext(UserContext);
... |
import { Component} from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { Router } from '@angular/router';
// Importaciones propias
import { AuthService } from '../../services/auth.service';
import { ToastService } from '../../../core/services/toast.service';
import { AUTH... |
//AUTOR: GRUPO CHIMBORAZO
import kantan.csv.ops.{toCsvInputOps, toCsvOutputOps}
import kantan.csv.rfc
import kantan.csv._
import kantan.csv.ops._
import kantan.csv.generic._
import java.io.File
import play.api.libs.json._
object limpieza extends App {
//RUTA DEL ARCHIVO DE ENTRADA:
val ruta_entrada = "data/pi_mov... |
<div class="mat-elevation-z8">
<mat-toolbar class="flex flex-row justify-between">
<span>Lista de Usuarios</span>
<button
mat-mini-fab
color="primary"
matTooltip="Crear Usuario"
matTooltipPosition="below"
[routerLink]="'/usuarios/crear'"
... |
import { MarkdownView, View, Plugin, ButtonComponent } from "obsidian";
import { addPluginCommand } from "./src/command";
import { isPreview, isSource } from "./utils";
import { ScrollToTopSettingType } from "types";
import { ScrollToTopSettingTab, scrollToTopSetting } from "./src/setting";
import {
injectSurfingComp... |
#Making a List Variable
sillysillylist = list(range(21))
print(sillysillylist)
#Working with List Elements
sillysillylist = list(range(21))
def squareList(input_list):
return [i**2 for i in input_list]
sillysillysillylist = squareList(sillysillylist)
print(sillysillysillylist)
#Slicing
sillysillysillylist = squa... |
package com.ohgiraffers.section02.stream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
// tumbler
public class Application1 {
public static void main(String[] args) {
/* 수업목표. FileInputStream을 이해할 수 있다. */
FileInputStream fis = null;
try... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.