OpenGL foundation 17: color
1, RGB tricolor
Think back to junior high school physics:
Three primary colors: all colors in nature can be obtained by the combination of red, green and blue (RGB) color frequencies with different intensities. White includes all colors
To see the color of an object is the color reflected by the object. In other words, it is the color that ...
Posted by Spreegem on Sat, 06 Jun 2020 22:14:39 -0700
Analysis of SpringBoot startup process
Analysis of SpringBoot startup process
It has been two years since we used spring boot for development, but we haven't thoroughly understood its relevant source code. In the near future, we can carefully read and analyze the relevant source code. In this paper, we start our analysis and study from the s ...
Posted by eatc7402 on Sat, 06 Jun 2020 21:20:19 -0700
Initialization of Spring container
After reading this article, you will get
Learn about the Spring container initialization process
The best practice of ThreadLocal in Spring
Answer the Spring container initialization process in the interview
introduction
Let's start with a simple and common code
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING ...
Posted by henryblake1979 on Fri, 05 Jun 2020 22:41:05 -0700
python learning notes - common package, module introduction
Python commonly used modules are
calendar
time
datetime
timeit
os
shutil
zip
math
string
Theoretically, all the above modules should be imported first, and string is a special case
calendar, time, datetime refer to Chinese meaning
calendar
Calendar related modules
Import before use
import calen ...
Posted by kevin7 on Thu, 04 Jun 2020 11:40:39 -0700
Smart use of CSS 3.0 sticky positioning
position:sticky It's CSS The new location attribute in 3.0 can be said to be a combination of relative location and fixed location. It is mainly used for monitoring scroll events. In short, in the rolling process, when the distance between an element and its parent element meets the requirements of s ...
Posted by bemoi on Thu, 04 Jun 2020 10:57:50 -0700
IOS startup map and open screen advertising map, similar to Netease
Boot map is an essential part in the development of iOS. Many app s will have a customized open screen ad map after the boot map. Click the ad map to jump to the corresponding page of the ad map. Today, I'd like to share with you how to add this ad map and click the jump of ad map. This ad map is imp ...
Posted by gutogouveia on Thu, 04 Jun 2020 09:38:43 -0700
The shortest path problem in C + + Dijkstra algorithm
Dijkstra algorithm:
Basic ideas:
Can't understand? It doesn't matter. i will take you to understand the algorithm through specific problems
Problem Description:
Find the shortest way from business to school
Multiple sets of inputs, for each set of data.
Input N and m in the first line to indicate t ...
Posted by NINTHTJ on Thu, 04 Jun 2020 09:15:37 -0700
Codeforces - 1363e tree shuffling
Title Link: Click to view
Main idea: give a tree with root, the root node is point 1, each node has a weight val and two attributes b, c. The weights of attributes b and C are not 0, i.e. 1. Now you can select a node x, and then select any k nodes from the subtree. Reassign attribute b of these K no ...
Posted by 0riole on Thu, 04 Jun 2020 08:16:17 -0700
LINQ performance analysis
catalog
Choose the appropriate flow operation mode
Be careful to execute immediately
Will LINQ to Objects degrade code performance
Different methods
What has been learned
The cost of using LINQ to Objects
Performance and simplicity: can't fish and bear paw have both
LINQ's advantage is not to provide any new functions, but to enable us t ...
Posted by TreColl on Sun, 31 May 2020 21:06:09 -0700
Using attribute animation to realize the animation effect of starlight
In Android, attribute animation is a very interesting function to control the animation effect of parameter transformation
Compared with gif image, animation controls need to save space and increase response speed
main points:
(1) Use PercentLayout to set the size of custom controls
(2) The two important functions of attribute animation are ...
Posted by mauri_gato on Sun, 31 May 2020 09:14:52 -0700