Tag:Preface

  • Python function cache (qbit)

    Time:2021-6-12

    preface Python 3.8 in this article is applicable As of April 14, 2021,functools.lru_cacheandcachetoolsDoes not support caching of asynchronous functions(async) functools.lru_cache Official standard library:functools.lru_cache tolru_cacheAdd life cycle management:https://stackoverflow.com/que… cachetools pypi: https://pypi.org/project/cach… github: https://github.com/tkem/cache… file:https://cachetools.readthedoc… Cachetools v4.2.1 has implemented caching mechanism FIFO: first in first out LFU: least frequently used LRU: least recently used MRU: most recently […]

  • JS review note 1: bubble sort and binary tree column

    Time:2021-6-10

    Here, I will gradually sort out some JS development knowledge and share it with you 1: Bubble sort Usage scenario: sort the array as a whole according to the size of a value in the array Difficulty: simple Principle: first loop, loop to get all the values from the first to the penultimate range, judge […]

  • Android project practice (61): PDF file preview with pictures

    Time:2021-6-6

    preface: Android does not support online preview of PDF. There are many ways to Preview PDF Online,Click here to view the summary Here to achieve a PDF file to download to the local, and then the file into a picture display operation A tool class: import android.app.Application; import android.arch.lifecycle.AndroidViewModel; import android.arch.lifecycle.LiveData; import android.arch.lifecycle.MutableLiveData; import android.graphics.Bitmap; […]

  • Trees and binary trees (3)

    Time:2021-5-30

    Transformation between forest and binary tree and tree traversal The binary tree representation of forest Traversal of common trees The first root traversal of ordinary tree is the preorder traversal of binary tree after transformation The back root traversal of ordinary tree is the middle order traversal of corresponding binary tree Enumeration of binary trees […]

  • Upgrade and install git for Linux CentOS

    Time:2021-5-4

    preface The default installation git version of CentOS is 1.8, but if we want to upgrade it, we need to compile and install it ourselves environment Install dependencies first yum install gcc yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel yum install gcc perl-ExtUtils-MakeMaker Download and install go toMirror siteDownload git manually, or we can use […]

  • Leetcode: [0524 – 0529]

    Time:2021-4-15

    [22]. Bracket generation /* * @lc app=leetcode.cn id=22 lang=javascript * *[22] bracket generation */ // @lc code=start /** * @param {number} n * @return {string[]} */ //Solution: backtracking + pruning var generateParenthesis = function (n) { var res = []; var initialPath = ”; dfs(res, n, n, initialPath); return res; function dfs(res, left, right, path) […]

  • [ Asp.Net Core] blazor webassembly – revamping the loading… Interface

    Time:2021-4-6

    preface default index.html The display of loading is too crude. And there is no progress bar to load So I made one Code address: https://github.com/BlazorPlus/BlazorDemoWasmLoading     Just change index. HTML BlazorDemoWasmLoading Loading.. <span style=”background-color: #f5f5f5; color: #0000ff;”>var</span><span style=”background-color: #f5f5f5; color: #000000;”> preLoadStart </span><span style=”background-color: #f5f5f5; color: #000000;”>=</span> <span style=”background-color: #f5f5f5; color: #000000;”>0</span><span style=”background-color: #f5f5f5; […]

  • Chrome iframe cookies setting failed

    Time:2021-3-27

    preface The new version of chrome adds a function samesite, which can prevent iframe from setting cookies. If we need login verification in iframe, it will be more troublesome. This can be solved by disabling this function. example Browser console prompt: A cookie associated with a cross-site resource at http://58.211.78.91/ was set without the `SameSite` […]

  • Depth first traversal of binary tree

    Time:2021-3-3

    These two days in doing binary tree related algorithm problems, do a little learning notes. Not even a binary tree? I’m really not proficient, and I don’t have to write binary tree related algorithms or data structures in my daily work. Because of their own food, so more efforts to learn!) definition Let’s take a […]

  • Apache CN deep learning translation set 2020.9

    Time:2021-2-12

    agreement:CC BY-NC-SA 4.0 Take pride inGoogle Translate Don’t worry about your image, just about how to achieve your goals. ——Principles, living principles 2.3. C Read online Apachecn interview and job exchange group 724187166 Apachecn learning resources catalog Tensorflow 1. X deep learning script 0. Preface 1、 Introduction to tensorflow 2、 Return 3、 Neural network: perceptron […]

  • Jianzhi offer 4 – construct binary tree according to pre order and middle order [java + Python]

    Time:2021-1-6

    According to the preorder, the middle order constructs the binary tree 1. Title Description Input the result of preorder traversal and meso traversal of a binary tree, please rebuild the binary tree. Assume that the results of preorder traversal and meso traversal do not contain duplicate numbers. 2. Examples For example, give Preorder traversal preorder […]

  • CSS hollowed out triangle style

    Time:2021-1-3

    preface Dialog box – hollowed out triangle style principle 1) Using pseudo element: before: after 2) : before, border 3) : after, border make small triangle style 4) The small triangle’s white style covers the large triangle’s style, forming a hollow out Triangle hollowed out html <div id=”talkTop”> Cut out triangle on top </div> <div […]