Django + clipper to preview, cut and upload the Avatar
Train of thought:
Using the front-end plug-in of clipper, the pictures are cropped. The screenshot generated by clipper is a series of base64 codes, and then it is converted to blob format, which is transmitted to the back-end for storage. In short, it means that the front-end cut pictures are sent to the back-end, rat ...
Posted by Chinese on Thu, 02 Apr 2020 22:24:03 -0700
Done a very simple front-end verification plus back-end jump
Today's release of this may be the most careless one of their own, a lot of problems want to understand, but when doing it, they found that not as they imagined, but also slowly debugging, on-line check a lot of methods are always not working, or their own grope out!
Front end display + verification + background query, ...
Posted by alexsaidani on Thu, 02 Apr 2020 17:54:43 -0700
I wrote a tool based on node, which can make "sorry, do whatever you want" GIF (open source) online
SnailDev.GifMaker
A tool for generating gif and adding custom subtitles
client wechat applet
server nodejs + express
Welcome star&fork If you have a good commit pull request
Introduction
Refer to sorry , written by @ xtyxtyx
However, this tool does not use aegisub to create subtitles for template videos. Instead, it uses filter drawtext in ...
Posted by kiss-o-matic on Thu, 02 Apr 2020 08:58:53 -0700
Vue cli simple use of axios and cross domain development environment
Official: Axios is a promise based HTTP library that can be used in browsers and node.js
Here is English document And found on kancloud Chinese document
Install under the vue project (here is a simple example of using the project created by vue CLI)
$ npm i axios
Enter src/main.js to import axios
import axios f ...
Posted by misterph on Thu, 02 Apr 2020 06:17:36 -0700
Vue Router: nested route
Template extraction
We've learned about the other definition forms of Vue templates, using < template > < template >.
<!-- Template is pulled out -->
<template id="home">
<div>home page</div>
</template>
<template id="news">
<div>Jour ...
Posted by mellis95 on Thu, 02 Apr 2020 06:13:38 -0700
Qiwu - Animation - Notes
Transform transform
Move, rotate, scale elements horizontally
transform does not affect the layout of other elements
Value: none|
//html
<ul>
<li class="item-1"><span>Initial state</span></li>
<li class="item-2"><span>translation</span></li>
...
Posted by dannymm on Wed, 01 Apr 2020 11:34:23 -0700
[Java crawler] use Xpath + HtmlUnit to crawl basic information of web page
I. Preface
Using Jsoup + HttpClient (combination I) can basically crawl a lot of information we need. The combination of Xpath + HtmlUnit (combination II) is even more powerful, and it can be competent for combination I no matter in terms of selection or analysis. Here is a simple example to show the main technologies: ① simul ...
Posted by collette on Wed, 01 Apr 2020 08:42:47 -0700
Cross domain solution 1: JSONP
Homologous strategy
Balabalabala (the definition doesn't need to be mentioned, simply speaking, the protocol, port and domain name should be the same.)
Note: the difference caused by protocol and port is not within the scope of front-end solution
JSONP
The principle of jsonp is very simple. It is to create s ...
Posted by tommy1987 on Wed, 01 Apr 2020 08:33:59 -0700
var and let in my eyes
The comparison between Var and let in JavaScript is a commonplace problem. Let's talk about these two keywords today
Variable lifting
First of all, the variables are upgraded. var can be upgraded, but let can't. I think that's a good thing.
When it comes to variable promotion, let's talk about function
function test() { ...
Posted by greenhorn666 on Wed, 01 Apr 2020 08:24:01 -0700
The case of window pop-up in JavaScript
window case
1, Demand analysis:
1. Create a page
**There are two entries and a button
**There is an event on the button: pop up a new window
2. Create a pop-up page
* form
**One button per line, name and number
**Button corresponding to an event: assign the current number and name to the corresponding position ...
Posted by echoindia756 on Wed, 01 Apr 2020 06:38:41 -0700