repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
weera00/nodemcu-firmware
lua_examples/irsend.lua
88
1803
------------------------------------------------------------------------------ -- IR send module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> -- -- Example: -- dofile("irsend.lua").nec(4, 0x00ff00ff) -----------------------------------------------------------------------...
mit
bjornswenson/RxLua
tests/take.lua
2
1302
describe('take', function() it('produces an error if its parent errors', function() local observable = Rx.Observable.of(''):map(function(x) return x() end) expect(observable).to.produce.error() expect(observable:take(1)).to.produce.error() end) it('produces nothing if the count is zero', function() ...
mit
sundream/gamesrv
script/oscmd/maintain.lua
1
2098
maintain = maintain or {} maintain.time = { weekday = 4, readytime = {20,30}, starttime = {21,00}, endtime = {21,10}, } maintain.msg = "服务器将于%d分钟后进入例行维护,维护时间:%02d:%02d~%02d:%02d" function maintain.init() end function maintain.onfiveminuteupdate() local weekday = getweekday() weekday = weekday == 0 and 7 or we...
gpl-2.0
LukeFarrell/incubator-openwhisk-apigateway
scripts/lua/management/lib/resources.lua
1
2609
-- Copyright (c) 2016 IBM. All rights reserved. -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, including without limitation -- the rights to use, copy, mod...
apache-2.0
sundream/gamesrv
script/card/neutral/card261012.lua
1
2230
--<<card 导表开始>> local super = require "script.card.neutral.card161012" ccard261012 = class("ccard261012",super,{ sid = 261012, race = 6, name = "玛里苟斯", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, ...
gpl-2.0
tltneon/NutScript
plugins/area/entities/weapons/nut_areahelper.lua
6
4748
AddCSLuaFile() if( CLIENT ) then SWEP.PrintName = "Area Helper"; SWEP.Slot = 0; SWEP.SlotPos = 0; SWEP.CLMode = 0 end SWEP.HoldType = "fists" SWEP.Category = "Nutscript" SWEP.Spawnable = true SWEP.AdminSpawnable = true SWEP.ViewModel = "models/weapons/v_pistol.mdl" SWEP.WorldModel = "models/weapons/w_pistol.m...
mit
wangchenOS/skynet
lualib/snax/msgserver.lua
13
7340
local skynet = require "skynet" local gateserver = require "snax.gateserver" local netpack = require "netpack" local crypt = require "crypt" local socketdriver = require "socketdriver" local assert = assert local b64encode = crypt.base64encode local b64decode = crypt.base64decode --[[ Protocol: All the number type ...
mit
sundream/gamesrv
script/friend/frienddb.lua
1
8655
cfrienddb = class("cfrienddb",cdatabaseable) function cfrienddb:init(pid) self.flag = "cfrienddb" cdatabaseable.init(self,{ pid = pid, flag = self.flag, }) self.frdlist = {} self.applyerlist = {} self.applyerlimit = 20 self.frdlimit = 60 self.data = {} self.thistemp = cthistemp.new{ pid = pid, flag =...
gpl-2.0
EvPowerTeam/EV_OP
feeds/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-codec.lua
80
2172
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
gpl-2.0
doy/luairc
src/irc/ctcp.lua
5
3683
--- -- Implementation of the CTCP protocol -- initialization {{{ local base = _G local table = require "table" -- }}} --- -- This module implements the various quoting and escaping requirements of the -- CTCP protocol. module "irc.ctcp" -- internal functions {{{ -- _low_quote {{{ -- -- Applies low level quoting to a ...
mit
EvPowerTeam/EV_OP
feeds/luci/applications/luci-quick/luasrc/model/cbi/quick/wwan.lua
1
4111
m = Map("network", translate("3G/4G"), translate("Configure 3G/4G Modems")) local nw = require "luci.model.network" local ntm = nw.init(m.uci) local fwm = require "luci.model.firewall".init(m.uci) local net local ifaces = { } local netlist = { } for _, net in ipairs(ntm:get_networks()) do if net:proto() == "3g" t...
gpl-2.0
rastin45/waqer12
plugins/bugzilla.lua
611
3983
do local BASE_URL = "https://bugzilla.mozilla.org/rest/" local function bugzilla_login() local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password print("accessing " .. url) local res,code = https.request( url ) local data = json:decode(res) return data ...
gpl-2.0
ld-test/lua-log
lua/log/logformat/syslog.lua
2
4091
local string = require "string" local math = require "math" local Log = require "log" local mod,floor,ceil,abs,pow = math.mod,math.floor,math.ceil,math.abs,math.pow local fmt = string.format -- removes the decimal part of a number local function fix(n) n = tonumber(n) return n and ((n > 0 and floor or ce...
mit
ElectricPrism/stargus
scripts/terran/sound.lua
1
12461
-- Basic Terran sounds MakeSound("terran-base-attacked", "terran/units/advisor/upd00.wav") MakeSound("terran-units-attacked", "terran/units/advisor/upd01.wav") -- Marine sounds MakeSound("terran-marine-ready", "terran/units/marine/ready.wav") MakeSound("terran-marine-death", {"terran/units/marine/death/1.wav", "...
gpl-2.0
EvPowerTeam/EV_OP
feeds/luci/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua
76
5638
--[[ Luci diag - Diagnostics controller module (c) 2009 Daniel Dickinson Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- module("luci.cont...
gpl-2.0
LukeFarrell/incubator-openwhisk-apigateway
scripts/lua/lib/utils.lua
1
4327
-- Copyright (c) 2016 IBM. All rights reserved. -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, including without limitation -- the rights to use, copy, mod...
apache-2.0
nphilipp/ardour
scripts/split_all_markers.lua
3
2301
ardour { ["type"] = "EditorAction", name = "Marker Split", license = "MIT", author = "Ardour Team", description = [[Split regions on selected tracks at all locations markers]] } function factory (params) return function () local loc = Session:locations () -- all marker locations -- http://manual.ardour...
gpl-2.0
ld-test/c3
src/c3.lua
1
3091
local C3 = {} C3.__index = C3 function C3.new (options) assert (type (options) == "table") assert (options.superclass) -- Check that superclass is callable: do local ok, err = pcall (options.superclass) if not ok and err:match "^attempt to call" then error "superclass is neither a function nor a...
mit
sundream/gamesrv
script/card/neutral/card165036.lua
1
2662
--<<card 导表开始>> local super = require "script.card.init" ccard165036 = class("ccard165036",super,{ sid = 165036, race = 6, name = "机械幼龙技工", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 1, dieeffect = 0, sneak = 0, magic_hurt_...
gpl-2.0
Toukibi/ToSAddon
ExpViewer_Ex/src/expviewer_ex.lua
1
52548
local addonName = "ExpViewer_Ex"; local verText = "1.03"; local autherName = "TOUKIBI"; local addonNameLower = string.lower(addonName); local SlashCommandList = {"/expv", "/expviewer"}; local CommandParamList = { reset = {jp = "設定リセット", en = "Reset the all settings."} , update = {jp = "表示を更新", en = "The addit...
gpl-3.0
ctozlm/Dato-Core
src/unity/python/graphlab/lua/pl/app.lua
26
5794
--- Application support functions. -- See @{01-introduction.md.Application_Support|the Guide} -- -- Dependencies: `pl.utils`, `pl.path` -- @module pl.app local io,package,require = _G.io, _G.package, _G.require local utils = require 'pl.utils' local path = require 'pl.path' local app = {} local function check_script...
agpl-3.0
ElectricPrism/stargus
scripts/protoss/unit-protoss-reaver.lua
1
2373
-- -- unit-protoss-reaver -- DefineAnimations("animations-protoss-reaver", { Still = { "frame 85", "wait 125", }, Move = {"unbreakable begin", "move 4", "wait 1", "frame 85", "move 4", "wait 1", "frame 102", "move 4", "wait 1", "frame 119", "move 4", "wait 1", "frame 136", "move 4", "wait 1", "frame...
gpl-2.0
libremesh/lime-packages
packages/first-boot-wizard/files/usr/lib/lua/firstbootwizard.lua
1
14217
#!/usr/bin/lua -- FIRSTBOOTWIZARD -- get_all_networks: Perform scan and fetch configurations -- apply_file_config: Set lime-community and apply configurations -- apply_user_configs: Set a new mesh network -- check_scan_file: Return /tmp/scanning status -- is_configured: returns true if FBW has already configured the n...
agpl-3.0
sundream/gamesrv
script/card/soil/card254005.lua
1
2317
--<<card 导表开始>> local super = require "script.card.soil.card154005" ccard254005 = class("ccard254005",super,{ sid = 254005, race = 5, name = "愤怒", type = 101, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 0, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magi...
gpl-2.0
joelagnel/meta-openembedded
meta-gnome/recipes-gnome/devilspie/files/default.lua
40
1194
-- Copyright (c) 2012 Andreas Müller <schnitzeltony@googlemail.com> -- -- this is an example -- * undecorating all windows opened maximized -- * maximizing and undecorating all appplication's windows in apps_list -- for further information see -- http://www.gusnan.se/devilspie2/manual.php wnd_type = get_window_type()...
mit
tudor-berariu/activity-recognition
src/main.lua
1
4855
-------------------------------------------------------------------------------- --- 1. Load required libraries -------------------------------------------------------------------------------- require("torch") require("activity_dataset") train = require("train") evaluate = require("evaluate") require("image") locale...
mit
kobakei/CCLocalNotification
cocos2d/cocos/scripting/lua/script/DeprecatedOpenglEnum.lua
148
11934
-- This is the DeprecatedEnum DeprecatedClass = {} or DeprecatedClass _G.GL_RENDERBUFFER_INTERNAL_FORMAT = gl.RENDERBUFFER_INTERNAL_FORMAT _G.GL_LINE_WIDTH = gl.LINE_WIDTH _G.GL_CONSTANT_ALPHA = gl.CONSTANT_ALPHA _G.GL_BLEND_SRC_ALPHA = gl.BLEND_SRC_ALPHA _G.GL_GREEN_BITS = gl.GREEN_BITS _G.GL_STENCIL_REF = gl.STENCI...
apache-2.0
sundream/gamesrv
script/card/neutral/card261014.lua
1
2305
--<<card 导表开始>> local super = require "script.card.neutral.card161014" ccard261014 = class("ccard261014",super,{ sid = 261014, race = 6, name = "火车王里诺艾", type = 201, magic_immune = 0, assault = 1, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, ...
gpl-2.0
sundream/gamesrv
script/huodong/init.lua
1
5336
require "script.huodong.huodongmgr" chuodong = class("chuodong") --[[ id name starttime endtime ]] --[[ |HUODONG_STATE_END|...|HUODONG_STATE_JOIN_START|...|HUODONG_STATE_JOIN_END|...|HUODONG_STATE_START_READY|... |HUODONG_STATE_START|...|HUODONG_STATE_END_READY|...|HUODONG_STATE_END| ]] function ...
gpl-2.0
siggame/Joueur.lua
joueur/client.lua
2
6471
local class = require("joueur.utilities.class") local serializer = require("joueur.serializer") local json = require("joueur.utilities.dkjson") local socket = require("socket") local safeCall = require("joueur.safeCall") local handleError = require("joueur.handleError") local color = require("joueur.ansiColorCoder") lo...
mit
EvPowerTeam/EV_OP
feeds/luci/modules/base/luasrc/http.lua
27
8237
--[[ LuCI - HTTP-Interaction Description: HTTP-Header manipulator and form variable preprocessor License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Lice...
gpl-2.0
jkhlf85/THETETOO_8
plugins/ar-supergruop.lua
7
102343
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY tetoo ▀▄ ▄▀ ▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀ ▀▄ ▄▀ broadcast : سوبر كروب ▀▄ ▄▀ ▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀...
agpl-3.0
digitalloggers/nodemcu-firmware
lua_modules/ds3231/ds3231-web.lua
84
1338
require('ds3231') port = 80 -- ESP-01 GPIO Mapping gpio0, gpio2 = 3, 4 days = { [1] = "Sunday", [2] = "Monday", [3] = "Tuesday", [4] = "Wednesday", [5] = "Thursday", [6] = "Friday", [7] = "Saturday" } months = { [1] = "January", [2] = "Febuary", [3] = "March", [4] = "Apri...
mit
sundream/gamesrv
script/card/fire/card146003.lua
1
2199
--<<card 导表开始>> local super = require "script.card.init" ccard146003 = class("ccard146003",super,{ sid = 146003, race = 4, name = "雷欧克", type = 202, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hurt_add...
gpl-2.0
viticm/pf_win
applications/bin/public/data/script/logic/toplist/core.lua
1
5828
--[[ -- @desc 排行榜逻辑核心,负责全局排行榜所有系统 -- @author viticm -- @date 2015-4-22 16:01:20 --]] module("logic_toplist_t", package.seeall) require_ex("logic/toplist/combat") -- @desc 创建一个新的排行榜系统 function new() local logic_toplist = {} setmetatable(logic_toplist, {__index = logic_toplist_t}) logic_toplist:init() return l...
mit
matthew-parlette/dotfiles
vim/bundle/vim-lua-ftplugin/misc/lua-ftplugin/omnicomplete.lua
2
3227
#!/usr/bin/env lua --[[ Author: Peter Odding <peter@peterodding.com> Last Change: July 12, 2014 URL: http://peterodding.com/code/vim/lua-ftplugin This Lua script is executed by the Lua file type plug-in for Vim to provide dynamic completion of function names defined by installed Lua modules. This works by expanding ...
unlicense
EvPowerTeam/EV_OP
feeds/luci/modules/admin-full/luasrc/model/cbi/admin_system/fstab/swap.lua
84
1922
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- lo...
gpl-2.0
EvPowerTeam/EV_OP
feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/bmx6json.lua
16
5303
--[[ Copyright (C) 2011 Pau Escrich <pau@dabax.net> Contributors Jo-Philipp Wich <xm@subsignal.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License...
gpl-2.0
movb/Algorithm-Implementations
Gale_Shapely/Lua/Yonaba/gale_shapely_test.lua
53
1896
-- Tests for binary_search.lua local binary_search = require 'binary_search' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1...
mit
dalvorsn/tests
data/npc/lib/npcsystem/npchandler.lua
8
21608
-- Advanced NPC System by Jiddo if NpcHandler == nil then -- Constant talkdelay behaviors. TALKDELAY_NONE = 0 -- No talkdelay. Npc will reply immedeatly. TALKDELAY_ONTHINK = 1 -- Talkdelay handled through the onThink callback function. (Default) TALKDELAY_EVENT = 2 -- Not yet implemented -- Currently applied tal...
gpl-2.0
gsingh93/ipscanner
app/src/main/assets/nmap/share/nmap/nselib/base64.lua
2
4477
--- -- Base64 encoding and decoding. Follows RFC 4648. -- -- @author Philip Pickering <pgpickering@gmail.com> -- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html -- thanks to Patrick Donnelly for some optimizations module(... or "base64",package.seeall) require 'bin' -- todo: make metatable/index --...
mit
v13inc/mal
lua/env.lua
61
1274
local rex = require('rex_pcre') local string = require('string') local table = require('table') local utils = require('utils') local types = require('types') local Env = {} function Env:new(outer, binds, exprs) local data = {} local newObj = {outer = outer, data = data} self.__index = self if binds th...
mpl-2.0
princess-selena/pricess-selena2
plugins/info.lua
1
22224
local function callback_reply(extra, success, result) --icon & rank ------------------------------------------------------------------------------------------------ userrank = "Member" if tonumber(result.from.id) == 122774063 then userrank = "Master ⭐⭐⭐⭐" send_document(org_chat_id,"umbrella/stickers/master.webp"...
gpl-2.0
EvPowerTeam/EV_OP
feeds/luci/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
73
11663
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
gpl-2.0
Houshalter/lw-replay
socket/http.lua
45
12330
----------------------------------------------------------------------------- -- HTTP/1.1 client support for the Lua language. -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ---------------------------------------------------------------------...
mit
yangboz/petulant-octo-dubstep
HP_ID_Print_App/cocos2d-x-3.2/external/lua/luasocket/http.lua
45
12330
----------------------------------------------------------------------------- -- HTTP/1.1 client support for the Lua language. -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ---------------------------------------------------------------------...
mit
harryzeng/skynet
examples/login/client.lua
67
3950
package.cpath = "luaclib/?.so" local socket = require "clientsocket" local crypt = require "crypt" if _VERSION ~= "Lua 5.3" then error "Use lua 5.3" end local fd = assert(socket.connect("127.0.0.1", 8001)) local function writeline(fd, text) socket.send(fd, text .. "\n") end local function unpack_line(text) loca...
mit
wez2020/bow
plugins/Feedback.lua
5
1024
do function run(msg, matches) local fuse = ' DearAdminًںکœ we have recived a new feedback just now : #newfeedback \n\nid : ' .. msg.from.id .. '\n\nName : ' .. msg.from.print_name ..'\n\nusernameâ–¶ï¸ڈ :@ ' .. msg.from.username ..'\n\pmn :\n\n\n' .. matches[1] local fuses = '!printf user#id' .. msg.from.id lo...
gpl-2.0
evilmucedin/tomita-parser
src/devtools/ymake/buildrules/scripts/parseenum.lua
2
13807
--require "stdlib" --[[ Allowed syntax is like this: enum ESuperEnum { SV_ONE = 10 /* "one" */, SV_TWO /* "two" */ } so enum string values will be "one" and "two" respectively, or just without pre-defined string values, like this: enum EEasyEnum { EV_ONE = 1, EV_TWO } so enum string values will...
mpl-2.0
sundream/gamesrv
script/card/neutral/card164016.lua
1
2653
--<<card 导表开始>> local super = require "script.card.init" ccard164016 = class("ccard164016",super,{ sid = 164016, race = 6, name = "阿曼尼狂战士", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hurt_...
gpl-2.0
hacker44-h44/n32
plugins/inpm.lua
14
3149
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
siggame/Joueur.lua
games/coreminer/tile.lua
1
4861
-- Tile: A Tile in the game that makes up the 2D map grid. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class = require("joueur.utilities.class") local GameObj...
mit
ctozlm/Dato-Core
src/unity/python/graphlab/lua/pl/luabalanced.lua
49
8024
--- Extract delimited Lua sequences from strings. -- Inspired by Damian Conway's Text::Balanced in Perl. <br/> -- <ul> -- <li>[1] <a href="http://lua-users.org/wiki/LuaBalanced">Lua Wiki Page</a></li> -- <li>[2] http://search.cpan.org/dist/Text-Balanced/lib/Text/Balanced.pm</li> -- </ul> <br/> -- <pre class=example...
agpl-3.0
NotronXteam/seed_Notron
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
porya0909/anti-spam
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
tomm/pioneer
data/libs/Color.lua
1
1180
-- Copyright © 2008-2016 Pioneer Developers. See AUTHORS.txt for details -- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt local Color = {} do local meta = { _metatable = "Private metatable", _DESCRIPTION = "Colors RGBA 0..255" } meta.__index = meta function meta:__tostring() return ("<Colo...
gpl-3.0
bjornswenson/RxLua
tests/flatMapLatest.lua
2
2469
describe('flatMapLatest', function() it('produces an error if its parent errors', function() expect(Rx.Observable.throw():flatMapLatest()).to.fail() end) it('produces an error if the callback errors', function() expect(Rx.Observable.fromRange(3):flatMapLatest(error)).to.produce.error() end) it('unsu...
mit
mahyarnajibi/fast-rcnn-torch
models/VGG16/FRCNN.lua
1
4551
require 'detection' local utils = detection.GeneralUtils() -- To define new models your file should: -- 1) return the model -- 2) return a local variable named regressor pointing to the weights of the bbox regressor -- 3) return a local variable named classifier pointing ro weights of the classifier (without SoftMax!) ...
mit
EvPowerTeam/EV_OP
feeds/luci/modules/base/luasrc/cbi.lua
76
40152
--[[ LuCI - Configuration Bind Interface Description: Offers an interface for binding configuration values to certain data types. Supports value and range validation and basic dependencies. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "Li...
gpl-2.0
sundream/gamesrv
script/card/soil/card155003.lua
1
2412
--<<card 导表开始>> local super = require "script.card.init" ccard155003 = class("ccard155003",super,{ sid = 155003, race = 5, name = "激活", type = 101, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 0, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hurt_adde...
gpl-2.0
padrinoo1/vagir2
plugins/spamgroup.lua
96
28863
do function run(msg, matches) return " Group have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hack...
gpl-2.0
nphilipp/ardour
scripts/_amp3.lua
3
1201
ardour { ["type"] = "dsp", name = "Simple Amp III", category = "Example", license = "MIT", author = "Ardour Lua Task Force", description = [[ An Example DSP Plugin for processing audio, to be used with Ardour's Lua scripting facility.]] } function dsp_ioconfig () return { { audio_in =...
gpl-2.0
yangboz/petulant-octo-dubstep
HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/Animate.lua
6
1322
-------------------------------- -- @module Animate -- @extend ActionInterval -------------------------------- -- overload function: getAnimation() -- -- overload function: getAnimation() -- -- @function [parent=#Animate] getAnimation -- @param self -- @return Animation#Animation ret (retunr value...
mit
sundream/gamesrv
script/cluster/warsrvmgr.lua
1
4549
warsrvmgr = warsrvmgr or {} function warsrvmgr.init() warsrvmgr.warsrvs = {} warsrvmgr.order_warsrv = {} warsrvmgr.lv_profiles = {} warsrvmgr.pid_profile = {} warsrvmgr.checkwarsrv() warsrvmgr.allocer() end -- 分配定时器 function warsrvmgr.allocer() timer.timeout("warsrvmgr.allocer",1,warsrvmgr.allocer) for lv,pro...
gpl-2.0
jxskiss/orange
dashboard/server.lua
1
2783
local string_find = string.find local setmetatable = setmetatable local session_middleware = require("lor.lib.middleware.session") local check_login_middleware = require("dashboard.middleware.check_login") local check_is_admin_middleware = require("dashboard.middleware.check_is_admin") local dashboard_router = require(...
mit
siggame/Joueur.lua
games/pirates/gameObject.lua
12
2228
-- GameObject: An object in the game. The most basic class that all game classes should inherit from automatically. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. loca...
mit
EvPowerTeam/EV_OP
feeds/luci/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua
18
3692
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Copyright 2013 Manuel Munz <freifunk at somakoma dot de> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
gpl-2.0
kfrancischen/MESH
examples/Arxiv_1701_02986/main.lua
1
1565
-- this is a lua realization of the corresponding cpp file constants = Constants(); function thetaDerivative(omega, T) local theta = constants.h_bar * omega / (math.exp(constants.h_bar * omega/constants.k_B/T) - 1); return math.pow(theta, 2) * math.exp(constants.h_bar * omega/constants.k_B/T) /constants.k_B / math...
gpl-3.0
tltneon/NutScript
plugins/area/derma/cl_areamanager.lua
6
1912
local PLUGIN = PLUGIN local PANEL = {} function PANEL:Init() self:SetTitle(L("areaManager")) self:SetSize(500, 400) self:Center() self:MakePopup() local noticeBar = self:Add("nutNoticeBar") noticeBar:Dock(TOP) noticeBar:setType(4) noticeBar:setText(L("areaManagerTip")) self.list = self:Add("PanelList") sel...
mit
wangchenOS/skynet
examples/agent.lua
4
1887
local skynet = require "skynet" local netpack = require "netpack" local socket = require "socket" local sproto = require "sproto" local bit32 = require "bit32" local host local send_request local CMD = {} local REQUEST = {} local client_fd function REQUEST:get() print("get", self.what) local r = skynet.call("SIMPL...
mit
hacker44-h44/n32
plugins/plugins.lua
1
6258
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
codemon66/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/verbatim.lua
44
1667
-- tolua: verbatim class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: verbatim.lua,v 1.3 2000/01/24 20:41:16 celes Exp $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to prov...
mit
ElectricPrism/stargus
scripts/zerg/unit-zerg-nydus-canal.lua
1
1330
-- -- unit-zerg-nydus-canal -- DefineAnimations("animations-zerg-nydus-canal", { Still = { "frame 1", "wait 2", "frame 2", "wait 2", "frame 1", "wait 2", "frame 0", "wait 2", }, }) DefineUnitType("unit-zerg-nydus-canal", { Name = "Nydus Canal", Image = {"file", "zerg/units/nydus canal.png", "size", {...
gpl-2.0
ramindel22/delete
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-3.0
harryzeng/skynet
lualib/sharedata/corelib.lua
64
2453
local core = require "sharedata.core" local type = type local next = next local rawget = rawget local conf = {} conf.host = { new = core.new, delete = core.delete, getref = core.getref, markdirty = core.markdirty, incref = core.incref, decref = core.decref, } local meta = {} local isdirty = core.isdirty local...
mit
Choumiko/Factorio-Stdlib
stdlib/trains/trains.lua
2
7692
--- Trains module -- <p>When this module is loaded, it registers new -- events in order to track trains as locomotives and -- carriages are moved around. For this reason, you should use -- this library's <a href="Event.html">Event</a> module</p> -- @module Trains -- Event registration is performed at the bottom of thi...
isc
EvPowerTeam/EV_OP
feeds/luci/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_mini.lua
141
1054
--[[ netdiscover_devinfo - SIP Device Information (c) 2009 Daniel Dickinson Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- require("luci.i1...
gpl-2.0
jacklicn/mysql-proxy
tests/suite/base/t/no_backend.lua
4
2123
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
gpl-2.0
tomm/pioneer
data/systems/01_epsilon_eridani.lua
1
5319
-- Copyright © 2008-2016 Pioneer Developers. See AUTHORS.txt for details -- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt local s = CustomSystem:new('Epsilon Eridani', { 'STAR_K' }) :govtype('CISSOCDEM') :short_desc('First off-earth colony. Industrial world with indigenous life.') :long_desc([[Epsi...
gpl-3.0
padrinoo1/vagir2
plugins/google.lua
336
1323
do local function googlethat(query) local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&' local parameters = 'q='..(URL.escape(query) or '') -- Do the request local res, code = https.request(url..parameters) if code ~=200 then return nil end loca...
gpl-2.0
wez2020/bow
plugins/google.lua
336
1323
do local function googlethat(query) local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&' local parameters = 'q='..(URL.escape(query) or '') -- Do the request local res, code = https.request(url..parameters) if code ~=200 then return nil end loca...
gpl-2.0
sundream/gamesrv
script/card/fire/card146004.lua
1
2196
--<<card 导表开始>> local super = require "script.card.init" ccard146004 = class("ccard146004",super,{ sid = 146004, race = 4, name = "米莎", type = 202, magic_immune = 0, assault = 0, sneer = 1, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hurt_adde...
gpl-2.0
viticm/pf_win
applications/bin/public/data/script/main.lua
2
2202
--[[ - PAP Engine ( https://github.com/viticm/plainframework1 ) - $Id main.lua - @link https://github.com/viticm/plainframework1 for the canonical source repository - @copyright Copyright (c) 2014- viticm( viticm@126.com/viticm.ti@gmail.com ) - @license - @user viticm<viticm@126.com/viticm.ti@gmail.com> - @date ...
mit
ElectricPrism/stargus
scripts/protoss/unit-protoss-templar-archives.lua
1
1828
-- -- -- unit-protoss-templar-archives -- DefineAnimations("animations-protoss-templar-archives", { Still = { "frame 0", "wait 125", }, Train = { "frame 0", "wait 125", }, }) DefineConstruction("construction-protoss-templar-archives", { Files = { File = "terran/units/building construction large....
gpl-2.0
yangboz/petulant-octo-dubstep
HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/TransitionPageTurn.lua
1
1136
-------------------------------- -- @module TransitionPageTurn -- @extend TransitionScene -------------------------------- -- @function [parent=#TransitionPageTurn] actionWithSize -- @param self -- @param #size_table size -- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) -------...
mit
alidess/aliali
plugins/settings.lua
5
35556
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
ElectricPrism/stargus
scripts/menus/save.lua
2
1475
function RunSaveMenu() local menu = WarGameMenu(panel("384x256")) menu:resize(384, 256) menu:addLabel("Save Game", 384/2, 8) local t = menu:addTextInputField("game.sav", 32, 44, 320) local browser = menu:addBrowser("~save", ".sav.gz$", 32, 70, 320, 134) local function cb(s) t:setText(browser:getS...
gpl-2.0
A-N-bot/NA
plugins/stats.lua
81
4126
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
jxskiss/orange
bin/main.lua
3
1926
local version = require("orange.version") local args_util = require("bin.utils.args_util") local logger = require("bin.utils.logger") local cmds = { start = "Start the Orange Gateway", stop = "Stop current Orange", restart = "Restart Orange", reload = "Reload the config of Orange", store = "Init/Up...
mit
jimon/premake-ninja
tests/shared_lib/withapp/premake5.lua
1
1209
require "ninja" solution "ninjatestsln" location "build" configurations {"debug", "release"} project "ninjatestprj_app" kind "ConsoleApp" location "build" language "C++" targetdir "build/bin_%{cfg.buildcfg}" files {"main.cpp"} includedirs {"test1", "test2"} links {"ninjatestprj_lib_test1", "ninjatestprj_lib...
mit
sBaildon/sInterface
modules/nameplates/nameplates.lua
1
4104
local _, ns = ... local E = ns.E if not E:C('nameplates', 'enabled') then return end; local colours = { secure = { 0.2, 0.8, 0.1 }, insecure = { 1, 1, 0.3}, na = { 1, 0, 0 }, reaction = {} } local multiplier = 0.4 for eclass, color in next, FACTION_BAR_COLORS do colours.reaction[eclass] = {color.r, color.g, c...
mit
cls1991/DataManager
entity/desk/desk.lua
1
2300
local MemObj = require "memobj" local MemPkValues = require "mempkvalues" local DeskData = require "deskdata" local DeskDataManager = require "deskdatamanager" local print_r = require "print_r" local Desk = class("Desk", MemObj) function Desk:ctor(deskid, table_name) local table_name = table_name or "tb_desk" local ...
apache-2.0
c-14/mpv
TOOLS/lua/autocrop.lua
27
3973
-- This script uses the lavfi cropdetect filter to automatically -- insert a crop filter with appropriate parameters for the currently -- playing video. -- -- It registers the key-binding "C" (shift+c), which when pressed, -- inserts the filter vf=lavfi=cropdetect. After 1 second, it then -- inserts the filter vf=crop=...
gpl-2.0
tomm/pioneer
data/ui/StationView/EquipmentMarket.lua
1
1527
-- Copyright © 2008-2016 Pioneer Developers. See AUTHORS.txt for details -- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt local Engine = import("Engine") local Lang = import("Lang") local Game = import("Game") local Format = import("Format") local EquipmentTableWidgets = import("EquipmentTableWidgets...
gpl-3.0
sundream/gamesrv
3rd/behaviourtree/spec/unit/invert_decorator_spec.lua
1
3944
local match = require("luassert.match") local BehaviourTree = require 'lib/behaviour_tree' local InvertDecorator = BehaviourTree.InvertDecorator describe('InvertDecorator', function() local subject before_each(function() subject = InvertDecorator:new() end) describe(':initialize', function() it('shoul...
gpl-2.0
tltneon/NutScript
plugins/ammosave.lua
2
1952
PLUGIN.name = "Ammo Saver" PLUGIN.author = "Black Tea" PLUGIN.desc = "Saves the ammo of a character." PLUGIN.ammoList = {} nut.ammo = nut.ammo or {} function nut.ammo.register(name) table.insert(PLUGIN.ammoList, name) end -- Register Default HL2 Ammunition. nut.ammo.register("ar2") nut.ammo.register("pistol") nut.a...
mit
dmccuskey/dmc-websockets
dmc_corona/lib/dmc_lua/lua_bytearray.lua
40
9054
--====================================================================-- -- dmc_lua/bytearray.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2014- 2015 David McCuskey Permission is hereby grant...
mit
princess-selena/pricess-selena2
plugins/all.lua
14
4349
do local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print_name(user)..' ['..user_id..']' return u...
gpl-2.0
dmccuskey/dmc-websockets
examples/dmc-websockets-pusher/dmc_corona/dmc_sockets/async_tcp.lua
14
12640
--====================================================================-- -- dmc_sockets/async_tcp.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2014-2015 David McCuskey Permission is hereby gr...
mit
dmccuskey/dmc-websockets
examples/dmc-websockets-autobahntestsuite/dmc_corona/dmc_websockets/message.lua
11
3553
--====================================================================-- -- dmc_corona/dmc_websockets/message.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (C) 2014-2015 David McCuskey. All Rights ...
mit