ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    CentOS增加命令路径

    Dec 23, 202110 min read
    "~/.bash_profile" 12L, 191C                                   10,35         All
    # .bash_profile
    
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi
    
    # User specific environment and startup programs
    
    PATH=$PATH:$HOME/bin:/usr/local/bin
    
    export PATH
        
        
    

    相关文章

    立即执行的函数表达式(IIFE,Immediately Invoked Function Expression)

    立即执行的函数表达式(IIFE)是一种在定义时立即执行的匿名函数,常用于创建局部作用域,避免变量污染全局作用域,并提高代码的可维护性和可重用性。

    使用new关键字创建构造函数时,返回不同类型的值会产生什么影响?

    使用`new`关键字创建对象时,构造函数返回不同类型的值会影响返回的对象类型,但若返回非对象类型则忽略,最终返回新创建的对象。

    RuntimeError: "slow_conv2d_cpu" not implemented for 'Half'

    This error occurs when attempting to perform a convolution operation with half-precision data on a CPU, which is unsupported, often due to software framework limitations, and can be resolved by changing the data type or using a different device like a GPU that supports half-precision.

    js深度克隆的手写方法

    该JavaScript函数`deepClone`通过递归实现了对象的深度克隆。

    Flutter Getx 提供的响应式监听函数 ever

    GetX 中的 `ever` 函数用于响应式监听特定事件,支持 Rx 类对象和自定义事件,通过回调函数处理事件触发后的操作。