node simply implements a function of changing the head image

Preface I've always wanted to write this article, but I've been reviewing it for the sake of exams. I've delayed writing until now. I wrote a small project with node's express framework, which has the function of uploading pictures. Here's how to realize it (I use ejs) thinking First of all, when the user clicks upload avatar to upd ...

Added by jmugambi on Mon, 04 May 2020 23:15:52 +0300

Encapsulate the multi selection box control in react native

1. Installation of third party components GitHub: https://github.com/crazycodeboy/react-native-check-box Install under the command line of ReactNative project npm i react-native-check-box –save 2. Encapsulation of local control 2.1 import and constant definitions, which can be adjusted according to the proj ...

Added by r00tk1LL on Mon, 04 May 2020 11:16:46 +0300

49 Three.js use THREE.TextGeometry to create three-dimensional text to solve the problem of Chinese scrambling

Solution If only a pile of Chinese characters is found???? It is proved that the font currently imported does not support Chinese characters. Our solution is to introduce json files that can support Chinese characters. So the question is, how do we get this json file? -We can use ttf format file for conversion. There is an address for onli ...

Added by S A N T A on Mon, 04 May 2020 02:24:37 +0300

Android Road 36 - Android network operation

Guide reading 1. Basic knowledge of network operation 2. Basic knowledge of JSON 3. Request data and analysis from the server Basic knowledge of network operation Basic knowledge of JSON A bracket represents a collection, and a curly bracket represents an object Request data from server and parse JSON me ...

Added by rIkLuNd on Sun, 03 May 2020 03:18:50 +0300

Asp.net MVC simple implementation generate Excel and download

Due to the requirements on the project, you need to export the Excel file with the specified conditions. After a rummage, it finally came true. Now post the code and share it (directly share the code of some auxiliary classes in our project)   Our project uses Asp.Net MVC4.0 mode. Each ActionResult must return a View or Json, etc. (the paramete ...

Added by busterbry on Sun, 03 May 2020 03:07:20 +0300

json file operation of python

Because it is often necessary to operate on a json format file, it is more difficult to edit the text. I want to write a script to operate on the file, and send the modified file directly to the mailbox The file directory is as follows: drwxr-xr-x 2 root root 4096 12 29 / 16:14 backup -rw-r--r-- 1 root root  168 12 29 / 16:10 config.ini -rw ...

Added by tex1820 on Sun, 03 May 2020 00:01:36 +0300

Using Python to uncover how the melon eaters think of Luo Zhixiang's incident

    Preface Recently, the entertainment industry can be said to be bustling. Before, there was a bully president who loved Xiao San, the palace was torn and forced to be a red girl in the net, and after that, there was a sunny boy named Show Luo, who was robbed of his reputation by Zhou Yangqing. It's hard for ordinary people to understand th ...

Added by r_a_s_robin on Sat, 02 May 2020 03:07:36 +0300

Cross domain implementation of jsonp+php

Cross domain principle of jsonp There is no cross domain limit for < script > tags The difference between json and json json is a text-based way of data exchange, or a format for describing data. var person = { "name": "test", "age": "25", "sex": "male" }; var data = [1, 2, 3, 4, 5]; jsonp is an unofficial cross domain ...

Added by mcrbids on Fri, 01 May 2020 18:31:35 +0300

Wechat JS SDK implementation sharing to the circle of friends

Wechat interface document address: https://mp.weixin.qq.com/wiki? T = resource / res ˊ main & id = mp1421141115 & token = & lang = zh cn Implementation steps: 1. Bind domain name First login WeChat public platform into the "official account settings" function settings to fill in the "JS interface security d ...

Added by phpusers on Fri, 01 May 2020 10:04:40 +0300

Some problem records of laravel+nginx error 500 after configuration have been solved

1, Check the ngxin configuration. Here is my nginx configuration Here paste the source code for your reference: user www www; worker_processes 4; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user ...

Added by a6000000 on Wed, 29 Apr 2020 17:13:02 +0300