GithubHelp home page GithubHelp logo

biganans / luatool Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 29 KB

一般有用的lua方法,有的是自己的,有的是网上收集的,如有不小心碰车需要删除的请私信或留言,也欢迎大家一起共享。

License: Apache License 2.0

Lua 100.00%

luatool's Introduction

LuaTool

一般有用的lua方法,有的是自己的,有的是网上收集的,如有不小心碰车需要删除的请私信或留言,也欢迎大家一起共享。

方法类型如下

file.lua 文件处理

string.lua 字符操作

很神奇的发现

1.table.sort invalid order function for sorting 当sort里面导致排序不是稳定的时候怎么办,怎么搞都不对的时候,试试下面的*操作:

local _sortTask = function(t1,t2)
  if t1 == nil or t1 == nil then
        return false
    end
    local bcomp = function(t1,t2)
    --随便你怎么*写判定条件
    end
    return bcomp(t1,t2)
end

luatool's People

Contributors

biganans avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

singerinsky

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.