Analysis of Redis source code -- implementation of SDS
Implementation of SDS
SDS is a simple dynamic string. It is one of the basic data structures of Redis and has a wide range of uses
Overview of basic functions
function
function
Complexity
sdsnewlen
Create SDS from given string
O(N)
sdslen
Return string length
O(1)
sdsdup
Copy an SDS
O(N)
sdsfree ...
Posted by Fantast on Wed, 01 Apr 2020 16:19:05 -0700
Bezier curve UIBezierPath easy to use
//Common properties
/*
1.CGPath: convert UIBezierPath class to CGPath
2.currentPoint: the location of the current path, which can be understood as the end of the path
3.lineWidth: line width
4.lineCapStyle: end style
5.lineJoinStyle: connection type
6.flatness: the fineness of the drawing line, which is 0.6 by default. The larger the value, ...
Posted by Drayton on Wed, 01 Apr 2020 08:42:22 -0700
Nange takes you to learn CSS form and table form of HTML
Form form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
< title > form form < / Title >
<style type="text/css">
</style>
</head>
<body>
<! -- action: server interface for the form to su ...
Posted by jay1318 on Wed, 01 Apr 2020 04:22:43 -0700
Use of vue mint LoadMore component
address
http://mint-ui.github.io/docs/#/en2/loadmore
Implement pull-down refresh at the top and pull-up load at the bottom
autofill property is to automatically load data. You can choose whether to load by yourself or automatically load components according to the situation. Loadbotom will be called
Top method is a function of pull-do ...
Posted by ik on Wed, 01 Apr 2020 02:01:18 -0700
Development of React Native -- component progressbaradroid
Preface
ProgressBarAndroid is a real native encapsulation of the display progress component of Android platform, which is used to display the content loading progress in App. This article is mainly familiar with the following attributes:
Color: set the color attribute value of the progress
indeterminate: set whether to display ...
Posted by kfir91 on Wed, 01 Apr 2020 00:26:32 -0700
RadioButton icon resizes (TextView also works)
There is no corresponding layout parameter for the icon size of RadioButton. In this paper, the RadioButton is customized by means of custom attribute to control the image size.
Key points of this paper:
Use of custom properties.
Solve the problem of customizing the size of icons on the top, bottom, left and right of RadioButton text.
This m ...
Posted by TimSawyers on Tue, 31 Mar 2020 22:18:46 -0700
ESlint configuration description under Vue cli
1. Close eslint
This is just the way to close the Vue cli scaffold. In fact, it is very simple to build/webpack.base.conf.js
Just comment out the eslint rules in the configuration file.
module: {
rules: [
// {
// test: /\.(js|vue)$/,
// loader: 'eslint-loader',
// enforce: 'pre',
...
Posted by mosherben on Tue, 31 Mar 2020 20:45:55 -0700
c + + type conversion
concept
The meaning of type conversion is to change the representation of a variable by changing its type to another type. In order to type one simple object into another you will use the type conversion operator.
C-style cast is very simple, no matter what type of cast is: TYPE b = (TYPE)a
C + + style type conversion provid ...
Posted by 3.grosz on Tue, 31 Mar 2020 15:10:41 -0700
Some options are not displayed in Kendo UI required input verification
After several years of EBS secondary development, I recently transferred to WEB development, and finally got a sense of connecting with the world. The new project is useful to the front-end framework of kendo ui. I simply read a few novice introductory tutorials, started rolling code, copied and pasted rolling flying, a ...
Posted by kutchbhi on Tue, 31 Mar 2020 12:34:20 -0700
Web Notifications desktop notification js encapsulation
var NotificationHandler = {
isNotificationSupported: 'Notification' in window,
isPermissionGranted: function() {
return Notification.permission === 'granted';
},
requestPermission: function() {
if (!this.isNotificationSupported) {
console.log('the current browser ...
Posted by ramus on Tue, 31 Mar 2020 10:48:39 -0700