Wechat opens static page to share with friends

First of all, we need to add a share button in the upper right corner of the original homepage, and then we need to click it to pop up wechat's own function of sharing to friends. At first glance, it seems not difficult. There was no wechat related development experience before, but it took three days to do well. Let's start w ...

Posted by jonstu on Tue, 07 Jan 2020 05:00:32 +0100

3 minutes to teach you how to make a simple word cloud with python

First you need to install three packages: #Installation: pip install matplotlib #Installation: pip install jieba #Install pip install wordcloud 1. Make a word cloud of the English alphabet Design sketch: Code implementation: import matplotlib.pyplot as plt import jieba from wordcloud import WordCloud # 1. Read txt text data text = open(r'te ...

Posted by Spoiler on Mon, 06 Jan 2020 07:05:32 +0100

Using zuul to aggregate multiple swagger api documents of microservices into one document

First, look at the renderings: Myc order: on behalf of order service Myc user: on behalf of user service Myc car: representative car service ... and so on. Let me briefly talk about the integration steps and key points. 1. Add the following dependencies to the pom of each service. <dependency> <groupId>io.s ...

Posted by etully on Sun, 05 Jan 2020 04:47:00 +0100

iOS secondary list, only one at a time

There are many secondary lists and QQ group demo s on the Internet, but the best one is the one that suits me. I wrote a one that suits me. Record it. In the future, you can use common D + V directly gif chart first The first is data NSArray *data = @[@{ @"title":@"Nothing in the world seem ...

Posted by dave_2008 on Sat, 04 Jan 2020 20:28:20 +0100

2D drawing of qt: adding an undo stack menu

Summary: add a QUndoStack and QUndoView to mainwindows. Add different actions to edit [undo action & redoaction] and view[Undo stack] in the constructor. Note: the undo and redo operations in edit only need to add the response API, and the qt editor will implement them automatically. But the action in view needs to be associated with a slo ...

Posted by wiggst3r on Fri, 03 Jan 2020 23:25:40 +0100

BZOJ3004: chandelier (conclusion tumor)

meaning of the title The tree of $n $nodes can be divided into $\ frac{n}{k} $connection blocks with the size of $k $ Sol First $k $must be a multiple of $n $. Then at the beginning, I thought it was foolish to output all divisors.. But the picture is like this, if $k = 2 $, it is definitely not possible.     Conclusion: if $k $is feasi ...

Posted by andrests on Thu, 02 Jan 2020 16:49:41 +0100

Vue cli installation and basic use of axios

Vue cli installation and basic use of axios   Vue cli is a very convenient scaffold, which can be installed according to the rookie tutorial Address: http://www.runoob.com/vue2/vue-install.html Just follow the rookie tutorial all the way. If there is no npm or cnpm (Taobao image), please go to the node official website to d ...

Posted by MasksMaster on Thu, 02 Jan 2020 15:08:33 +0100

Deep understanding of Threadlocal

Preface Concurrency is an unavoidable topic in Java development.Modern processors are multi-core, and multi-threaded programming is essential for better drying machine performance, so thread security is a required course for every Java Engineer. There are two general ways to address thread security issues: Synchronization: Use the Synchronized ...

Posted by twinzen on Thu, 02 Jan 2020 06:25:07 +0100

Algorithmic internal skill cultivation: full arrangement and Realization of eight queens (1)

Content: Full Permutation implementation Eight queens combined with full arrangement Optimization of eight queens backtracking method by Full Permutation The realization of eight queens by complete backtracking Summary: divide and conquer and recursion 1. Full Permutation implementation Output a 1~n permutation. For ex ...

Posted by NixNod on Thu, 02 Jan 2020 03:59:07 +0100

How do I align the view at the bottom of the screen?

This is my layout code; <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:text="@string/welcome" android:id="@+id/TextV ...

Posted by billy2shoe on Wed, 01 Jan 2020 00:53:24 +0100