ICode9

精准搜索请尝试: 精确搜索
  • 综合案例-黑马旅游网_邮件功能2022-08-24 19:30:32

    综合案例-黑马旅游网_邮件功能 为了保证用户填写的邮箱事正确的 将来可以推广一些宣传信息 到用户邮箱中 所有我们才需要邮件功能 发送邮件代码 package com.bai.util; import javax.mail.*; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessa

  • DataInput2022-08-24 19:02:01

    DataInput   /* * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.io; /** * The {@code DataInput} interface provides * for reading byte

  • FastApi学习2022-08-24 16:03:55

    vscode配置 插件 code runner在 setting.json中关于python的修改为,因为我使用了虚拟环境,得让vscode找到python的路径 "code-runner.executorMap": { "python": "$pythonPath -u $fullFileName" } 使其在Run In Terminal

  • 文件夹右键菜单增加“用vscode打开”2022-08-24 15:34:02

    windows文件右键菜单增加“用vscode打开” 1.创建一个txt文本文件 2.编辑文件内容 复制一下内容至该txt文件中 我的位置是D:\\software\\vscode\\Microsoft VS Code\\Code.exe 更换成安卓vscode的位置即可,记得将\更换为\\ Windows Registry Editor Version 5.00 [HKEY_CLASSES_RO

  • vs Code合并分支2022-08-24 13:31:07

    https://blog.csdn.net/lance_heart/article/details/119574202 前提: 首先有两个分支,一个是dev分支(本地开发分支),一个master分支(主分支)然后我们想要将其它分支合并到这个master分支去步骤 1、先把本地dev开发分支 更新后 把修改的内容 提交上去 2、把分支切换到本地的master分

  • copyleft2022-08-24 13:30:28

    Copyleft is the practice of granting the right to freely distribute and modify intellectual property with the requirement that the same rights be preserved in derivative works created from that property. Copyleft in the form of licenses can be used to mai

  • [Typescript] ts-expect-error2022-08-24 02:00:10

    In some ways // @ts-expect-error can act as a suppression comment, similar to // @ts-ignore. The difference is that // @ts-ignore will do nothing if the following line is error-free. For example: of course, "string" is not a number. but, when

  • Yii2 ElasticSearch aggregate (group)2022-08-23 14:04:35

    我想要统计的是 country_code 出现的次数,通过 yii2 的 ElasticSearch 扩展,上面的例子满足我的需要。业务场景:在 fecify 商城中,使用 elasticSearch 搜索,进行 aggregate group 操作,代码如下:   public function actionCountry(){ $size = 5000; $name = 'country_code';

  • C++Beginner(3)-Compile2022-08-22 22:30:32

    compiling source code file(.cpp,.cxx,.cc,.C,.c++) -> object files(.o,.obj) -> link object files together into an executable (app.exe, app), static library(.lib, .a), or dynamic library(.dll, .so) If any of the source code files changed, we recompile

  • OAuth2.0协议安全学习2022-08-22 10:03:02

    有一个问题困扰了很久很久,翻来覆去无法入眠,那就是OAuth2.0有什么安全问题啊? OAuth2.0是一种常用的授权框架,它使网站和 Web 应用程序能够请求对另一个应用程序上的用户帐户进行有限访问,在全世界都有广泛运用。 OAuth2.0简介 OAuth2.0是什么 OAuth2.0是授权的工业标准协议,该协议允许

  • 统计输入正数个数2022-08-19 22:00:27

        import java.util.*; public class Main { public static void main(String[] args) { int count = 0; Scanner scanner = new Scanner(System.in); //write your code here...... while(scanner.nextInt() > 0){ count++;

  • python激活2022-08-19 15:02:52

    Pycharm又过期了怎么办?   方法一:(亲测可用) 1、打开网址: lookdiv.com  2、在输入框输入钥匙:lookdiv.com 3、点击“获取激活码”按钮,获取激活码  4.激活后可以使用几个月的时间,到时候再重新激活即可  方法二:永久激活(网上转载,未尝试) 1.将下载的JetbrainsCrack-release-enc.j

  • js中的钩子(hook)机制2022-08-19 14:31:10

    注:代替if-else,switch-case,提高程序运行效率 hook机制也就是钩子机制,由表驱动实现,常用来处理多种特殊情况的处理 let list = { '1':'test1', '2':'test2', '3':'test3', '4':'test4', }

  • Markdown 包含其他文件静态渲染工具2022-08-19 09:33:58

    1. 前言 在 GitHub 上写文档,很多时候要插入 uml,像 mermaid 这种可以直接在 GitHub/GitLab 中渲染的一般直接写个 code block 进去,但是这样造成一个问题就是如果要放在多个文档中则必须复制多份。于是有个想法油然而生,用注释提供一种静态渲染的方式将代码、uml 这种在 Commit 之前

  • 算法---二分2022-08-18 22:31:05

        class Solution { public: int findPeakElement(vector<int>& nums) { // write code here //题目只需要求一个峰值即可,我门可以利用二分法+一直向峰值逼近的策略 int left =0; int right = nums.size()-1; while(left<

  • Markdown 写 PPT 是如何实现的?2022-08-18 19:03:52

    前言 Markdown 是一种轻量的标记语言,我们只需要写 md 格式文件,不必考虑文档的排版,被广泛用于博客写作,技术文档编写等,程序员们都热爱,但我们工作中除了写文档,有时候还需要汇报工作,技术分享等,需要用到 PPT,但设计 PPT 可能不是每个程序员所喜欢的,所以我们可以使用一个非常好用的工具

  • pgsql存储函数简单使用2022-08-18 19:01:31

    CREATE OR REPLACE FUNCTION "public"."generate_road_list_id_to_jcpddas"("road_code_param" varchar)   RETURNS "pg_catalog"."int4" AS $BODY$declare returnvalue integer;BEGIN   SELECT count(1) from road_lst

  • Vue开发常见插件2022-08-18 15:06:04

    Vue项目无论是前端项目还是移动端项目,优先推荐使用VS Code作为编译工具。VS Code从使用的角度来说没有IDEA用着方便,但是从Vue的支持程度来说,还是不错的,所以优先推荐大家使用VS Code. 在Vue开发中,我们常见的插件给大家推荐一下几种: 1.Chinese (Simplified) Language Pack 顾名思义,

  • SortedMap2022-08-18 09:01:50

    SortedMap /* * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.util; /** * A {@link Map} that further provides a <em>total orderi

  • VS Code gdb 调试配置文件2022-08-17 23:31:23

    launch.json { // 使用 IntelliSense 了解相关属性 // 悬停以查看现有属性的描述 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { // 预启动的任务,表示每次调试

  • vue 多行输入框显示行号2022-08-17 17:32:20

    一、概述 因业务需求,多行文本需要显示行号,方便查看配置。 由于默认的textarea输入框无法显示行号,因此需要使用第三方插件才行。   二、插件 我找了一个插件,叫bin-code-editor,它原本是用来输入json数据的,也可以做json格式校验。 但是java项目的配置文件,也不一定是json格式的,而是ya

  • 转载_[VS Code]Visual Studio Code 添加自定义snippet(代码段),附详细配置2022-08-17 10:00:48

    [VS Code]跟我一起在Visual Studio Code 添加自定义snippet(代码段),附详细配置 Add code snippets for CLANG in VS Code 日志: 2021.12.16 VSCode 自 v1.40 起,引入新的变量「WORKSPACE_FOLDER」、「RANDOM」和「RANDOM_HEX」;自 v1.49 起,「TM_SELECTED_TEXT」能够对已覆盖文本生效;

  • Visual Studio & VS Code2022-08-16 23:03:34

    前言 会写这篇是因为想记入一个 bug. 随便以后记入一些 Visual Studio 和 VS Code 相关的冬冬呗.   当 VS Code Hot Reload 遇上 View Component 的 Bug 由于这个 Bug 涉及到多方面 (不容易提问), 所以我就没有 report github issue. 希望过阵子它自己好起来呗 (目前是 workaroun

  • TSDoc2022-08-16 12:03:59

    https://tsdoc.org/ What is TSDoc? TSDoc is a proposal to standardize the doc comments used in TypeScript code, so that different tools can extract content without getting confused by each other’s markup ts 中文档注释的标准,提供给不同的工具提取文档 We are

  • VS Code常用插件2022-08-16 10:32:25

    VS Code常用插件 一、插件的下载 打开VScode之后点击右侧带有小方块的图标 在上方的输入框中输入想要下载的插件的名称即可 二、插件的种类 Chinese (Simplified) Language Pack for Visual Studio Code 一款适用于 VS Code 的中文(简体)语言包 beautify Ctrl+P 后输入beauti

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有