[Python reptile actual combat] statistics of OJ test record statistics of Codeforces test record

Article directory 1, Demand analysis 2, Specific implementation 3, Full code I don't know if other people will do this. Anyway, as an Acmer who has been in the pit for more than one year, sometimes I want to know how many problems I have written. Of course, I can go to OJ for one problem, but it's ...

Posted by 87dave87 on Sun, 09 Feb 2020 23:09:09 -0800

Build your own tool library (similar to lodash) from 0 to a series and publish it to npm

By 2020, we need to try to build our own tool links to make things even more lazy_development_ Final example @magic-zhu/helper This is a demo package we published to npm by ourselves Then use it in your project npm install @magic-zhu/helper const helper = require ('@magic-zhu/helper') let {typeOf} = ...

Posted by ClyssaN on Sun, 09 Feb 2020 18:52:14 -0800

PopupWindow bottom box effect

Previous rendering: When it is displayed, it will slide out from the bottom of the screen. When it disappears, it will slide out. The implementation method is PopWindow. Here is the code: First, define a PopupWindow class as follows: public class BottomPopupOption { //Context object private Context mContext; ...

Posted by hws on Sun, 09 Feb 2020 09:43:56 -0800

Install and configure Nginx under Windows, and set it to power on automatically

Installation and configuration of Nginx under Windows First, Download Process ellipsis Two, configuration First, enter the nginx installation directory (the same level of nginx.exe) and edit the conf/nginx.conf file gzip on; #Open gzip server_tokens off; ##Hide nginx version number server { listen 8888; ...

Posted by mkosmosports on Sun, 09 Feb 2020 06:47:16 -0800

Attack and defense world - WEB advanced level chapter

Sketch This is my second blog. After learning the novice part of WEB last time, it's my turn to learn the advanced part of WEB. The purpose of writing down this blog is also to urge myself to do these questions again, because I referred to many writeup s when I did it for the first time, so I also wa ...

Posted by cavemaneca on Sun, 09 Feb 2020 01:22:24 -0800

Android RefreshLayout implements pull-up refresh drop-down loading and data De duplication list pages

Add the following dependencies to build.gradle of app in the project: //RefreshLayout implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0' implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0' //glide is used to load pictures in item implementation 'com.github.bumptech.glide:gl ...

Posted by notaloser on Sat, 08 Feb 2020 06:16:24 -0800

Download files in Python

Prerequisite The requests module needs to be installed in advance: pip install requests Put it in code. import requests url = 'XXX' #File download source URL filename = '' #New file name after downloading to local r = requests.get(url) with open(filename, "wb") as code: code.write(r.content) combat exercise with ammunition From target URL ...

Posted by realnsleo on Fri, 07 Feb 2020 08:06:43 -0800

Python web crawler and information extraction note 10 HTML content search method based on bs4 Library

Introduction to 01 requests Library of Python web crawler and information extraction notes Notes on Python web crawler and information extraction 02 "there is a way to steal" from web crawler Python web crawler and information extraction notes 03 requests library web crawler practice (5 i ...

Posted by sfmnetsys on Thu, 06 Feb 2020 01:20:50 -0800

Video decoding with ffmpeg

1. Tool preparation Computer Mac, development tool Android studio 3.4, compilation environment cmake 2. Development steps Create a new module project Create a new cpp folder and a new CMakeLists.txt file in the main directory cmake_minimum_required(VERSION 3.4.1) include_directories(../cpp/incl ...

Posted by vikela on Tue, 04 Feb 2020 10:20:14 -0800

DrawerLayout sideslip and NavigationView use and stepping on the pit

First, let's go on the renderings. After all, there is no renderings. I don't know if it's the effect you want. When I see half of them, I find they are not very annoyingAdd dependency implementation 'com.android.support:design:28.0.0' Use in layout <?xml version="1.0" encoding="utf-8"?> < ...

Posted by Simon180 on Tue, 04 Feb 2020 06:22:19 -0800