Found a python debugging artifact: PySnooper

PySnooper - don't use print for debugging anymore Although breakpoints and other debugging methods are powerful, they are cumbersome to set. For this reason, print has become the favorite of many people. PySnooper allows you to do print, but you don't need to add many statements. You just need to add a decorator to get the runni ...

Posted by evildarren on Thu, 21 Nov 2019 13:19:14 -0800

PostgreSQL pipelinedb flow calculation plug-in - IoT application - real time trajectory aggregation

Label PostgreSQL, IOT, track aggregation, pipelinedb, flow calculation, real-time aggregation background IoT scenes, Internet of vehicles scenes, shared bicycle scenes, human behavior sites, etc. the terminal reports isolated sites in real time. We need to supplement them into tracks. For example, sharing bicycles, placing orders, unlocking, ...

Posted by haku87 on Thu, 21 Nov 2019 10:23:50 -0800

Front end and algorithm leetcode 8. String to integer (atoi)

[TOC] Front end and algorithm leetcode 8. String to integer (atoi) Title Description Please implement an atoi function to convert strings to integers. First, the function discards the useless start space characters as needed until the first non space character is found. When the first non empty character we find is a positive or negative sign, ...

Posted by mattfoster on Thu, 21 Nov 2019 07:26:16 -0800

Android event bus framework design: EventBus3.0 source details and architecture analysis (in)

The first half is mainly about the analysis of EventBus3.0 architecture. Next, we start the source code analysis of EventBus3.0. We start with the source code analysis of EventBus3.0 usage, and first analyze the registration events~ 1. Analysis of registered source code To register an event: EventBus.getDefault().register(this); getDefault() of ...

Posted by Fribbles on Thu, 21 Nov 2019 03:03:33 -0800

The Path of Dependent Management in go mod

Writing a k8s operator defaultvm in kubebuilder mainly strings up the creation of ovn network and virtual machine to provide default available virtual machine for users. Kubebuilder is a framework for building the Kubernetes API based on CRD, which can be used to build APIs, Controller s, and Admission Webhook s. The code calls virtualmachine d ...

Posted by kelvin on Thu, 21 Nov 2019 01:08:02 -0800

Online code editor - codeMirror

Explain codeMirror is a very powerful code editing plug-in, which provides a very rich API. Recently, this plug-in has been used in the project to make a record. Official website github address install download the installation package directly on github or clone npm installation npm install --save codemirror Introduce *Manual introduc ...

Posted by RottenBananas on Wed, 20 Nov 2019 13:49:07 -0800

Applet swipe left delete

This function was done in the project of the last small program, but it was not recorded at that time. Today, I specially made a small demo and put it on github. Next time I meet it in the development, I can directly take it down for code reuse. The effect is very simple, similar to the effect of deleting chat bar with wechat b ...

Posted by mcubedma on Wed, 20 Nov 2019 11:47:42 -0800

Personal learning series - installation and use of docker compose

Docker Compose is a docker tool used to define and run complex applications Using Docker Compose eliminates the need for shell scripts to start containers. (configured through docker-compose.yml) Installation of Docker Compose Github source sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname ...

Posted by Rhiknow on Wed, 20 Nov 2019 10:22:37 -0800

Cross page value passing of cookie s

We all know the characteristics of cookies. Cookies take effect under the same domain name. The storage capacity of cookies is limited. Cookies are mainly used to record some information of users. For example, to record the login information of users so that users do not need to log in for a period of time, it is created by the ...

Posted by Push Eject on Wed, 20 Nov 2019 09:51:05 -0800

js full page screenshot

I. Reference Library Download address of html2canvas.js and canvas2image.js: html2canvas.js:       http://html2canvas.hertzen.com/dist/html2canvas.min.js canvas2image.js:    https://github.com/SuperAL/canvas2image/blob/master/canvas2image.js Two, use The jQ library needs to be introduced. If the browser is not introduced, you can import it y ...

Posted by ahzulfi on Wed, 20 Nov 2019 06:27:08 -0800