摘要:
vscode插件离线安装的方法 背景 因为在公司内网无法联网安装vscode插件,同时从官网下载visx安装失败,好像存在一个关联关系,于是就只能在外面买电脑提前安装好所有的插件,然后找到对应的目录,直接整个目录拷贝过来. 方法 先在可以联网的电脑上下载好插件 找到已安装的插件列表文件:路径一般为 阅读全文
2024年1月15日 #
摘要:
dotnet 如何切换版本 打开命令行工具,输入dotnet --list-sdks,查看当前安装的dotnet版本。 输入dotnet new globaljson --sdk-version <version>,其中是您想要使用的dotnet版本号,创建一个global.json文件,指定dot 阅读全文
2024年1月10日 #
摘要:
写好简历 写好简历,是重要的一个环节,简历写的好,会直接增加面试邀约的机会,机会多, 成功的概率才会大一些。 简历是写给谁看的? 写简历之前,我们要思考简历是给谁看的, 他们的立场是什么,对什么感兴趣。只有把这个分析透了才能写出好的简历。 一般公司在招聘的时候,HR 会在招聘网上根据公司的用人要求来 阅读全文
2024年1月9日 #
摘要:
# hangfire使用 using System; using Hangfire; using Hangfire.SqlServer; using Hangfire.Storage.SQLite; namespace ConsoleApplication2 { class Program { st 阅读全文
2024年1月7日 #
摘要:
电脑安装了多个dotnet版本,该如何进行切换 使用 global.json 文件指定要使用的版本。您可以使用以下命令创建 global.json 文件:dotnet new globaljson --sdk-version <version> --force。该文件将存储在当前项目SDK版本的文件 阅读全文
摘要:
如何使用数据库 创建DataContext.cs using Microsoft.EntityFrameworkCore; using PokemonReviewApp.Models; namespace PokemonReviewApp.Data { public class DataContex 阅读全文
摘要:
切换到sqlite数据库 using Microsoft.EntityFrameworkCore; var builder = WebApplication.CreateBuilder(args); builder.Services.AddDbContext<DataContext>(options 阅读全文
摘要:
GameStore.Api/Dtos.cs using System.ComponentModel.DataAnnotations; namespace GameStore.Api.Dtos; public record GameDto(int Id, string Name, string Gen 阅读全文
摘要:
原先的模式 GamesEndpoints.cs public static class GamesEndpoints { public static RouteGroupBuilder MapGamesEndpoints(this IEndpointRouteBuilder endpoints) { 阅读全文
摘要:
dotnet ef migrations add InitialCreate --output-dir Data/Migrations dotnet ef database update 阅读全文
摘要:
接口的扩展方法 定义 当我们在C#中定义接口时,有时候我们希望为接口添加一些额外的方法,但是我们又不想修改接口本身。这时,接口的扩展方法就派上用场了。 接口的扩展方法允许我们在不改变接口定义的情况下,为接口添加新的方法。这些方法可以像实例方法一样调用,但实际上它们是静态方法。 例子 假设我们有一个接 阅读全文
摘要:
generate assets for build and dbug 阅读全文
2023年12月20日 #
摘要:
0. 安装插件(@vitejs/plugin-vue-jsx) vite官方提供了官方的插件来支持在vue3中使用jsx/tsx,直接安装就行。 yarn add @vitejs/plugin-vue-jsx -D 安装完之后在vite.config.ts中插入一下代码 import vueJsx 阅读全文
2023年12月18日 #
摘要:
双网卡 内网外网 两个网络 同时连接 情况描述: Windows10 电脑,支持双网卡工作 工作内网,外网,需要同时使用,而不是切换网络 以太网 + wifi 的形式,至于哪个是外网哪个是内网没有特定规定 内网信息: 外网信息: 操作步骤 管理员权限打开 CMD 删除默认路由前先查看一下当前路由表, 阅读全文
2023年12月16日 #
摘要:
Babylon.js中ArcRotateCamera attachControl(noPreventDefault?: boolean): void; noPreventDefault: 布尔值,如果为true,则不会阻止默认的鼠标事件。默认值为false。 attachControl(ignore 阅读全文
摘要:
帮我写一个python程序遍历文件夹下所有的压缩文件,如zip rar 7z结尾的文件等等 当然可以!以下是一个Python程序,它可以遍历指定文件夹下的所有压缩文件,如zip、rar、7z等等。你可以根据需要修改代码中的路径和文件类型。请注意,这个程序需要安装第三方库patool和pyunpack 阅读全文
2023年12月10日 #
摘要:
pyqt_login-master/main.py import sys from PyQt6 import QtGui, QtWidgets from PyQt6.QtWidgets import QMainWindow, QMessageBox from Windows import login 阅读全文
2023年11月21日 #
摘要:
100+学习的编程网站_国外篇 1. BitDegree BitDegree is a blockchain-powered learning platform offering various free and paid courses on crypto and digital skills, 阅读全文
摘要:
python fastapi schema和model的区别 To avoid confusion between the SQLAlchemy models and the Pydantic models, we will have the file model...... 来自 fastapi 阅读全文
摘要:
macOS 如何设置 .sh 文件能够双击运行 一、如何实现双击运行 例如写了一个 test.sh 脚本文件 修改后缀名,把test.sh 把名字改为 test.command 添加其可执行的属性 chmod +x test.command 二、将执行目录定位到该执行文件的目录 这样双击是能打开的, 阅读全文
2023年11月20日 #
摘要:
mac linux 将文件玩隐藏到图片中 隐藏 有一个图像文件 image.jpg ,以及一个叫做 secret.zip 的文件,其包含有加密信息,也是我们将要嵌入到 image.jpg 中的文件。 最终,我将使用 cat 命令将 secret.zip 文件与图像文件 (image.jpg) 复合在 阅读全文
2023年11月13日 #
摘要:
mac node 卸载 如果是通过source或者binaries 方式安装 Nodejs , 需要手动删除 Node executables和其他resources, 另外就是使用 Homebrew的方法 、nvm 方法 。 1. 手动方法: 需要按如下步骤卸载node + npm : 从/usr 阅读全文
摘要:
npm的配置文件,及其路径问题 如何快捷修改.npmrc配置文件? .npmrc文件,就是npm的配置文件所在位置。 当然,寻找这个文件的目的,多数是为了修改.npmrc文件内容。 但npm提供了方便快捷的修改方式,不知道这个文件的位置,其实也是可以修改的。 .npmrc配置文件在哪里? 如果你还是 阅读全文
摘要:
MacOS 安装 NodeJS 配置全局安装路径 a. 输入以下命令,创建一个用于存储全局安装的文件夹(例如,/usr/local/lib/npm): sudo mkdir -p /usr/local/lib/npm 这将创建一个名为 npm 的文件夹,并将其放置在 /usr/local/lib 目 阅读全文
2023年11月5日 #
摘要:
event source backend # -*- coding: utf-8 -*- # 这段代码是使用FastAPI框架创建一个简单的服务器端事件(Server-Sent Events,SSE)的示例。以下是对代码的详细解析: # 1. `import json, random, ...`:这 阅读全文
2023年10月26日 #
摘要:
一、下载 Node.js Node.js 下载地址:nodejs.org/en/download… 选择 Windows 二进制文件 (.zip) 这个版本进行下载,选择适合电脑配置的 64 位或者 32 位。 二、配置 npm 安装目录 新版的Node.js已自带npm,就在Node.js下载完成 阅读全文
2023年10月19日 #
摘要:
gasp动画控制相机的位置变换 关键代码threejs/Cameras.ts //通过gsap 动画移动相机,从而实现看似物体在运动的效果 // 1.添加动画 private changePerspectiveCameraPosition() { // 添加一个动画 gsap.to(this.per 阅读全文
2023年10月11日 #
摘要:
插件推荐网址 https://duckly.com/blog/best-plugins-for-rider-2022/ https://www.josephguadagno.net/2022/06/23/my-jetbrains-rider-plugins-june-2022-edition 阅读全文
2023年10月10日 #
摘要:
" = Extensions Plug 'tpope/vim-surround' Plug 'preservim/nerdtree' " = Basic settings set clipboard+=unnamed set ignorecase set scrolloff=30 set histo 阅读全文
2023年9月23日 #
摘要:
keybindings.json // Place your key bindings in this file to override the defaultsauto[] [ // terminal // 切换到terminal终端 { "key": "ctrl+,", "command": " 阅读全文
2023年9月21日 #
摘要:
React的todolist的拆分项目 TodoList.jsx import Todo from "./Todo" export default function TodoList({ todos, toggleTodo, deleteTodo }) { return <> <ul> { todo 阅读全文
摘要:
React的todolist src/main.jsx import React from 'react' import ReactDOM from 'react-dom/client' import App from './App.jsx' import './index.css' ReactDO 阅读全文
摘要:
C#获取当前的类名,函数,命名空间 dotnet 命令行创建项目 dotnet new console -n <项目名称> dotnet new console -n LogOut Program.cs using LogOut.Utils; var res = Calculator.Add(20, 阅读全文
2023年9月17日 #
摘要:
react todo list todolist/src/main.jsx import React from 'react' import ReactDOM from 'react-dom/client' import App from './App.jsx' import './index.cs 阅读全文
2023年9月12日 #
摘要:
安装支持 GPU 版本的 Pytorch 首先安装 ultraytics python -m venv venv source venv/Scripts/activate pip install ultralytics python main.py 首先安装上面的 ultralytics,但是无法调 阅读全文
摘要:
CUDA 安装教程(手把手) 一、简单了解 CUDA 与 CUDNN 1、什么是 CUDA CUDA(ComputeUnified Device Architecture),是显卡厂商 NVIDIA 推出的运算平台。CUDA 是一种由 NVIDIA 推出的通用并行计算架构,该架构使 GPU 能够解决 阅读全文
2023年9月8日 #
摘要:
# `F:\song_csharp\MagicVilla_API-master\MagicVilla_VillaAPI\MappingConfig.cs` ```cs using AutoMapper; using MagicVilla_VillaAPI.Models; using MagicVi 阅读全文
摘要:
# C# 定时器 ```cs using System.Timers; internal class Program { private static DateTime startTime; private static void Main(string[] args) { // 定义一个变量来存储 阅读全文
2023年9月7日 #
摘要:
# `YOLO v8 on mac m1/classes.txt` ```txt person bicycle car motorbike airplane bus train truck boat traffic light fire hydrant stop sign parking meter 阅读全文
2023年9月5日 #
摘要:
# 0  # 1  # 2 ![img](./%E6%88%AA%E5%B1%8F202 阅读全文