Tag:function

  • Excel released version 2.0.2, the most popular excel basic library of go language

    Time:2020-1-19

    Excel is a class library written in go language for operating Office Excel documents. It is based on ecma-376 office open XML standard. It can be used to read and write xlsx documents created by Microsoft Excel? 2007 and above. Compared with other open source libraries, excel supports writing documents with complex styles such as […]

  • Match engine development: MVP version

    Time:2020-1-19

    Welcome to “Keegan small steel” public address for more articles. Matchmaking engine development: the beginning Match engine development: MVP version Match engine development: data structure design Match engine development: docking black box Match engine development: decryption black box process Match engine development: code implementation of process After the opening article, my matchmaking engine was positioned […]

  • Want to be a data scientist? Do you know these 11 machine learning algorithms?

    Time:2020-1-19

    Machine learning practitioners have different personalities, although some of them will say “I am an expert in X, X can train any type of data”, where x is an algorithm. However, we have to admit that in real life, there is no X that can train any kind of data. Some algorithms are suitable for […]

  • Alibaba cloud front end Weekly – issue 18

    Time:2020-1-19

    Recommend 1. Deep to shallow understanding of react high-level components https://zhuanlan.zhihu.com/p/… The high-order component is extended from the high-order function. The high-order component accepts the react component as the input and outputs a new react component. This paper introduces how to write and use the high-order component in the react project, as well as some […]

  • The use of promise in JS

    Time:2020-1-19

    In JavaScript, the code is executed by a single thread, so all network operations and browser events in JavaScript must be executed asynchronously. stayPromiseBefore JavaScript used to handle asynchrony in the form of callback functions. So to speakcallbackIt’s a way of reaching people’s heartsPromiseWhat is the solution? Look at the following code: $.get(‘/getList’,function(){ $.get(‘/getCount’,function(){ $.get(‘/getDetail’,function(){ […]

  • Function object / nesting / namespace / scope of Python syntax

    Time:2020-1-19

    1、 Function object 1. Function names can be referenced def foo(): print(‘from foo’) Res = foo ා the function name foo is given to res, and res and foo point to the same memory address res() #from foo 2. Function names can be passed as arguments def foo1(a,b): #a=1,b=foo2 print(a) #1 B() ාb() is foo2() […]

  • Native JS code implementation randomly generates a hexadecimal color value

    Time:2020-1-19

    Encapsulate a function function getColor() { var str = “#”; //An array of hexadecimal values var arr = [“0”, “1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “a”, “b”, “c”, “d”, “e”, “f”]; for (var i = 0; i < 6; i++) { //Each random number generated is an index, which finds the corresponding […]

  • Linux Ubuntu installation initialization

    Time:2020-1-18

    Static IP configuration #Static IP configuration cat /etc/network/interfaces auto enp0s3 iface enp0s3 inet static address 192.168.99.114 netmask 255.255.255.0 auto enp0s8 iface enp0s8 inet dhcp Virtual machine VBox installation enhancements #Mount VBox enhancements cd /root mkdir vbox mount /dev/cdrom /root/vbox/ sudo mount -t vboxsf -o uid=1000,gid=1000 work /root/work/ sudo mount -t vboxsf -o uid=1000,gid=1000 go_pro /root/go_pro/ […]

  • Using jQuery plug-in in react

    Time:2020-1-18

    Using jQuery plug-in in react Background: Although now react, Vue and other frameworks have opened a new chapter in front-end development, But for some more complex pages, for example, you want to generate them in the project Organization chart and personnel reporting relationship need to be used before JQuery plug-in. For example: jsplumbspacetreelenchart First, install […]

  • Python foundation function scope

    Time:2020-1-18

    function Function object Function isFirst class object Function name canCited Function names can be treated asparameterUse Function names can be treated asReturn valueUse Function names can be treated asElement of container type Function nesting Nested CallCall function in function Nesting definition: define function inside function Namespace Storage variable nameSpace, divided intoBuilt in namespace、Global namespace、Local namespace […]

  • Vue.js source code analysis (XXVIII) details of transition components of advanced applications

    Time:2020-1-18

    The transition component can add in / out transition to any element or component, but it can only implement transition effect for a single component (multiple elements can use the transition group component, which will be discussed in the next section). When calling the built-in component, the following features can be passed in: Name is […]

  • Analysis of react performance optimization

    Time:2020-1-17

    As one of the most popular web front-end frameworks, react is flexibleComponentEfficientVirtual Dom, and controllable one-way data flowStateManagement and other features have been the first choice for many developers to build projects. Because of this, many novices think: React seems to mean componentization and high performance. We only need to care about the data as […]