• Spiral matrix I, II, III


    Helix Matrix I Source: https://leetcode-cn.com/probl Simple solution: set the boundary and simulate. class Solution { public List<Integer> spiralOrder(int[][] matrix) { List<Integer> ans = new ArrayList<>(); int t = 0, b = matrix.length – 1; int l = 0, r = matrix[0].length – 1; while (true) { for (int j = l; j <= r; j++) […]

  • Understand BFC, IFC


    Common positioning schemes Normal flow In a normal flow, elements are arranged from the top to the bottom according to their positions in HTML. In this process, elements in a row are arranged horizontally until the row is filled and then wrapped. Block level elements will be rendered as a complete new row. Unless otherwise […]

  • What happens between entering a URL and displaying a page


    1. User input If you search for content, the address bar uses the browser’s default search engine to synthesize new URLs with search keywordsIf the URL rule is met, http: / / or HTTPS: / / (if 301 is passed) will be added automatically 2. URL request process Browser process sends request to network process […]

  • The subtlety of bootstrap grid system


    Excerpt from the subtitle magic behind why the bootstrap 3 grid works It has been a long time since I contacted bootstrap. It feels fast, simple and easy to use. The grid system is a highlight: Always feel like CSS grid system and other things to use, do not need to delve into the principle […]

  • Java simple user login interface + MySQL


    1. overview A simple swing login interface, using a simple JDBCAs shown in the picture: 2.UI (1) main interface The main interface uses 31 grid layout + three jpanels, the middle JPanel uses 22 grid layout: import java.awt.FlowLayout; import java.awt.Font; import java.awt.GridLayout; import java.util.Enumeration; import java.awt.Container; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import […]

  • CSS grid: page grid layout has never been so simple


    Page layout is never a worry! If theTwo column layout, table layoutHoly Grail layoutYou’re exhausted by waiting! So the mobile terminal’s more diversified layout will definitely make you suffer! Table don’t know if you’ve used it? Has bootstrap been used? Did antd use it? These seemingly gaudy layouts are actually like a net. If the […]

  • CSS · flex & grid layout · self inspection manual


    Written in front This paper only lists some basic concepts and new attributes of flex and grid layout, which are used to check the mastery of relevant knowledge.For specific courses and examples, please refer to the references at the end of the article. Flex layout concept Flex container Flex item Main axis Spindle position (main […]

  • PIE calls Python to return an array of histogram matrices


    Some time ago, I studied the combination of PIE SDK and Python. I have been able to successfully call Python through C # to get the color histogram. (Shared in the last essay: https://www.cnblogs.com/yuan1120/p/11126869.html) On the basis of the previous success, this time I intend to call Python through C # and return an array […]

  • Sorting Data Using CSS Grid Shepherd Technology


    Translator: Crazy Technology House Original: https://css-tricks.com/using-… No reprinting without permission! Shepherds are good at caring for their sheep and bringing order and structure to their herds. Even if there were hundreds of furry animals, shepherds would still bring them all back to the farm at the end of the day. For programmers, when we process […]

  • Vue refers to bootstrap3


    The effect of using bootstrap 3 for grid layout of interface is much stronger than element-ui, which is mainly reflected in the display of different devices, and element-ui is deficient in this respect. Refer to bootstrap yarn add [email protected] Based on jquery, you also need to refer to two packages, jQuery and popper. js, yarn […]

  • PIE calls Python to get the color histogram


    I’ve been studying the combination of PIE SDK and Python for a while, because in my development, I want to get a statistical histogram of a picture. Although there are class interfaces (such as IStatsHistogram interface, Histogram StatDialog class) about histogram in SDK, some of the results obtained by some methods are some small questions. […]

  • Generating Spherical Mesh Model with Unity3D Mesh Function


    In this paper, we share the specific code of generating spherical mesh model with Unity3D mesh function for your reference. The details are as follows. I’ve already talked about how to use mesh to generate a mesh of my own, so this article will describe how to transform this mesh into the shape I want, […]