Write a web pack loader to get the pictures under the specified directory and return the picture URL array
Preface
I often encounter such a problem. When preloading the image resources of h5 project, we often need to manually get one image address and store it in the array, and then pre load the traversal, such as this:
let imgList = ['http://domain.com/img/1.jpg','http://domain.com/img/2.jpg','http://domain.com/img/3.jpg',...];
In the spirit of bei ...
Added by JakeTheSnake3.0 on Tue, 05 Nov 2019 17:25:23 +0200
Sentry 9.1.1 process record of onepremium of docker
sentry installation:https://github.com/getsentry/onpremiseUse the installation steps of this document correctly to install version 9.1.1-onbuild, which requires self modifying the Dockerfile.
Note: the command to build the database will not be executed all at once, and needs to be run multiple times:
docker-compose run --rm web upgrade
...
Added by mkarabulut on Mon, 04 Nov 2019 23:11:22 +0200
Canvas text collision detection and thinning
Demand background
Generally speaking, text thinning is used for map related requirements. I also implemented this method when I implemented a function for the company's map engine. Here, I simplified it and operated it on the ordinary Canvas without introducing the concept of map
Effect
collision detection
Calculate the range of text in canvas ...
Added by m4x3vo on Mon, 04 Nov 2019 22:49:19 +0200
Beginners learn Python (13): basic data structure (Dictionary)
Life is short, I choose Python
Previous portal
Little white learning Python (1): the beginning
Little white learning Python (2): basic data types (I)
Python (3): basic data type (2)
Python (4): basic operation of variables
Python (5): basic operators (1)
Python (6): basic operator (2)
Xiao Bai Xue Python (7): basic process control (Part one)
P ...
Added by Admiral S3 on Mon, 04 Nov 2019 03:10:18 +0200
Using Nginx echo module to test location matching priority
The nginx echo module allows users to directly output strings in nginx, which is convenient for users to debug when configuring nginx. Document address: https://www.nginx.com/resources/wiki/modules/echo/ , github address: https://github.com/openresty/echo-nginx-module
1, installation
Here, take nginx version: nginx/1.10.3 (Ubuntu) of ubuntu ...
Added by sufian on Sun, 03 Nov 2019 06:01:12 +0200
Java serialization 47 polymorphism basic syntax, function
1. Polymorphic grammar
1. If there is no inheritance relationship between two classes, polymorphism cannot be used for compilation.
2. No matter upward or upward transformation, inheritance is needed.
3. When is the downward transformation needed?
When the called method or property is specific to a subtype and does not exist in the parent t ...
Added by mrmachoman on Sun, 03 Nov 2019 01:23:02 +0200
Java thread's six states and examples
Java threads have six states since jdk1.5.
NEW: a thread that has not been started is in this state.
RUNNABLE: the thread executing in the Java virtual machine is in this state.
BLOCKED: the thread waiting for the monitor lock to be BLOCKED is in this state.
WAITING: a thread that waits indefinitely for another thr ...
Added by Anti-Moronic on Sun, 03 Nov 2019 00:13:12 +0200
Big data case: MapReduce's map end table merge (Distributedcache)
Code download address: https://github.com/tazhigang/big-data-github.git
I. preliminary preparation
Since this case is optimized on the basis of case 6, please refer to case 6 for requirements and data input and output; for the first time, you need to copy the pd.txt file in the root directory of the J disk of the local computer for reference.
...
Added by powerpants on Sat, 02 Nov 2019 05:21:35 +0200
Markdown Editor.md simple integration
Since we want to integrate, the first step is to find the source and download it directly to the official website.
Official website address: https://pandao.github.io/editor.md/
Extract the download file after downloading
If the dependency used is basically marked with a red box, drop the required dependency into the resources directory of your ...
Added by BoltZ on Fri, 01 Nov 2019 23:52:06 +0200
[JS pocket book] Chapter 11: use of HTML forms and localStorage
By valentinogagliardiTranslator: front-end witSource: github
Alibaba cloud server is very cheap and popular. This year, it is cheaper than last year. From October 24 to November 11, the purchase cost is 86 yuan in one year and 229 yuan in three years. You can click the following link to participate:https://www.aliyun.com/1111/2...
In order to ...
Added by andre3 on Fri, 01 Nov 2019 16:15:02 +0200