text stringlengths 184 4.48M |
|---|
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%><%@ include file="/common/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Chỉnh sửa chủ đề</title>
</head>
<body>
<c:url var="editsave" value="/quan-tri/web/ma-khuyen-mai/editsave" />
<c:url var="list" val... |
<?php
/**
* WordPress Feed API
*
* Many of the functions used in here belong in The Loop, or The Loop for the
* Feeds.
*
* @package WordPress
* @subpackage Feed
*/
/**
* RSS container for the bloginfo function.
*
* You can retrieve anything that you can using the get_bloginfo() function.
* Everything will ... |
//contracts/EVRYDistributor.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IE... |
import { render, screen } from "@testing-library/react";
import AirButton from "../components/AirButton/AirButton";
import { FcGoogle } from "react-icons/fc";
import { axe } from "jest-axe";
describe("AirButton", () => {
test("Should render component correctly.", () => {
const { container } = render(
<AirB... |
import React from 'react';
import { ChevronDown, ChevronUp } from '../icons';
import { removeItem, increase, decrease } from '../features/cart/cartSlice';
import { useDispatch } from 'react-redux';
// go to the CartContainer and import this file
const CartItem = ({id, title, price, img, amount}) => {
// so we destruc... |
#pragma once
#include "pch.h"
namespace SDKSample
{
namespace BluetoothGattHeartRate
{
public ref class HeartRateMeasurement sealed
{
public:
property uint16 HeartRateValue
{
uint16 get()
{
return heartRateVal... |
package com.hcmute.yourtours.factories.rule_home_categories;
import com.hcmute.yourtours.entities.RuleHomeCategoriesCommand;
import com.hcmute.yourtours.exceptions.YourToursErrorCode;
import com.hcmute.yourtours.libs.exceptions.InvalidException;
import com.hcmute.yourtours.libs.factory.BasePersistDataFactory;
import c... |
import { useState } from "react";
import { useAppDispatch } from "../../helper/reduxHooks";
import { RoomUsers, Users } from "../../pages/group";
import { startGroupChat } from "../../services/chat";
import { modalActions } from "../../store/reducer/modalSlice";
interface Props {
users: UserInfo[];
}
interface User... |
---
bookHidden: false
bookSearchExclude: false
weight: 20
title: "M4 Reserving Claim Amounts"
subtitle: "Topics in Insurance, Risk, and Finance [^1]"
author: "Professor Benjamin Avanzi"
institute: |
{width=1.2in}
date: '27 August 2023'
output:
beamer_p... |
import { Component, createSignal, For, Show } from 'solid-js';
import { MoreIcon } from '../../icons/MoreIcon';
import { DropDownItem, DropDownItemProps } from './DropDownItem';
import styles from './index.module.css';
interface DropDownProps {
align?: 'left' | 'right';
items: DropDownItemProps[];
}
export const Dr... |
import { html } from '../lib.js';
import { register } from '../data/auth.js';
import { createSubmitHandler } from '../utils.js';
// TODO change with actual view
export const registerTemplate = (onRegister) => html`
<section id="register-page" class="content auth">
<form id="register" @submit=${onRegister}>
... |
import { Component, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
/**
* 共通メッセージダイアログ Component
*/
@Component({
selector: 'app-message-dialog',
templateUrl: './message-dialog.component.html',
styleUrls: ['./message-dialog.component.scss'],
})
expo... |
/**
* Portfolio component
*
* Highlights some of your creations. These can be designs, websites,
* open source contributions, articles you've written and more.
*
* This is a great area for you to to continually add to and refine
* as you continue to learn and create.
*/
import React from "react";
/**
* Desk... |
package org.nextprot.parser.ensg
import org.scalatest.FlatSpec
import org.scalatest.Matchers
import scala.xml.NodeSeq
/**
* Created by fnikitin on 18/06/15.
*/
class ENSGUtilsTest extends FlatSpec with Matchers {
val xml =
<entry created="2007-02-20" dataset="Swiss-Prot" modified="2015-04-29" version="91">
... |
import { VariantProps, tv } from 'tailwind-variants'
import { PasswordInput } from './PasswordInput'
import { SelectItem } from 'src/types/select'
import { Spinner } from '..'
import { MaskInput } from './MaskInput'
const labelStyle = tv({
base: 'block font-semibold',
variants: {
theme: {
dark: 'text-dar... |
import {
Card,
CardHeader,
CardBody,
Typography,
Avatar,
Chip,
Tooltip,
Progress,
} from "@material-tailwind/react";
import { EllipsisVerticalIcon } from "@heroicons/react/24/outline";
import { authorsTableData, projectsTableData } from "@/data";
import { useEffect, useState } from "react";
export func... |
#include <iostream>
#include <Box2d/Box2d.h>
int main(){
//Creación del mundo y de la gravedad
b2Vec2 gravity(0.0f,-24.79);
b2World world(gravity);
//Características del cuerpo
b2BodyDef groundBodyDef;
groundBodyDef.position.Set(0.0f,-10.0f);
//Creamos el cuerpo, osea el piso
b2Body* ... |
import React from 'react';
import { tribeca, workSans } from '../../../utils/fonts';
import styles from './news-item.module.css';
interface Inews {
text: string;
header: string;
created: string;
}
export default function NewsItem({
news,
image,
index,
last,
}: {
news: Inews;
image?: string | null;
... |
import java.util.*;
class lab
{
static int partition(int arr[], int low, int high)
{
int pivot = arr[high];
System.out.println("---------------------");
System.out.println("Pivot element is :- "+pivot);
int i = (low-1);
for (int j=low; j<high; j++)
{
if (arr[j] < pivot)
{
... |
'''
@FileName :最小二乘回归.py
@Description:
@Date :2022/08/22 21:54:03
@Author :daito
@Website :Https://github.com/zhd5120153951
@Copyright :daito
@License :None
@version :1.0
@Email :2462491568@qq.com
@PS :
'''
#数据生成
import numpy as np
#随机数
np.random.seed(1234)
x = np.random.rand(500, 3)
... |
package Exersicis;
import java.util.Scanner;
public class tresenraya_matrius {
static Scanner scan = new Scanner(System.in);
public static void main(String[] args) {
jugar();
}
// Metode on comença el joc
public static void jugar() {
// Representem els jugadors i el valor buit
... |
import { updateProfileData } from '../services/updateProfileData/updateProfileData'
import { type ProfileSchema } from '../types/EditablePofileCardSchema'
import { profileActions, profileReducer } from './profileSlice'
import { Country } from '@/entities/Country'
import { Currency } from '@/entities/Currency'
import { ... |
/**
* Copyright (C) 2021 THL A29 Limited, a Tencent company.
*
* 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... |
package com.nancal.api.utils;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.nancal.common.constants.Constant;
import com.nancal.common.enums.ErrorCode;
import com.nancal.common.exception.ServiceException;
import com.nancal.remote.servi... |
#import
## batteries
import os,sys
## 3rd party
import numpy as np
from SIPSim_pymix import mixture
class Fractions(object):
"""Simulated gradient fractions based on theoretical min-max of BD
incorporation. Fraction size distribution is normal with user-defined
params.
"""
def __init__(self, dist... |
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe User::Sso::CreateOrUpdateUser, type: :actor do
subject(:actor) { described_class.result(identity:, email:) }
let(:identity) { build(:identity, user: nil) }
let(:email) { Faker::Internet.email }
describe '.result' do
it { is_expected.to b... |
import { ChangeEvent, useEffect, useState } from "react";
import { useNavigate, useOutletContext, useParams } from "react-router-dom";
import { GenreData } from "./Genre.type";
import { Check, EditMovieResponse } from "./EditMovie.type";
import { MovieData } from "./Movie.type";
import { ErrorResponse } from "./Error.... |
import 'package:efood_multivendor_restaurant/controller/auth_controller.dart';
import 'package:efood_multivendor_restaurant/controller/order_controller.dart';
import 'package:efood_multivendor_restaurant/util/dimensions.dart';
import 'package:efood_multivendor_restaurant/view/base/custom_app_bar.dart';
import 'package:... |
"use client";
import { useMutation } from "@tanstack/react-query";
import { useForm } from "react-hook-form";
import { httpPost } from "@/lib/axios/services";
interface LoginFormProps {
onLogin: () => void; // You can pass additional parameters for login if needed
}
interface LoginFormData {
email: string;
passw... |
<?php
namespace app\controllers;
use Yii;
use app\models\SchoolClass;
use app\models\SchoolClassSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use app\models\Model;
/**
* SchoolClassController implements the CRUD actions for SchoolClass model.
*/
class SchoolClassCon... |
<template>
<v-container>
<v-form
@submit.prevent="signup"
>
<v-text-field
v-model="form.name"
type="text"
label="Name"
required
></v-text-field>
<span class="red--text" v-if="errors.name">... |
import 'package:flutter/material.dart';
class Result extends StatelessWidget {
final int resultScore;
final Function resetHandler;
Result(this.resultScore, this.resetHandler);
String get resultPhrase {
String resultText;
if (resultScore <= 8) {
resultText = 'You are awesome and innoenct';
}... |
package org.sopt.santamanitto.room.network
import org.sopt.santamanitto.room.create.network.CreateRoomRequestModel
import org.sopt.santamanitto.room.create.network.CreateRoomModel
import org.sopt.santamanitto.room.create.network.ModifyRoomRequestModel
import org.sopt.santamanitto.room.data.PersonalRoomModel
import org... |
import axios from 'axios';
import { ApiResponse, Langs, Methods } from './@types';
import { SubscribeParams, defaultSubscribeParams } from './@types/subscribe-params.interface';
export class UnisenderAPI {
private api_key: string;
private lang: Langs;
private timeout: number;
private api_url: string;
constr... |
import { Injectable } from '@angular/core';
import { Actions, createEffect, ofType } from '@ngrx/effects';
import * as clientsActions from '../actions/clientes.actions';
import { mergeMap, map, catchError } from 'rxjs/operators';
import { ClientsService } from '../../services/clients.service';
import { of } from 'rxjs'... |
/*
! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com
*/
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
*,
::before,
... |
import React, { useMemo } from 'react';
import { Redirect, RouteComponentProps } from 'react-router';
import { Route, Switch } from 'react-router-dom';
import { WelcomeHeader, welcomeHeaderSteps } from '../common/WelcomeHeader';
import { Registration } from '../Registration';
import { Packages } from '../Packages';
im... |
'use client';
import Link from 'next/link';
import Image from 'next/image';
import React from 'react';
import { useState, useEffect } from 'react';
import { useInView } from 'react-intersection-observer';
import { AiFillYoutube, AiOutlineInstagram } from 'react-icons/ai';
import { SiWetransfer } from 'react-icons/si';
... |
<script>
import { computed } from 'vue';
export default {
props: {
matched: {
type: Boolean,
default: false,
},
position: {
type: Number,
required: true,
},
value: {
type: String,
required: true,
},
visible: {
type: Boolean,
default: false,
... |
<?php
/*
* Pagina para registrar personas con un formulario
* que comprueba que todo este correcto. Si esta bien envia
* a la página success.php, en caso contrario vuelve a printar
* el formulario, mostrando donde esta el error
*/
?>
<?php session_start(); ?>
<?php //require_once('insert.php'); ?>
<?php require_... |
/* eslint-disable react/prop-types */
import "./userProfile.css";
import img from "../../../assets/images/drake.jpg";
import { AiOutlineArrowRight } from "react-icons/ai";
import { useTranslation } from "react-i18next";
function UserProfile({ infoActive, setInfoActive, setInfo }) {
const toggleInfo = (e) => {
e... |
import React from 'react';
import '../styles/Exchanges.css';
import { Link } from 'react-router-dom';
const demoImage =
"http://coinrevolution.com/wp-content/uploads/2020/06/cryptonews.jpg";
const ExchCard = ({exchange}) => {
return (
<Link to={exchange.coinrankingUrl} target='blank'>
<div className="ex... |
package org.owasp.wrongsecrets.challenges.docker;
import org.owasp.wrongsecrets.challenges.Challenge;
import org.owasp.wrongsecrets.challenges.Spoiler;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/** This challenge is about having a secrets stored as a D... |
= u2ug: UUID to Ubisoft game
ifdef::env-github[]
:tip-caption: :bulb:
:note-caption: :information_source:
:important-caption: :heavy_exclamation_mark:
:caution-caption: :fire:
:warning-caption: :warning:
endif::[]
ifndef::env-github[]
:icons: font
endif::[]
image:https://github.com/ncomet/u2ug/actions/workflows/go.yml... |
<?php
namespace app\modules\salers\models;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\modules\salers\models\SaleItem;
/**
* SaleItemSearch represents the model behind the search form of `app\modules\salers\models\SaleItem`.
*/
class SaleItemSearch extends SaleItem
{
/**
* {@inheritdoc}
... |
import {useJsApiLoader, GoogleMap, MarkerF, DirectionsRenderer} from '@react-google-maps/api';
import { useEffect, useRef, useState } from 'react'
const center = { lat: 59.105890, lng: -102.005848}
const provinces = ["","Alberta", "British Columbia", "Manitoba", "New Brunswick", "Newfoundland and Labrador","Northwest... |
import { useState } from 'react'
import Proptypes from 'prop-types';
const titlePropTypes = {
text: Proptypes.string.isRequired,
}
const titleDefaultTypes = {
text: 'teste',
}
interface ITtitle {
text?: string;
}
function Title({ text }: ITtitle) {
return <h1>{text}</h1>
}
// Title.propTypes = titlePropTyp... |
// Copyright (c) 2022-2023 Mikołaj Kuranowski
// SPDX-License-Identifier: WTFPL
import { linesFromFile } from "./core.ts";
export type Operation = {
a: string;
b: string;
op: string;
};
export type Node = Operation | number;
export class Calculator {
cache: Map<string, number> = new Map();
cons... |
"use strict"
document.addEventListener("DOMContentLoaded", function () {
const form = document.getElementById('form');
form.addEventListener('submit', formSend);
async function formSend(e) {
e.preventDefault();
let error = formValidate(form);
let formData = new FormData(form);
... |
<!DOCTYPE html>
<html lang="en">
<link rel="icon" href="images/bluestore.png">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">... |
package com.company.CarePackage;
/**
* Imports
*/
import java.io.File;
import java.util.List;
/**
* Packages
*/
import com.company.Tank;
import com.company.Obstacles.Tile;
import com.company.TextureReference;
import javax.imageio.ImageIO;
/**
* Health class
* <p>This class inherits from the super class 'CareP... |
<!DOCTYPE html>
<html>
<head>
<!-- ***** Link To Custom CSS Style sheet ***** -->
<link rel="stylesheet" type="text/css" href="style.css">
<!-- ***** Link To Font Awsome Icons ***** -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"/>
<!-- **... |
# 布艺 js 集团控股物业
> 原文:[https://www . geesforgeks . org/fabric-js-group-has controls-property/](https://www.geeksforgeeks.org/fabric-js-group-hascontrols-property/)
下面的文章介绍了如何使用 **Fabric.js** 设置画布的**组**的 **hasControls** 。Fabric.js 中的组是可移动的,可以根据需要拉伸。此外,当涉及到初始笔画颜色、高度、宽度、填充颜色或笔画宽度时,可以自定义该组。
为了实现这一点,我们将使用一个名为 **Fabric.js**... |
```c
/**
* zs_create_pool - Creates an allocation pool to work from.
* @name: pool name to be created
*
* This function must be called before anything when using
* the zsmalloc allocator.
*
* On success, a pointer to the newly created pool is returned,
* otherwise NULL.
*/
struct zs_pool *zs_create_pool(const ... |
import threading
import random
from typing import List
from media import Media
class Playlist:
def __init__(self, name: str, repeat: bool = False, shuffle: bool = False):
self.__name: str = name
self.__medias: List[Media] = []
self.__repeat: bool = repeat
self.__shuffle: bool = shu... |
import logging
from datetime import datetime
from typing import ClassVar, Dict, Optional, List, Type
from attr import define, field
from fix_plugin_gcp.gcp_client import GcpApiSpec
from fix_plugin_gcp.resources.base import GcpResource, GcpDeprecationStatus, GraphBuilder
from fix_plugin_gcp.resources.compute import Gc... |
<template>
<main class="search-bar">
<div class="input-container">
<input
class="input"
:class="{ 'search-active': isActive }"
type="text"
v-model="search"
placeholder="Search..."
/>
<button
@click="closeSearchBar"
class="close-search-btn b... |
package unsafe_test
import (
"testing"
"unsafe"
)
func TestUnsafePointer(t *testing.T) {
var a int
var s string
var f float64
t.Logf("a = %q, &a = %p", a, unsafe.Pointer(&a))
t.Logf("s = %q, &s = %p", s, unsafe.Pointer(&s))
t.Logf("f = %v, &f = %p", f, unsafe.Pointer(&f))
}
func TestUnsafePointer2(t *testing... |
from django.test import TestCase
from ...forms import EmergencySituationEnquiryForm
class EmergencySituationFormTestCase(TestCase):
def setUp(self):
self.test_form_dict = {
"full_name": "John Enquirytest",
"company_name": "John Company",
"company_post_code": "te51in",
... |
from django.contrib.auth import get_user_model
from rest_framework import serializers
from .models import UserSettings
User = get_user_model()
class UserSettingsSerializer(serializers.ModelSerializer):
"""
Serializer for UserSetting model to convert it to JSON representation
"""
# related field whe... |
import Card from "assets/components/Card";
import Loading from "assets/components/Loading";
import { loadingURL } from "assets/functions/loadingURL";
import FieldInput from "pages/Home/FieldInpunt";
import { useEffect, useState } from "react";
import Filter from "./Filter";
import styles from "./Home.module.scss";
con... |
import User, { Medication } from "../repositories/models/user";
import {
AddMedicationRequestBody,
UpdateMedicationDetailsRequestBody,
} from "../routes/models/requests/requestBodies";
export const getMedicationList = async (id: string): Promise<Medication[]> => {
try {
const user = await User.findById(id);
... |
#ifndef BOARD_H
#define BOARD_H
#include <iostream>
#include <string>
#include <vector>
const int BOARD_SIZE = 8;
const int TOTAL_SIZE = 64;
class Board;
class Position;
class GameEngine;
namespace printColor
{
const std::string RESET_COLOR = {"\033[0m"};
const std::string RED = {"\033[31;1m"};
const st... |
import React from 'react';
import { useAppDispatch } from '../../../../Redux/app.hook/app.hook';
import { Link, useNavigate } from 'react-router-dom';
import { Button, Checkbox, Col, Form, Input, Row, message, Image } from 'antd';
// import './LoginClient.css';
import { loginClientActions } from '../../../../Redux/Acti... |
class ArmstrongNumbers {
// check a number to see whether it is an armstrong (aka narcissistic) number
bool isArmstrongNumber(String noom){
// track the total
BigInt total = BigInt.from(0);
// separate the number into digit lists
List<String> digits = noom.split('');
// for loop that par... |
const mongoose = require('mongoose')
const validator = require('validator');
const userSchema = new mongoose.Schema({
email_address: {
type: String,
required: [true, 'Email is Required'],
unique: true, // to check if the given mail id already exists in database or not
validate: [val... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Set_worker_from_csv extends CI_Model {
public $variable;
public function __construct()
{
parent::__construct();
}
/**
* CSVファイルより営業マンのログイン情報を読み込みます。
*
* あらかじめ所定の位置に配置したCSVファイルより
* 営業マンの所属情報、社員番号、氏名、メルアドを取得。
* パスワードをここ... |
import { useEffect, useRef } from "react";
import "./App.css";
import {
AboutMe,
ContactMe,
NavigationBar,
Projects,
Skills,
Summary,
} from "./components";
const App = () => {
const summaryRef = useRef();
const skillRef = useRef();
const aboutMeRef = useRef();
const projectsRef = useRef();
const... |
package com.majou.composelearning
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.... |
updateProgramChanges <- function(input, output, session, values) {
observe({
# ttt_to_update is a safe version of currentlySelectedTTT
ttt_to_update <- ifelse(
is.null(input$currentlySelectedTTT),
1,
as.integer(input$currentlySelectedTTT)
)
# Use ttt_to_update to get the specifications ... |
import { parseBytes32String } from "@ethersproject/strings";
import { Currency, Ether, NativeCurrency, Token } from "@uniswap/sdk-core";
import { arrayify } from "@ethersproject/bytes";
import { useMemo } from "react";
import {
useAllLists,
useCombinedActiveList,
useInactiveListUrls,
} from "../state/glists/hooks... |
package Treex::PML::Backend::PMLTransform;
use vars qw($VERSION);
BEGIN {
$VERSION='2.16'; # version template
}
use Treex::PML::Backend::PML qw(open_backend close_backend read write);
sub test {
local $Treex::PML::Backend::PML::TRANSFORM=1;
return &Treex::PML::Backend::PML::test;
}
1;
=pod
=head1 NAME
Tree... |
import { React, useState } from 'react';
import { StyleSheet, Text, View, Dimensions, ScrollView, Image } from "react-native";
import { globalColors } from "../colors";
import {TouchableOpacity } from 'react-native-gesture-handler';
import { useNavigation } from '@react-navigation/native';
import BottomBar from '../com... |
use super::*;
/// Geta user from the db.
pub async fn get_user(pool: &DbPool, username: &Username) -> DbResult<Option<User>> {
trace!("get_user called w username: {username}");
sqlx::query_as!(
User,
"SELECT username,
password_hash,
reset_password_token as \"reset_password_token: ... |
#ifndef SEEN_SP_CANVAS_H
#define SEEN_SP_CANVAS_H
/**
* @file
* SPCanvas, SPCanvasBuf.
*/
/*
* Authors:
* Federico Mena <federico@nuclecu.unam.mx>
* Raph Levien <raph@gimp.org>
* Lauris Kaplinski <lauris@kaplinski.com>
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 1998 The Free Software Foundatio... |
// Libraries for Ethernet connection.
#include <SPI.h>
#include <Ethernet.h>
// Libraries for temperature sensors (need to implement).
#include <OneWire.h>
#include <DallasTemperature.h>
// Pins for making heating and cooling requests.
#define HEATREQUEST 31
#define COOLREQUEST 35
// Pins on which the sound sensors ... |
{% extends 'my_info/base.html' %}
{% load static %}
{% block content %}
<div class="admin-content">
<div class="admin-content-body">
<div class="am-cf am-padding am-padding-bottom-0">
<div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">个人资料</strong> /
... |
Public and private keys
The public key, we use for encrypt a message and we can see this message with the private key.
We only can share the public key for other person could code a message and see with private key.
When we make a git push we must put the name of user and password (protocol https) and can be hack, th... |
"""Count the number of people who are online.
Author: Dr. Jake Rosenzweig
Date: 2023-10-31, Happy Halloween!
Challenge: Online Status
Difficulty: 2/10
URL: https://pythonprinciples.com/challenges/Online-status/
The aim of this challenge is, given a dictionary of people's online status,
to count the number of people ... |
import { Request, Response } from "express";
import { UserDatabase } from "../../data/user/userDatabase";
import { User } from "../../entities/users/users";
import { HashManager } from "../../services/HashManager";
import { idGenerator } from "../../services/idGenerator";
import { jsonWebToken } from "../../services/Js... |
from __future__ import annotations
import logging
from typing import cast
from collections.abc import Callable
from parsec import (
Parser,
string,
regex,
optional,
end_of_line,
times,
any,
many,
one_of,
sepBy,
between,
joint,
separated,
try_choices_longest,
... |
import React from "react";
import { connect } from 'react-redux'
import { browserHistory } from 'react-router';
import * as UsersActions from "redux/actions/users";
import * as AlertsActions from "redux/actions/alerts";
import {UserEditForm} from "./UserEditForm";
const mapDispatchToProps = (dispatch) => {
return {
... |
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleap... |
// OLED uses libraries from Arduino
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include "ThingSpeak.h" // always include thingspeak header file after other header files and custom macros
#include <WiFi.h>
#include "time.h"
#include "esp_wpa2.h"
#define SCREEN_WIDTH 128 /... |
import express from "express";
import ensureAuth from "../../middlewares/ensureAuth.js";
import {
acceptAllUserRequestsController,
addPassengerCommentController,
assignUserToRideController,
completePassengerParticipationController,
createRideController,
createRideRequestController,
deleteAllUserRidesController,
... |
using OfficeOpenXml;
using OfficeOpenXml.Style;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExcelCleanerNet45
{
public delegate bool IsSummaryCell(ExcelRange cell);
/// <summary>
/// Implementation of IFormulaGenerator th... |
(ns clj-site.core
(:use clj-site.util
markdown.core
hiccup.core)
(:gen-class))
(def ^:dynamic *separator* java.io.File/separatorChar)
(def ^:dynamic *title-prefix* "#title:")
(def ^:dynamic *layout-prefix* "#layout:")
(defn- index-of [e coll]
(first (keep-indexed #(if (= e %2) %1) coll)))
(defn... |
"use client";
import { useParams } from "next/navigation";
import { BsTwitter } from "react-icons/bs";
import { BiLogoInstagram } from "react-icons/bi";
import { BsFacebook } from "react-icons/bs";
import data from "../../../data";
import Image from "next/image";
import Link from "next/link";
const InstructorDetails =... |
//
// ContentView.swift
// WordScramble
//
// Created by Waihon Yew on 31/05/2021.
//
import SwiftUI
struct ContentView: View {
@State private var usedWords = [String]()
@State private var rootWord = ""
@State private var newWord = ""
@State private var errorTitle = ""
@State private var errorMessage ... |
<script setup>
import { computed, onMounted, ref } from 'vue';
import { useRouter } from 'vue-router';
import { useToast } from "vue-toastification";
import { useUserStore } from './stores/user.js';
import { useTransactionsStore } from './stores/transactions.js'
const toast = useToast();
const userStore = useUserStore... |
# TCP Server Side
import socket
# Get IP Address of host Dynamically
print(socket.gethostname()) #hostname
print(socket.gethostbyname(socket.gethostname())) #ip of the given hostname
#ip_address = ("123.144.199.10",12224)
port_num = 12224
# Create a server side socket using IPV4 (AF_INET) and TCP (SOCK_STREAM)
server... |
# 9-3 求不同形态二叉树
# 题目描述:
在众多的数据结构中,二叉树是一种特殊而重要的结构,有着广泛的应用。二叉树或者是一个结点,或者有且仅有一个结点为二叉树的根,其余结点被分成两个互不相交的子集,一个作为左子集,另一个作为右子集,每个子集又是一个二叉树。
遍历一棵二叉树就是按某条搜索路径巡访其中每个结点,使得每个结点均被访问一次,而且仅被访问一次。最常使用的有三种遍历的方式:
- 前序遍历:若二叉树为空,则空操作;否则先访问根结点,接着前序遍历左子树,最后再前序遍历右子树。
- 中序遍历:若二叉树为空,则空操作;否则先中序遍历左子树,接着访问根结点,最后再前中遍历右子树。
- 后序遍历:若二叉树为空,则空操作;否则先... |
//
// 25.TransitionBasic.swift
// Jacob's SwiftUI Basic1
//
// Created by Koo on 2023/04/10.
//
import SwiftUI
struct TransitionBasic: View {
//property
@State var condition :Bool = false
var body: some View {
ZStack(alignment: .bottom) {
VStack {
Button {
... |
/*******************************************************************************
* CGoGN: Combinatorial and Geometric modeling with Generic N-dimensional Maps *
* version 0.1 *
* Copyright (C) 2009-2012, IGG Team, LSIIT, University of Strasbourg ... |
<?php
namespace PartKeepr\ProjectAttachment;
use PartKeepr\Util\Singleton,
PartKeepr\Project\Project,
PartKeepr\PartKeepr;
class ProjectAttachmentManager extends Singleton {
/**
* Returns a list of project attachments
*
* @param int $start Start of the list, default 0
* @param int $limit Number of users to... |
'use client';
import useQueryParams from '@hooks/useQueryParams';
import type { ITVDetails } from '@app/types/tv-types';
import { Button } from '@ui/button';
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectTrigger,
SelectValue,
} from '@ui/select';
import { ArrowDownUp, Loader } from 'lucide... |
# tb-auto-sign-up
百度贴吧自动签到
本项目使用linux服务器的定时任务+Python实现百度贴吧每日自动签到,并将签到报告发送到邮箱
#### 克隆本项目:
```bash
https://github.com/SodiumNya/tb-auto-sign-up.git
```
#### 也许你需要安装依赖, 那么本项目应该仅需要以下三个库:
```bash
pip install requests
pip install yagmail
pip install BeautifulSoup4
```
#### 其他问题可尝试自己解决或联系我sodiumnya@gmail.com
#### 依... |
// Copyright 2023 RisingWave Labs
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... |
<nav class="navbar navbar-expand navbar-light fixed-top bg-white shadow">
<div class="container d-flex justify-content-between align-items-center">
<a routerLink="">
<img
src="https://img.freepik.com/premium-vector/abstract-vector-construction-dimensional-low-poly-design-background-innovation-techno... |
#include<bits/stdc++.h>
using namespace std;
const int N = 1e5+8;
vector<int> adj[N];
bool visited [N];
void dfs(int u )
{
visited[u] = true;
cout<<u<<" ";
for(int v : adj[u])
{
if(visited[v]) continue;
dfs(v);
}
}
int main()
{
int n, m ;
cin >> n >> m ;
for(int i = 1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.