android file selector component
demo effect
FileSelector.gif
Source code on GitHub
introduce
FileSelectorView is a custom file selector, based on which users can customize the style of file selector.
function
Switch directories
Get path
File filtering
File sorting
Custom file icon and set size
Set the size and color of file name text
Listen for selected files
Use
Fil ...
Posted by liebs19 on Tue, 05 May 2020 07:40:02 -0700
The fastest Android TreeView appears!
The fastest Android TreeView appears!
Source address: https://github.com/niugao/RecyclerListTreeView
Based on RecyclerView.
The structure of storing data is not a Tree, but an ArrayList. Unlike all the known implementations on the Internet, it seems that people can't jump out of fixed thinking. You can compare the am ...
Posted by daveoffy on Tue, 05 May 2020 07:40:35 -0700
Wechat game development 4: add physical engine Physijs for three.js
1, Foreword
The primary goal in developing Physijs is to keep it as simple and user-friendly as possible. Physics engines can be daunting
and difficult to set up, with so many options and configurations it is easy to feel overwhelmed. Physijs abstracts all of that extra logic out so you can focus on the rest of your project.
In short, the m ...
Posted by stoop on Tue, 05 May 2020 07:18:19 -0700
Kubernetes RBAC permission problem
Kubernetes RBAC permission problem
The following problem occurs in configuring Ingress, which is caused by RBAC configuration. RBAC starts referencing at kubernetes 1.6. The API version is also different, so you need to pay attention when configuring the yaml file. Here we use an example to solve the problem of RBAC. ...
Posted by JayBachatero on Mon, 04 May 2020 16:58:37 -0700
Go Language (18) context & Log Items
Context&log items
context
Method to cancel goroutine in general scenarios
var wg sync.WaitGroup
var exit bool
func worker(exitChan chan struct{}) {
LOOP:
for {
fmt.Printf("work\n")
time.Sleep(time.Second)
/*if exit {
break
}
*/
select {
case <- exitChan:
break LOOP
...
Posted by loopykd on Mon, 04 May 2020 16:40:51 -0700
Offline data migration DataX3 initial use
DataX3 is still very convenient to use. Here are some official things
GitHub address of DataX3 https://github.com/alibaba/DataX , which contains the introduction of DataX3 and download link.
How to use DataX3 https://github.com/alibaba/DataX/wiki/Quick-Start
Configuration parameters of various reader s and writer s https://github.com/alibab ...
Posted by phpwolf on Mon, 04 May 2020 13:12:47 -0700
Display and hide functions of many lists of wechat applets (with source code)
Today, there is a problem in the project. Before that, the display and hiding of single list on the front page of the project can be realized by wx:if judgment. Now, how to realize the single display and hiding of multiple lists? If you still use wx:if to implement it, you will click a list item, multiple lists will be displayed and hidden at ...
Posted by mediabob on Mon, 04 May 2020 08:33:15 -0700
C#Multithreaded (16): Teach you a workflow by hand
Catalog
Preface
node
Then
Parallel
Schedule
Delay
Try it out
Sequential Node
Parallel Tasks
Write Workflow
Interface Builder
Workflow Builder
Dependent Injection
Implement workflow resolution
Preface
I have learned a lot about the basics of mul ...
Posted by niesom on Sun, 03 May 2020 17:32:14 -0700
CTF Web - [geek challenge 2019]PHP
CTF Web - [geek challenge 2019]PHP
Blog description
The information involved in this article comes from Internet collation and personal summary, which means personal learning and experience summary. If there is any infringement, please contact me to delete, thank you! This article is only for learning and communication, not for illegal use!
C ...
Posted by ebbatten on Sun, 03 May 2020 17:02:43 -0700
iOS network status judgment scheme (supports iOS 11 and iPhone x)
In the previous iPhone, we can judge the network status according to the network status view above the navigation bar. (this kind of plan is not very good)
This solution is not available on iPhone X phones.
We can judge the network state through the Reachability
Reachability github address: https://github.com/tonymillion/Reachability
Super si ...
Posted by prosolutions on Sun, 03 May 2020 16:58:58 -0700